// fakharani.js (c) 2011 by Hapnet http://www.hapnet.de
// 20.01.2011
// -----------------------------------------------------------------------------
// Show Images with LightBox
// -----------------------------------------------------------------------------
function printImg(vLightBox, vTitle, vPfad, vCnt, vhigh) {
	document.write ("<a rel=lightbox[" + vLightBox + "] href=images/" + vPfad + vCnt + ".jpg title=" + vTitle + ">");
    document.write ("<img border=0 height=" + vhigh + "px src=images/" + vPfad + vCnt + ".jpg></a>");
    document.write (" ");
}
function printImgPos(vLightBox, vTitle, vPfad, vCnt, vhigh, vtop, vleft) {
	document.write ("<DIV style='position:absolute; top:" + vtop + "; left:" + vleft + "; z-index: 9;'>");
	printImg(vLightBox, vTitle, vPfad, vCnt, vhigh);
	document.write ("</DIV>");
}
function printImgLnk(vLightBox, vTitle, vPfad, vPic, vhigh, vLnk) {
	document.write ("<a rel=lightbox[" + vLightBox + "] href=images/" + vPfad + vLnk + " title=" + vTitle + ">");
    document.write ("<img border=0 height=" + vhigh + "px src=images/" + vPfad + vPic + "></a>");
    document.write (" ");
}

// -----------------------------------------------------------------------------
// General Page Setup
// -----------------------------------------------------------------------------
function printMitgliedschaft (PosTop, PosLeft, Abreviation, Title, Function, Link, Label) {
	document.write ("<DIV style='position:absolute; top:" + PosTop + "px; left:" + PosLeft + "px; width:200px; '>");
	if (Label!="") {document.write ("<img height=70px src='images/" + Label + "'><BR>")};
	document.write ("<a href=" + Link + ">");
	document.write ("<B>" + Abreviation + "</A></B><BR>");
	document.write (Title + "<BR>" + Function + "<BR>");
	document.write ("</DIV>");
}
function printHead (title) {
	document.write ("<meta name='robots' content='index'>");
	document.write ("<meta http-equiv='Content-Type' content='text/html; charset=windows-1252'>");
	document.write ("<meta name='fakhanarni' content='Praxis für Orthopaedie,Schmerztherapie,Chirotherapie,Sportmedizin,ambulante Operationen und Akupunktur. Dr. med. Michael Fakharani.Bremen-Deutschland'>");
	document.write ("<meta name='keywords' content='praxis,bremen,dr,med,dr.med.Michael Fakharani,Orthopaedie,medizin,arzt,schmerzen,gelenke,rheuma,sportmedizin,chirotherapie,akupunktur,gesundheit,phsikalische therapie,hochton therapie,laser-therapie'>");
	document.write ("<meta name='description' content=" + title + ">");
	document.write ("<title>" + title + "</title>");
	document.write ("<link rel='stylesheet' href='css/fakharani.css' type='text/css' >");
	// lightbox
	document.write ("<script type='text/javascript' src='js/prototype.js'></script>");
	document.write ("<script type='text/javascript' src='js/scriptaculous.js?load=effects,builder'></script>");
	document.write ("<script type='text/javascript' src='js/lightbox.js'></script>");
	document.write ("<link rel='stylesheet' href='css/lightbox.css' type='text/css' media='screen' />");
	// videobox
	//document.write ("<script type='text/javascript' src='js/mootools.js'></script>");
	//document.write ("<script type='text/javascript' src='js/swfobject.js'></script>");
	//document.write ("<script type='text/javascript' src='js/videobox.js'></script>");
	//document.write ("<link rel='stylesheet' href='css/videobox.css' type='text/css' media='screen' />");
}
function printHeader (name) {
	document.write ("<div style='position:absolute; top:10px; left:5px; '>");
	document.write ("<img height=100px src='images/header_left.jpg'></div>");
	document.write ("<div style='position:absolute; top:10px; left:782px; '>");
	document.write ("<img height=70px src='images/header_right.jpg'></div>");

	document.write ("<div style='position:absolute; color:#00005F; font-size:12pt; ");
	document.write ("top:10px; width:250px; left:101px; '>");
	document.write ("Dr. med. Michael</div>");
	document.write ("<div style='position:absolute; color:#00005F; font-size:24pt; ");
	document.write ("top:40px; height:40px; width:200px; left:100px;'>");
	document.write ("Fakharani</div>");

	document.write ("<div style='position:absolute; top:95px; width:780px; left:90px; z-index:10;'>");
	printMenue (name);
	document.write ("</div>");
	document.write ("<DIV class=BodyPage>");
}
function printFooter(pos) {
	document.write ("</DIV>");
	document.write ("<div style='position:absolute; top:200px; left:5px;'>");	 
	document.write ("<img height=200px src='images/Wirbelsaeule.jpg'>");
	document.write ("</DIV>");
	document.write ("<DIV style='position:absolute; top:"+pos+"px; left:100px; width:300px;'><B>Sprechstunden</B> (nach Voranmeldung)<br><br>Telefon: (0421)  47575<br>Telefax: (0421) 473399<br>Email: <A HREF='mailto:praxis@fakharani.de'> praxis@fakharani.de</A><BR><BR>Werktags 8:45 - 14:00 Uhr<br>Di und Do  16:00 - 19:00 Uhr<br><br>updated:12.03.2011</DIV>");
	document.write ("<DIV style='position:absolute; top:"+pos+"px; left:400px; width:400px;'><B>Unsere Adresse:</B><BR><BR>Dr. med. Michael Fakharani<BR>Facharzt für Orthopädie, Schmerztherapie, Sportmedizin, Chirotherapie, ambulante Operationen und Akupunktur<BR><BR>Im Einkaufszentrum Blockdiek<BR><BR>Max-Säume-Straße 30<BR>28321 Bremen<BR><BR><BR></DIV>");
}

// -----------------------------------------------------------------------------
// Menue
// -----------------------------------------------------------------------------
var callPage="Home";
function printGroupStart(name) {document.write ( "<li><a>" + name + "</a><ul>" );}
function printLink(name, linkname) {
	if (name==callPage) document.write ("<li><span>" + name + "</span></li>");
	else {
		if (linkname == "") {linkname = name + ".html"};
		document.write ("<li><a href=" + linkname + ">" + name + "</a></li>");
	}
}
function printExtL(name, linkname) {
	document.write ("<li><a href=" + linkname + " target='_blank'>" + name + "</a></li>");
}
function printVideoLink(name, videoname) {
	document.write ("<li><a href='video/" + videoname + "' rel='vidbox' title='caption'>" + name + "</a></li>");
	//Videobox.open("your video page url","your caption","vidbox widht height");
	//<a href="http://www.youtube.com/watch?v=uhi5x7V3WXE" rel="vidbox" title="caption">our video1</a>
}
function printGroupEnd() {document.write ("</ul></li>");}
function printMenue (callPageInput) {
	callPage = callPageInput;
	document.write ("<ul id=Navigation>");
	printGroupStart("Praxis");
		printLink("Home", "index.htm");
		printLink("Aktuelles<BR>Pressestimmen", "aktuell.htm");
		printLink("Das Team", "team.htm");
		printLink("Unsere<BR>Räumlichkeiten", "raeume.htm");
		printLink("So finden Sie uns", "finden.htm");
		printLink("Tipps für Ihre Gesundheit", "links.htm");
		printLink("Mitgliedschaften", "mitgliedschaften.htm");
		printLink("Videos 1", "tvwartezimmer1.htm");
		printLink("Videos 2", "tvwartezimmer2.htm");
		printLink("Videos 3", "tvwartezimmer3.htm");
		printLink("Impressum", "impressum.htm");
	printGroupEnd();
	printGroupStart("Therapien");
		printLink("Physikalische Therapie", "physikalische.htm");
		printLink("Schmerztherapie", "schmerztherapie.htm");
		printLink("Röntgenbild-<BR> Schmerztherapie", "roentgenbild.htm");
	//	printLink("Arthrosetherapie", "");
		printLink("Ambulante Operationen", "ambulant.htm");
		printLink("Chirotherapie/<BR>Manuelle Therapie", "chirotherapie.htm");
		printLink("Minimal-invasive Bandscheiben OP mittels Nukleoplastie", "nukleoplastie.htm");
	printGroupEnd();
	printGroupStart("Sportmedizin");
		printLink("Röntgen-<BR>diagnostik", "roentgendiag.htm");
		printLink("Muskel- verspannungs- messung", "emg.htm"); // evntl. EMG Film verlinken
	//  printVideoLink("Test", "EMG-Medical.wmv");
	//	printLink("Tauchsport Untersuchung", "tauchsport.htm");
	printGroupEnd();
	printGroupStart("Kinderorthopädie");
		printLink("Empfehlung des Berufsverbandes", "http://aktion-orthofit.de/?dl_name=Vorsorgeuntersuchungsplan_BVOU.pdf");
		//"empfehlung.htm");
		printLink("Ultraschall Untersuchungen der Säuglingshüften", "saeuglingshueften.htm");
		printLink("Kinderfuß","kinderfuss.htm");
		printExtL("Skoliose-Untersuchungen", "http://de.wikipedia.org/wiki/Skoliose");
	printGroupEnd();
	printGroupStart("Chirotherapie");
		printLink("Chirotherapie/<BR>Manuelle Therapie", "chirotherapie.htm");
		printExtL("Triggerpunkt Behandlung", "http://de.wikipedia.org/wiki/Triggerpunkttherapie");
		printExtL("Physiotherapie/<BR>Kinesio-Taping", "http://www.orthinform.de/new/behandlung/behandlung.php?id=53");
	printGroupEnd();
	printGroupStart("Schmerztherapie");
		printLink("Allgemein", "schmerztherapie.htm");
		printLink("Akupunktur", "akupunktur.htm");
		printExtL("Neuraltherapie", "http://de.wikipedia.org/wiki/Neuraltherapie");
		//printLink("Wirbelsäulen Injektionen", "file:///E:/Periradikuläre-Therapie-Medical.wmv");   // <-- keine Daten 
		printLink("Bandscheiben-<BR>Stufendiagnostik", "roentgenbild.htm");
	printGroupEnd();
	document.write ("</ul>");
}
function hoverIE() {
	var LI = document.getElementById("Navigation").firstChild;
	do {
		if (sucheUL(LI.firstChild)) {LI.onmouseover=einblenden; LI.onmouseout=ausblenden;}
		LI = LI.nextSibling;
	}
	while(LI);
}
function sucheUL(UL) {
	do {
		if(UL) UL = UL.nextSibling;
		if(UL && UL.nodeName == "UL") return UL;
	}
	while(UL);
	return false;
}
function einblenden() {
	var UL = sucheUL(this.firstChild);
	UL.style.display = "block";
	UL.style.backgroundColor = "white";
}
function ausblenden() { sucheUL(this.firstChild).style.display = "none"; }
// -----------------------------------------------------------------------------
window.onload = function() { hoverIE(); }

