// do the special font thing
Cufon.replace("#navigation ul li", {hover: true});
Cufon.replace("#content h3");

$(document).ready(function() {
	
	$("#logo").click(function() {
		document.location='/';
	});
	
	$("a.product_dialog").fancybox({
		'transitionIn'	:	'fade',
		'transitionOut'	:	'fade',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true,
		'scrolling'		: 	'no',
		'overlayOpacity' : 0.5,
		'overlayColor' : '#000'
	});
	
	$("#payment-options select").change(function() {
		
		var selected = $(this).val();
		
		if(selected == "ideal") {
			
			$("#payment-ideal").show();
			
		} else {
			
			$("#payment-ideal").hide();
			
		}
		
	});
	
	$("#checkout-button").click(function() {
		
		$("#billing-address").val( $("#shipping-address").val() );
		$("#billing-city").val( $("#shipping-city").val() );
		$("#billing-postcode").val( $("#shipping-postcode").val() );
		$("#billing-country").val( $("#shipping-country").val() );
		
	})
	
});


