function ShowVoteResults()
{
	ShowCenterContent();
	OnGetData=function(e)
	{
		content.innerHTML=e
		};
		content.innerHTML=loading_msg;
		GetData(SiteName+"include/tell.php")
}

function CloseControls(){if(b=document.getElementById("DV_PRESENTER")){document.body.removeChild(b)}if(a=document.getElementById("DV_PRESENTER_WINDOW")){document.body.removeChild(a)}}

function GetData(d)
				{
							var c=false;
						if(window.XMLHttpRequest){
							c=new XMLHttpRequest();
							if(c.overrideMimeType)
							{
								c.overrideMimeType("text/html")
							}
							}else{
								if(window.ActiveXObject){
									try{c=new ActiveXObject("Msxml2.XMLHTTP")
									}catch(f){
										try{
											c=new ActiveXObject("Microsoft.XMLHTTP")}catch(f){}}}
											}
											if(!c){
												window.location.reload()
												}
												c.open("GET",d,true);
												c.onreadystatechange=function(){
													if(c.readyState==4){
														gresult=c.responseText;OnGetData(gresult)}
														};
														c.send(null)
														}


function ShowCenterContent()
{
	AlignCenter();
	if(a=document.getElementById("DV_PRESENTER_WINDOW"))
	{
		window.onresize=function(){
		if(document.getElementById("DV_PRESENTER_WINDOW")){
			AlignCenter()
			}
		};
			window.onscroll=function(){
				if(document.getElementById("DV_PRESENTER_WINDOW")){
					AlignCenter()
					}
				};
					presenter=document.getElementById("DV_PRESENTER");
					if(presenter){
						presenter.innerHTML='<DIV id="TOTAL_DV_CONTENT"><DIV id="DV_HEAD"></DIV><DIV id="DV_CONTENT"></DIV><DIV>';
						header=document.getElementById("DV_HEAD");
						content=document.getElementById("DV_CONTENT")
						}
					}
}

function AlignCenter(){
	if(document.getElementById("DV_PRESENTER_WINDOW"))
	{var d=document.getElementById("DV_PRESENTER_WINDOW")}else{var d=document.createElement("DIV");document.body.appendChild(d);d.id="DV_PRESENTER_WINDOW"}axe=getPageSize();wdt=axe[0];hgt=axe[1];if(detectBrowser()){position="absolute";left="0";atop=0+(ignoreMe=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)}else{position="fixed";left="0";atop="0"}d.style.cssText="position:"+position+"; left:"+left+"; top:"+atop+" ; z-index:1999; background:#000; height:"+hgt+"px; width:100%; opacity:0.3; filter:alpha(opacity=30);";d.style.position=position;d.style.left=left;d.style.top=atop+"px";d.style.zIndex="1999";d.style.background="#000";d.style.height=hgt+"px";d.style.width="100%";d.style.opacity="0.3";d.style.filter="alpha(opacity=30)";atop=(hgt>500)?parseInt((hgt-500)/2):0;if(detectBrowser()){position="absolute";left=(wdt>500)?parseInt((wdt-500)/2):0;atop=atop+(ignoreMe=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)}else{position="fixed";left=(wdt>500)?parseInt((wdt-500)/2):0;atop=atop}if(document.getElementById("DV_PRESENTER")){var c=document.getElementById("DV_PRESENTER")}else{var c=document.createElement("DIV");document.body.appendChild(c);c.id="DV_PRESENTER"}c.style.cssText="position:"+position+"; left:"+left+"px; top:"+atop+"px; z-index:2000; width:500px; height:300px;";c.style.position=position;c.style.left=left+"px";c.style.top=atop+"px";c.style.zIndex="2000";c.style.width="500px";c.style.height="300px"}
	
	function getPageSize(){var e=document.documentElement;var c=window.innerWidth||self.innerWidth||(e&&e.clientWidth)||document.body.clientWidth;var d=window.innerHeight||self.innerHeight||(e&&e.clientHeight)||document.body.clientHeight;arrayPageSize=[c,d];return arrayPageSize}
	
	function detectBrowser(){var userAgent=navigator.userAgent.toLowerCase();if(userAgent.indexOf("msie")!=-1){axe=userAgent.substr(eval(userAgent.indexOf("msie")+5),1);if(axe<7){return true}}return false}
