
jQuery(document).ready(function(){			
jQuery("#leftmenu a.topper:not(a.topper:first)").before("<span class='divider'></span>");

jQuery("#leftmenu div.sub").hide();
	jQuery("#leftmenu a.active").click(function(){menuShow(this); return(false);});
													
/*jQuery("#dnn_ContentPane,a.empty").mouseover(function(){
					jQuery("#leftmenu div.active").stop().slideUp("fast");						
 	}); */

/*flashing
jQuery("div.active a").mouseover( function(){jQuery(this).stop().fadeTo("fast", 0.6, function(){jQuery(this).fadeTo("slow", 1);});});*/

 });

function menuShow(menuitem){
	jQuery("#leftmenu div.active:not(div.active:eq("+ jQuery("#leftmenu a.active").index(menuitem) + "))").stop().slideUp(900);
	jQuery("#leftmenu div.active:eq("+ jQuery("#leftmenu a.active").index(menuitem) + ")").stop().css("height", "auto").slideDown(900);
}

function runSiteScripts(path) {
//here's the sIfr
var lithos = {  src: path + 'lithos.swf' };
sIFR.activate(lithos);
sIFR.replace(lithos, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  path +  'lithos.swf', 
  css: [ '.sIFR-root {color:#339933; font-size:24px; 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();};
}
}


}