function popBasket(url,width,height) {
         shop = window.open(url, 'SHOP', 'width='+width+',height='+height+',menubar=no,scrollbars,status=no,toolbar=no,resizable');
         shop.focus();
      }

function popShop(url) {
        shop = window.open(url, 'SHOP', 'width=400,height=450, resizable=no, screenX=0, screenY=0, scrollbars=auto');
        shop.focus();
      }

function popShoppingBasket(url,width,height) {
        shop = window.open(url, 'SHOP', 'width='+width+',height='+height+',menubar=no,scrollbars,status=no,toolbar=no,resizable');
        shop.focus();
      }

function popHighscore(url) {
        highscore = window.open(url, 'LIST', 'width=300,height=500, resizable=no, screenX=0, screenY=0, scrollbars=auto');
        highscore.focus();
      }

function popHinweis(url) {
        hinweis = window.open(url, 'HINWEIS', 'width=500,height=500, resizable=yes, screenX=0, screenY=0, scrollbars=yes');
        hinweis.focus();
      }

if (document.layers)  {
        ns = 1;
      } else {
        ns = 0;
}

function pinLayer(action) {
        headlayer = 'settings';
        if (ns) {
          document.layers[headlayer].display =action;
        } else {
          document.getElementById(headlayer).style.display=action;
        }
}

function startseitenlink() {
var ausgabe = '';
if (navigator.userAgent.indexOf("Opera") == -1) {
if (navigator.appName.indexOf("Explorer") != -1){
ausgabe = '<a id="spStartseite" href="http://www.spiegel.de/static/startseite/als_startseite_redirect.html" onClick="this.style.behavior=\'url(#default#homepage)\';this.setHomePage(\'http://www.spiegel.de\');" id="spFfsidebar">Startseite<\/a>';
} else if (navigator.userAgent.indexOf("compatible") == -1) {
ausgabe = '<a id="spStartseite" href="javascript:window.open(\'http://www.spiegel.de/static/startseite/anleitung.html\',\'SponStart\',\'width=526,height=660,resizable,screenX=10,screenY=10\').focus();" id="spFfsidebar">Startseite<\/a>';
}
document.write( ausgabe );
}
}
