$(document).ready(function() {	$("#logininfo").load("userbar.php");	$("#movieinfolink").load("movieinfolink.php");	$("#commenform").load("usercommentform.php",{item: $("#commentItem").val(),type:$("#commentType").val()});	$(".hideBlock img").load(function(){		$(this).parent("a").parent("div").width($(this).outerWidth());	});	$(".hideBlock img").each(function(){		$(this).parent("a").parent("div").width($(this).outerWidth());	});	$(".yesnolinks a:nth-child(1) img").hover(function () {$(this).attr("src","images/thumb_up_.jpg");},function () {$(this).attr("src","images/thumb_up.jpg");});	$(".yesnolinks a:nth-child(2) img").hover(function () {$(this).attr("src","images/thumb_down_.jpg");},function () {$(this).attr("src","images/thumb_down.jpg");});	$("#rating img").each(function(index){		var type = $("#type").val();		var sriptname="mvoting.php@movie";		if(type=="star")			sriptname="avoting.php@actor";		$(this).wrap('<a href="scripts/'+sriptname+'='+$("#item").val()+'&mark='+$(this).attr("alt")+'" title="'+$(this).attr("alt")+'"></a>');		$(this).hover(			function () {				$("#rating img").attr("src","images/star_none0.jpg");				$("#rating img:lt("+(index+1)+")").attr("src","images/star_full0.jpg");			},			function () {				$("#rating img").attr("src","images/star_none0.jpg");				$("#rating img:lt("+$("#rate").val()+")").attr("src","images/star_full0.jpg");			}		);	});});function showtop(part,pos,link,img){	$("#topimg"+part).css("background-image","url('"+$("#topimg"+part+" img").attr("src")+"')")	$("#topimg"+part+" img").hide().attr("src",img).fadeIn(300);	$("#topimg"+part+" a").attr("href",link);}function yesno(url,target){	$(target).parent().children(".yesnolinks").children("a").each(function(){$(this).replaceWith($(this).html());});	$.get(url, {},  function(data){	$(target).html(data); });}
