//UTF8 ‼

	WebFontConfig = {
		google:{
			families:['Yanone Kaffeesatz:light,regular,bold']
		}//,
		//loading:function(){},
		//fontloading:function(fontFamily,fontDescription){},
		//fontactive:function(fontFamily,fontDescription){},
		//fontinactive:function(fontFamily,fontDescription){},
		//active:function(){},
		//inactive:function(){}
	};
	(function() {
		var wf = document.createElement('script');
		wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
		wf.type = 'text/javascript';
		wf.async = 'true';
		var s = document.getElementsByTagName('script')[0];
		s.parentNode.insertBefore(wf,s);
	})();

$(document).ready(function(){

	// Detect IE5/6
	if ($.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent)) {
		// PNG Fix
		$.ifixpng(v_url_root + 'media/img/clear.gif'); 
		$('img[@src$=.png], .sale-banner, .heading, .contents, .checkout a, .continue-shopping, .content-heading, .contact-us, hr, .enter-heated-mirrors, .enter-custom-mirrors, .prod-options, .border, .add-to-order-enlarged, .add-to-order, .view-diagram, .view-photo, .view-enhancements, .view-enhancements, .diagram, .price-tag, #close').ifixpng();
	} else { // Make the large box visible all the time in IE6
		$(".add-to-order-enlarged").attr("class", "add-to-order");		
		$(".add-to-order").click(function () {
			$(this).removeClass("add-to-order");									   
			$(this).addClass("add-to-order-enlarged");
		});
	}
						   			   
	$(".diagram").hide();
	$(".view-photo").hide();		
		
	$(".view-diagram").click(function () {
		  $(".diagram")
		  .fadeIn("slow");
		  $(".view-photo").show();		  
		  $(".view-diagram").hide();
		});
	
	$(".view-photo").click(function () {
		  $(".diagram").fadeOut("slow");
		  $(".view-diagram").show();
		  $(".view-photo").hide();
		  
		});
	
	//Clickable Block
	$('.currently-viewing')
		.css("cursor","pointer")
		.click(function() {
			location.href = $(this).find("a").attr("href");
		});
	
});
