function ViewImg(img) {
	var ImgBlock = document.getElementById("BigFotoEl");
	var BigImg = document.getElementById("BigImg");
	
	var imgpath = "/storage/photo/hi/"+img;
	BigImg.src = imgpath;
	ImgBlock.className = 'bigfotovisible';
}

function ClouseIMG() {
	var ImgBlock = document.getElementById("BigFotoEl");
	ImgBlock.className = 'bigfotohidden';
}

function ViewImgPort(img) {
	var ImgBlock = document.getElementById("BigFotoEl");
	var BigImg = document.getElementById("BigImg");
	
	var imgpath = "/storage/photoconst/"+img;
	BigImg.src = imgpath;
	ImgBlock.className = 'fotorobotvisible';
}

function ClousePort() {
	var ImgBlock = document.getElementById("BigFotoEl");
	ImgBlock.className = 'fotorobothidden';
}


function SenderOn() {
	var ImgBlock = document.getElementById("sendermsg");
	ImgBlock.className = 'emaivisible';
}

function SenderOff() {
	var ImgBlock = document.getElementById("sendermsg");
	ImgBlock.className = 'emailhidden';
}

function ResponseOn() {
	var ImgBlock = document.getElementById("response");
	ImgBlock.className = 'responsevisible';
}

function ResponseOff() {
	var ImgBlock = document.getElementById("response");
	ImgBlock.className = 'responsehidden';
}

function ProfileSwith() {
	
	
	
	var ProfileBlock = document.getElementById("profile");
	
	
	if (ProfileBlock.className == 'profilehidden') {
		ProfileBlock.className = 'profilevisible';
	} else {
		 ProfileBlock.className = 'profilehidden';
	}

}

function getVote(vote) {
	
	var votes = document.getElementById("votes");
	var rating = document.getElementById("rating");
	
	rating.className = "ratingvote"+vote;
	votes.innerHTML = "Оценка: "+vote;	
}

function getCurVote(vote) {

	var t1 = Math.round(vote) - vote;
	
	var votes = document.getElementById("votes");
	var rating = document.getElementById("rating");
	if (vote == null) vote = 0;
	
	rating.className = "ratingvote"+Math.ceil(vote);
	
	if (t1==0) {
	var formatr = vote+"."+t1;
	} else{
	var formatr = vote;
	}	
	
	votes.innerHTML = "Рейтинг: "+formatr;	
}