
// Image-Preload
function preload () {
	if (document.images) {
		var jscr = new Array();
		for (var i = 0; i < 7; i++) { jscr[i] = new Image(); }
		var dir = "/images/nav/";
		jscr[1].src = dir + "diagnostik_heilpraktiker_m.gif";
		jscr[2].src = dir + "heilpraktiker_kontakt_m.gif";
		jscr[3].src = dir + "naturheilpraxis_m.gif";
		jscr[4].src = dir + "osteopathie_links_m.gif";
		jscr[5].src = dir + "patienteninfo_naturheilkunde_m.gif";
		jscr[6].src = dir + "therapie_luebeck_m.gif";
	}
}

// Window-Status permanent setzen
window.status = "...Maritimes Kompetenzzentrum Lübeck-Travemünde...";

// ------------------------------------------------------------
// Ändert den Text in der Statuszeile des Browserfensters.
// ------------------------------------------------------------
function stat(aname) {
	var text;
	text = aname;
	if ( aname == '1' ) { text = '...Startseite...'; }
	if ( aname == '2' ) { text = '...Praxis...'; }
	if ( aname == '3' ) { text = '...Diagnostik...'; }
	if ( aname == '4' ) { text = '...Therapien...'; }
	if ( aname == '5' ) { text = '...Patienteninfo...'; }
	if ( aname == '6' ) { text = '...Kontakt...'; }
	if ( aname == '7' ) { text = '...Links...'; }
	window.status = text;
	return true;
}
// Setzt die Statuszeile des Browserfensters wieder zurück.
function s_off () {
	window.status = "...Maritimes Kompetenzzentrum Lübeck-Travemünde...";
	return true;
}
// ------------------------------------------------------------


// ------------------------------------------------------------
// Open_Window: Neues Fenster öffnen
// ------------------------------------------------------------
function blank_window(url) {
	var blank_win = window.open( url, "blankwindow" );
	 return false;
}
function open_window(url, x, y) {
	if (x && x != "") { width = x; } else { width = 600; }
	if (y && y != "") { height = y + 17; } else { height = 507; }
	var zoom_win = window.open(url, "openwindow", "width="+width+",height="+height+",scrollbars=yes,menubar=no,toolbar=no,location=no,status=yes,resizable=yes,top=0,left=0");
}
function open_window_full(url) {
	var zoom_win = window.open(url, "openwindowfull", 'width=' + screen.availWidth + ',height=' + screen.availHeight + ',top=0,left=0,scrollbars=auto,menubar=yes');
}
// ------------------------------------------------------------


// ------------------------------------------------------------
// Allgemeine Image-Changer
// ------------------------------------------------------------
function chg (ImageName, FileName) {
	document[ImageName].src = "/fileadmin/template/mkz/images/" + FileName;
	return true;
}
// ------------------------------------------------------------


// ------------------------------------------------------------
// Einzelne Menü-Items An-/Ausschalten
// ------------------------------------------------------------
function navon(Name) {
	document[Name].src = "/images/nav/" + Name + "_m.gif";
	return true;
}
function navoff(Name) {
	document[Name].src = "/images/nav/" + Name + ".gif";
	return true;
}
function navoff_s(Name) {
	document[Name].src = "/images/nav/" + Name + "_s.gif";
	return true;
}
// ------------------------------------------------------------


// ------------------------------------------------------------
// Formular-Elemente hervorheben
// ------------------------------------------------------------
// Element hervorheben
function FocusElement (obj) {
	if (document.getElementById || document.all) {
		obj.style.backgroundColor = "#EEEEFF";
		// obj.style.fontWeight = "bold";
		obj.style.border = "1px solid #000099";
	}
}
function FocusElement2 (obj) {	 // ohne Bold
	if (document.getElementById || document.all) {
		obj.style.backgroundColor = "#EEEEFF";
		obj.style.border = "1px solid #000099";
	}
}
function FocusBut (obj) { if (document.getElementById || document.all) { obj.style.color = "#000099"; } }
// Element Normalzustand
function BlurElement (obj) {
	if (document.getElementById || document.all) {
		obj.style.backgroundColor = "#FFFFFF";
		obj.style.fontWeight = "normal";
		obj.style.border = "1px solid #AAAAAA";
	}
}
function BlurBut (obj) { if (document.getElementById || document.all) { obj.style.color = "#000000"; } }
// ------------------------------------------------------------

// Swap-Image mit Fading-Effekt von AIZ
function MM_swapImage(obj) { //v3.0
  if( obj.filters ) { obj.style.filter = "progid:DXImageTransform.Microsoft.fade(duration=1.5)"; }
  // alert( "test: " + obj.style.filter );
  var i,j=0,x,a=MM_swapImage.arguments;
  document.MM_sr=new Array;
  for(i=0;i<(a.length-2);i+=3) {
	   if ((x=MM_findObj(a[i]))!=null){
	   	document.MM_sr[j++]=x;
	   	if(!x.oSrc) x.oSrc=x.src;
		// Abwandlung für Transition
		if( obj.filters ) { 
			obj.filters[0].Apply();
			obj.src = a[2];
			obj.filters[0].Play();
		}
		x.src=a[i+2];
      }
   }
}

// ------------------------------------------------------------

