<!--
var O_NS4=(document.layers)?1:0;
var O_IE4=(document.all)?1:0;
var O_MAC = (navigator.appVersion.indexOf("Macintosh") > -1);

function MM_setTextOfLayer(objName,x,newText) { //v4.01
  if ((obj=MM_findObj(objName))!=null) with (obj)
    if (document.layers) {document.write(unescape(newText)); document.close();}
    else innerHTML = unescape(newText);
}
function frage()
{
	if (thisLang  == 'EN')
		window.location = '../Interactive/frgStart.asp?f=' + thisFilm;
	else
		window.location = '../Interaktiv/frgStart.asp?f=' + thisFilm;
}

function meinung()
{	if (thisLang  == 'EN')
		window.location = '../Interactive/intMeinung.php?qsFilm=' + thisFilm;
	else
	window.location = '../Interaktiv/intMeinung.php?qsFilm=' + thisFilm;
}

function gotoEnglish()
{
  var engURL = new String(window.location).replace('Deutsch', 'English');
  window.location = engURL;  
}

function gotoGerman()
{
  var grmURL = new String(window.location).replace('English', 'Deutsch');
  window.location = grmURL;  
}


function setColor(color)
{

	var thisUrl = escape(window.location);
	var url = "/2003/setColor.asp?color=" + color + "&url=" + thisUrl;
	window.location = url;

}


var isIE = false;      // Microsoft Internet Explorer
var isNS4 = false;     // Netscape 4+
var isW3C = false;     // W3C compliant (inc NS6 & 7)
var isUnknown = true;  // in case something else comes along

  if (document.getElementById) {
    isW3C = true ; // NS6+, MSIE 5+, Mozilla, Opera 6 in Opera (W3C) mode
    isUnknown = false;
  }
  if (document.all) {
    isIE = true ; // MSIE (all versions) and Opera 6 in MSIE 5 mode
    isUnknown = false;
  }
  if (document.layers) {
    isNS4 = true ; // NS 4
    isUnknown = false;
  }

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}


function swapButton(btn_name, btn_lang)
{
  //alert(btn_name);
  hideAllPopups();
  MM_swapImage(btn_name,'','../../images/buttons/' + btn_lang + '/hover/' + btn_name + '.gif',1);
  if (btn_name == 'filme')
  	showFilmePopup();
  else if (btn_name == 'programm')
  	showProgrammPopup();
}

function pageLoad_de() {
  var d = '../../images/buttons/de/hover/';
  MM_preloadImages(d + 'start.gif',d + 'filme.gif',d + 'programm.gif',d + 'reporter.gif',d + 'kinos.gif',d + 'interaktiv.gif',d + 'planer.gif');
  //hideAllPopups();
}


function commonLoad_DE()
{
	
}

function openSurvey(closeme) {
  MM_openBrWindow('../Start/srtSurvey.html','tSurvey','menubar=yes,scrollbars=yes,resizable=yes,width=450,height=420');
  if (!closeme) self.close();
}

function pageLoad_en() {
  var d = '../../images/buttons/en/hover/';
  MM_preloadImages(d + 'start.gif',d + 'filme.gif',d + 'programm.gif',d + 'reporter.gif',d + 'kinos.gif',d + 'interaktiv.gif',d + 'planer.gif');
  //hideAllPopups();
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function SwitchRolo(obj, newColor) {
  //if (O_IE4 && !O_MAC)
    obj.bgColor = newColor;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function openSlides(film, page) {
  var url = '../../Material/Photos/Popup/photoslides.php?qsFilm=' + film + '&qsP=' + page;
  MM_openBrWindow(url,'Photos','scrollbars=yes,resizable=yes,width=385,height=410');
}


function openPhoto(film) {
  var url = '../../Material/Photos/Popup/photoslides.php?qsFilm=' + film + '&qsP=1';
  MM_openBrWindow(url,'Photos','scrollbars=yes,resizable=yes,width=380,height=410');
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function  hideAllPopups() {
  hideFilmePopup();
  hideProgrammPopup();
}
function showFilmePopup() {
  hideProgrammPopup();
  MM_showHideLayers('FilmeZZZ','','show');
  MM_showHideLayers('FilmeBackground','','show');
  MM_showHideLayers('FilmeContent','','show');
}
function showProgrammPopup() {
  hideFilmePopup();
  MM_showHideLayers('ProgrammZZZ','','show');
  MM_showHideLayers('ProgrammBackground','','show');
  MM_showHideLayers('ProgrammContent','','show');
}
function hideProgrammPopup() {
  MM_showHideLayers('ProgrammZZZ','','hide');
  MM_showHideLayers('ProgrammBackground','','hide');
  MM_showHideLayers('ProgrammContent','','hide');
}
function hideFilmePopup() {
  MM_showHideLayers('FilmeZZZ','','hide');
  MM_showHideLayers('FilmeBackground','','hide');
  MM_showHideLayers('FilmeContent','','hide');
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function goToMovie() {
  var obj = MM_findObj("FILMselect");
  if (obj) {
    var theValue = obj.options[obj.selectedIndex].value;
    if (theValue != "$")
      window.location = "../Movies/" + theValue + ".html";
  }
}

function isFilmSelected(ctrl)
{
  var obj = MM_findObj(ctrl);
  if (obj) {
    var theValue = obj.options[obj.selectedIndex].value;
	return (theValue != "$");
  }
  else
  	return true;
}

function subFragen_DE() {

  var f = isFilmSelected("selectfilm");
  if (!f)
  {
    alert("Bitte wähle einen Film aus.");
  }
  
  return f;
  
}

function subFragen_EN() {

  var f = isFilmSelected("selectfilm");
  if (!f)
  {
    alert("Please choose a Film first.");
  }
  
  return f;

}

function goToFilm() {
  var obj = MM_findObj("FILMselect");
  if (obj) {
    var theValue = obj.options[obj.selectedIndex].value;
    if (theValue != "$")
      window.location = "../Filme/" + theValue + ".html";
  }
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
