function createXMLHttpRequest(){
  try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
  try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
  try { return new XMLHttpRequest(); } catch(e) {}
  alert("XMLHttpRequest not supported");
  return null;
}



function download(idy){
  var xhReq = createXMLHttpRequest();
  xhReq.open('GET', 'http://www.download-centrum.cz/cat_download_count.php?download='+idy, true);
  xhReq.send(null);
}

function outlink(ido){
  var xhReqo = createXMLHttpRequest();
  xhReqo.open('GET', 'http://www.download-centrum.cz/cat_link_count.php?download='+ido, true);
  xhReqo.send(null);
}

function onlinegames(idx){
  var xhReqx = createXMLHttpRequest();
  xhReqx.open('GET', 'http://www.download-centrum.cz/cat_games_count.php?download='+idx, true);
  xhReqx.send(null);
}

function wallpapers(idz){
  var xhReqy = createXMLHttpRequest();
  xhReqy.open('GET', 'http://www.download-centrum.cz/cat_wallpapers_count.php?download='+idz, true);
  xhReqy.send(null);
}


function mobil(idm){
  var xhReqm = createXMLHttpRequest();
  xhReqm.open('GET', 'http://www.download-centrum.cz/cat_mobil_count.php?download='+idm, true);
  xhReqm.send(null);
}


function hidediv(pass) {
var divs = document.getElementsByTagName('div');
for(i=0;i<divs.length;i++){
if(divs[i].id.match(pass)){//if they are 'see' divs
if (document.getElementById) // DOM3 = IE5, NS6
divs[i].style.visibility="hidden";// show/hide
else
if (document.layers) // Netscape 4
document.layers[divs[i]].display = 'hidden';
else // IE 4
document.all.hideshow.divs[i].visibility = 'hidden';
}
}
}

function showdiv(pass) {
var divs = document.getElementsByTagName('div');
for(i=0;i<divs.length;i++){
if(divs[i].id.match(pass)){
if (document.getElementById)
divs[i].style.visibility="visible";
else
if (document.layers) // Netscape 4
document.layers[divs[i]].display = 'visible';
else // IE 4
document.all.hideshow.divs[i].visibility = 'visible';
}
}
}

function showhide(id){
if (document.getElementById){
obj = document.getElementById(id);
if (obj.style.display == "none"){
obj.style.display = "";
} else {
obj.style.display = "none";
}
}
}