﻿var Stil = "eventim";

function preload() {
	
	var aImgages = new Array();
	var aImgagesScr = new Array();
	
	if ((document.location.host == httpHost_getgo) || (document.location.host == httpsHost_getgo)) {
		//plattform77
		aImgagesScr[0] = "/img/expressshop/gtg/quicklogin.gif";
		aImgagesScr[1] = "/img/expressshop/gtg/neukunde.gif";
		aImgagesScr[2] = "/img/expressshop/gtg/login.gif";
		aImgagesScr[3] = "/img/expressshop/gtg/anmelden.gif";
		aImgagesScr[4] = "/img/expressshop/gtg/kundendaten.gif";
		aImgagesScr[5] = "/img/expressshop/gtg/info_zeichen.gif";
		aImgagesScr[6] = "/img/expressshop/gtg/bestellen.gif";
		aImgagesScr[7] = "/img/expressshop/gtg/rlanschrift.gif";
		aImgagesScr[8] = "/img/expressshop/gtg/lanschrift.gif";
		aImgagesScr[9] = "/img/expressshop/gtg/zahlung.gif";
		aImgagesScr[10] = "/img/expressshop/gtg/bank.gif";
		aImgagesScr[11] = "/img/expressshop/gtg/kredit.gif";
		aImgagesScr[12] = "/img/expressshop/gtg/agb.gif";
		aImgagesScr[13] = "/img/expressshop/gtg/artikel.gif";
		aImgagesScr[14] = "/img/expressshop/gtg/platz.gif";
		aImgagesScr[15] = "/img/expressshop/gtg/anzahl.gif";
		aImgagesScr[16] = "/img/expressshop/gtg/epreis.gif";
		aImgagesScr[17] = "/img/expressshop/gtg/gpreis.gif";
		aImgagesScr[18] = "/img/expressshop/gtg/rechnungsanschrift.gif";
		aImgagesScr[19] = "/img/expressshop/gtg/lieferanschrift.gif";
		aImgagesScr[20] = "/img/expressshop/gtg/ticketsbuchen.gif";
		aImgagesScr[21] = "/img/expressshop/gtg/logo_126x54_gtg.jpg";
	} else {
		//plattform33
		aImgagesScr[0] = "/img/expressshop/eve/quicklogin.gif";
		aImgagesScr[1] = "/img/expressshop/eve/neukunde.gif";
		aImgagesScr[2] = "/img/expressshop/eve/login.gif";
		aImgagesScr[3] = "/img/expressshop/eve/anmelden.gif";
		aImgagesScr[4] = "/img/expressshop/eve/kundendaten.gif";
		aImgagesScr[5] = "/img/expressshop/eve/info_zeichen.gif";
		aImgagesScr[6] = "/img/expressshop/eve/bestellen.gif";
		aImgagesScr[7] = "/img/expressshop/eve/rlanschrift.gif";
		aImgagesScr[8] = "/img/expressshop/eve/lanschrift.gif";
		aImgagesScr[9] = "/img/expressshop/eve/zahlung.gif";
		aImgagesScr[10] = "/img/expressshop/eve/bank.gif";
		aImgagesScr[11] = "/img/expressshop/eve/kredit.gif";
		aImgagesScr[12] = "/img/expressshop/eve/agb.gif";
		aImgagesScr[13] = "/img/expressshop/eve/artikel.gif";
		aImgagesScr[14] = "/img/expressshop/eve/platz.gif";
		aImgagesScr[15] = "/img/expressshop/eve/anzahl.gif";
		aImgagesScr[16] = "/img/expressshop/eve/epreis.gif";
		aImgagesScr[17] = "/img/expressshop/eve/gpreis.gif";
		aImgagesScr[18] = "/img/expressshop/eve/rechnungsanschrift.gif";
		aImgagesScr[19] = "/img/expressshop/eve/lieferanschrift.gif";
		aImgagesScr[20] = "/img/expressshop/eve/ticketsbuchen.gif";
		aImgagesScr[21] = "/img/expressshop/eve/logo_137x58.jpg";
	}//end else
 	
	for (var i=0; i<aImgagesScr.length; i++) {
		img = new Image();
		img.src = aImgagesScr[i];
		aImgages[i] = img;
 	}//end for
}//end function

function doPopup(popup) {
	//hilfe und kontakt
	var huk33 ="/cgi-bin/tinfo.dll?fun=thelp&doc=../forall/hilfe_kontakt/partner/content_start&id=EVA_NOSESSION&frame=../forall/hilfe_kontakt/partner/content/&katid=53";
	var huk77 ="/cgi-bin/tinfo.dll?fun=thelp&doc=../forall/hilfe_kontakt/partner/content_start&id=EVA_NOSESSION&frame=../forall/hilfe_kontakt/partner/content/&katid=53";
	//agb
	var agb33 ="/cgi-bin/tinfo.dll?fun=tdoc&doc=../forall/33/agb/inf_agb&id=EVA_NO_SESSION";
	var agb77 ="/cgi-bin/tinfo.dll?fun=tdoc&doc=../forall/77/agb/inf_agb&id=EVA_NO_SESSION";
	//imprssum
	var imp33 ="/cgi-bin/tinfo.dll?fun=tdoc&doc=../forall/33/impressum/fun_impr&id=EVA_NO_SESSION";
	var imp77 ="/cgi-bin/tinfo.dll?fun=tdoc&doc=../forall/77/impressum/fun_impr&id=EVA_NO_SESSION";
	//datenpruefung info
	var dat33 ="/cgi-bin/tinfo.dll?doc=../forall/datenschutz/inf_dat&id=EVA_NO_SESSION";
	var dat77 ="/cgi-bin/tinfo.dll?doc=../forall/datenschutz/inf_dat&id=EVA_NO_SESSION";
	//pruefnummern info
	var pru ="/cgi-bin/tinfo.dll?fun=tdoc&doc=../forall/zahl/pruefnummer_info";
	//registrierung
	var reg33 ="/cgi-bin/tinfo.dll?affiliate=eve&doc=kuenstlerreg/start_madonna2";
	var reg77 ="/cgi-bin/tinfo.dll?&affiliate=gtg&doc=kuenstlerreg/start_kuenstlerreg#madonna";
	
	//registrierung2
	var reg2_33 ="/cgi-bin/tinfo.dll?affiliate=eve&doc=kuenstlerreg/start_georgemichael";
	var reg2_77 ="/cgi-bin/tinfo.dll?&affiliate=gtg&doc=kuenstlerreg/start_kuenstlerreg#georgemichael";
	
	//kauftip
	var tip_33 ="/cgi-bin/tinfo.dll?fun=tdetaila&doc=detaila&key=197838";
	var tip_77 ="/cgi-bin/tinfo.dll?fun=tdetaila&doc=detaila&key=197838";

//datenschutz
	var dts33 ="/cgi-bin/tinfo.dll?doc=../forall/datenschutz/inf_dat&id=EVA_NO_SESSION";
	var dts77 ="/cgi-bin/tinfo.dll?doc=../forall/datenschutz/inf_dat&id=EVA_NO_SESSION";

	if ((document.location.host == httpHost_getgo) || (document.location.host == httpsHost_getgo)) {
		//plattform77
		if (popup == "agb" ) { FensterOeffnenTyp1(agb77) }
		if (popup == "huk" ) { FensterOeffnenTyp1(huk77) }
		if (popup == "imp" ) { FensterOeffnenTyp1(imp77) }
		if (popup == "dat" ) { FensterOeffnenTyp2(dat77) }
		if (popup == "pru" ) { FensterOeffnenTyp3(pru) }
		if (popup == "reg" ) { FensterOeffnenTyp4(reg77) }
		if (popup == "reg2" ) { FensterOeffnenTyp4(reg2_77) }
		if (popup == "tip" ) { FensterOeffnenTyp4(tip_77) }
		if (popup == "dts" ) { FensterOeffnenTyp1(dts77) }
	} else {
		//plattform33
		if (popup == "agb" ) { FensterOeffnenTyp1(agb33) }
		if (popup == "huk" ) { FensterOeffnenTyp1(huk33) }
		if (popup == "imp" ) { FensterOeffnenTyp1(imp33) }
		if (popup == "dat" ) { FensterOeffnenTyp2(dat33) }
		if (popup == "pru" ) { FensterOeffnenTyp3(pru) }
		if (popup == "reg" ) { FensterOeffnenTyp4(reg33) }
		if (popup == "reg2" ) { FensterOeffnenTyp4(reg2_33) }
		if (popup == "tip" ) { FensterOeffnenTyp4(tip_33) }
		if (popup == "dts" ) { FensterOeffnenTyp1(dts33) }
	}
}//end function
function FensterOeffnenTyp1 (Adresse) {
  Fenster1 = window.open(Adresse, "faq", "toolbar=no,locationbar=yes,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=500,height=650");
  Fenster1.focus();
}
function FensterOeffnenTyp2 (Adresse) {
  Fenster2 = window.open(Adresse, "inf", "toolbar=no,locationbar=yes,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=530,height=360");
  Fenster2.focus();
}
function FensterOeffnenTyp3 (Adresse) {
  Fenster3 = window.open(Adresse, "inf", "toolbar=no,locationbar=yes,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=520,height=670");
  Fenster3.focus();
}
function FensterOeffnenTyp4 (Adresse) {
  Fenster4 = window.open(Adresse, "reg");
  Fenster4.focus();
}
function showHost() {
	
	if ((document.location.host == httpHost_getgo) || (document.location.host == httpsHost_getgo)) { 
	
		setStyle("getgo");
		document.title = "Getgo.de - Der-Rund-ums-Ticket-Service - Konzertkarten einfach online bestellen!";
		
	}//end if
}
//
//function chooseShop() {
//	if ((document.location.host == httpHost) || (document.location.host == httpsHost)) { document.getElementById("affiliatematching").value = "gtg" }
//}//end function
//
function showShop() {
	
	if ((document.location.host == httpHost_getgo) || (document.location.host == httpsHost_getgo)) { 
	
		var htmlString = "getgo";
		(document.all)?document.all["hostname"].innerHTML=htmlString:document.getElementById("hostname").innerHTML=htmlString;
	

	}//end if

}//end function

function showShopeins() {
	
	if ((document.location.host == httpHost_getgo) || (document.location.host == httpsHost_getgo)) { 
	
		var htmlString = "getgo";
		(document.all)?document.all["hostname1"].innerHTML=htmlString:document.getElementById("hostname1").innerHTML=htmlString;
	

	}//end if

}//end function

//Style Switcher
function switchStyle(s) {
  if (!document.getElementsByTagName) return;
  var el = document.getElementsByTagName("link");
  for (var i = 0; i < el.length; i++ ) {
    if (el[i].getAttribute("rel").indexOf("style") != -1 && el[i].getAttribute("title")) {
      el[i].disabled = true;
      if (el[i].getAttribute("title") == s) el[i].disabled = false;
    }
  }
}

function loadStyle() {
  var c = getStyleCookie();
  if (c && c != Stil) {
    switchStyle(c);
    Stil = c;
  }
}

function setStyle(s) {
  if (s != Stil) {
    switchStyle(s);
    Stil = s;
  }
}