function openit() {
	s = $('#panel'), w = document.getElementById('widthSite').value;
	s.stop().animate({width: w}, {duration: 'slow', queue: false});return clicker();
}

function closeit() {
	var s = $('#panel'), w = ($(s.find('div')[0]).width() + 360)/2;
	s.stop(true).animate({width: 0}, {duration: 'slow', queue: false, complete: function(){return clicker()}});
}

function clicker(){
	var thediv=document.getElementById('displaybox');
	if(thediv.style.display == "none"){
		thediv.style.display = "";
		thediv.innerHTML = "<table width='100%' height='100%'><tr><td align='center' valign='middle' width='100%' height='100%'>&nbsp;</td></tr></table>";
	}else{
		thediv.style.display = "none";
		thediv.innerHTML = '';
	}
	return false;
}

function SetOverlay(){
	var thediv=document.getElementById('displaybox');
	if(thediv.style.display == "none"){
		thediv.style.display = "";
		thediv.innerHTML = "<table width='100%' height='100%'><tr><td align='center' valign='middle' width='100%' height='100%'>&nbsp;</td></tr></table>";
	}
}
