jQuery(document).ready(function(){			

jQuery("span.menuwrap").append("<img class='leftcap cap' src='/Portals/_default/skins/customSite/images/menu/leftcap.png' /><img class='rightcap cap' src='/Portals/_default/skins/customSite/images/menu/rightcap.png' />");


jQuery("a.subrollover").prepend("<span class='leftcap cap'></span><span class='rightcap cap'></span>");


jQuery("#innermenu div.abscontainer:first").addClass("first");	
  jQuery("a.active").click(function(){return(false);});	
  jQuery("div.sub").hide();	
  jQuery("div.sub").each(function(){
								  jQuery(this).children("a:last").addClass("sublast");
								  jQuery(this).children("a:first").addClass("subfirst");			
								  });
 
 //open active sub
 //jQuery("#menu a.activepage").parent().stop().slideDown("slow");



jQuery("a.active").click(function(){
					jQuery("div.active").stop().slideUp("slow").prev("span.paddy").stop().css("height", "8px").slideDown("slow");
					jQuery("div.active:eq("+ jQuery("a.active").index(this) + ")").stop().css("height", "auto").slideDown("slow").prev("span.paddy").stop().slideUp("slow");
				
								
 	});
jQuery("#dnn_ContentPane, #sidebar").mouseover(function(){
					jQuery("div.active").stop().slideUp("slow").prev("span.paddy").stop().css("height", "8px").slideDown("slow");;
								
 	}); 

/*flashing
jQuery("div.active a").mouseover( function(){jQuery(this).stop().fadeTo("fast", 0.6, function(){jQuery(this).fadeTo("slow", 1);});});*/

 });


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();};
}
}


}