function ceg_statisztika(id,lng)
{
	window.open("/ceg_statisztika.php?id="+id+"&nyelv="+lng, "statwindow", "toolbar=no,menubar=no,location=no,scrollbars=yes,height=560,width=800");
}

function movepic(img_name,img_src) {
document[img_name].src=img_src;
}

var layer;
function hideLayer(whichLayer) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(whichLayer).style.display = "none";
layer = "hidden";
}
else if (document.all) {
// this is the way old msie versions work
document.all[whichlayer].style.display = "none";
layer = "hidden";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[whichLayer].display = "none";
layer = "hidden";
}

}

function showLayer(whichLayer) {

if (document.getElementById) {
// this is the way the standards work
document.getElementById(whichLayer).style.display = "block";
layer = "visible";

}
else if (document.all) {
// this is the way old msie versions work
document.all[whichlayer].style.display = "block";
layer = "visible";
}
else if (document.layers) {
// this is the way nn4 works
document.layers[whichLayer].display = "block";
layer = "visible";
}

}

function handleClick(whichClick) {

if (whichClick == "hide it") {
// then the user wants to hide the layer
hideLayer("rejtett");

}
else if (whichClick == "show it") {
// then the user wants to show the layer
showLayer("rejtett");
}

}
function handleClick2(whichClick) {

if (whichClick == "show it" && layer == "hidden" ) {
// then the user wants to show the layer
showLayer("zaszlos");

}
else if (whichClick == "show it" && layer == "visible" ) {
// then the user wants to hide the layer
hideLayer("zaszlos");
}
else if (whichClick == "show it" ) {
// then the user wants to show the layer
showLayer("zaszlos");
}
}

function StopTimer()
{
      if (window.idozit) {
            clearTimeout(idozit);
            idozit = "";
      }
      return;
}
function StartTimer() {
      idozit = setTimeout("hideAllLayer()",1000);
}
function hideAllLayer() {
   hideLayer("kukori");
   hideLayer("garancia");
}

function handleClick3(whichClick) {

if (layer == "hidden" ) {
// then the user wants to show the layer
  switch (whichClick) {
    case 'show it' :
    	showLayer("kukori");
		StartTimer();
		break;
    case 'garancia' :
    	showLayer("garancia");
		StartTimer();
		break;
  }
}
else if (layer == "visible" ) {
// then the user wants to hide the layer
  switch (whichClick) {
    case 'show it' :
    	hideLayer("kukori");
		StartTimer();
		break;
    case 'garancia' :
    	hideLayer("garancia");
		StartTimer();
		break;
  }
}
else if (whichClick == "show it" ) {
// then the user wants to show the layer
showLayer("kukori");
StartTimer();
}
else if (whichClick == "garancia" ) {
// then the user wants to show the layer
showLayer("garancia");
StartTimer();
}

}

function aldomain_link(url) {
	window.open(url) ;
}

function client_data_link(url) {
	window.open(url,'_self') ;
}

