//sIFR implementation

/*var artbrush = {  src: DNN_skinPath+'wilke.swf' };
sIFR.activate(artbrush);

sIFR.replace(artbrush, {
  selector: '.sIFR', 
  wmode: 'transparent', 
  src: DNN_skinPath+'wilke.swf', 
  css: [ '.sIFR-root {color:#B9261F;font-weight:normal;font-size:34px;text-align:center;}'
	   ]
});*/
var wilke = {  src: DNN_skinPath + 'wilke.swf' };
sIFR.activate(wilke);
sIFR.replace(wilke, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath +  'wilke.swf', 
  css: [ '.sIFR-root {color:#B9261F;font-weight:normal;font-size:34px;text-align:center;}'  ]
});

/*Menu implementation
jQuery(document).ready(function(){
	jQuery('#MainMenu').accordion({
		active: false,
		header: '.menuTitle',
		event: 'click',
		autoheight:false,
		navigation:false,
		showSpeed: 1200,
		hideSpeed: 1400
	});

});
*/



jQuery(document).ready(function(){
								
								
jQuery("#innermenu div.abscontainer:first").addClass("first");	
  jQuery("a.active").click(function(){return(false);});	
  jQuery("div.sub").hide();	
  jQuery("div.sub").each(function(){
								  jQuery(this).children("a:last").addClass("sublast");
								  jQuery(this).children("a:first").addClass("subfirst");			
								  });
 
 //open active sub
 //jQuery("#menu a.activepage").parent().stop().slideDown("slow");



jQuery("a.active").mouseover(function(){
					jQuery("div.active").stop().slideUp("fast").parent().removeClass("topsub");
					jQuery("div.active:eq("+ jQuery("a.active").index(this) + ")").stop().css("height","auto").slideDown("fast").parent().addClass("topsub");
				
								
 	});
jQuery("#dnn_ContentPane,a.empty, #sidebar").mouseover(function(){
					jQuery("div.active").stop().slideUp("fast").parent().removeClass("topsub");
								
 	}); 							
								
								
								
								
/*jQuery("#MainMenu > ul").superfish({
		hoverClass:"hover",
		pathClass:"overideThisToUse",
		delay:400,
		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("#MainMenu > ul >li:has(ul)")).bgIframe({opacity:true});
	});*/

	/* Activate all media */
	jQuery(".media").media();

	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	
	jQuery("#navigation73 a").each(function() {
		// Set the original src
		newwindow = "_blank";
		
		
		jQuery(this).attr("target", newwindow);
	});	

});

