$(document).ready(function ()
	{	
		$('#slideshow').cycle({
			fx: 'fade',
			timeout: 3000,
			speed: 1500
		});
		$('.itm').mouseover(function ()
		{						
			$(this).stop(true, true).animate({'padding-bottom':'30px', 'opacity':'0.6'}, 250);
		}).mouseout(function ()
		{
			$(this).stop(true, true).animate({'padding-bottom':'10px', 'opacity':'0.4'}, 250);
		});
		
		$('.usr').mouseover(function ()
		{
			$(this).stop(true, true).animate({'opacity':'0.6'}, 500);
		}).mouseout(function ()
		{
			$(this).stop(true, true).animate({'opacity':'0.4'}, 500);
		});

		$('.items').mouseover(function (event)
		{	
			$(this).css({'background':'url("http://country-shop.ru/images/lt2.png") scroll repeat-x 0 0 transparent'});
			event.stopPropagation();
		}).mouseout(function (event)
		{
			$(this).css({'background':'url("http://country-shop.ru/images/lt2.png") scroll repeat-x 0 -190px transparent'});
		});
		
		$('.tdMain').mouseover(function (event)
		{	
			$(this).css({'background':'url("http://country-shop.ru/images/tdHover.png") repeat'});
			event.stopPropagation();
		}).mouseout(function (event)
		{
			$(this).css({'background':'url("http://country-shop.ru/images/td.png") repeat'});
		});
		
	/*$("#jquery_jplayer_1").jPlayer({
		ready: function () {
			if ($("#music").length > 0)
			{
			var x = $("#music").text();
			}
			else
			{
			var x = "http://country-shop.ru/music/2.mp3"
			}
			$(this).jPlayer("setMedia", {
				mp3: x//"http://www.jplayer.org/audio/m4a/Miaow-07-Bubble.m4a"
				//oga: "http://www.jplayer.org/audio/ogg/Miaow-07-Bubble.ogg"
			});//.jPlayer("play");
		},
		ended: function (event) {
			$(this).jPlayer("play");
		},
		swfPath: "_js",
		supplied: "mp3",
		volume:0.5
	});*/
		
		$("#menu_player").jPlayer({
		ready: function () {
			$(this).jPlayer("setMedia", {
				mp3: "http://country-shop.ru/music/button.mp3"
			});
		},
			swfPath: "_js",
			supplied: "mp3",
			cssSelectorAncestor: "#menu",
			volume:0.5
		});
		$("#menu_player").jPlayer( "option", "cssSelectorAncestor", "#menu" );
		$('.items').click(function ()
		{
			$("#menu_player").jPlayer('play');
		});
		
	});
