
jQuery(document).ready(function(){			
jQuery("#topmenu a.topper:not(a.topper:first)").before("<span class='divider'></span>");

jQuery("#topmenu div.sub").hide();
	jQuery("#topmenu a.active").click(function(){menuShow(this); return(false);});
													
jQuery("#dnn_ContentPane,a.empty").mouseover(function(){
					jQuery("#topmenu div.active").stop().slideUp("fast").parent().removeClass("topsub");						
 	});

/*flashing
jQuery("div.active a").mouseover( function(){jQuery(this).stop().fadeTo("fast", 0.6, function(){jQuery(this).fadeTo("slow", 1);});});*/

 });

function menuShow(menuitem){
	jQuery("#topmenu div.active:not(div.active:eq("+ jQuery("#topmenu a.active").index(menuitem) + "))").stop().slideUp(900).parent().removeClass("topsub");
	jQuery("#topmenu div.active:eq("+ jQuery("#topmenu a.active").index(menuitem) + ")").stop().css("height", "auto").slideDown(900).parent().addClass("topsub");
}

function runSiteScripts(path) {
//here's the sIfr
/*var spring = {  src: path + 'spring.swf' };
sIFR.activate(spring);
sIFR.replace(spring, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  path +  'spring.swf', 
  css: [ '.sIFR-root {color:#8a2529; font-size:38px; font-weight:normal; }'  ]
});*/
// gets rid of focus box on click
if(document.getElementsByTagName) {
var a = document.getElementsByTagName("a");
//collect all anchors A
for(var i = 0; i < a.length; i++){
// mouse onfocus, blur anchors
a[i].onfocus = function(){this.blur();};
}
}


}