 jQuery(document).ready(function(){			

 jQuery("#menu div.abscontainer:last").addClass("last");	
 jQuery("#menu div.abscontainer:first").addClass("first");	
 
 
 jQuery("p.active").hide();

 jQuery("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("p.active").stop().slideUp("fast");
								
 	}); 
 });

function OpenChildWin(nurl,nname, nwidth,nheight) {
  popupWin = window.open(nurl, nname, 'scrollbars=0,width=' + nwidth +',height=' + nheight)
}
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:#ACC873; font-size:24px; font-weight:normal; }'  ]
});	
	
	
// 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();};
}
}


}
