function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}

function getActiveStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
  }
  return null;
}

function getPreferredStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1
       && a.getAttribute("rel").indexOf("alt") == -1
       && a.getAttribute("title")
       ) return a.getAttribute("title");
  }
  return null;
}

window.onload = function(e) {
  var title = getPreferredStyleSheet();
  setActiveStyleSheet(title);
}

document.write("<div id=\"switcher\"><p><span class=\"invis\">Style: </span><span class=\"Feld2\"><a href=\"#\" onclick=\"setActiveStyleSheet('Standard'); return false;\"> Standard </a></span><span class=\"invis\"> | </span>");
document.write("<span class=\"Feld2\"><a href=\"#\" onclick=\"setActiveStyleSheet('Text'); return false;\"> Ohne Design </a></span></p></div>");


window.defaultStatus = "     .: Astrid Feuerstein :." 


var tipWin = null;
	function opentip_news()
{
        str="http://astrid-feuerstein.at/Newsletter/news.htm";
        tipWin = window.open(str,'tipWin','width=400,height=300,resizeable=yes,scrollbars=no,screenx=30,screeny=35,left=30,top=35,status=no');
        window.open(str,'tipWin');
        tipWin.opener = self;
}

var tipWin = null;
	function opentip_form()
{
        str="http://wachauf.at/astrid/f_kontaktform.html";
        tipWin = window.open(str,'tipWin','width=650,height=600,resizeable=yes,scrollbars=yes,screenx=30,screeny=35,left=30,top=35,status=no');
        window.open(str,'tipWin');
        tipWin.opener = self;
}



