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];}}// -----// toggledisplay2 - Toggle expand/contract of model content in order form.// -----function toggledisplay(clmid, clxid){	var cmrDivObj;	cmrDivObj = document.getElementById(clmid);	cmxDivObj = document.getElementById(clxid);	if ( cmrDivObj.style.display == "block" )	{		cmrDivObj.style.display = "none";		cmxDivObj.innerHTML = "+";	}	else	{		cmrDivObj.style.display = "block";		cmxDivObj.innerHTML = "-";	}}function ShowOrderLinkMenu(e){    var myMouseX = 0;    var myMouseY = 0;    var event = e?e:window.event;    if ( typeof event.pageX == "number" )    {        myMouseX = event.pageX;        myMouseY = event.pageY;    }    else if ( typeof event.clientX == "number" )    {        myMouseX = event.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;        myMouseY = event.clientY + document.body.scrollTop + document.documentElement.scrollTop;    }    else    {    // Hmmm.    }    //    document.Show.MouseX.value = myMouseX;//    document.Show.MouseY.value = myMouseY;        SetMenuPositionDiv('ORDERLINK_CONTAINER_POS_id', myMouseX, myMouseY);    MM_menuShowMenu(null, 'ORDERLINK_CONTAINER_POS_id', 'ORDERLINK_CONTAINER_id');        return true;}function SetMenuPositionDiv(id, mx, my){    var thediv = document.getElementById(id);    thediv.style.left = (mx-20) + 'px';    thediv.style.top = (my-0) + 'px';    thediv.style.right = '';}// -------------------------------------------------------------------------------------------------------------// -----// onmouseover event - Set background of div// -----function mouseover(mode,style){	switch (mode)	{	case "TABBUTTON":		style.textDecoration="underline";		break;	case "LINKBAR":		style.color="#02aed3"; /*#00bce4";*/     	style.textDecoration="underline";		break;	case "NARRHDRBAR_TOP":		//style.color="#02aed3"; /*#00bce4";*/		style.background="url(/images_tour/sections/narr_hdr_top_over.gif)";		break;	case "NARRHDRBAR_MID":		style.background="url(/images_tour/sections/narr_hdr_mid_over.gif)";		break;	default: 		style.background="url(/images/buttons/buttover.gif)";		break;	}	//style.color="#bc72d5";	style.cursor="pointer";}// -----// onmouseout event - Set background of div// -----function mouseout(mode,style){	switch (mode)	{	case "TABBUTTON":		style.textDecoration="none";		break;	case "LINKBAR":		style.color="#303a60";		style.background="#eeeeee";	/* f5f5f5 */		style.textDecoration="none";		break;	case "NARRHDRBAR_TOP":		style.background="url(/images_tour/sections/narr_hdr_top.gif)";		break;	case "NARRHDRBAR_MID":		style.background="url(/images_tour/sections/narr_hdr_mid.gif)";		break;	default: 		//style.color="#8b94af";		style.color="#303a60";		style.background="#e0e6f1";		break;	}	style.cursor="default";}// -----// onmousedown event - Set background of div// -----function mousedown(mode,style){	switch (mode)	{		case "TABBUTTON":			style.textDecoration="none";			style.fontWeight="bold";			break;		default:			style.color="#bc72d5";			style.cursor="pointer";			break;	}}// -------------------------------------------------------------------------------------------------------------function mouseovermenu(mode,style,id){	var c = document.getElementById(id);	if	(c.style.visibility == "visible")	{		style.color="#ffffff";		style.background="#5170f6";	}	else	{		style.background="url(/images/buttons/buttover.gif)";		style.color="#bc72d5";	}	style.cursor="pointer";}// -------------------------------------------------------------------------------------------------------------var mmOpenContainer = null;var mmOpenMenus = null;var mmHideMenuTimer = null;var mmButtonID = null;function MM_menuStartTimeout(id,hideTimeout) {	mmHideMenuTimer = setTimeout("MM_menuHideMenus()", hideTimeout);		if	(!mmButtonID)		{			var c = document.getElementById(id);            if (c != null)            {			//c.style.color="#8b94af";			//c.style.background="#e0e6f1";			c.style.color="#303a60";			c.style.background="#ffffff";            }		}}function MM_menuHideMenus() {	MM_menuResetTimeout();	if(mmOpenContainer) {		var c = document.getElementById(mmOpenContainer);		c.style.visibility = "inherit";		if	(mmButtonID)		{			var c = document.getElementById(mmButtonID);			//c.style.color="#8b94af";			//c.style.background="#e0e6f1";			c.style.color="#303a60";			c.style.background="#ffffff";					  //mmButtonID = "";            mmButtonID = null;		}		mmOpenContainer = null;	}	if( mmOpenMenus ) {		for(var i = 0; i < mmOpenMenus.length ; i++) {			var m = document.getElementById(mmOpenMenus[i]);			m.style.visibility = "hidden";					}		mmOpenMenus = null;	}}function MM_menuHideSubmenus(menuName) {//	alert(mmOpenMenus);	if( mmOpenMenus ) {		var h = false;		var c = 0;//		alert(mmOpenMenus.length);		for(var i = 0; i < mmOpenMenus.length ; i++) {			if( h ) {				var m = document.getElementById(mmOpenMenus[i]);//				alert("a");				m.style.visibility = "hidden";			} else if( mmOpenMenus[i] == menuName ) {//				alert("b");				h = true;			} else {//				alert("c");				c++;			}		}		mmOpenMenus.length = c+1;				}}function MM_menuOverMenuItem(menuName, menuitemName, subMenuSuffix) {	MM_menuResetTimeout();	MM_menuHideSubmenus(menuName);	var c = document.getElementById(menuitemName);	c.style.color="#ffffff";	c.style.background="#5170f6";	if( subMenuSuffix ) {		var subMenuName = "" + menuName + "_" + subMenuSuffix;		MM_menuShowSubMenu(subMenuName);	}}function MM_menuOutMenuItem(menuitemName) {var c = document.getElementById(menuitemName);	c.style.color="#304a60";	c.style.background="#ffffff";}function MM_menuShowSubMenu(subMenuName) {	MM_menuResetTimeout();	var e = document.getElementById(subMenuName);	e.style.visibility = "inherit";	e.style.cursor="pointer";		if( !mmOpenMenus ) {		mmOpenMenus = new Array;	}	mmOpenMenus[mmOpenMenus.length] = "" + subMenuName;}function MM_menuResetTimeout() {	if (mmHideMenuTimer) clearTimeout(mmHideMenuTimer);	mmHideMenuTimer = null;}function MM_menuShowMenu(id,containName, menuName) {    if ( id )    {	    var c = document.getElementById(id);	    mmButtonID = "" + id;	    c.style.color="#ffffff";	    c.style.background="#5170f6";	    c.style.cursor="pointer";    }    else    {        mmButtonID = null;    }	MM_menuHideMenus();	MM_menuResetTimeout();	MM_menuShowMenuContainer(containName);	MM_menuShowSubMenu(menuName);}function MM_menuShowMenuContainer(containName) {		var c = document.getElementById(containName);	var s = c.style;	s.visibility = "inherit";		mmOpenContainer = "" + containName;}