function changeContent(layId)
	{
	this_div = document.getElementById(layId);
	this_div.style.opacity= 0;
	this_div.style.filter= "progid:DXImageTransform.Microsoft.Alpha(opacity=0)";
	this_div.style.filter= "alpha(opacity=0)";
//	layHide(10);
//	image_now = imageId;
	}
speed = 10;
function layHide(layId,step)
	{
	last_div = document.getElementById(layId);
	last_div.style.opacity= step / 10;
	alpha = step * 10;
	last_div.style.filter= "progid:DXImageTransform.Microsoft.Alpha(opacity=0)";
	last_div.style.filter= "alpha(opacity="+alpha+")";
	step --;
	if(step>=0)
		setTimeout("layHide('"+layId+"',"+step+")",speed);
	else
		hidelogins();
	}
function layShow(layId,step)
	{
	this_div = document.getElementById(layId);
	this_div.style.opacity= step / 10;
	this_div.style.filter= "progid:DXImageTransform.Microsoft.Alpha(opacity="+ step * 10 +")";
	this_div.style.filter= "alpha(opacity="+ step * 10 +")";
	step ++;
	if(step<=10)
		setTimeout("layShow('"+layId+"',"+step+")",speed);
	}
function getBodyScrollTop()
	{
	return self.pageYOffset || (document.documentElement && document.documentElement.scrollTop) || (document.body && document.body.scrollTop);
	}
function getClientHeight()
	{
	return document.compatMode=='CSS1Compat' && !window.opera?document.documentElement.clientHeight:document.body.clientHeight;
	}
function getDocumentHeight()
	{
	return (document.body.scrollHeight > document.body.offsetHeight)?document.body.scrollHeight:document.body.offsetHeight;
	}
function hidelogins()
	{        
	document.getElementById('voting').style.display = 'none';
	document.getElementById('border').style.display = 'none';
	document.getElementById('close').style.display = 'none';
	return false;
	}
function hidelogin()
	{        
	layHide('border',10);
	return false;
	}

function waitLoginHide()
	{
	ltime=setTimeout("hidelogin()",10000);
	}
function cancelLoginHide()
	{
	clearTimeout(ltime)
	}
//lay_showed = '0';
function showlogin(content){
	document.getElementById('voting').style.display = 'block';
	document.getElementById('border').style.display = 'block';
	layShow('border',1);
	document.getElementById('close').style.display = 'block';
	document.getElementById('border').style.left = Math.round((document.body.clientWidth - 465)/2) + 'px';
	document.getElementById('voting').style.left = '15px';
	document.getElementById('votingcontent').innerHTML = content;
	document.getElementById('votingbox').innerHTML += '';
	document.getElementById('border').style.height = document.getElementById('voting').offsetHeight + 30 + 'px';
	document.getElementById('border').style.top = getBodyScrollTop() + Math.round((document.body.clientHeight - document.getElementById('voting').offsetHeight )/2) + 'px';
	document.getElementById('close').style.top = getBodyScrollTop() + Math.round((document.body.clientHeight - document.getElementById('voting').offsetHeight )/2)+6 + 'px';
	document.getElementById('close').style.left = Math.round((document.body.clientWidth + 465)/2)-55 + 'px';
	document.getElementById('voting').style.top = '15px';
//	lay_showed = 1;
//	waitLoginHide();
//	return false;
	}
