 $(document).ready(function(){	
	$("#slider1").easySlider({
		auto: true,
		continuous: true
	});

	$("#slider3").easySlider({
		auto: false, 
	continuous: false,
	prevId: 'prevBtn3',
	nextId: 'nextBtn3',	
numeric:false
		});
	
	
$('#overlay').animate({opacity:0.0});
	
$('.button_type').click(
		function () {
			//show its submenu
			$('#types').show();
			$('#cats').hide();
			$('.button_type').addClass('active_t');
			$('.button_cat').removeClass('active_c');
			//alert('ok');

		}
		
	);
$('.button_cat').click(
		function () {
			//show its submenu
			$('#cats').show();
			$('#types').hide();
			$('.button_type').removeClass('active_t');
			$('.button_cat').addClass('active_c');
			//alert('ok');

		}
		
	);

$('.type_box').hover(
		function () {
			//show its submenu
		$('#search_ludek').removeClass('search_ludek2');
		$('#search_ludek').addClass('search_ludek');
		
			//alert('ok');

		}
		
		
	);

$('.cat_box').hover(
		function () {
			//show its submenu
		$('#search_ludek').removeClass('search_ludek');

		$('#search_ludek').addClass('search_ludek2');
		
			//alert('ok');

		}
		
		
	);
xx='';
$('.point').click(
		function () {
			//show its submenu
		xx=this.id;
		$('#sklepy_mapa').fadeTo('slow', 0.1);
		$('.box_test').addClass(this.id);
		$('.box_test').load('http://www.unimitsubishi.pl/sklepy/get_towns/'+this.id);
		$('#list_box').load('http://www.unimitsubishi.pl/sklepy/get_city/'+this.id);
		$('.box_test').fadeIn('slow');
		$('#close').show();
		$('#inst').html('WYBIERZ MIASTO Z MAPY lub z listy po lewej stronie');
		
		}
		
		
	);
$('#close').click(
		function () {
			//show its submenu
	
		$('#sklepy_mapa').fadeTo('slow', 1);
		$('.box_test').html('&nbsp;');
		$('.box_test').removeClass(xx);
		$('#close').hide();
		$('.box_test').hide();
		$('#list_box').html('&nbsp;');
		$('#towns_list').html('&nbsp;');
		$('#inst').html('Interesujące Cię województwo');
		}
		
		
	);


	

Cufon.replace('.category_product_list li',{fontSize:'14px',hover: true});
Cufon.replace('.product_title');
Cufon.replace('.detail_category_title');
Cufon.replace('#controls li a',{fontSize:'16px',hover: true});
Cufon.replace('.serach_button',{fontFamily:'Trajan Pro',hover: true});
$(".popup a").hover(function() {
								 //alert('ok');
$(this).next("em").stop(true, true).show({ top: "-70"}, "slow");
}, function() {
$(this).next("em").hide({ top: "-80"}, "fast");
});

		});	










