jQuery(document).ready(function(){

	jQuery("p.sub").hide();
	jQuery("a.topper").mouseover(function(){menuShow(this); return(false);});
													
	jQuery("#dnn_ContentPane").mouseover(function(){
		jQuery(".topsub > p.active").stop().slideUp("fast").parent().removeClass("topsub");						
 	});

	/*menu shimmer*/
	jQuery("a.topper, p.callouts a").mouseover( function(){jQuery(this).stop().fadeTo("300", 0.5, function(){
		jQuery(this).fadeTo("200", 1);
	});
 });

	jQuery("div.sub a[href *= 'fileticket']").attr("target", "_blank");
	
});

function menuShow(menuitem){
	jQuery(".topsub > p.active").stop().slideUp(800).removeClass("topsub");
	jQuery(menuitem).next().stop().css("height", "auto").slideDown(500).parent().addClass("topsub");
	/*jQuery("p.active:not(div.active:eq("+ jQuery("a.active").index(menuitem) + "))").stop().slideUp(400).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 VAGRoundedLt_shadow = {  src: path + 'VAGRoundedLt_shadow.swf' };
	sIFR.activate(VAGRoundedLt_shadow);
	sIFR.replace(VAGRoundedLt_shadow, {
	  selector: 'h1', 
	  wmode: 'transparent', 
	  src:  path +  'VAGRoundedLt_shadow.swf', 
	  css: [ '.sIFR-root {color:#23abdf; }'  ]
});
}


