jQuery(document).ready(function(){

	jQuery("#navigation > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:500,
		animation:{height:"show"},
		speed:"normal",
		oldJquery:false,
		disableHI:false,
		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});
	});

	/* Activate all media */
	jQuery(".media").media();

	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	
	/*Active Rollovers*/
	jQuery("#navigation ul li a img").rollover("_over");
	jQuery(".rollover").rollover("_over");
});

var trajan2 = { src: DNN_skinPath + 'GlyphaLight.swf' };
sIFR.activate(trajan2);
sIFR.replace(trajan2, {
  selector: 'h1#pagetitle',
    wmode: 'transparent', 
  css: '.sIFR-root { color: #ffffff; font-size:40px; }'
});
var trajan = { src: DNN_skinPath + 'GlyphaThin.swf' };
sIFR.activate(trajan);
sIFR.replace(trajan, {
  selector: 'h1#welcome2',
    wmode: 'transparent', 
  css: '.sIFR-root { color: #ffffff; font-size:32px; }'
});
sIFR.replace(trajan, {
  selector: 'h1#welcome',
    wmode: 'transparent', 
  css: '.sIFR-root { color: #98e7c6; font-size:60px;}'
});
