 
 
NS4 = (document.layers) ? 1 : 0;
W3C = (document.getElementById) ? 1 : 0;
IE  = (document.all) ? 1 : 0;

function showDesc(id) {
    myName = "cinedesc" + id;
//  alert ("tempX: " + tempX + " ... tempY: " + tempY); 
    if (NS4) {
        document.layers[myName].pageY = tempY+10;
        document.layers[myName].visibility = "show";
    } else if (W3C) {
		document.getElementById(myName).style.top = tempY+10;
		document.getElementById(myName).style.visibility = "visible";
	} else if (IE) {
        document.all[myName].style.top = tempY+10;
        document.all[myName].style.visibility = "visible";
    }
}
function hideDesc(id) {
    myName = "cinedesc" + id;
    if (NS4) {
        document.layers[myName].visibility = "hide";
    } else if (W3C) {
		document.getElementById(myName).style.visibility = "hidden";
	} else if (IE) {
        document.all[myName].style.visibility = "hidden";
    }
}
/* 
if (NS4) {
	document.layers[myName].pageX = fixX;
} else {
	document.all[myName].style.left = fixX 
}
*/

// Detect if the browser is IE or not.
// If it is not IE, we assume that the browser is NS.
 
// If NS - that is, !IE - then set up for mouse capture
if (!IE) document.captureEvents(Event.MOUSEMOVE)
 
// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;
 
// Temporary variables to hold mouse x-y pos.s
var tempX = 0
var tempY = 0
 
// Main function to retrieve mouse x-y pos.s
 
function getMouseXY(e) {
  if (IE) { // grab the x-y pos.s if browser is IE
//    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
  } else {  // grab the x-y pos.s if browser is NS
//    tempX = e.pageX
    tempY = e.pageY
  }  
  // catch possible negative values in NS4
//  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  // show the position values in the form named Show
  // in the text fields named MouseX and MouseY
//  document.Show.MouseX.value = tempX
//  document.Show.MouseY.value = tempY
  return true
}


function retroTicketsPopup(lang) {
        var url = "/" + lang + "/popups/retro.html";
        var retroWin = window.open(url, "retroWin", "width=220,height=100,scrollbars=no");
		if (retroWin) {
			retroWin.focus();
		}
}


function soldoutPopup(lang) {
        var url = "/" + lang + "/popups/soldout.html";
        var soldoutWin = window.open(url, "soldoutWin", "width=200,height=250,scrollbars=no");;
		if (soldoutWin) {
			soldoutWin.focus();
		}
}


function edmondPopup(lang) {
        var url = "/" + lang + "/popups/edmond.html";
        var edmondWin = window.open(url, "edmondWin", "width=220,height=100,scrollbars=no");
        if (edmondWin) {
            edmondWin.focus();
        }
}


function noshopPopup(lang) {
        var url = "/" + lang + "/popups/gesperrt.html";
        var noshopWin = window.open(url, "noshopWin", "width=220,height=150,scrollbars=no");
        if (noshopWin) {
            noshopWin.focus();
        }
}

function rollstuhlPopup(lang) {
        var url = "/" + lang + "/popups/rollstuhl.html";
        var rollstuhlWin = window.open(url, "rollstuhlWin", "width=200,height=150,scrollbars=no");
        if (rollstuhlWin) {
            rollstuhlWin.focus();
        }
}


