function xvalue(){
xcnt=document.getElementById("cnt");
xcountries=document.getElementById("countries");
xheader=document.getElementById("headerone");
xireal=document.getElementById("ireal");
xtotal=document.getElementById("total");}
xvalue();

if (top.location!=self.location) {top.location.replace('/');}
if (xireal) {ireal.location.replace('/features/real.cgi');}

function preload(){
elem=document.getElementsByTagName("a");
for (x=0;x<elem.length;x++){
elem[x].onmousedown=function() {return false;}
elem[x].onselectstart=function() {return false;}}
xcnt.onmousedown=function() {return false;}
xcnt.onselectstart=function() {return false;}
document.body.ondragstart=function() {return false;}
document.body.ondragenter=function() {return false;}
document.body.ondragover=function() {return false;}
document.body.ondrop=function() {return false;}
xtotal.style.visibility="visible";}

scrollx=0;
function scrolling(){
scrolled=document.documentElement.scrollLeft+document.body.scrollLeft;
if (scrollx!=scrolled) {xheader.style.left=-scrolled+"px";}
scrollx=scrolled;}
window.onresize=scrolling;
window.onscroll=scrolling;

scrpos=0;
xcnt.onmouseout=function(e){
if (!e) {e=window.event;}
reta=(e.relatedTarget)?e.relatedTarget:e.toElement;
while (reta.tagName!='BODY'){
if (reta.id==this.id) {return;}
reta=reta.parentNode;}
scrpos=xcountries.scrollTop;
xcnt.style.display="none";}

if (ref!="") {document.getElementById("x"+ref).setAttribute("class","cad");}

function country(cou){
cass=document.getElementsByClassName("cad");
if (cass.length>0) {cass[0].setAttribute("class","cal");}
window.location.href="http://"+cou+".overave.com";}

function drop(){
xcnt.style.display="";
cass=document.getElementsByClassName("cad");
if (cass.length>0) {xcountries.scrollTop=cass[0].offsetTop-150;}
else {xcountries.scrollTop=scrpos;}}

function res(){
xcnt.style.display="none";}
