$(document).ready(function(){
	rsz();
	var background;
	$(".lng_button").hover(function(){
		background = $(this).css("background-image");
		$(this).css({"background-image" : "url(/templates/satang/images/lang_button_nav.png)"});
	}, function(){
		$(this).css({"background-image" : background});
	});
	$("#home").hover(function(){
		$(this).css({"background-image" : "url(/templates/satang/images/home_move.png)"});
	}, function(){
		$(this).css({"background-image" : "url(/templates/satang/images/home.png)"});
	});
	$("#sitemap").hover(function(){
		$(this).css({"background-image" : "url(/templates/satang/images/sitemap_move.png)"});
	}, function(){
		$(this).css({"background-image" : "url(/templates/satang/images/sitemap.png)"});
	});
	$("#mailto").hover(function(){
		$(this).css({"background-image" : "url(/templates/satang/images/mailto_move.png)"});
	}, function(){
		$(this).css({"background-image" : "url(/templates/satang/images/mailto.png)"});
	});
	$(".left_menu_cell").hover(function(){
		$(this).css({"background-image" : "url(/templates/satang/images/menu_cell_move.png)"});
	}, function(){
		$(this).css({"background-image" : "url(/templates/satang/images/menu_cell.png)"});
	});
	$("table.categorylist td:even").css({"display" : "none"});
	$("table.categorylist td:odd").css({"width" : "50%",
										"font-weight" : "bold"});
	$("img.photo_thumb_img").hover(function(){
		$(this).css({"border" : "3px solid #0099ff"});
	}, function(){
		$(this).css({"border" : "3px solid #cbc7ce"});
	});
	$("img.img_partner").hover(function(){
		$(this).css({"border" : "3px solid #0099ff"});
	}, function(){
		$(this).css({"border" : "3px solid #cbc7ce"});
	});
	$(".item_photo_block").hide();
	$("#item_photo_block1").show();
	$(".item_anons_block").hide();
	$("#item_anons_block1").show();
	$(".item_button").click(function(){
		$(".item_button").css({"background-image" : "url(/templates/satang/images/item_button.png)",
							   "color" : "#aa9977"});
		$(this).css({"background-image" : "url(/templates/satang/images/item_button_move.png)",
					 "color" : "#ffffff"});
	});
	$("#item_button1").click(function(){
		$(".item_photo_block").hide();
		$("#item_photo_block1").show();
		$(".item_anons_block").hide();
		$("#item_anons_block1").show();
	});
	$("#item_button2").click(function(){
		$(".item_photo_block").hide();
		$("#item_photo_block2").show();
		$(".item_anons_block").hide();
		$("#item_anons_block2").show();
	});
	$("#item_button3").click(function(){
		$(".item_photo_block").hide();
		$("#item_photo_block3").show();
		$(".item_anons_block").hide();
		$("#item_anons_block3").show();
	});
	$("#item_button4").click(function(){
		$(".item_photo_block").hide();
		$("#item_photo_block4").show();
		$(".item_anons_block").hide();
		$("#item_anons_block4").show();
	});
});

$(window).resize(function(){
	rsz();
});

function rsz(){
	$("#body").css({"height" : $(window).height()});
};
