//---------------------------------------------------
//
//  MidiShop
//
//  Hilfsfunktionen (lokal)
//
//---------------------------------------------------


//---- Allgemein ----
CSAg = window.navigator.userAgent; CSBVers = parseInt(CSAg.charAt(CSAg.indexOf("index.html")+1),10);
function IsIE() { return CSAg.indexOf("MSIE") > 0;}
function CSIEStyl(s) { return document.all.tags("div")[s].style; }
function CSNSStyl(s) { return CSFindElement(s,0); }
function CSFindElement(n,ly) {
  if (CSBVers < 4) return document[n];
  var curDoc = ly ? ly.document : document; var elem = curDoc[n];
  if (!elem) {
    for (var i=0;i<curDoc.layers.length;i++) {
      elem = CSFindElement(n,curDoc.layers[i]);
      if (elem) return elem;
    }
  }
  return elem;
}

//---- Formular finden ----
function find(form) {
  var index = form.nextpage.selectedIndex;
  if (form.nextpage.options[index].value != '0') self.location = form.nextpage.options[index].value;
}

//---- Neues Fenster öffnen ----
function openWin(url, windowname, w, h) {
  if (document.location.protocol == 'https:') {
    url = parent.homeSSL + url
  }
  //newWin=window.open(url, windowname, "scrollbars=yes,width=" + w + ",height=" + h);
  newWin=window.open(url,windowname, "toolbar=no,location=no,directories=no,menubar=no,status=yes,scrollbars=yes,width=" + w + ",height=" + h);
  newWin.focus();
  if (navigator.appName.indexOf("Netscape") != -1)
    newWin.focus();
}

//---- Quelle auf Server finden und Seite per Email empfehlen ----
function emailSite() {
  var s = "";
  var href = document.location.href;
  s += "<a href=";
  s += "mailto:?";
  s += "subject=Linktipp&nbsp;auf&nbsp;Boyskin&nbsp;f&uuml;r&nbsp;dich&";
  s += "body=";
  s += href;
  s += ">Seite per E-Mail empfehlen</a>";
  return s;
}

//---- Header schreiben ----
function showHeader() {
  var s= "";
  s += "<table width=\"100%\" height=\"85\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">";
  s += "<tr>";
  s += "<td width=\"100%\" class=\"head\"><img src=\"images_site/nix.gif\" ";
  s += "height=\"1\" width=\"30\" border=\"0\" alt=\"\"></td>";
  s += "</tr>";
  s += "</table>";
  s += "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">";
  s += "<tr>";
  s += "<td align=\"right\">";
//s += "<a href=\"javascript:openWin('partnerprogramm.html','newWindow','450','450')\">Partnerprogramm</a> &nbsp; ";
  s += "<a href=\"javascript:openWin('service.html','newWindow','450','450')\">Service</a> &nbsp; ";
  s += "<a href=\"javascript:openWin('kontakt.asp','newWindow','450','450')\">Kontakt</a> &nbsp; ";
  s += "<a href=\"javascript:parent.getURL('index_home.html')\">Home</a> &nbsp;";
  s += "<img src=\"images_site/nix.gif\" height=\"1\" width=\"30\" border=\"0\" alt=\"\">";
  s += "</td>";
  s += "</tr><tr>";
  s += "<td>";
  s += "<img src=\"images_site/nix.gif\" height=\"1\" width=\"30\" border=\"0\" alt=\"\">";
  s += "<a href=\"http://www.boyskin.com/shop/zahlung.html\" target=\"_top\"><img src=\"images_site/kreditkarten.gif\" alt=\"Wir unterst&uuml;tzen Visa, Master-/Eurocard!\" border=\"0\"></a>&nbsp;";
  s += "<a href=\"http://www.boyskin.com/de\" target=\"_top\"><img src=\"images_site/de.gif\" alt=\"Werbung\" border=\"0\"></a>&nbsp;";
  s += "</td>";
  s += "</tr>";
  s += "</table>";
  s += "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">";
  s += "</table>";
  return s;
}
//---- Footer schreiben ----
function showFooter() {
  var s = "";
  s += "<p align=\"center\">";
  s += "<a href=\"#top\">Nach oben</a> &nbsp; ";
  s += "<a href=\"javascript:self.print()\">Seite drucken</a> &nbsp; ";
  s += emailSite();
  s += " &nbsp; ";
  s += "<a href=\"mailto:office@boyskin.com\">E-Mail an Boyskin</a>";
  s += "<br>";
  s += "&copy; Copyright Boyskin. Alle Rechte vorbehalten.";
  s += "</p>";
  return s;
}

//---- Box links Nr. 1 schreiben ----
function showBoxLeft1() {
  var s = "";
  //--- Produktauswahl normal ----
  s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
  s += "<tr>";
  s += "<td width=\"100%\"><img src=\"images_site/cat_kondomstyle.gif\" ";
  s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Kondome\"></td>";
  s += "</tr><tr>";
  s += "<td width=\"100%\">";
  s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#F5FBFF\">";
  s += "<tr>";
  s += "<td><a href=\"c101.html\">Classic</a><br>";
  s += "<a href=\"c102.html\">Farben &amp; Fr&uuml;chte</a><br>";
  s += "<a href=\"c103.html\">Noppen &amp; Rippen</a><br>";
  s += "<a href=\"c104.html\">Stark &amp; D&uuml;nn</a><br>";
  s += "<a href=\"c105.html\">Feucht</a><br>";
  s += "<a href=\"c106.html\">Anatomisch</a><br>";
  s += "<a href=\"c107.html\">XXL &amp; XS</a><br>";
  s += "<a href=\"c114.html\">XXL &amp; Anatomisch</a><br>";
  s += "<a href=\"c108.html\">Mixes</a><br>";
  s += "<a href=\"c109.html\">Besondere</a><br>";
  s += "<a href=\"c115.html\">Latexfrei</a><br>";
  s += "<a href=\"c110.html\">Scherzartikel</a><br>";
  s += "<a href=\"c116.html\">1 + 1 gratis</a><br>";
  s += "<a href=\"c117.html\">2 + 1 gratis</a><br>";
  s += "<a href=\"c111.html\">Grosspackungen</a><br>";
  s += "<a href=\"c112.html\">HIT PREISE</a></td>";
  s += "</tr></table></td></tr></table>";
  //--- Produktauswahl Marken ----
  s += "<br><img src=\"images_site/nix.gif\" height=\"10\" width=\"1\" border=\"0\" alt=\"\"><br>";
  s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
  s += "<tr>";
  s += "<td width=\"100%\"><img src=\"images_site/cat_kondommarken.gif\" ";
  s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Kondommarken\"></td>";
  s += "</tr><tr>";
  s += "<td width=\"100%\">";
  s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#F5FBFF\">";
  s += "<tr>";
  s += "<td><a href=\"c401.html\">Avanti</a><br>";
  s += "<a href=\"c406.html\">Durex</a><br>";
  s += "<a href=\"c407.html\">Inspiral</a><br>";
//  s += "<a href=\"c408.html\">Masculan</a><br>";
  s += "<a href=\"c409.html\">Performa</a><br>";
//  s += "<a href=\"c410.html\">RFSU</a><br>";
  s += "<a href=\"c411.html\">Rilaco</a><br>";
//  s += "<a href=\"c412.html\">Ritex</a><br>";
//  s += "<a href=\"c413.html\">Vitalis</a><br>";
  s += "<a href=\"c112.html\">HIT PREISE</a></td>";
  s += "</tr></table></td></tr></table>";
  //--- Produktauswahl Kondomzubehoer ----
  s += "<br><img src=\"images_site/nix.gif\" height=\"10\" width=\"1\" border=\"0\" alt=\"\"><br>";
  s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
  s += "<tr>";
  s += "<td width=\"100%\"><img src=\"images_site/cat_zubehoer.gif\" ";
  s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Kondomzubeh&ouml;r\"></td>";
  s += "</tr><tr>";
  s += "<td width=\"100%\">";
  s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#F5FBFF\">";
  s += "<tr>";
  s += "<td><a href=\"c201.html\">Gleitgel</a><br>";
  s += "<a href=\"c205.html\">Ringe</a><br>";
//  s += "<a href=\"c202.html\">Gutscheine</a><br>";
//  s += "<a href=\"c203.html\">B&uuml;cher</a><br>";
//  s += "<a href=\"c204.html\">DVD</a></td>";
  s += "</tr></table></td></tr></table>";
  //--- Shopinfo ----
  s += "<br><img src=\"images_site/nix.gif\" height=\"10\" width=\"1\" border=\"0\" alt=\"\"><br>";
  s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
  s += "<tr>";
  s += "<td width=\"100%\"><img src=\"images_site/cat_shopinfo.gif\" ";
  s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Shopinfo\"></td>";
  s += "</tr><tr>";
  s += "<td width=\"100%\">";
  s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#F5FBFF\">";
  s += "<tr>";
  s += "<td><a href=\"javascript:openWin('versand.html','newWindow','450','450')\">Versand</a><br>";
  s += "<a href=\"javascript:openWin('zahlung.html','newWindow','450','450')\">Zahlung</a><br>";
  s += "<a href=\"javascript:openWin('sicherheit.html','newWindow','450','450')\">Sicherheit</a><br>";
  s += "<a href=\"javascript:openWin('datenschutz.html','newWindow','450','450')\">Datenschutz</a><br>";
  s += "<a href=\"javascript:openWin('agb.html','newWindow','450','450')\">AGB</a><br>";
  s += "<a href=\"javascript:openWin('impressum.html','newWindow','450','450')\">Impressum</a><br>";
  s += "<a href=\"javascript:openWin('ecg.html','newWindow','450','450')\">Info lt. &sect;5 Abs1 ECG</a></td>";
  s += "</tr></table></td></tr></table>";
  return s;
}
//---- Box links Nr. 2 schreiben ----
function showBoxLeft2() {
  var s = "";
  return s;
}
//---- Box links Nr. 3 schreiben ----
function showBoxLeft3() {
  var s = "";
  return s;
}
//---- Box rechts Nr. 1 schreiben ----
function showBoxRight1() {
  var s = "";
  //--- Warenkorb ----
  s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
  s += "<tr>";
  s += "<td width=\"100%\"><img src=\"images_site/cat_bereich.gif\" ";
  s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Dein Bereich\"></td>";
  s += "</tr><tr>";
  s += "<td width=\"100%\">";
  s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#F5FBFF\">";
  s += "<tr>";
  s += "<td><a href=\"javascript:parent.getURL('basket.html')\" class=\"blue\">Dein Warenkorb</a><br>";
  s += "<div class=\"fontblue\">Dein Warenkorb enth&auml;lt derzeit ";
  s += parent.showMiniBasketItems();
  s += " Artikel im Gesamtwert von ";
  s += parent.showMiniBasketTotal();
  s += " &euro;.</div></td>";
  s += "</tr></table></td></tr></table>";
  //--- Werbung ----
// s += "<br><img src=\"images_site/nix.gif\" height=\"10\" width=\"1\" border=\"0\" alt=\"\"><br>";
// s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
// s += "<tr>";
// s += "<td width=\"100%\"><img src=\"images_site/cat_werbekondome.gif\" ";
//  s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Werbekondome\"></td>";
//  s += "</tr><tr>";
//  s += "<td width=\"100%\">";
//  s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#F5FBFF\">";
//  s += "<tr>";
//  s += "<td>";
//  s += "<p><a href=\"http://www.boyskin.com/de/c306.html\"><img src=\"images_site/news_werbekondome1.gif\" width=\"140\" height=\"149\" border=\"0\"></p></a></td></tr>";
//  s += "<tr>";
//  s += "<td>";
//  s += "<p><a href=\"http://www.boyskin.com/de/c106.html\" class=\"blue\">Frei-Stoß - die perfekte Werbeform<br> für die WM SOMMER<br> 2006!</a><br>";
//  s += "</tr></table></td></tr></table>";
  //--- Rabatte und Gewinnspiele ----
//  s += "<br><img src=\"images_site/nix.gif\" height=\"10\" width=\"1\" border=\"0\" alt=\"\"><br>";
//  s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
//  s += "<tr>";
//  s += "<td width=\"100%\"><img src=\"images_site/cat_gewinn.gif\" ";
//  s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Dein Gewinn\"></td>";
//  s += "</tr><tr>";
//  s += "<td width=\"100%\">";
//  s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#F5FBFF\">";
//  s += "<tr>";
//  s += "<td><a href=\"javascript:openWin('rabatte.html','newWindow','450','450')\" class=\"blue\">Deine Rabatte</a><br>";
//  s += "<div class=\"fontblue\">1 - 2 - 3 und du bist dabei! Hol dir deine Rabatte ab 5 Kondom-Packungen!</div><br>";
//s += "<a href=\"partnerprogramm.html\" class=\"blue\">PARTNERPROGRAMM</a><br>";
//s += "<div class=\"fontblue\">Kostenlose Teilnahme, Riesengroße Produktauswahl, Individuelle Linkformate, Kostenlose Starthilfe</div></td>";
//s += "</tr></table></td></tr></table>";
  return s;
}
//---- Box rechts Nr. 2 schreiben ----
function showBoxRight2() {
  var s = "";
  return s;
}
//---- Box rechts Nr. 3 schreiben ----
function showBoxRight3() {
  var s = "";
  return s;
}
//---- Box für Bestellung schreiben ----
function showBoxOrder(Status) {
  var s = "";
  if (Status == "1") {
    s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
    s += "<tr>";
    s += "<td width=\"100%\"><img src=\"images_site/cat_bestelluebersicht.gif\" ";
    s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Bestellstatus\"></td>";
    s += "</tr><tr>";
    s += "<td width=\"100%\">";
    s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#F5FBFF\">";
    s += "<tr>";
    s += "<td>";
    s += "<a href=\"order1.html\">&raquo; Schritt 1:</a><br>";
    s += "<div class=\"fontred\">";
    s += "Wahl der Zahlungs- und Versandart<br>";
    s += "&raquo; Schritt 2:<br>";
    s += "Eingabe von Namen und Postanschrift<br>";
    s += "&raquo; Schritt 3:<br>";
    s += "Kontrolle deiner Angaben und Absenden";
    s += "</div>";
    s += "</td></tr></table></td></tr></table>";
  } else if (Status == "2") {
    s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
    s += "<tr>";
    s += "<td width=\"100%\"><img src=\"images_site/cat_bestelluebersicht.gif\" ";
    s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Bestellstatus\"></td>";
    s += "</tr><tr>";
    s += "<td width=\"100%\">";
    s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#F5FBFF\">";
    s += "<tr>";
    s += "<td>";
    s += "<a href=\"order1.html\">&raquo; Schritt 1:</a><br>";
    s += "<div class=\"fontred\">";
    s += "Wahl der Zahlungs- und Versandart<br>";
    s += "</div>";
    s += "<a href=\"order2.html\">&raquo; Schritt 2:</a><br>";
    s += "<div class=\"fontred\">";
    s += "Eingabe von Namen und Postanschrift<br>";
    s += "&raquo; Schritt 3:<br>";
    s += "Kontrolle deiner Angaben und Absenden";
    s += "</div>";
    s += "</td></tr></table></td></tr></table>";
  } else if (Status == "3") {
    s += "<table cellpadding=\"0\" cellspacing=\"0\" width=\"150\" border=\"0\">";
    s += "<tr>";
    s += "<td width=\"100%\"><img src=\"images_site/cat_bestelluebersicht.gif\" ";
    s += "width=\"150\" height=\"20\" border=\"0\" alt=\"Bestellstatus\"></td>";
    s += "</tr><tr>";
    s += "<td width=\"100%\">";
    s += "<table cellpadding=\"5\" cellspacing=\"0\" width=\"150\" border=\"0\" bgcolor=\"#F5FBFF\">";
    s += "<tr>";
    s += "<td>";
    s += "<a href=\"order1.html\">&raquo; Schritt 1:</a><br>";
    s += "<div class=\"fontred\">";
    s += "Wahl der Zahlungs- und Versandart<br>";
    s += "</div>";
    s += "<a href=\"order2.html\">&raquo; Schritt 2:</a><br>";
    s += "<div class=\"fontred\">";
    s += "Eingabe von Namen und Postanschrift<br>";
    s += "</div>";
    s += "<a href=\"order3.html\">&raquo; Schritt 3:</a><br>";
    s += "<div class=\"fontred\">";
    s += "Kontrolle deiner Angaben und Absenden";
    s += "</div>";
    s += "</td></tr></table></td></tr></table>";
  }
  return s;
}

