
Bilder=new Array()
Bilder[0]=new Array(new Image(),new Image())
Bilder[0][0].src="images-personal-trainer-muenster/logo-melioro-klein-soft.gif"
Bilder[0][1].src="images-personal-trainer-muenster/logo-melioro-klein.gif"

function bildwechsel(bildname,zustand,bildnr)
{
	document.images[bildname].src=Bilder[bildnr][zustand].src
}


function popup (datei, titel, hoehe, breite)
{
  window.open(" + datei +", " + titel + ", "height="+hoehe+", width="+breite+", resizable=no, scrollbars=yes, toolbar=no, location=no, status=no");
  return;
}

var win = "";
function fenster(Grafik,width,height,name,titel)
 {
 	/*Dafür sorgen, dass immer nur ein Fenster geöffnet ist*/
	if (win != "")
 	{ 
 		/*Falls ein Fenster geöffnet ist, dieses erst schliessen*/
		win.close();
	}
   	win=window.open("",name,"width="+width+",height="+(height+60)+",left=150,top=50"); 
   	win.document.open("text/html");
   	win.document.write("<BODY leftmargin='0' topmargin='0' marginheight='0' marginwidth='0'>");
   	win.document.bgColor="#939EB2";
   		
	/*Stylesheets für das neue Fenster*/
  		win.document.write("<style type= text/css>" +
	"a{color:#C40000; text-decoration:none; font-size:12px;font-family:Arial,sans-serif; }" +
	"a:link { color:#e84b17; text-decoration:underline; font-size:12px;font-family:Arial,sans-serif; }" +
	"a:visited { color:#e84b17; text-decoration:underline; font-size:12px;font-family:Arial,sans-serif; }" +
	"a:hover { color: #000000; text-decoration:none; font-size:12px;font-family:Arial,sans-serif; }" +
	"</style>");

	win.focus();
   	win.document.write("<TITLE>" +titel +"</title>");
   	win.document.write("<IMG src='"+Grafik+"'>");
   	win.document.write("<div align=center>&nbsp;</div>");
   	win.document.write("<div align=center><a href='javascript:window.print()'>Seite drucken</a></div>");
   	win.document.write("<div align=center><a href='javascript:self.close()'>Fenster schlie&szlig;en</a></div>");
   	win = "";
}
 

var win = "";
function fenster_mit_text(Grafik,b,h,n,titel,text,zugabe)
{
 	/*Dafür sorgen, dass immer nur ein Fenster geöffnet ist*/
	if (win != ""&&win.closed==false)
 	{ 
 		/*Falls ein Fenster geöffnet ist, dieses erst schliessen*/
		win.close();
	}
   	win=window.open("",n,"width="+b+",height="+(h+zugabe)+",left=50,top=20"); 
   	win.document.open("text/html");
   	win.document.write("<BODY leftmargin='0' topmargin='0' marginheight='0' marginwidth='0'>");
   	win.document.bgColor="#C8C8C8";
   		
		/*Stylesheets für das neue Fenster*/
   		win.document.write("<style type= text/css>" +
		"a{color:red; text-decoration:none; font-size:11px;font-family:Verdana,Arial,sans-serif; }" +
		"a:link { color:red; text-decoration:none; font-size:11px;font-family:Verdana,Arial,sans-serif; }" +
		"a:vlink { text-decoration:none; color: red; font-size:11px;font-family:Verdana,Arial,sans-serif; }" +
		"a:hover { color: blue; text-decoration:none; font-size:11px;font-family:Verdana,Arial,sans-serif; }" +
		"a:alink { color: red; text-decoration:none; font-size:11px;font-family:Verdana,Arial,sans-serif; }" +
		"</style>");
	
	win.focus();
   	win.document.linkColor="red";
   	win.document.vlinkColor="red";
   	win.document.write("<TITLE>" +titel +"</title>");
   	win.document.write("<IMG src='"+Grafik+"'>");
   	win.document.write("<div align=center>" +text+ "</div>");
   	win.document.write("<div align=center>&nbsp;</div>");
   	win.document.write("<div align=center><a href='javascript:window.print()'>Seite drucken</a></div>");
   	win.document.write("<div align=center><a href='javascript:self.close()'>Fenster schlie&szlig;en</a></div>");
   	win = "";
}


/*Funktionen um die Seite als Startseite des Browsers 
zu erklären und die aktuelle Seite zu bookmarken*/
var browser = navigator.appName;
var version = navigator.appVersion.substring(0, 1);
var ie =
  ((browser == "Microsoft Internet Explorer") &&
  (version >= 4))
;
var ns =
  ((browser == "Netscape") &&
  (version >= 4 ))
;

function setHomePage(siteURL) {
  if (ie) {
    document.body.style.behavior = "url(#default#homepage)";
    document.body.setHomePage(siteURL);
  } else
    alert(
      "Die Seite konnte nicht automatisch als " +
      "Startseite eingestellt werden, tun Sie " +
      "dies bitte manuell!"
    );
}

function addToFavorites(siteURL, description) {
  if (ie)
    window.external.AddFavorite(siteURL, description);
  else if (ns)
    alert("Drücken Sie Strg+D zum Bookmarken dieser Seite!");
  else
    alert(
      "Die Seite kann nicht automatisch den " +
      "Favoriten hinzugefügt werden!"
    );
}

