function presentFlash(flashSource, bgColor, width, height, wmode, flashVars) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ width +'" height="'+ height +'" id="'+ flashSource +'" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain">');
	document.write('<param name="movie" value="/images/'+ flashSource +'.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="bgcolor" value="'+ bgColor +'">');
	document.write('<param name="menu" value="false">');
	document.write('<param name="wmode" value="'+ wmode +'">');
	document.write('<param name="flashvars" value="'+ flashVars +'">');
	document.write('<embed src="/images/'+ flashSource +'.swf" flashvars="'+ flashVars +'" menu="false" wmode="'+ wmode +'" quality="high" bgcolor="'+ bgColor +'" width="'+ width +'" height="'+ height +'" name="'+ flashSource +'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
	document.write('</object>');
}

function contentResize() {
  if (document.all) {
    document.all.content.style.left = (document.body.clientWidth/2)-100+"px";
    document.all.content.style.height = document.body.clientHeight+"px";
    document.all.content.style.width = (document.body.clientWidth/2)+100+"px";
  } else if (document.getElementById) {
    document.getElementById('content').style.left = (window.innerWidth/2)-100+"px";
    document.getElementById('content').style.height = window.innerHeight+"px";
    document.getElementById('content').style.width = (window.innerWidth/2)+100+"px";
  }
}

window.onresize = contentResize;

function toggleSize(picID) {
	if (document.images[picID].src == eval(picID + "Big.src")) {
		document.images[picID].src = "/images/" + picID + "Small.jpg";
		document.images[picID].className = "zoomin";
	} else {
		document.images[picID].src = eval(picID + "Big.src");
		document.images[picID].className = "zoomout";
	}
}

function toolTip(tip) {
	if (tip) {
		document.getElementById('toolTip').innerHTML = tip;
		document.getElementById('toolTip').style.display = 'block';
		moveToMousePos('');
		document.onmousemove = moveToMousePos;
	} else {
		document.getElementById('toolTip').style.display = 'none';
	}
}

function moveToMousePos(e)
{
  if(document.all){
	x = event.x + document.getElementById('content').scrollLeft-(document.getElementById('content').offsetWidth+16);
	y = event.y + document.getElementById('content').scrollTop-(document.getElementById('toolTip').offsetHeight+4);
  } else {
	x = e.pageX + document.getElementById('content').scrollLeft-(document.getElementById('content').offsetWidth+16);
	y = e.pageY + document.getElementById('content').scrollTop-(document.getElementById('toolTip').offsetHeight+4);
  }
  document.getElementById('toolTip').style.left = x+'px';
  document.getElementById('toolTip').style.top = y+'px';
}