var gothamMedium = {
	src: '/swfs/Gotham_Medium_436.swf'
	,ratios: [6,1.24,11,1.13,12,1.12,21,1.07,29,1.04,30,1.05,49,1.03,53,1.02,54,1.03,74,1.02,77,1.01,78,1.02,83,1.01,84,1.02,89,1.01,90,1.02,95,1.01,96,1.02,1.01]
};
var gothamBook = {
	src: '/swfs/Gotham_Book_436.swf'
	,ratios: [6,1.24,11,1.13,12,1.12,21,1.07,29,1.04,30,1.05,49,1.03,53,1.02,54,1.03,74,1.02,77,1.01,78,1.02,83,1.01,84,1.02,89,1.01,90,1.02,95,1.01,96,1.02,1.01]
};

sIFR.domains = ['winestore-online.com', 'localhost', '10.100.0.*']
sIFR.useStyleCheck = true;
sIFR.activate(gothamMedium);


////////////////////////////////////////////////////////////////////////
// A note about transparent wmode:
// When using the scroll wheel to scroll the page, if the
// cursor lands on a sIFR element, the page will no longer
// scroll in the following cases:
//
// default wmode breaks scrolling in FF3 (Win)
// transparent wmode breaks scrolling in IE
////////////////////////////////////////////////////////////////////////


// Replace With Gotham Medium
sIFR.replace(gothamMedium, {
	selector: 'body.home h1'
	,css: [
	  '.sIFR-root { color: #ffffff; background-color: #f0037f; letter-spacing: -1; }'
	]
	,wmode: 'transparent'
});


// These replacements use transparent wmode
// for compability with the modal window plugin
sIFR.replace(gothamMedium, {
	selector: 'ul.wine-list li h4,ul.wine-list li.order dd.order,dl.order-number dd'
	,css: [
	  '.sIFR-root { color: #f0037f; letter-spacing: -1; }'
      ,'a { text-decoration: none; color: #f0037f; }'
      ,'a:hover { color: #ae0b60; }'
	]
	,wmode: 'transparent'
});
sIFR.replace(gothamMedium, {
	selector: 'body.wine-details h1'
	,css: [
	  '.sIFR-root { color: #f0037f; letter-spacing: -1; }'
	]
	,wmode: 'transparent'
});
sIFR.replace(gothamMedium, {
	selector: 'body.cart td h4'
	,css: [
	  '.sIFR-root { color: #f0037f; letter-spacing: -1; }'
	]
	,wmode: 'transparent'
	,tuneHeight: -3
});
sIFR.replace(gothamMedium, {
	selector: 'body.order-details td h4'
	,css: [
	  '.sIFR-root { color: #f0037f; letter-spacing: -1; }'
	]
	,wmode: 'transparent'
	,tuneHeight: -5
});

// Replace With Gotham Book
// and Fix the scrolling issue in FF3 Win w/ transparent wmode
if (sIFR.ua.gecko == true) {
	sIFR.replace(gothamBook, {
		selector: 'h2.lead'
		,css: [
		  '.sIFR-root { color: #82837a; letter-spacing: -1.1; }'
		]
		,wmode: 'transparent'
	});
} else {
	sIFR.replace(gothamBook, {
		selector: 'h2.lead'
		,css: [
		  '.sIFR-root { color: #82837a; letter-spacing: -1.1; }'
		]
	});
}

// Custom replacement for the tastemaker
// IE was having serious issues with wine titles in the tastemaker so we're disabling sifr here
if (sIFR.ua.ie == false) {
	sIFR.replace(gothamMedium, {
		selector: '#new ul.wine-list-new li h4'
		,css: [
		  '.sIFR-root { color: #f0037f; letter-spacing: -1; leading: 0; }'
	      ,'a { text-decoration: none; color: #f0037f; }'
	      ,'a:hover { color: #ae0b60; }'
		]
		,transparent: true
	});
}
