$(document).ready(function ()
{
	jQuery.ifixpng('/i/s.gif');
	jQuery('img, .bgPng').ifixpng();
	jQuery('td, .bgPng').ifixpng();
	jQuery('div, .bgPng').ifixpng();
	jQuery('a, .bgPng').ifixpng();

	$('#cities_open').click(function(){
		$('#cities').show();
		$('#cities_close').show();
		$('#cities_open').show();
		//$(this).hide();
	});
	$('#cities_close').click(function(){
		$('#cities').hide();
		$('#cities_open').show();
		$('#cities_close').hide();
	});
	
	//------
	$(".artists_sh").hover(
		function()	{
			$(this).find(".shadow").fadeIn("def");
		},
		function()	{
			$(this).find(".shadow").fadeOut("def");
		}
	);	
	$(".artists_sh_link").hover(
		function()	{
			$(this).parent().prev().find(".shadow").fadeIn("def");
		},
		function()	{
			$(this).parent().prev().find(".shadow").fadeOut("def");
		}
	);
	$(".im_shaddow").hover(
		function()	{
			
			$(this).find(".shadow").fadeIn("def");
			
				if(selectedIm)
				selectedIm.fadeOut("def");

			$(this).find(".im_shadow_link").parent().prev().find(".shadow").fadeIn("def");
			$(this).find(".im_shadow_link").parent().find(".dark").fadeIn("def");
			selectedIm=$(this).parent().find(".dark");	
		},
		function()	{
			
		
			$(this).find(".im_shadow_link").parent().prev().find(".shadow").fadeOut("def");
			$(this).find(".im_shadow_link").parent().find(".dark").fadeOut("def");
			$(this).find(".shadow").fadeOut("def");
			
		
			
			
		}
	);
	
	var selectedIm;
	$(".im_shadow_link").hover(
		function()	{
			//console.log('inner_in');
			/*if(selectedIm)
				selectedIm.fadeOut("def");

			$(this).parent().prev().find(".shadow").fadeIn("def");
			$(this).parent().find(".dark").fadeIn("def");
			selectedIm=$(this).parent().find(".dark");		*/	
		},
		function()	{
			//console.log('inner out');
			//$(this).parent().prev().find(".shadow").fadeOut("def");
		}
	);

	//------
	$(".storefilt").click(
		
		function(){
		    if($(this).parent().attr('class')=='select'){
		    	$(this).parent().attr('class', 'no_select');
		    	$(this).parent().find('.f_options').hide();
		    }
			else{
				//hide all
				
				$('.filters').find(":first").attr('class', 'no_select');
				
		    	$('.filters').find(".f_options").hide();
		    	
				$(this).parent().attr('class', 'select');
				$(this).parent().find('.f_options').show();
				
			}
		
		
	});
	
});
