$(document).ready(function(){
	$(".nav")
	.superfish({
		animation : { opacity:"show",height:"show"}
	})
	.find(">li:has(ul)")
		.mouseover(function(){
			$("ul", this).bgIframe({opacity:false});
		})
		.find("a")
			.focus(function(){
				$("ul", $(".nav>li:has(ul)")).bgIframe({opacity:false});
			});
});



var lastTabId = 1;
function tab_switch(id)
{
	document.getElementById('section-' + lastTabId).style.display = 'none';
	document.getElementById('section-' + id).style.display = 'block';
	lastTabId = id;
}



<!--
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];}}
}
//-->


<!--
var win=null;
function NewWindow(mypage,myname,w,h,scroll,status,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',status='+status+',location=no,directories=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}
//-->
