

jQuery(document).ready(function(){

	jQuery("#navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:800,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	}).find(">li:has(ul)").mouseover(function () {
		jQuery("ul", this).bgIframe({opacity:true});
	}).find("a").focus(function () {
		jQuery("ul", jQuery("#navigation > ul >li:has(ul)")).bgIframe({opacity:true});
	});


	jQuery("#home-link").click(function(){
		document.location.href = "/?tabname=Home";
	});
	
	
	/* PNG fix */
	jQuery(document).pngFix();

	/* Activate all media */
	jQuery(".media").media();
	
	jQuery ("li:first-child","#navigation ul").css("border-left","none");
	jQuery ("li:last-child","#navigation ul").css("border-right","none");
	jQuery ("li:first-child","#navigation ul ul").css("border-left","1px solid #000");
	jQuery ("li:last-child","#navigation ul ul").css("border-right","1px solid #000");
	jQuery ("li:first-child","#navigation ul ul").css("border-top","2px solid #000");

	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	jQuery("#navigation59 a").each(function() {
		 newwindow = "_blank";
		 jQuery(this).attr("target", newwindow);
	});
	
});
