var titel = ["Berlin Premium Tunnel", "Broadway At Night", "Car Still", "Cocos", "D&A New York", "Sunrise", "Dschungel", "Father & Son", "Girls From Kat-Mobil", "Bagdad Cafe", "Hotel Usbekistan", "Monoplaza Ladies In New York", "Paris Bar", "Safar", "Shibam", "Sunrise In Jemen", "Usbekistan", "Wood", "No Limit", "George Rousse", "George Rousse", "George Rousse", "Desert", "George Rousse", "George Rousse", "Redbatlip", "George Rousse", "George Rousse", "George Rousse", "Baalbeck Säulen", "Berlin Premium", "Jenisch Park", "At Premium Exebition Berlin", "Sunset LA", "The Gates", "Clients from Japan", "Music for D&A Show", "Roosevelt Totale", "Istanbul", "Istanbul", "Jenny Holzer Istanbul Bienale", "Fashion"];
var tt = null;

function anime() {
        var counter = Math.ceil(Math.random() * 1000) % titel.length + 1;
        document.images.bild.src = "img/Bilder_Shop/Bild_" + counter + ".JPG";
        document.images.bild.title = titel[counter - 1];
        setTimeout("anime()", 6666);
}

function hoverIE() {
  if(navigator.appName=="Microsoft Internet Explorer"){
    var LI = document.getElementById("Navigation").firstChild;
    do {
      if(LI.firstChild) {  // A (SPAN)
        if(LI.firstChild.nextSibling) {  // #text
          if(LI.firstChild.nextSibling.nextSibling) {  // UL ?
            LI.onmouseover=einblenden;
            LI.onmouseout=ausblenden;
          }
        }
      }
      LI = LI.nextSibling;
    }
    while(LI);
  }
}

function einblenden() {
    this.firstChild.nextSibling.nextSibling.style.display = "block";
    this.firstChild.nextSibling.nextSibling.style.backgroundColor = "white";
    this.firstChild.nextSibling.nextSibling.style.Color = "black";
}

function ausblenden() {
    this.firstChild.nextSibling.nextSibling.style.display = "none";
}

function popup_webshop() {
    MeinFenster = window.open("Webshop/webshop.php","webshop","height=650, width = 1000, left = 0, top= 30, scrollbars = yes" );
    MeinFenster.focus();
}

function popup_retailer() {
    MeinFenster = window.open("retailer.php","retailer","height=630, width = 1030, left = 0, top= 0, scrollbars = yes");
    MeinFenster.focus();
}

function popup_agb() {
    MeinFenster = window.open("agb.php","agb","height = 600, width = 850, left = 30, top= 30, scrollbars = yes");
    MeinFenster.focus();
}

function popup_presse(bildname){
    //Mein Fenster = window.open("agb.php","agb","height = 600, width = 850, left = 30, top= 30, scrollbars = yes");
    MeinFenster = window.open("presse_popup.php?bild=img/presse/"+bildname+".jpg","grossbild_hoch","height = 680, width = 680, left = 60, top = 20, scrollbars = yes");
    MeinFenster.focus();
}

function popup_morton(bildname){
    MeinFenster = window.open("morton_popup.php?bild=img/mortonvalence/"+bildname+".jpg","grossbild_hoch","height = 680, width = 680, left = 60, top = 20, scrollbars = yes");
    MeinFenster.focus();
}

function popup_soulallnighter(bildname){
    MeinFenster = window.open("soulallnighter_popup.php?bild=img/soulallnighter/"+bildname+".jpg","grossbild_hoch","height = 680, width = 680, left = 60, top = 20, scrollbars = yes");
    MeinFenster.focus();
}

function popup_webshop_eng() {
    MeinFenster = window.open("Webshop/webshop_index_eng.php","webshop","height=650, width = 850, left = 0, top= 30");
    MeinFenster.focus();
}

function popup_retailer_eng() {
    MeinFenster = window.open("retailer_eng.php","retailer","height=600, width = 1005, left = 0, top= 0");
    MeinFenster.focus();
}

function popup_agb_eng() {
    MeinFenster = window.open("agb_eng.php","agb","height=650, width = 850, left = 0, top= 30");
    MeinFenster.focus();
}

function zeigett(id) {
	tt = document.getElementById(id);
	tt.style.display = "block";
    tt.style.left = -2500 + "px";
    tt.style.top = -2500 + "px";
}

function neutt(e) {
	x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
	if (tt != null) {
		tt.style.left = (x + 20) + "px";
		tt.style.top 	= (y + 20) + "px";
	}
}

function wegtt() {
	tt.style.display = "none";
}

function mailcheck(){
    if(document.forms[0].elements[2].value.search(/@/) == -1){
      alert("Bitte prüfen Sie Ihre eingegebene E-Mailadresse!");
      return false;
    }
    return true;
}

function mailcheck_eng(){
    if(document.forms[0].elements[2].value.search(/@/) == -1){
      alert("Please check Your e-mail adress!");
      return false;
    }
    return true;
}

function slider(args){
    parent.frames[0].location.href="cdinhalt2.php?album_id="+args;
    parent.frames[1].location.href="kaufen.php?album_id="+args;
}
