﻿// Main

window.addEvent('domready', function() {
	replaceHeaders();
});

// sIFR header replacement

function replaceHeaders(){
    if (typeof sIFR == "function") {
	    //sIFR.replaceElement(named({sSelector:'h1', sFlashSrc:'/Flash/aldo.swf', sColor: '#d4470f', sCase: 'upper', sWmode: 'transparent'}));
	    sIFR.replaceElement(named({ sSelector: '#page_title h2', sFlashSrc: '/Flash/monalisa.swf', sColor: '#b5121b', sWmode: 'transparent' }));
	    sIFR.replaceElement(named({ sSelector: 'h2.mona_lisa_red', sFlashSrc: '/Flash/monalisa.swf', sColor: '#b5121b', sWmode: 'transparent' }));
	    sIFR.replaceElement(named({ sSelector: 'h2.mona_lisa_green', sFlashSrc: '/Flash/monalisa.swf', sColor: '#6d8d24', sWmode: 'transparent' }));
	    sIFR.replaceElement(named({ sSelector: 'span.trade_gothic_red', sFlashSrc: '/Flash/tradegothic.swf', sColor: '#b5121b', sWmode: 'transparent' }));
	    sIFR.replaceElement(named({ sSelector: 'span.trade_gothic_green', sFlashSrc: '/Flash/tradegothic.swf', sColor: '#6d8d24', sWmode: 'transparent' }));
	    sIFR.replaceElement(named({ sSelector: 'div.recipe_featured div.content h3', sFlashSrc:'/Flash/tradegothic_regular.swf', sColor: '#b5121b', sWmode: 'transparent' }));
	    sIFR.replaceElement(named({ sSelector: 'div.recipe h3', sFlashSrc: '/Flash/tradegothic_regular.swf', sColor: '#b5121b', sWmode: 'transparent' }));
	    sIFR.replaceElement(named({ sSelector: '#featured_specials h3', sFlashSrc: '/Flash/tradegothic_regular.swf', sColor: '#6d8d24', sWmode: 'transparent' }));
	    sIFR.replaceElement(named({ sSelector: 'div.box h3', sFlashSrc: '/Flash/tradegothic_regular.swf', sColor: '#6d8d24', sWmode: 'transparent' }));
	    sIFR.replaceElement(named({ sSelector: 'div.misc_callout h3', sFlashSrc: '/Flash/tradegothic_regular.swf', sColor: '#6d8d24', sWmode: 'transparent' }));
	    sIFR.replaceElement(named({ sSelector: 'div.green_box div.content h3', sFlashSrc: '/Flash/tradegothic_regular.swf', sColor: '#f5dfc4', sWmode: 'transparent' }));
	    //sIFR.replaceElement(named({ sSelector: 'div.green_box div.content p', sFlashSrc: '/Flash/ tradegothic_regular.swf', sColor: '#ffffff', sWmode: 'transparent' }));
		//sIFR.replaceElement(named({sSelector:'h3', sFlashSrc:'/Flash/aldo.swf', sColor: '#94948f', sCase: 'upper', sWmode: 'opaque'}));
		sIFR.setup();
	}
}