function changeLanguage(language){
  var hreftmp = location.href;
  if(language != "zh") hreftmp = hreftmp.replace(/epal\/zh\//g, "epal\/"+language+"\/");
  if(language != "uk") hreftmp = hreftmp.replace(/epal\/uk\//g, "epal\/"+language+"\/");
  if(language != "de") hreftmp = hreftmp.replace(/epal\/de\//g, "epal\/"+language+"\/");
  location.href = hreftmp;
}


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

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_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 MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

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 MM_jumpMenu(targ,selObj,restore){ //v3.0
  //eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  //if (restore) selObj.selectedIndex=0;
  //alert(document.forms[0].elements[0].selectedIndex);
  if (selObj.options[selObj.selectedIndex].value == "deutsch"){
  		window.open ("../../Videos/EPAL_DEU.wmv");
  }else if (selObj.options[selObj.selectedIndex].value == "englisch"){
  		window.open ("../../Videos/EPAL_ENG.wmv");
  }else if (selObj.options[selObj.selectedIndex].value == "französisch"){
  		window.open ("../../Videos/EPAL_FRA.wmv");
  }else if (selObj.options[selObj.selectedIndex].value == "english"){
  		window.open ("../../Videos/EPAL_ENG.wmv");
  }else if (selObj.options[selObj.selectedIndex].value == "french"){
  		window.open ("../../Videos/EPAL_FRA.wmv");
  }else if (selObj.options[selObj.selectedIndex].value == "german"){
  		window.open ("../../Videos/EPAL_DEU.wmv");
  }
  if (document.forms[0].elements[0].selectedIndex == 0){
  		window.open ("../../Videos/EPAL_DEU.wmv");
  }else if (document.forms[0].elements[0].selectedIndex == 1){
  		window.open ("../../Videos/EPAL_ENG.wmv");
  }else if (document.forms[0].elements[0].selectedIndex == 2){
  		window.open ("../../Videos/EPAL_FRA.wmv");
  }

}
function MM_jumpMenu2(targ,selObj,restore){ //v3.0
  //eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  //if (restore) selObj.selectedIndex=0;
  //alert(document.forms[0].elements[0].selectedIndex);
  if (selObj.options[selObj.selectedIndex].value == "deutsch"){
  		window.open ("../../Videos/EPAL_DEU.wmv");
  }else if (selObj.options[selObj.selectedIndex].value == "englisch"){
  		window.open ("../../Videos/EPAL_ENG.wmv");
  }else if (selObj.options[selObj.selectedIndex].value == "französisch"){
  		window.open ("../../Videos/EPAL_FRA.wmv");
  }else if (selObj.options[selObj.selectedIndex].value == "english"){
  		window.open ("../../Videos/EPAL_ENG.wmv");
  }else if (selObj.options[selObj.selectedIndex].value == "french"){
  		window.open ("../../Videos/EPAL_FRA.wmv");
  }else if (selObj.options[selObj.selectedIndex].value == "german"){
  		window.open ("../../Videos/EPAL_DEU.wmv");
  }
  if (document.forms[0].elements[0].selectedIndex == 0){
  		window.open ("../../Videos/EPAL_ENG.wmv");
  }else if (document.forms[0].elements[0].selectedIndex == 1){
  		window.open ("../../Videos/EPAL_DEU.wmv");
  }else if (document.forms[0].elements[0].selectedIndex == 2){
  		window.open ("../../Videos/EPAL_FRA.wmv");
  }

}
<!-- ---------------------------------------------------- -->
<!-- Menu Bar Demo                                        -->
<!--                                                      -->
<!-- Copyright 2000 by Mike Hall                          -->
<!-- Please see http://www.brainjar.com for terms of use. -->
<!-- ---------------------------------------------------- -->
// Determine browser and version.

function Browser() {

  var ua, s, i;

  this.isIE    = false;  // Internet Explorer
  this.isNS    = false;  // Netscape
  this.version = null;

  ua = navigator.userAgent;

  s = "MSIE";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isIE = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  s = "Netscape6/";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = parseFloat(ua.substr(i + s.length));
    return;
  }

  // Treat any other "Gecko" browser as NS 6.1.

  s = "Gecko";
  if ((i = ua.indexOf(s)) >= 0) {
    this.isNS = true;
    this.version = 6.1;
    return;
  }
}

var browser = new Browser();

// Global variable for tracking the currently active button.

var activeButton = null;

// Capture mouse clicks on the page so any active button can be
// deactivated.

if (browser.isIE)
  document.onmousedown = pageMousedown;
if (browser.isNS)
  document.addEventListener("mousedown", pageMousedown, true);

function pageMousedown(event) {

  var el;

  // If there is no active menu, exit.

  if (!activeButton)
    return;

  // Find the element that was clicked on.

  if (browser.isIE)
    el = window.event.srcElement;
  if (browser.isNS)
    el = (event.target.className ? event.target : event.target.parentNode);

  // If the active button was clicked on, exit.

  if (el == activeButton)
    return;

  // If the element clicked on was not a menu button or item, close the
  // active menu.

  if (el.className != "menuButton"  && el.className != "menuItem" &&
      el.className != "menuItemSep" && el.className != "menu")
    resetButton(activeButton);
}

function buttonClick(button, menuName) {

  // Blur focus from the link to remove that annoying outline.

  button.blur();

  // Associate the named menu to this button if not already done.

  if (!button.menu)
    button.menu = document.getElementById(menuName);

  // Reset the currently active button, if any.

  if (activeButton && activeButton != button)
    resetButton(activeButton);

  // Toggle the button's state.

  if (button.isDepressed)
    resetButton(button);
  else
    depressButton(button);

  return false;
}

function buttonMouseover(button, menuName) {

  // If any other button menu is active, deactivate it and activate this one.
  // Note: if this button has no menu, leave the active menu alone.

  if (activeButton && activeButton != button) {
    resetButton(activeButton);
    if (menuName)
      buttonClick(button, menuName);
  }
}
function buttonMouseout(button, menuName) {
	//setTimeout('resetMen(button.menu)', 500);
	button.menu.style.visibility = "hidden";
}
function depressButton(button) {

  var w, dw, x, y;

  // Change the button's style class to make it look like it's depressed.

  //button.className = "menuButtonActive";

  // For IE, set an explicit width on the first menu item. This will
  // cause link hovers to work on all the menu's items even when the
  // cursor is not over the link's text.

  if (browser.isIE && !button.menu.firstChild.style.width) {
    w = button.menu.firstChild.offsetWidth;
    button.menu.firstChild.style.width = w + "px";
    dw = button.menu.firstChild.offsetWidth - w;
    w -= dw;
    button.menu.firstChild.style.width = w + "px";
  }

  // Position the associated drop down menu under the button and
  // show it. Note that the position must be adjusted according to
  // browser, styling and positioning.

  x = getPageOffsetLeft(button);
  y = getPageOffsetTop(button) + button.offsetHeight;
  if (browser.isIE) {
    x += 2;
    y += 2;
  }
  if (browser.isNS && browser.version < 6.1)
    y--;

  // Position and show the menu.

  button.menu.style.left = x + "px";
  button.menu.style.top  = y + "px";
  button.menu.style.visibility = "visible";

  // Set button state and let the world know which button is
  // active.

  button.isDepressed = true;
  activeButton = button;
}

function resetButton(button) {

  // Restore the button's style class.

  //button.className = "menuButton";

  // Hide the button's menu.

  if (button.menu)
    
     button.menu.style.visibility = "hidden";

  // Set button state and clear active menu global.

  button.isDepressed = false;
  activeButton = null;
}

function getPageOffsetLeft(el) {

  // Return the true x coordinate of an element relative to the page.

  return el.offsetLeft + (el.offsetParent ? getPageOffsetLeft(el.offsetParent) : 0);
}

function getPageOffsetTop(el) {

  // Return the true y coordinate of an element relative to the page.

  return el.offsetTop + (el.offsetParent ? getPageOffsetTop(el.offsetParent) : 0);
}

function check_poster(formular){
	ok=true;
	if (formular.firmenname.value==""){
		alert("Bitte geben Sie den Firmennamen ein.");
		formular.firmenname.focus();
		ok=false;
	}else if (formular.email.value==""){
		alert("Bitte geben Sie die E-Mail Adresse ein.");
		formular.email.focus();
		ok=false;
	}else if (formular.email.value!=""){
		email_txt=formular.email.value;
		anz=email_txt.indexOf("@");
		anz2=email_txt.indexOf(".");
		if (anz < 0 || anz2 < 0){
			alert("Bitte überprüfen Sie die E-Mail Adresse.");
			formular.email.focus();
			ok=false;
		}
	}
	
	if (ok==true){
		return true;
		
	} else {
		return false;
	}
}

function check_film(formular){
	ok=true;
	if (formular.name1.value==""){
		alert("Bitte geben Sie Ihren Namen ein.");
		formular.name1.focus();
		ok=false;
	}else if (formular.firma.value==""){
		alert("Bitte geben Sie den Firmennamen ein.");
		formular.firma.focus();
		ok=false;
	}else if (formular.strasse.value==""){
		alert("Bitte geben Sie die Strasse ein.");
		formular.strasse.focus();
		ok=false;
	}else if (formular.plz.value==""){
		alert("Bitte geben Sie die Postleitzahl ein.");
		formular.plz.focus();
		ok=false;
	}else if (formular.ort.value==""){
		alert("Bitte geben Sie den Ort ein.");
		formular.ort.focus();
		ok=false;
	}else if (formular.telefon.value==""){
		alert("Bitte geben Sie die Telefonnummer ein.");
		formular.telefon.focus();
		ok=false;
	}else if (formular.email.value==""){
		alert("Bitte geben Sie die E-Mail Adresse ein.");
		formular.email.focus();
		ok=false;
	}else if (formular.email.value!=""){
		email_txt=formular.email.value;
		anz=email_txt.indexOf("@");
		anz2=email_txt.indexOf(".");
		if (anz < 0 || anz2 < 0){
			alert("Bitte überprüfen Sie die E-Mail Adresse.");
			formular.email.focus();
			ok=false;
		}
	}
	
	if (ok==true){
		return true;
		
	} else {
		return false;
	}
}
	
function check_film_uk(formular){
	ok=true;
	if (formular.name1.value==""){
		alert("Please enter your name.");
		formular.name1.focus();
		ok=false;
	}else if (formular.firma.value==""){
		alert("Please enter the name of your company.");
		formular.firma.focus();
		ok=false;
	}else if (formular.strasse.value==""){
		alert("Please enter the street.");
		formular.strasse.focus();
		ok=false;
	}else if (formular.plz.value==""){
		alert("Please enter the zip-code.");
		formular.plz.focus();
		ok=false;
	}else if (formular.ort.value==""){
		alert("Please enter the city.");
		formular.ort.focus();
		ok=false;
	}else if (formular.telefon.value==""){
		alert("Please enter the phone number.");
		formular.telefon.focus();
		ok=false;
	}else if (formular.email.value==""){
		alert("Please enter your email address.");
		formular.email.focus();
		ok=false;
	}else if (formular.email.value!=""){
		email_txt=formular.email.value;
		anz=email_txt.indexOf("@");
		anz2=email_txt.indexOf(".");
		if (anz < 0 || anz2 < 0){
			alert("Please check your email address.");
			formular.email.focus();
			ok=false;
		}
	}
	
	if (ok==true){
		return true;
		
	} else {
		return false;
	}
}


function Fensterweite () {
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.body.offsetWidth) {
    return document.body.offsetWidth;
  } else {
    return 0;
  }
}
function neuAufbau () {
  if (Weite != Fensterweite())
    location.href = location.href;
}

if (!window.Weite && window.innerWidth) {
  window.onresize = neuAufbau;
  Weite = Fensterweite();
}
if (!window.Weite && document.body && document.body.offsetWidth) {
  window.onresize = neuAufbau;
  Weite = Fensterweite();
}


