 jQuery(document).ready(function(){			

 jQuery("#menu div.abscontainer:last, #smallmenu a:last").addClass("last");	
 jQuery("#menu div.abscontainer:first, #smallmenu a:first").addClass("first");	
 
 
 jQuery("p.active").hide();
 jQuery("#menu a.activepage").parent().stop().slideDown("slow");
 jQuery("#smallmenu a.active").click(function(){
					jQuery("#smallmenu p.active:not(p.active:eq("+ jQuery("a.active").index(this) + "))").slideUp("fast");
					jQuery("p.active:eq("+ jQuery("a.active").index(this) + ")").css("height","auto").slideDown("slow");
					return(false);
				
								
 	}); 
  jQuery("#menu a.active").click(function(){
					jQuery("p.active:not(p.active:eq("+ jQuery("a.active").index(this) + "))").slideUp("fast");
					jQuery("p.active:eq("+ jQuery("a.active").index(this) + ")").css("height","auto").slideDown("slow");
					return(false);
				
								
 	}); 
jQuery("#dnn_ContentPane,#smallmenu a.empty").mouseover(function(){
					jQuery("#smallmenu p.active").stop().slideUp("fast");
					
								
 	}); 
 });


function runSiteScripts(path) {
// 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();};
}
}


}