 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().hide();
					jQuery("p.active:eq("+ jQuery("a.active").index(this) + ")").stop().show();
				
								
 	});
jQuery("#dnn_ContentPane,a.empty").mouseover(function(){
					jQuery("p.active").stop().hide();
								
 	}); 
 });


function runSiteScripts(path) {
//here's the sIfr
//code for the h1 tags
var avantgardebookbt = {  src: path + 'avantgardebookbt.swf' };
sIFR.activate(avantgardebookbt);
sIFR.replace(avantgardebookbt, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  path +  'avantgardebookbt.swf', 
  css: [ '.sIFR-root {color:#4F3D0D; 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();};
}
}


}