jQuery(document).ready(function(){

	//jQuery("div.sub").fadeTo("0", 0.9);
	jQuery("p.sub").hide();
	
	jQuery("a.active").mouseover(function(){menuShow(this); return(false);});
	jQuery("a.active").click(function(){menuShow(this); return(false);});
													
	jQuery("#left, .homepic, #banner").mouseover(function(){
		jQuery("p.active").stop().slideUp("fast").parent().removeClass("topsub");						
 	});

	jQuery("div.sub a[href *= 'fileticket']").attr("target", "_blank");
	
});

function menuShow(menuitem){
	jQuery("p.active:not(div.active:eq("+ jQuery("a.active").index(menuitem) + "))").stop().hide();//.slideUp(900).parent().removeClass("topsub");
	jQuery("p.active:eq("+ jQuery("a.active").index(menuitem) + ")").stop().css("height", "auto").slideDown(500).parent().addClass("topsub");
}



 
function runSiteScripts(path) {
	//here's the sIfr
	//code for the h1 tags
	var Scriptina_shadow = {  src: path + 'Scriptina_shadow.swf' };
	sIFR.activate(Scriptina_shadow);
	sIFR.replace(Scriptina_shadow, {
	  selector: 'h1', 
	  wmode: 'transparent', 
	  src:  path +  'Scriptina_shadow.swf', 
	  css: [ '.sIFR-root {color:#d5ae6c; font-weight:bold; }'  ]
});
}

