<!-- /*********   FSnD statistics    Copyright:  FSnD(Klaus@FSnD.de)   ************/-->

fsnd_statistics = new Image(1,1);
fsnd_statistics.src = "http://www.fsnd.de/statistics/add_stats.php?id=2&pwd=martin"+"&refer="+escape(document.referrer)+"&scrd="+screen.colorDepth+"&scrw="+screen.width+"&doc_url="+document.URL;

/*** SET BUTTON'S FOLDER HERE ***/
var buttonFolder = "../images/";

/*** SET BUTTONS' FILENAMES HERE ***/
upSources = new Array( "empty.jpg",
                       "empty.jpg",
					   "empty.jpg",
					   "empty.jpg",
					   "empty.jpg",
					   "empty.jpg",
					   "empty.jpg",
					   "empty.jpg",
					   "empty.jpg" );
 
overSources = new Array( "empty.jpg",
                         "empty.jpg",
						 "empty.jpg",
						 "empty.jpg",
						 "empty.jpg",
						 "empty.jpg",
						 "empty.jpg",
						 "empty.jpg",
						 "empty.jpg" );

// SUB MENUS DECLARATION
subInfo = new Array();
subInfo[1] = new Array();
subInfo[2] = new Array();
subInfo[3] = new Array();
subInfo[4] = new Array();
subInfo[5] = new Array();
subInfo[6] = new Array();
subInfo[7] = new Array();
subInfo[8] = new Array();
subInfo[9] = new Array();
 

//*** SET SUB MENUS TEXT LINKS AND TARGETS HERE ***//

//<Praxis
subInfo[1][1] = new Array("&#149;&nbsp;Dr.med. M. Zoppelt","/pr_drzoppelt.html","");
subInfo[1][2] = new Array("&#149;&nbsp;Praxisansichten","/pr_praxisansichten.html","");
subInfo[1][3] = new Array("&#149;&nbsp;Klinik Aufenthalt","/klinik_unterbringung_aufenthalt.html","");
//>Praxis

//<Gesicht/Falten
subInfo[2][1] = new Array("&#149;&nbsp;Zornesfalten (b&ouml;ser Blick)","/ft_boeser_blick.html","");
subInfo[2][2] = new Array("&#149;&nbsp;Stirnfalten","/ft_stirnfalten.html","");
subInfo[2][3] = new Array("&#149;&nbsp;Kr&auml;henf&uuml;&szlig;e","/ft_kraehenfuesse.html","");
subInfo[2][4] = new Array("&#149;&nbsp;Face Lift","/gs_facelift.html","");
subInfo[2][5] = new Array("&#149;&nbsp;Augenlidkorrekturen","/gs_augenlidkorrekturen.html","");
subInfo[2][6] = new Array("&#149;&nbsp;Peelings","/cp_peelings.html","");
subInfo[2][7] = new Array("&#149;&nbsp;Hautauffrischung","/cp_hautauffrischung.html","");
subInfo[2][8] = new Array("&#149;&nbsp;Aknenarben","/cp_aknenarben.html","");
subInfo[2][9] = new Array("&#149;&nbsp;Lippenaufbau","/fi_lippenaufbau.html","");
subInfo[2][10] = new Array("&#149;&nbsp;Kollagen","/fi_kollagen.html","");
subInfo[2][11] = new Array("&#149;&nbsp;Dermabrasion","/dermabrasion.html","");
subInfo[2][12] = new Array("&#149;&nbsp;Hyalurons&auml;ure","/fi_hyaluronsaeure.html","");
subInfo[2][13] = new Array("&#149;&nbsp;Polysacharariden (New Fill)","/fi_new_fill.html","");
subInfo[2][14] = new Array("&#149;&nbsp;Artecoll","/fi_artecoll.html","");
subInfo[2][15] = new Array("&#149;&nbsp;Eigenfett","/fi_eigenfett.html","");
subInfo[2][16] = new Array("&#149;&nbsp;Goretexf&auml;den (Goldf&auml;den)","/fi_goretexfaeden.html","");
subInfo[2][17] = new Array("&#149;&nbsp;Mesotherapie Mesolift","/mesotherapie_mesolift.html","");
subInfo[2][18] = new Array("&#149;&nbsp;Wangen Profilplastiken","/profilplastik_wangen.html","");
subInfo[2][19] = new Array("&#149;&nbsp;Preise/Kosten","/preise.html","");

//>Gesicht/Falten
//<Körper
subInfo[3][1] = new Array("&#149;&nbsp;Gesichtsfalten (Resurfacing)","/ls_gesichtsfalten.html","");
subInfo[3][2] = new Array("&#149;&nbsp;Altersflecken","/ls_altersflecken.html","");
subInfo[3][3] = new Array("&#149;&nbsp;Kleine &Auml;derchen (Couperose)","/ls_couperose.html","");
subInfo[3][4] = new Array("&#149;&nbsp;Besenreiser","/ls_besenreiser.html","");
subInfo[3][5] = new Array("&#149;&nbsp;Hautauffrischung (Rejuvenation)","/ls_hautauffrischung.html","");
subInfo[3][6] = new Array("&#149;&nbsp;Enthaarung Epilation","/ls_enthaarung.html","");
subInfo[3][7] = new Array("&#149;&nbsp;Botox gegen Schwitzen","/sw_botox_gg_schwitzen.html","");
subInfo[3][8] = new Array("&#149;&nbsp;Bauch","/ks_bauch.html","");
subInfo[3][9] = new Array("&#149;&nbsp;Beine","/ks_beine.html","");
subInfo[3][10] = new Array("&#149;&nbsp;Arme","/ks_arme.html","");
subInfo[3][11] = new Array("&#149;&nbsp;Haartransplantationen","/ha_haartransplantationen.html","");
subInfo[3][12] = new Array("&#149;&nbsp;Preise/Kosten","/preise.html","");

//>Körper
//<fettabsaugen
subInfo[4][1] = new Array("&#149;&nbsp;Fettabsaugung (Liposuction)","/fa_fettabsaugung.html","");
subInfo[4][2] = new Array("&#149;&nbsp;Liposucktion Techniken","/techniken_fettabsaugung.html","");
subInfo[4][3] = new Array("&#149;&nbsp;Bauch Fettabsaugung","/bauch_fettabsaugung.html","");
subInfo[4][4] = new Array("&#149;&nbsp;Doppelkinn Kinn Fettabsaugung","/doppelkinn_kinn_fettabsaugung.html","");
subInfo[4][5] = new Array("&#149;&nbsp;Reiterhosen Fettabsaugung","/reiterhosen_fettabsaugung.html","");
subInfo[4][6] = new Array("&#149;&nbsp;H&uuml;fte Fettabsaugung","/huefte_fettabsaugung.html","");
subInfo[4][7] = new Array("&#149;&nbsp;Zellulitis Cellulite","/zellulites_fettabsaugung.html","");
subInfo[4][8] = new Array("&#149;&nbsp;Fettwegspritze","/fw_fettwegspritze.html","");
subInfo[4][9] = new Array("&#149;&nbsp;Hintern Po Absaugen","/po_hintern_fettabsaugung.html","");
subInfo[4][10] = new Array("&#149;&nbsp;Lipome Behandlung","/lipome_absaugen.html","");
subInfo[4][11] = new Array("&#149;&nbsp;Schweissdr&uuml;sen Absaugen","/schweissdruesen_absaugung.html","");
subInfo[4][12] = new Array("&#149;&nbsp;Gynaekomastie Brust Mann","/gynaekomastie_brust_mann.html","");
subInfo[4][13] = new Array("&#149;&nbsp;Liposculpture","/liposculpture.html","");
subInfo[4][14] = new Array("&#149;&nbsp;Preise/Kosten","/preise.html","");

//>Nasen/Ohren/Haare
//<Lipodystrophie
subInfo[5][1] = new Array("&#149;&nbsp;Lipoatrophie","/li_lipoatrophie.html","");
subInfo[5][2] = new Array("&#149;&nbsp;Aquamid","/li_aquamid.html","");
subInfo[5][3] = new Array("&#149;&nbsp;Bio-Alcamid","/li_bio_alcamid.html","");
subInfo[5][4] = new Array("&#149;&nbsp;Preise/Kosten","/preise.html","");

//>Lipodystrophie
//<Dermatologie
subInfo[6][1] = new Array("&#149;&nbsp;Hautkrebsvorsorge","/de_hautkrebsvorsorge.html","");
subInfo[6][2] = new Array("&#149;&nbsp;Ambulante Operationen","/de_ambulant.html","");
subInfo[6][3] = new Array("&#149;&nbsp;Videodokumentation","/de_videodokumentation.html","");
subInfo[6][4] = new Array("&#149;&nbsp;Proktologie - Hämorrhoiden","/de_prokt_haemorrhoiden.html","");
subInfo[6][5] = new Array("&#149;&nbsp;Proktologie - Analfissur","/de_prokt_analfissur.html","");
subInfo[6][6] = new Array("&#149;&nbsp;Proktologie - Analekzeme","/de_prokt_analekzeme.html","");
subInfo[6][7] = new Array("&#149;&nbsp;Proktologie - Marisken","/de_prokt_marisken.html","");
subInfo[6][8] = new Array("&#149;&nbsp;Phlebologie - Retikuläre Varizen","/de_phleb_varizen.html","");
subInfo[6][9] = new Array("&#149;&nbsp;Phlebologie - Ultraschalluntersuchung","/de_phleb_ultraschalluntersuchung.html","");
subInfo[6][10] = new Array("&#149;&nbsp;Phlebologie - Verödung von Besenreisern","/de_phleb_besenreiser.html","");
subInfo[6][11] = new Array("&#149;&nbsp;Phlebologie - Thrombosen","/de_phleb_thrombosen.html","");
subInfo[6][12] = new Array("&#149;&nbsp;Phlebologie - Offene Beine","/de_phleb_beine.html","");
subInfo[6][13] = new Array("&#149;&nbsp;Allergologie - Heuschnupfen","/de_allerg_heuschnupfen.html","");
subInfo[6][14] = new Array("&#149;&nbsp;Allergologie - Neurodermitis","/de_allerg_neurodermitis.html","");
subInfo[6][15] = new Array("&#149;&nbsp;Preise/Kosten","/preise.html","");

//>Dermatologie
//<Kontakt
subInfo[7][1] = new Array("&#149;&nbsp;Kontaktformular","/ko_kontaktformular.html","");
subInfo[7][2] = new Array("&#149;&nbsp;Kurse f&uuml;r &Auml;rzte","/aerzte_kurse.html","");
subInfo[7][3] = new Array("&#149;&nbsp;Impressum","/ko_impressum.html","");
subInfo[7][4] = new Array("&#149;&nbsp;Klinik Aufenthalt","/klinik_unterbringung_aufenthalt.html","");
subInfo[7][4] = new Array("&#149;&nbsp;Sitemap","/sitemap.htm","");
subInfo[7][5] = new Array("&#149;&nbsp;Preise/Kosten","/preise.html","");

//>Kontakt
//<Home
//>Home

//*** SET SUB MENU POSITION ( RELATIVE TO BUTTON ) ***//
var xSubOffset = -10;
var ySubOffset = 8;

//*** NO MORE SETTINGS BEYOND THIS POINT ***//
var overSub = false;
var delay = 1000;
totalButtons = upSources.length;
// alert( "buttons: " + totalButtons );

// GENERATE SUB MENUS on startup
for( x=0; x < totalButtons; x++ ) 
{
	// SET EMPTY DIV FOR BUTTONS WITHOUT SUBMENU
	if ( subInfo[x+1].length < 1 ) 
	{ 
		document.write('<div id="submenu' + (x+1) + '">');
	// SET DIV FOR BUTTONS WITH SUBMENU
	} 
	else 
	{
		document.write( '<div id="submenu' + (x+1) + '" class="dropmenu" ' );
		document.write( 'onMouseOver="overSub=true;' );
		document.write( 'setOverImg(\'' + (x+1) + '\',\'\');"' );
		document.write( 'onMouseOut="overSub=false;' );
		document.write( 'setTimeout(\'hideSubMenu(\\\'submenu' + (x+1) + '\\\')\',delay);' );
		document.write( 'setOutImg(\'' + (x+1) + '\',\'\');">' );


		document.write('<ul>');
		for( k=0; k < subInfo[x+1].length-1; k++ ) 
		{
			document.write( '<li>' );
			document.write( '<a href="' + subInfo[x+1][k+1][1] + '" ' );
			document.write( 'target="' + subInfo[x+1][k+1][2] + '">' );
			document.write( subInfo[x+1][k+1][0] + '</a>' );
			document.write( '</li>' );
		}
		document.write( '</ul>' );
	}
	document.write( '</div>' );
}
//alert( "Wrote everything to document" );





//*** MAIN BUTTONS FUNCTIONS ***//
// PRELOAD MAIN MENU BUTTON IMAGES
function preload() 
{
	for ( x=0; x<totalButtons; x++ ) 
	{
		buttonUp = new Image();
		buttonUp.src = buttonFolder + upSources[x];
		buttonOver = new Image();
		buttonOver.src = buttonFolder + overSources[x];
	}
}

// SET MOUSEOVER BUTTON
function setOverImg(But, ID) 
{
	document.getElementById('button' + But + ID).src = buttonFolder + overSources[But-1];
}

// SET MOUSEOUT BUTTON
function setOutImg(But, ID) 
{
	document.getElementById('button' + But + ID).src = buttonFolder + upSources[But-1];
}



//*** SUB MENU FUNCTIONS ***//
// GET ELEMENT ID MULTI BROWSER
function getElement(id) 
{
    return document.getElementById ? document.getElementById(id) : document.all ? document.all(id) : null; 
    if( navigator.userAgent.indexOf( "Firefox" ) >= 0 )
	{
	    // Firefox does not like document.getElementById()
	    //alert( "in getElement(Firefox) for id: " + id + "\nuserAgent: " + navigator.userAgent );
        return document.getElementById(id);
	}
	else
	{
        //alert( "in getElement() for id: " + id + "\nuserAgent: " + navigator.userAgent );
		return document.getElementById ? document.getElementById(id) : document.all ? document.all(id) : null; 
	}
}

// GET X COORDINATE
function getRealLeft(id) 
{ 
	var el = getElement(id);
	if (el) 
	{ 
		xPos = el.offsetLeft;
		tempEl = el.offsetParent;
		while (tempEl != null) 
		{
			xPos += tempEl.offsetLeft;
			tempEl = tempEl.offsetParent;
		} 
		return xPos;
	}
	else
	{
	    return 0;
	} 
} 

// GET Y COORDINATE
function getRealTop(id) 
{
 var el = getElement(id);
 
	if( el ) 
	{ 
		yPos = el.offsetTop;
		tempEl = el.offsetParent;
		while (tempEl != null) 
		{
			yPos += tempEl.offsetTop;
			tempEl = tempEl.offsetParent;
		}
		return yPos;
	}
	else
	{
		return 0;
	}
}

// MOVE OBJECT TO COORDINATE
function moveObjectTo( objectID, x, y ) 
{
 var el = getElement( objectID );
 
    // alert( "Element is: " + el + "\nX is: " + x + "\nY is: " + y );
	el.style.left = x + "px";
	el.style.top = y + "px";
}

// MOVE SUBMENU TO CORRESPONDING BUTTON
function showSubMenu( subID, buttonID ) 
{
	//alert( "Start of showSubMenu" );
	//if( !navigator.userAgent.indexOf( "MSIE" ) )
	//{
    //	alert( navigator.userAgent );
	//}
	hideAllSubMenus();
	butX = getRealLeft( buttonID );
	butY = getRealTop( buttonID );
	//alert( "Moving: " + subID + " for button: " + buttonID + "\n butX: " + butX + " butY: " + butY );
	moveObjectTo( subID, butX + xSubOffset, butY + ySubOffset );
	//alert( "End of showSubMenu" );
}

// HIDE ALL SUB MENUS
function hideAllSubMenus() 
{
    //return;
	for ( x=0; x < totalButtons; x++ ) 
	{
		moveObjectTo( "submenu" + (x+1) + "", -500,  -500 );
	}
}

// HIDE ONE SUB MENU
function hideSubMenu( subID ) 
{
    //return;
	if ( overSub == false ) 
	{
		moveObjectTo( subID, -500, -500 );
	}
}


function FSnD_openBrWindow( theURL, winName, features ) 
{ 
  //v2.0
  winName=window.open( theURL, winName, features );
  winName.focus();
}


//preload();

