jQuery(document).ready(function(){			
jQuery("#menu div.sub a").wrapInner("<span class='wrappy'><span><span><span></span></span></span></span>");
jQuery("#menu div.sub").prepend("<img class='subcorner ne' src='/Portals/_default/Skins/siteSkin/images/menu/subs/sub_ne.png' width='11' height='9' /> <img class='subcorner nw' src='/Portals/_default/Skins/siteSkin/images/menu/subs/sub_nw.png'  width='11' height='9' /> <img class='subcorner se' src='/Portals/_default/Skins/siteSkin/images/menu/subs/sub_se.png'  width='11' height='10' /> <img class='subcorner sw' src='/Portals/_default/Skins/siteSkin/images/menu/subs/sub_sw.png'  width='11' height='10' /> <span class='n'></span>");

jQuery("#menu div.sub").append("<span class='s'></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").mouseover(function(){
					//jQuery("p.active:not(p.active:eq("+ jQuery("a.active").index(this) + "))").stop().fadeOut("fast").parent().removeClass("topsub");
					jQuery("div.active").stop().fadeOut("slow").parent().removeClass("topsub");
					jQuery("div.active:eq("+ jQuery("a.active").index(this) + ")").stop().css("opacity","").fadeIn("slow").parent().addClass("topsub");
				
								
 	});
jQuery("#dnn_ContentPane,a.empty, #sidebar").mouseover(function(){
					jQuery("div.active").stop().fadeOut("slow").parent().removeClass("topsub");
								
 	}); 

/*flashing
jQuery("p.active a").mouseover( function(){jQuery(this).stop().fadeTo("fast", 0.6, function(){jQuery(this).fadeTo("slow", 1);});});*/

 });


function runSiteScripts(path) {
//here's the sIfr
var felixtitling = {  src: path + 'felixtitling.swf' };
sIFR.activate(felixtitling);
sIFR.replace(felixtitling, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  path +  'felixtitling.swf', 
  css: [ '.sIFR-root {color:#22328A; font-size:24px; }'  ]
});

	
// 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();};
}
}


}