// Enter Javascript here
function openPrint(path)
{
	window.print();
}

function openPagemailer(path)
{
	pagemailer = window.open(path,"mail","width=500,height=400,resizable=no");
	pagemailer.focus();
}

function errorMsg(name,ext,cat)
{
  // alert("Netscape 6 or Mozilla is needed to install a sherlock plugin");
  f=document.createElement("form");
  f.setAttribute("name","installform");
  f.setAttribute("method","post");
  f.setAttribute("action","http://mycroft.mozdev.org/error.html");
  fe=document.createElement("input");
  fe.setAttribute("type","hidden");
  fe.setAttribute("name","name");
  fe.setAttribute("value",name);
  f.appendChild(fe);
  fe=document.createElement("input");
  fe.setAttribute("type","hidden");
  fe.setAttribute("name","ext");
  fe.setAttribute("value",ext);
  f.appendChild(fe);
  fe=document.createElement("input");
  fe.setAttribute("type","hidden");
  fe.setAttribute("name","cat");
  fe.setAttribute("value",cat);
  f.appendChild(fe);
  document.getElementsByTagName("body")[0].appendChild(f);
  if (document.installform) { 
    document.installform.submit();
  } else {
    location.href="http://mycroft.mozdev.org/error.html"; //hack for DOM-incompatible browsers
  }
}
function addEngine(name,ext,cat)
{
  if ((typeof window.sidebar == "object") && (typeof
  window.sidebar.addSearchEngine == "function"))
  {
    //cat="Web";
    //cat=prompt("In what category should this engine be installed?","Web")
    window.sidebar.addSearchEngine(
      "http://mycroft.mozdev.org/plugins/"+name+".src",
      "http://mycroft.mozdev.org/plugins/"+name+"."+ext,
      name,
      cat );
  }
  else
  {
    errorMsg(name,ext,cat);
  }
}

function highlight(name,farbe)
{
if(document.getElementById)
{
document.getElementById(name).style.backgroundColor=farbe;
}
}

var prim_array_navi = new Array();

function prim_navi(lo, hi)
{
    this.lo = new Image();
    this.hi = new Image();
    this.lo.src = lo;
    this.hi.src = hi;
}
function prim_navi_onLoad()
{
    prim_array_navi['startseite'] = new prim_navi('../img/buttons/low/startseite.gif', '../img/buttons/high/startseite.gif');
	prim_array_navi['stundenplan'] = new prim_navi('../img/buttons/low/stundenplan.gif', '../img/buttons/high/stundenplan.gif');
	prim_array_navi['schule'] = new prim_navi('../img/buttons/low/schule.gif', '../img/buttons/high/schule.gif');
	prim_array_navi['kursangebot'] = new prim_navi('../img/buttons/low/kursangebot.gif', '../img/buttons/high/kursangebot.gif');
	prim_array_navi['galerie'] = new prim_navi('../img/buttons/low/galerie.gif', '../img/buttons/high/galerie.gif');
	prim_array_navi['jobs'] = new prim_navi('../img/buttons/low/jobs.gif', '../img/buttons/high/jobs.gif');
	prim_array_navi['akademie'] = new prim_navi('../img/buttons/low/akademie.gif', '../img/buttons/high/akademie.gif');
	prim_array_navi['ausbildung'] = new prim_navi('../img/buttons/low/ausbildung.gif', '../img/buttons/high/ausbildung.gif');
	prim_array_navi['aktuelles'] = new prim_navi('../img/buttons/low/aktuelles.gif', '../img/buttons/high/aktuelles.gif');
    prim_array_navi['standort'] = new prim_navi('../img/buttons/low/standort.gif', '../img/buttons/high/standort.gif');
    prim_array_navi['anmeldung'] = new prim_navi('../img/buttons/low/anmeldung.gif', '../img/buttons/high/anmeldung.gif');
    prim_array_navi['kollegium'] = new prim_navi('../img/buttons/low/kollegium.gif', '../img/buttons/high/kollegium.gif');
	prim_array_navi['ausbildungsansatz'] = new prim_navi('../img/buttons/low/ausbildungsansatz.gif', '../img/buttons/high/ausbildungsansatz.gif');
	prim_array_navi['kontakt'] = new prim_navi('../img/buttons/low/kontakt.gif', '../img/buttons/high/kontakt.gif');
	prim_array_navi['anfahrt'] = new prim_navi('../img/buttons/low/anfahrt.gif', '../img/buttons/high/anfahrt.gif');
	prim_array_navi['impressum'] = new prim_navi('../img/buttons/low/impressum.jpg', '../img/buttons/high/impressum.jpg');
	prim_array_navi['schuelernet'] = new prim_navi('../img/buttons/low/schuelernet.jpg', '../img/buttons/high/schuelernet.jpg');
	prim_array_navi['physiotherapeut'] = new prim_navi('../img/buttons/low/physiotherapeut.gif','../img/buttons/high/physiotherapeut.gif');
	prim_array_navi['masseur'] = new prim_navi('../img/buttons/low/masseur.gif', '../img/buttons/high/masseur.gif');
	prim_array_navi['physio_ausbildung'] = new prim_navi('../img/buttons/low/physio_ausbildung.gif', '../img/buttons/high/physio_ausbildung.gif');
	prim_array_navi['ausbildungsinhalt'] = new prim_navi('../img/buttons/reiter/low/ausbildungsinhalt.gif', '../img/buttons/reiter/high/ausbildungsinhalt.gif');
	prim_array_navi['information'] = new prim_navi('../img/buttons/reiter/low/information.gif', '../img/buttons/reiter/high/information.gif');
	prim_array_navi['steckbrief'] = new prim_navi('../img/buttons/reiter/low/steckbrief.gif', '../img/buttons/reiter/high/steckbrief.gif');
	prim_array_navi['praktikum'] = new prim_navi('../img/buttons/reiter/low/praktikum.gif', '../img/buttons/reiter/high/praktikum.gif');
	prim_array_navi['anspruch'] = new prim_navi('../img/buttons/low/anspruch.gif', '../img/buttons/high/anspruch.gif');
}
function prim_navi_onMouseOver(key)
{
    document.images[key].src = prim_array_navi[key].hi.src;
}
function prim_navi_onMouseOut(key)
{
    document.images[key].src = prim_array_navi[key].lo.src;
}

prim_navi_onLoad();