var myriad = {  src: DNN_skinPath + 'myriadpro.swf' };
sIFR.activate(myriad);

sIFR.replace(myriad, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath + 'myriadpro.swf', 
  css: [ '.sIFR-root {color:#ffffff; text-transform: uppercase;}' ]
});	

sIFR.replace(myriad, {
  selector: 'h3', 
  wmode: 'transparent', 
  src:  DNN_skinPath + 'myriadpro.swf', 
  css: [ '.sIFR-root {color: #0E5E81; }' ]
});	




jQuery(document).ready(function(){

	// Preload all rollovers
	jQuery(".buttonrollover, .LinkIcon").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(".buttonrollover, .LinkIcon").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(".SelectedTab img").each(function() {
										 
	imgsrc = jQuery(this).attr("src");
	currentTab = imgsrc.replace(/.jpg$/ig,"_on.jpg");
	jQuery(this).attr("src", currentTab);
	
	});


/* flash replacement */
	jQuery("a.media").media();
	
	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	

});