

var pl1 = new Image();
pl1.src = "/Portals/_default/skins/siteskin/btn_on_01.gif";
var pl2 = new Image();
pl2.src = "/Portals/_default/skins/siteskin/btn_on_02.gif";
var pl3 = new Image();
pl3.src = "/Portals/_default/skins/siteskin/btn_on_03.gif";
var pl4 = new Image();
pl4.src = "/Portals/_default/skins/siteskin/btn_on_04.gif";
var pl5 = new Image();
pl5.src = "/Portals/_default/skins/siteskin/btn_on_05.gif";
var pl6 = new Image();
pl6.src = "/Portals/_default/skins/siteskin/btn_on_06.gif";
var pl7 = new Image();
pl7.src = "/Portals/_default/skins/siteskin/btn_on_07.gif";
var pl8 = new Image();
pl8.src = "/Portals/_default/skins/siteskin/damon_over.gif";
var pl9 = new Image();
pl9.src = "/Portals/_default/skins/siteskin/btn_on_08.gif";




jQuery(document).ready(function(){			 
 jQuery("#menu a.topper").hover(
										function(){jQuery(this).stop().animate({left:-20}, 300);},
										function(){jQuery(this).stop().animate({left: 0}, 300);}
											 
											 );									 
								 
 
 jQuery("p.active").hide();
 jQuery("#submenu").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) + ")").slideDown("slow");
					return(false);
				
								
 	}); 
*/
 jQuery("a.active").click(function(){
					jQuery("#submenu").hide("fast");		   
					jQuery("#submenu").html( 
											jQuery("p.active:eq("+ jQuery("a.active").index(this) + ")").html()
											);
					jQuery("#submenu a:last").addClass("lastlink");
					jQuery("#submenu").show("slow");	
					return(false);
				
								
 	}); 


/*	jQuery("a.active").mouseover(function(){
					jQuery("p.active:not(p.active:eq("+ jQuery("a.active").index(this) + "))").hide();
					jQuery("p.active:eq("+ jQuery("a.active").index(this) + ")").show();
				
								
 	});*/
/*	jQuery("#dnn_ContentPane,a.empty").mouseover(function(){
					jQuery("p.active").hide();
								
 	});*/


var h1text  = "";
h1text = "<h1>" + jQuery(".titlehead").html() + "</h1>";
jQuery(".titlehead").remove();
jQuery(".content p:first").prepend(h1text);
jQuery("img.pagephoto").remove().insertBefore("h1");

jQuery("a#tab160, a[title*=Survey]").attr("target","_blank");
 });


function runSiteScripts(path) {


//here's the sIfr
//code for the h1 tags
/*
var bernhardFashion = {  src: path + 'bernhardFashion.swf' };
sIFR.activate(bernhardFashion);
sIFR.replace(bernhardFashion, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  path +  'bernhardFashion.swf', 
  css: [ '.sIFR-root {color:#1E1E14; font-size:33px; }'  ]
});
*/
// 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();};
}
}


}
