jQuery.noConflict();
(function($) {
$(function(){
	
	if ($('.picright').length>0) { $('.picright a').lightBox({fixedNavigation:false}); }
	
	var iH=$('#figure img').height()/2;
	$('#figure').css('margin-top',-iH);
	$('#shop table tr').each(function() { $(this).find('td:last').addClass('lasttd'); });
	//$('#productGallery li:nth-child(3n)').css('margin',0);
	$('#menu li:first').addClass('firstLi');
	$('#menu > li').hoverIntent({ 	
									over: function() {  $(this).find('ul').fadeIn('slow'); },
									timeout:400,
									out: function() { $(this).find('ul').fadeOut('slow'); } 	
	});
	
	$('#gallery li a').click(function(){
		src = $(this).attr('href');
		$('#bigImg img').fadeOut('slow',function(){
			$('#bigImg img').attr('src',src);
			$('#bigImg img').fadeIn('slow');
		});
		return false;
	});
	$('#figure img').attr('id','figurespic');
	/*PNG*/
		if(document.all) {
					if(document.getElementById('figurespic')) {
					var headerpicture = document.getElementById('figurespic');
					var source = headerpicture.src;
					headerpicture.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + source + "',sizingMethod='crop')";									 
					headerpicture.src = 'fileadmin/images/transparent.gif';
					}	
				};
	$('a[rel~=lightbox]').lightBox({
		fixedNavigation: true
	});
	
	//Checkout
	$('#alternative-address').hide();
	$('#alternative-yes').bind('click',function(){
		if ($(this).is(':checked')) {
			$('#alternative-address').show();
		}
	});
	$('#alternative-no').bind('click',function(){
		if ($(this).is(':checked')) {
			$('#alternative-address').hide();
		}
	});
	
			
});
})(jQuery);
function PrintLink() {
	var url = document.location.href;  
	var newurl = url;
	if ( url.indexOf("?") > -1 ) newurl = newurl+'&typeP=1';
	else  newurl = newurl+'?typeP=1';
	window.open(newurl,'PrintPage','menubar=1,scrollbars=1,width=1000,height=620');
}
