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