

jQuery(document).ready(function(){
	//runSiteScripts(DNN_skinPath);

	jQuery("#bottommenu a").append(" | ");
	jQuery("#topmenu div.abscontainer:last").addClass("last");
	
	jQuery("#tab93, #tab79, #tab66, #tab57").bind('click', function() {
		return false;										   
	});

	jQuery("#topmenu div.sub").hide();

	jQuery("#topmenu a.active").mouseover(function(){menuShow(this); return(false);});
	jQuery("a.activepage").parents("div.sub").slideDown();												
	
	/* THIS REMOVE THE LINE FROM THE EMPTY <UL> ELEMENTS (NOTE: be sure there is NO space between the <ul></ul> elements) */
	jQuery("#topmenu li ul:empty").remove();
	jQuery("a").focus(function(){
		this.blur();
	}); 

});	



function menuShow(menuitem){
	jQuery("#topmenu div.active:not(div.active:eq("+ jQuery("#topmenu a.active").index(menuitem) + "))").stop().slideUp(500).parent().removeClass("topsub");
	jQuery("#topmenu div.active:eq("+ jQuery("#topmenu a.active").index(menuitem) + ")").stop().css("height", "auto").slideDown(800).parent().addClass("topsub");
		jQuery(".open").removeClass("open");
		jQuery(menuitem).addClass("open");
		
}

function runSiteScripts(path) {
	var cgFont = {  src: path + 'cg.swf' };
	sIFR.activate(cgFont);
	sIFR.replace(cgFont, {
		selector: 'h1', 
		wmode: 'transparent', 
		src:  path + 'cg.swf', 
		css: [ '.sIFR-root {color:#044146; font-size:24px; font-weight:bold;}'  ]
	});
}


