
$(document).ready(function ()
{
	
	$('.product .image a, .product .thumbs a').fancybox({
		'hideOnContentClick': true
	});
	
	
	$('a#sizeLink').fancybox({
		'frameWidth': 450,
		'frameHeight': 350,
		'overlayShow': true
	});
	
	
	$('.product .image a, .product .thumbs a').pngFix();
	
	
	$('#search input.text').focus(function ()
	{
		if(this.value==this.defaultValue)
		{
			this.value = '';
		}
	});
	
	$('#search input.text').blur(function ()
	{
		if(this.value=='')
		{
			this.value = this.defaultValue;
		}
	});
	
	$('#search').submit(function ()
	{
		obj = $('#search input.text').get(0);
		
		if(obj.value==obj.defaultValue)
		{
			obj.value = '';
		}
	});
	
	
	$('#rmenu form.login a.submit').click(function ()
	{
		$('#rmenu form.login').submit();
		
		return false;
	});
	
	
	$('div.carts table tr td.f span.minus').click(function ()
	{
		input = $('input', $(this).parent());
		
		input.val(parseInt(input.val())-1);
		
		$('#formularz').submit();
	});
	
	
	$('div.carts table tr td.f span.plus').click(function ()
	{
		input = $('input', $(this).parent());
		
		input.val(parseInt(input.val())+1);
		
		$('#formularz').submit();
	});
	
	$('div.carts table tr td.f input').change(function ()
	{
		$('#formularz').submit();
	})
});





