function getWindowHeight(){var windowHeight=0;if(typeof(window.innerHeight)=="number"){windowHeight=window.innerHeight;}else{if(document.documentElement&&document.documentElement.clientHeight){windowHeight=document.documentElement.clientHeight;}else{if(document.body&&document.body.clientHeight){windowHeight=document.body.clientHeight;}}}return windowHeight;}function getWindowWidth(){var windowWidth=0;if(typeof(window.innerWidth)=="number"){windowWidth=window.innerWidth;}else{if(document.documentElement&&document.documentElement.clientWidth){windowWidth=document.documentElement.clientWidth;}else{if(document.body&&document.body.clientWidth){windowWidth=document.body.clientWidth;}}}return windowWidth;}jQuery(function(){var hide=false;jQuery(".hoverswap").hover(function(){jQuery(this).attr("src",jQuery(this).attr("src").replace(".jpg","_ro.jpg").replace(".png","-ro.png"));},function(){jQuery(this).attr("src",jQuery(this).attr("src").replace("_ro.jpg",".jpg").replace("-ro.png",".png"));});});jQuery(document).ready(function($){var hide=false;$("#departments").hover(function(){if(hide){clearTimeout(hide);}$("#leftnav").slideDown();},function(){hide=setTimeout(function(){$("#leftnav").stop().slideUp("slow");},1000);});$("#leftnav").hover(function(){if(hide){clearTimeout(hide);}},function(){hide=setTimeout(function(){$("#leftnav").stop().slideUp("slow");},1000);});$("a#single_image").fancybox();$("a#inline").fancybox({hideOnContentClick:true});$("a#swfbox").fancybox({hideOnContentClick:true,type:"swf",height:getWindowHeight()-80,width:getWindowWidth()-80});$("a.videoswfbox").fancybox({hideOnContentClick:false,type:"swf",height:385,width:640});$("a.grouped_elements").fancybox({transitionIn:"elastic",transitionOut:"elastic",speedIn:600,speedOut:200,overlayShow:true});});function openVW(linkName,SizeX,SizeY,PlaceX,PlaceY,useScroll){if((PlaceY=="")||(PlaceY==null)){PlaceY=300;}if((PlaceX=="")||(PlaceX==null)){PlaceX=400;}if((useScroll=="")||(useScroll==null)){useScroll=1;}else{useScroll=0;}window.open(linkName,null,"toolbar=0,scrollbars="+useScroll+",status=0,resizable=0,menubar=0,location=0,width="+SizeX+",height="+SizeY+",top="+PlaceY+",left="+PlaceX);}
