/* Code created by Kai Gittens on 7/10/08 for the Beyond Natural Video popup everywhere except for the home page*/
function bnVideo(URL) {
var day = new Date();
var id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=366,height=366');");
}

function LashFantasy(URL) {
    var day = new Date();
    var id = day.getTime();
    eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=1,width=366,height=366');");
}



// Rollover function for Product MainNav
startList = function() {
	if (document.all && document.getElementById) {
		navRoot = document.getElementById("MainNav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			  node = navRoot.childNodes[i];
			  if (node.nodeName=="LI") {
				  node.onmouseover=function() {
				  this.className+=" over";
				    }
				  node.onmouseout=function() {
				  this.className=this.className.replace
				      (" over", "");
				   }
			   }
		  }
	 }
}
window.onload=startList;
// end Rollover function for Product MainNav

//Ryo - For Rollover Tips
function HideTips(layer)
{
     document.getElementById(layer).style.visibility='hidden';	 
}
 
function ShowTips(layer)
{
	 
	 var v=document.getElementById(layer).style.visibility;
	 
	 if (v=='visible')
	 {
		 document.getElementById(layer).style.visibility='hidden';
		 document.getElementById(layer).style.display='none';
		 document.getElementById('tips').src = '../Images/Products/B-globalExpertTips-closed.gif';
		 
	 }else{
		document.getElementById(layer).style.visibility='visible';
		document.getElementById(layer).style.display='block';
		document.getElementById('tips').src = '../Images/Products/B-globalExpertTips-open.gif';
	 }

}

//Method overload with param for path
function ShowTips(layer,imgPathOpen,imgPathClose)
{
	 
	 var v=document.getElementById(layer).style.visibility;
	 
	 if (v=='visible')
	 {
		 document.getElementById(layer).style.visibility='hidden';
		 document.getElementById(layer).style.display='none';
		 document.getElementById('tips').src = imgPathClose;
		 
	 }else{
		document.getElementById(layer).style.visibility='visible';
		document.getElementById(layer).style.display='block';
		document.getElementById('tips').src = imgPathOpen;
	 }

}

function CloseImage(layer)
{
	document.getElementById(layer).src = '../Images/Products/B-globalExpertTips-closed.gif';
}

//Method overload with param for path
function CloseImage(layer,imgPath)
{
	document.getElementById(layer).src = imgPath;
}

// end Rollover function for Tips

// Load Print Ads Image
function LoadPrintAds(layer, img)
{
	document.getElementById(layer).src = img;
}

function LoadFlashMovie(width, height, src) 
{
    //script
    document.write('<script language="javascript">');
    document.write('if (AC_FL_RunContent == 0) {');
    document.write('alert("This page requires AC_RunActiveContent.js."); }');
    document.write('else {');
    document.write('	AC_FL_RunContent(');
    document.write('"codebase","http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0",');
    document.write('"width", "');
    document.write(width);
    document.write('","height","');
    document.write(height);
    document.write('","src","' + src + '",');
    document.write('"quality", "high", "pluginspage", "http://www.macromedia.com/go/getflashplayer",');
    document.write('"align", "middle","play", "true","loop","true","scale","showall","wmode","window","devicefont", "false",');
    document.write('"bgcolor", "#ffffff","menu", "true","allowFullScreen", "false","allowScriptAccess","always","salign",""');
    document.write('); } </script>');

    //noscript
    document.write('<noscript>');
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0"');
    document.write(' width="' + width + '" height="' + height + '" align="middle">');
    document.write('<param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="');
    document.write(src);
    document.write('.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="');
    document.write(src);
    document.write('.swf" quality="high" bgcolor="#ffffff" width="');
    document.write(width);
    document.write('" height="');
    document.write(height);
    document.write('" name="');
    document.write(src);
    document.write('" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></noscript>');
}