/* *********************************************************
** css.JS
** ==================================================
** This file contains data and functions for the execution
** of the JS Shopping Cart. Please maintain this header!
**
** Author           Ver  Date    Comments
** ======           ===  ====    ========
** Thomas Burg            12/00  adapted
** Copyright 2000, Thomas Burg
** ---------------------------------------------------
********************************************************* */



function selectCSS(n)
    {
       var temp = "";
        for (i=0;i<n;i++)
         {
           temp += "../"
          }
        if ((navigator.appName.indexOf("Netscape") > -1) && (navigator.appVersion.indexOf("Mac") > -1))
          {
             temp += "js/form11.css";
          }
        else if ((navigator.appName.indexOf("Microsoft") > -1) && (navigator.appVersion.indexOf("Mac") > -1))
           {
              temp += "js/form12.css"
           }
        else if ((navigator.appName.indexOf("Netscape") > -1) && (navigator.appVersion.indexOf("Win") > -1))
           {
            temp += "js/form21.css"
           }
        else if ((navigator.appName.indexOf("Microsoft") > -1) && (navigator.appVersion.indexOf("Win") > -1))
           {
             temp += "js/form22.css"
           }
        else
           {
              temp += "js/form11.css"
           }
              return temp;
      }

function bselectCSS(n)
    {
       var temp = "";
        for (i=0;i<n;i++)
         {
           temp += "../"
          }
        if ((navigator.appName.indexOf("Netscape")!= -1) && (navigator.appVersion.indexOf("Mac") != -1))
          {
             temp += "js/bform11.css";
          }
        else if ((navigator.appName.indexOf("Microsoft")!= -1) && (navigator.appVersion.indexOf("Mac") != -1))
           {
              temp += "js/bform12.css"
           }
        else if ((navigator.appName.indexOf("Netscape") != -1) && (navigator.appVersion.indexOf("Win") != -1))
           {
            temp += "js/bform21.css"
           }
        else if ((navigator.appName.indexOf("Explorer") != -1) && (navigator.appVersion.indexOf("Win") != -1))
           {
             temp += "js/bform22.css"
           }
        else if ((navigator.platform.indexOf("Linux") != -1) )
           {
             temp += "js/bform22.css"
           }
        else
           {
              temp += "js/bform12.css"
           }
              return temp;
      }



function writeCSS(n)
{
//alert("verwende writeSS");
  HTMLstr=" ";
  HTMLstr += '<link rel=stylesheet type="text/css" href="'+selectCSS(n)+'">';
  document.write(HTMLstr);
 }
 function bwriteCSS(n)
{
//alert("verwende bwriteSS");
  HTMLstr=" ";
  HTMLstr += '<link rel=stylesheet type="text/css" href="'+bselectCSS(n)+'">';
  document.write(HTMLstr);
 }
 
 
  function writeoutbrowser()
{
//alert("verwende bwriteSS");
  temp="";
//  temp += navigator.appName.indexOf("Netscape")+ ' ' + navigator.appVersion.indexOf("Win");
  temp += navigator.appName+ ' ---- ' + navigator.appVersion + ' ---- ' + navigator.appCodeName + ' ---- ' + navigator.platform ;
  document.write(temp);
 }