jQuery(document).ready(function(){
	/*----- Navigation ------*/



	
	// Preload all rollovers
	jQuery(".rollover").each(function() {
		// Set the original src
		rollsrc = jQuery(this).attr("src");
		rollON = rollsrc.replace(/.jpg$/ig,"_on.jpg");
		jQuery("<img>").attr("src", rollON);
	});
	
	// Navigation rollovers
	jQuery(".rollover").mouseover(function(){
		imgsrc = jQuery(this).attr("src");
		matches = imgsrc.match(/_on/);
		// don't do the rollover if state is already ON
		if (!matches) {
			imgsrcON = imgsrc.replace(/.jpg$/ig,"_on.jpg"); // strip off extension
			jQuery(this).attr("src", imgsrcON);
		}
	}).mouseout(function(){
		jQuery(this).attr("src", imgsrc);
	});
	jQuery('.menuitem:last').css('padding', '0');
	/* THIS REMOVE THE LINE FROM THE EMPTY <UL> ELEMENTS (NOTE: be sure there is NO space between the <ul></ul> elements) */
	jQuery("#mainmenu li ul:empty").remove();
	
	/* replace media classes */
	//jQuery("a.media").media();
	

	
	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	
});


var Haettenschweiler = {  src: DNN_skinPath+'Haettenschweiler.swf' };
sIFR.activate(Haettenschweiler);
sIFR.replace(Haettenschweiler, {
  selector: 'h1', 
  wmode: 'transparent',
  src: DNN_skinPath+'Haettenschweiler.swf',
  css: [
      '.sIFR-root {color:#464646; text-align:left; font-style:normal;}'
    ]
});



	

/*Sifr'd Menu*/
/*var futura = {  src: DNN_skinPath+'futuramedCond.swf' };
sIFR.activate(futura);
sIFR.replace(futura, {
  selector: '.menuLink ', 
  wmode: 'transparent',
  src: DNN_skinPath+'futuramedCond.swf',
  css: [
      '.sIFR-root {cursor:pointer;}'
	  ,'a {color:#000000; }'
	  ,'a:link {text-decoration:none; color:#000000; }'
	  ,'a:hover {color:#FFFFFF; }'
	  ,'a:active {color:#FFFFFF;}'
    ]
});*/
