function si(ziel,hoehe,breite)
{seite = window.location.href;
xx=(screen.width/2)-(breite/2);
yy=(screen.height/2)-(hoehe/2);
seite=escape(seite);
option="menubar=no,location=no, resizeable=no,status=no,toolbar=no,scrollbars=no,height="+hoehe+",width="+breite;
fenster=window.open(ziel, "Informationen", option);
fenster.moveTo(xx,yy);
}
function wk(bestnr,typ,bez,anzahl,preis1){
a=0;
kekswert="Bestellung";
Ergebnis=0;
inhalt=document.cookie;
if (inhalt!=""){
	kekse=inhalt.split(";");
	zaehler=0;
	
	while (zaehler<kekse.length) {
		
		keks=kekse[zaehler].split("=");

	
	
	if(keks[0]=="Warenkorb") {kekswert=unescape(keks[1]);
Ergebnis=-1;
}
		zaehler++;

	}
}
if (inhalt=="" || Ergebnis==-1){
kekswert=kekswert+"yy"+bestnr+"yy"+typ+"yy"+bez+"yy"+anzahl+"yy"+preis1+"yy"+"1";
document.cookie="Warenkorb="+escape(kekswert)+"; path=/";
inhalt2=document.cookie;
if (inhalt2==""){
alert ('Dieser Shop benötigt Cookies.\nDiese Speichern nur den Inhalt Ihres Warenkorbes und werden beim Schließen des Browsers gelöscht.\nBitte wählen Sie den Artikel neu und akzeptieren Sie das eingerichtete Cookie.\nDanke');
a=1;
}
else {
if (inhalt2==inhalt){
alert ('Bitte akzeptieren Sie die Änderung des Cookies.\nDer gewählte Artikel kann sonst nicht in den Warenkorb gelegt werden.\nBitte wählen Sie den Artikel neu.\nDanke');
a=1;
}}
if (a==0 && Ergebnis== -1){
alert (bez+' wurde in den Warenkorb gelegt.');
}
}
}
function we()
{
xx=(screen.width/2)-200;
yy=(screen.height/2)-150;
adresse="http://www.tkm-racing.com/empfehlen.php4";
fenster=window.open(adresse, "Produkt", "scrollbars=yes,height=300,width=400");
fenster.moveTo(xx,yy);

}
var zustand="visible";
function anzeige()
{
if (zustand=="visible"){zustand="hidden";}
else {zustand="visible";}
if (document.layers){document.layers.anzeigen.visibility=zustand;}
if (document.all) { anzeigen.style.visibility=zustand;}
if (document.getElementById) {document.getElementById('anzeigen').style.visibility = zustand;} 
}

var ns4= true;
var ns4 = (document.layers)? true:false;
var ns6 = (document.getElementById)? true:false;
var ie4 = (document.all)? true:false;
var ie5 = false;
// Microsoft Stupidity Check(tm).
if (ie4) {
	if (navigator.userAgent.indexOf('MSIE 5')>0) 	ie5 = true;
	if (ns6) 					ns6 = false;
}
function zeige(ebene){
	if (ns4) {document.layers[ebene].visibility="show";}
	else if (ie4) {document.all(ebene).style.visibility = "visible";}
	else  if (ns6) {self.document.getElementById(ebene).style.visibility="visible";}
}
function verstecke(ebene){
	if (ns4) {document.layers[ebene].visibility="hidden";}
	else if (ie4) {document.all(ebene).style.visibility = "hidden";}
	else  if (ns6) {self.document.getElementById(ebene).style.visibility="hidden";}
    }


