function pageloader(lang) {
 if (lang == 1) {
  makeRequest('/ajax/get_counter.php?l=1', '', 'counter');
  window.setInterval("makeRequest('/ajax/get_counter.php?l=1', '', 'counter')", 30000);
 } else if (lang == 2) {
  makeRequest('/ajax/get_counter.php?l=2', '', 'counter');
  window.setInterval("makeRequest('/ajax/get_counter.php?l=2', '', 'counter')", 30000);
 }
 disable(document.body);
}

if (document.layers) 
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)  
document.onmouseover=hidestatus
document.onmouseout=hidestatus

function disable(target){
if (typeof target.onselectstart!="undefined") //IE
	target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox
	target.style.MozUserSelect="none"
else //All Other
	target.onmousedown=function(){return false}
target.style.cursor = "default"
}

function showMenu(value) 
{ 
 document.getElementById(value).style.display = 'block';
}

function hideMenu(value1,value2)
{ 
 document.getElementById(value1).style.display = 'none';
 document.getElementById(value2).style.display = 'none'; 
} 

function hideallMenu()
{ 
 document.getElementById('menu1').style.display = 'none';
 document.getElementById('menu2').style.display = 'none';
 document.getElementById('menu3').style.display = 'none';
}

function hidestatus()
{  
 window.status='';
 return true;
}

function changepic(element,url)
{
 var img=document.getElementById(element);
 img.src= '../images/' + element + '/' + url;
}