function mm_preloadimages() { //v3.0
  var d=document; if(d.images){ if(!d.mm_p) d.mm_p=new array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexof("#")!=0){ d.mm_p[j]=new image; d.mm_p[j++].src=a[i];}}
}


function mm_swapimgrestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.osrc;i++) x.src=x.oSrc;
}

function mm_findobj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getelementbyid) x=d.getElementById(n); return x;
}

function mm_swapimage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.mm_sr=new array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.osrc) x.osrc=x.src; x.src=a[i+2];}
}

function mm_openbrwindow(theurl,winname,features) { //v2.0
  window.open(theurl,winname,features);
}
      var mychoice, myselection;
   function ck_menuitemredirectpage(){
      mychoice = document.myForm.myMenu.selectedIndex;
      mySelection=document.myForm.myMenu.options[myChoice].value;
      location=mySelection;
   }


function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible"
}

function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden"
}

function showmenuRelative(elmnt,relPos,x,y)
{
	clickObj = document.getElementById(relPos);
	clickObjLocWidth = (clickObj.offsetWidth) - x;
	clickObjLocTop = clickObj.offsetTop - y;
	document.getElementById(elmnt).style.left = clickObjLocWidth + "px";
	document.getElementById(elmnt).style.top = clickObjLocTop + "px";
	document.getElementById(elmnt).style.visibility="visible";
}

function doSwitchImage(elmnt,image)
{
	document.getElementById(elmnt).src= image
}

function doSwitchImageGlossary(elmnt,image,elmnt2,elmnt3)
{
	bumblehead = parent.document.getElementById(elmnt2);
	newText= document.getElementById(elmnt3).innerHTML;
	bumblehead.innerHTML = newText;
	parent.document.getElementById(elmnt).src= "";
	parent.document.getElementById(elmnt).src= image;
}

function doSwitchImage2(elmnt,image,elmnt2,newText)
{
	doodah = document.getElementById(elmnt2);
	doodah.innerHTML = newText;
	document.getElementById(elmnt).src= image;
}

function doSwitchImage3(elmnt,image,elmnt2,elmnt3,elmnt4)
{
	document.getElementById(elmnt).src= image;
	document.getElementById(elmnt2).className="imageSwitchTextClick";
	document.getElementById(elmnt3).className="imageSwitchText";
	document.getElementById(elmnt4).className="imageSwitchText";
}


function newQTWin(myUrl,myWidth,myHeight)
    {

popMe = window.open("","QTMedia","toolbar=0,location=0,directories=1,status=0,menubar=0,scrollbars=0,resizable=0,width=" + myWidth + ",height=" + myHeight + ",top=0,left=0");

popMe.document.write("<html><head><!-- <title>Quicktime animation</title> -->"
+ "</head><body marginwidth='0' marginheight='0' topmargin='0' leftmargin='0'>"

+ "<object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B'"
+ " width="
+ myWidth
+ " height="
+ myHeight
+ " codebase='http://www.apple.com/qtactivex/qtplugin.cab'>"
+ "<param name='src' value="
+ myUrl
+ ">"
+ "<param name='autoplay' value='true'>"

+ "<embed src="
+ myUrl
+ " width="
+ myWidth
+ " height="
+ myHeight
+ " pluginspage='http://www.apple.com/quicktime/download/' />"
+ "</object>"
+"<!--</body></html>--></td></tr></table></td></tr><tr><td width='610'>&nbsp;</td></tr><tr><td valign='top'>&nbsp;</td></tr></table></td><td align='right' width='149' style='border-color: #CECECE; border-width: 0px 0px 0px 1px; border-style: solid;'><!--#include file='includes/related.html' --></td></tr></table></td></tr></table></td><td width='5'>&nbsp;</td><td bgcolor='#ECF1F4'>&nbsp;</td></tr><tr><td colspan='5' align='center'><!--#include virtual='/includes/770_footer.html' --></td></tr></table></body></html>");

popMe.document.close();

popMe.focus();
    }
