
sc = document.getElementById("samp_container");
is_mac_ie = (navigator.platform.toLowerCase().indexOf("mac") > -1)
is_firefox_beta1_5=(navigator.userAgent.indexOf("Firefox/1.4")+1 >0);
is_firefox1_5=(navigator.userAgent.indexOf("Firefox/1.5")+1 >0);
is_firefox2_0=(navigator.userAgent.indexOf("Firefox/2.0")+1 >0);


if (navigator.userAgent.indexOf("afari")+1)
{

	sc.style.display = "none";

}

else

{
	if (window.opera || (is_mac_ie && window.showHelp))
	{

		sc.style.top = document.body.clientHeight-sc.offsetHeight-20+"px";

	}
	else if(is_firefox_beta1_5 || is_firefox1_5 || is_firefox2_0)
	{
		if(document.doctype){
			sc.style.top = document.documentElement.clientHeight-sc.offsetHeight-20+"px";
		} else {
			sc.style.top = document.body.clientHeight-sc.offsetHeight-20+"px";
		}
	}
	else
	{
		sc.style.top = document.documentElement.offsetHeight-sc.offsetHeight-20+"px";


	}
}


t_page = window.location.toString();
t_page = t_page.substring(t_page.lastIndexOf("/")+1);



	//if is IE MAC and the effect is imenu... show the not supported message
	if (is_mac_ie && window.showHelp && t_page.indexOf("imenus_3") > -1 )
	{

		ef ='<div id="msg_outer_container" style="position:absolute; top:100px; left:186px; border-style:solid; border-width:1px; border-left-color:#acd2ed; border-top-color:#acd2ed; border-right-color:#404040; border-bottom-color:#404040; visibility:visible;" > \
		<div id="msg_inner_container" style="overflow:hidden; height:160px; width:365px; background-color:#acd2ed; border-style:solid; border-width:1px; border-left-color:#ffffff; border-top-color:#ffffff; border-right-color:#808080; border-bottom-color:#808080; "> \
		<div id="msg_title" style="position:relative; top:1px; left:1px; height:18px; background-color:#00226a; FILTER: progid:DXImageTransform.Microsoft.gradient (GradientType=1, StartColorStr=#002268 EndColorStr=#acd2ed); color:#ffffff; font-weight:bold; font-family:arial; font-size:13px; padding-left:10px; padding-top:2px;">Effect Not Supported</div> \
			<div id="msg_message" style="padding:20px;"> \
						<div style="float:left;"><img src="images/information.gif" border=0></div> \
						<div style="display:inline; position:relative; left:25px; top:13px; font-family:arial; font-size:13px; font-weight:normal;">This effect is not designed for MSIE on MAC.</div> \
						<div style="clear:left; position:relative; top:10px; padding:3px; font-family:arial; font-size:12px; border-style:none; border-width:0px; border-color:#5776C8; "> \
							<div style="position:relative; left:0px; font-family:arial; font-size:13px;">This effect is designed for all platform and browser combinations other than Internet Explorer on MAC platforms.</div> \
						</div> \
		</div></div></div>';

		//hide the effect on the page and subsequent divs for formatting the effect
		for(i = 0; i < document.getElementsByTagName("div").length; i++)
		{
			document.getElementsByTagName("div")[i].style.visibility="hidden"
		}

		// place the message
		document.body.insertAdjacentHTML("afterBegin",ef);


	} else
	{

		sc.style.visibility = "visible";
	}




// keeps the samples window infocus incase it goes behind the screen.  The alternative is to have multiple windows open
window.focus();











