$(function(){
/***************************/

// ie<7 nav flip from png to gif
// necessary because of hover state complications of "fixed" pngs
if ($.browser.msie && parseFloat($.browser.version)<7) {
	$("#nav>ul>li>a").css("background-image","url(images/nav.gif)");
}

// apply png fix to the appropriate selectors
$("#bottle img, .tagline, #sidebar img").ifixpng();

// for a nice first presentation: 
// hide the container immediately
$("#container").hide();
// when everything has loaded, slowly fade the container in
$(window).load(function(){
	
	$("#container").show();
	/*
	$("#container").fadeIn(function(){
		//fix for ie7 cleartype anti aliasing bug
		this.style.removeAttribute('filter');
	});
	*/
	
	if(typeof sIFR.replaceElement == "function"){
		// replacement calls
		sIFR.replaceElement(named({
			sSelector:"h1",
			sFlashSrc:"scripts/sifr/cochinLtStd.swf",
			sWmode:"transparent",
			sColor:"#A75534"
		}));
		if ( !$("#pos, #reviews, #contact").length ) {	
			sIFR.replaceElement(named({
				sSelector:"h2",
				sFlashSrc:"scripts/sifr/cochinLtdStdItalic.swf",
				sWmode:"transparent",
				sColor:"#6C5D50"
			}));
		}
	};
	
});




/***************************/
});

