$(document).ready(function(){var hover_timeout=undefined;$("#contentmenu > li").bind("mouseenter",function(){$("#contentmenu > li").find("div:first").css("display:none;");if(hover_timeout!=undefined){clearTimeout(hover_timeout);}
var $this=this;hover_timeout=setTimeout(function(){hover_timeout=undefined;$($this).find("div:first").slideDown('fast');},200);});$("#contentmenu > li").bind("mouseleave",function(){clearTimeout(hover_timeout);$(this).find("div:first").slideUp('fast');});var hover_timeout2=undefined;$("#brandmenu > li").bind("mouseenter",function(){$("#brandmenu > li").find("div:first").css("display:none;");if(hover_timeout2!=undefined){clearTimeout(hover_timeout2);}
var $this=this;hover_timeout2=setTimeout(function(){hover_timeout2=undefined;$($this).find("div:first").fadeIn('fast');},200);});$("#brandmenu > li").bind("mouseleave",function(){clearTimeout(hover_timeout2);$(this).find("div:first").fadeOut('fast');});});function showDivision(division){document.getElementById(division).style.display='block';}
function hideDivision(division){document.getElementById(division).style.display='none';}
function SetContent(curcont){if(document.getElementById(curcont)){curdiv=document.getElementById(curcont);curdiv.style.display='block';}
return;}
function SwitchContent(curcont,choice){curdiv=document.getElementById(curcont);curdiv.style.display='none';newdiv=document.getElementById(choice);newdiv.style.display='block';curcont=choice;return;}
function toggleDisplay(divToToggle){curdiv=document.getElementById(divToToggle);if(curdiv.style.display=='none')curdiv.style.display='block';else curdiv.style.display='none';return;}
function changePage(newLoc)
{var dd=document.salesform.country.selectedIndex;var ss=document.salesform.country[dd].text;if(ss=='Other'){nextPage=newLoc.options[newLoc.selectedIndex].value
document.location.href=nextPage}}
function SetCookie(cookieName,cookieValue,nDays){var today=new Date();var expire=new Date();if(nDays==null||nDays==0)
document.cookie=cookieName+"="+escape(cookieValue)+";";else
{expire.setTime(today.getTime()+3600000*24*nDays);document.cookie=cookieName+"="+escape(cookieValue)+";expires="+expire.toGMTString();}}
function getCookie(c_name)
{if(document.cookie.length>0)
{c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1)
{c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return"";}
