function ShowBild(sPicURL) {window.open('/imagepreview.php?image='+sPicURL, '', 'resizable=1,HEIGHT=200,WIDTH=200, top=0, left=0, scrollbars=yes');}function Auto_Password() { var e = document.getElementById('noautopass'); if(e.style.display == 'none') e.style.display = 'block'; else e.style.display = 'none'; return false;}var req;function loadXMLdoc(url) {	if (window.XMLHttpRequest) {		req = new XMLHttpRequest();		req.onreadystatechange = processReqChange;		req.open("GET", url, true);		req.send(null);	} else if (window.ActiveXObject) {		req = new ActiveXObject("Microsoft.XMLHTTP");		if (req) {			req.onreadystatechange = processReqChange;			req.open("GET", url, true);			req.send();		}	}}function processReqChange() {	document.getElementById("loading_div").innerHTML="<img src='/i/loader_cart.gif' width='16' height='16' style='border:none;'>";	if (req.readyState == 4) {		if (req.status == 200) {			document.getElementById("loading_div").innerHTML=req.responseText;			$(".photos").height($(".photos img").height());		}		else {alert("Не удалось получить данные:\n" +	req.statusText);}	}}function rating(id,star,type) {	loadXMLdoc('/body/includes/library/rating.php?id='+id+'&value='+star+'&type='+type);}function LoadCont(type,id_load) {    $(document).ready(function(){        $(".photos").height($(".photos").height());    });    loadXMLdoc('/body/includes/library/loading_cont.php?type='+type+'&value='+id_load);    return false;}function LookUserRoom() {	window.location.href = '/userroom/';}function SendFriend(link,count) {     if (count=='first') $(".sendfriend:last").html('&nbsp;<a href="#" onclick="return SendFriend(\''+link+'\',\'last\')">Отправить другу</a>&nbsp;');    if (count=='last') $(".sendfriend:first").html('&nbsp;<a href="#" onclick="return SendFriend(\''+link+'\',\'first\')">Отправить другу</a>&nbsp;');            $.get("/body/includes/library/sendfriend.php?obj="+link+"&c="+count, function(data){        $(".sendfriend:"+count).html(data);                });     return false;    }$(document).ready(function(){    $(".slideCommentary").click(function(){        $("#myComment").slideToggle("slow");        $(this).toggleClass("slideCommentaryactive"); return false;    });});function RemoveComm(IDremove) {    $.get("/body/includes/library/removecomm.php?id="+IDremove, function(data){        $("#comm"+IDremove).html(data);            });        return false;}function Voting(id_p,list){    if (!list) list=0;    $.get("/body/includes/library/voting.php?id_voting="+id_p+"&list="+list, function(data){        setTimeout(function () {            $("#voting_result").html(data);        }, 500);                $("#voting_result").html('Ждите...');    });    return false;}function SendBag(link) {     $.post("/body/includes/library/sendbag.php",{ obj: link}, function(data){        $(".sendbag").html(data);                });     return false;    }
