jQuery(document).ready(function(){

jQuery("#navigation > ul").superfish({
		hoverClass:"sfHover",
		pathClass:"overideThisToUse",
		delay:400,
		animation:{opacity:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		autoArrows: true,
		onInit:function () {},
		onBeforeShow:function () {},
		onShow:function () {},
		onHide:function () {}
	}).find(">li:has(ul)").mouseover(function () {
		jQuery("ul", this).bgIframe({opacity:true});
	}).find("a").focus(function () {
		jQuery("ul", jQuery("#navigation > ul >li:has(ul)")).bgIframe({opacity:true});
	});

	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	
	/*Preload the menu backgrounds*/
	menuImage = new Image(); 
	menuImage.src = DNN_skinPath + "images/menubg.jpg";
	menuImage1 = new Image(); 
	menuImage1.src = DNN_skinPath + "images/menubg_on.jpg";
	menuImage2 = new Image(); 
	menuImage2.src = DNN_skinPath + "images/menubg_first.jpg";
	menuImage3 = new Image(); 
	menuImage3.src = DNN_skinPath + "images/menubg_first_on.jpg";
	
});

var centurygothic = {  src: DNN_skinPath + 'centurygothic.swf' };
sIFR.activate(centurygothic);
sIFR.replace(centurygothic, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'centurygothic.swf', 
  css: [ '.sIFR-root {color:#005480;}'  ]
});

sIFR.replace(centurygothic, {
  selector: '.footeraddress', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'centurygothic.swf', 
  css: [ '.sIFR-root {color:#f0f0f0; font-weight: bold;}',
		'.sIFR-root a {color:#f0f0f0; font-weight: bold; text-decoration: none; cursor: pointer;}',
		'.sIFR-root a:hover {color:#004F7E; font-weight: bold; text-decoration: none; cursor: pointer;}'
		]
});
