var bodega = {  src: DNN_skinPath + 'bodegasans_regular.swf' };
sIFR.activate(bodega);

sIFR.replace(bodega, {
  selector: 'h1', 
  wmode: 'transparent', 
  src:  DNN_skinPath + 'bodegasans_regular.swf', 
  css: [ '.sIFR-root {color:#ffffff; text-transform:uppercase; }' ]
});	

var futuraT = {  src:  DNN_skinPath + 'futuraT.swf' };
sIFR.activate(futuraT);

sIFR.replace(futuraT, {
  selector: '#addresses h5', 
  wmode: 'transparent', 
  src:  DNN_skinPath + 'futuraT.swf', 
  css: [ '.sIFR-root {color:#ffffff; text-align:center;}' ]
});	

sIFR.replace(futuraT, {
  selector: '#addresses p', 
  wmode: 'transparent', 
  src:  DNN_skinPath + 'futuraT.swf', 
  css: [ '.sIFR-root {color:#ffffff; text-align:center;}', 'a { color: #ffffff; }' ]
});	





jQuery(document).ready(function(){
	/*----- Navigation ------*/
	jQuery('#mainmenu').accordion({
		active: false,
		header: '.menuTitle',
		event: 'click',
		autoheight:false,
		navigation:true,
		showSpeed: 1200,
		hideSpeed: 1400
	});
		
		/* 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();
	
		
	// 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);
	});
	
	/* replace media classes */
	jQuery("a.media").media();
	
	/* remove box from links */
	jQuery("a").focus(function(){
		this.blur();
	});
	
});

