jQuery(document).ready(function(){			

 jQuery("#innermenu div.abscontainer:first").addClass("first");	
  jQuery("a.active").click(function(){return(false);});	
  jQuery("p.sub").hide();	
  jQuery("#innermenu p").each(function(){
								  jQuery(this).children("a:last").addClass("sublast");
								  jQuery(this).children("a:first").addClass("subfirst");			
								  });



	jQuery("a.active").mouseover(function(){
					jQuery("p.active:not(p.active:eq("+ jQuery("a.active").index(this) + "))").stop().slideUp("slow");
					jQuery("p.active:eq("+ jQuery("a.active").index(this) + ")").stop().css("height","auto").slideDown("slow");
				
								
 	});
jQuery("#dnn_ContentPane,a.empty").mouseover(function(){
					jQuery("p.active").stop().slideUp("slow");
								
 	}); 
 });


function runSiteScripts(path) {
//here's the sIfr
//code for the h1 tags
var papryus = {  src: path + 'papryus.swf' };
sIFR.activate(papryus);
sIFR.replace(papryus, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  path +  'papryus.swf', 
  css: [ '.sIFR-root {color:#ffffff; }'  ]
});	
	
	
// 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();};
}
}


}
