<!--
//alert("loading");
var msg = new Array();
Stamp = new Date();
today = Stamp.getDate();

index_msg = "* Opening van nieuwe ultramoderne kliniek vanaf februari 2005<a HREF=\"partner_mediclinic.shtml\">...&raquo;&raquo;</A><BR>* Vaser, liposelectie, liposculptuur plots ouderwets<a HREF=\"treat_contour_lipo_vaser.shtml\">...&raquo;&raquo;</A><BR>* McGhan style 510. De revolutie onder de borstprotheses<a HREF=\"treat_breasts_enlarge_proth_style510.shtml\">...&raquo;&raquo;</A><BR>"
msg[1] = "The best part of beauty is that which no picture can express. <I>Bacon, Sir Francis</I>";
msg[2] = "Beauty is the mark God sets on virtue.<BR><I>Emerson, Ralph Waldo</I>";
msg[3] = "The beautiful rests on the foundations of the necessary.<BR><I>Emerson, Ralph Waldo</I>";
msg[4] = "Beauty without grace is the hook without the bait.<BR><I>Emerson, Ralph Waldo</I>";
msg[5] = "If eyes were made for seeing, then Beauty is it's own excuse for being.<BR><I>Emerson, Ralph Waldo</I>";
msg[6] = "A thorn defends the rose, harming only those who would steal the blossom.<BR><I>Proverb, Chinese</I>";
msg[7] = "The best part of beauty is that which no picture can express.<BR><I>Bacon, Sir Francis</I>";
msg[8] = "Beauty is power; a smile is its sword.<BR><I>Reade, Charles</I>";
msg[9] = "Backward, turn backward, O Time, in your flight. Make me a child again just for to-night.<BR><I>Allen, Elizabeth Anne Chase Akers</I>";
msg[10] = "The secret of staying young is to live honestly, eat slowly, and lie about your age.<BR><I>Ball, Lucille Desiree</I>";
msg[11] = "Age is an ugly thing, and it goes on getting worse.<BR><I>Cooper, Diana</I>";
msg[12] = "If wrinkles must be written upon our brows, let them not be written upon the heart. The spirit should never grow old.<BR><I>Garfield, President James Abram</I>";
msg[13] = "There is nothing that makes its way more directly to the soul than beauty.<BR><I>Addison, Joseph</I>";
msg[14] = "The best part of beauty is that which no picture can express.<BR><I>Bacon, Sir Francis</I>";
msg[15] = "Beauty is the mark God sets on virtue.<BR><I>Emerson, Ralph Waldo</I>";
msg[16] = "The beautiful rests on the foundations of the necessary.<BR>(<I>Emerson, Ralph Waldo</I>)";
msg[17] = "Beauty without grace is the hook without the bait.<BR><I>Emerson, Ralph Waldo</I>";
msg[18] = "If eyes were made for seeing, then Beauty is it's own excuse for being.<BR><I>Emerson, Ralph Waldo</I>";
msg[19] = "A thorn defends the rose, harming only those who would steal the blossom.<BR><I>Proverb, Chinese</I>";
msg[20] = "The best part of beauty is that which no picture can express.<BR><I>Bacon, Sir Francis</I>";
msg[21] = "Beauty is power; a smile is its sword.<BR><I>Reade, Charles</I>";
msg[22] = "Backward, turn backward, O Time, in your flight. Make me a child again just for to-night.<BR><I>Allen, Elizabeth Anne Chase Akers</I>";
msg[23] = "The secret of staying young is to live honestly, eat slowly, and lie about your age.<BR><I>Ball, Lucille Desiree</I>";
msg[24] = "Age is an ugly thing, and it goes on getting worse.<BR><I>Cooper, Diana</I>";
msg[25] = "If wrinkles must be written upon our brows, let them not be written upon the heart. The spirit should never grow old.<BR><I>Garfield, President James Abram</I>";
msg[26] = "There is nothing that makes its way more directly to the soul than beauty.<BR><I>Addison, Joseph</I>";
msg[27] = "The best part of beauty is that which no picture can express.<BR><I>Bacon, Sir Francis</I>";
msg[28] = "Beauty is the mark God sets on virtue.<BR><I>Emerson, Ralph Waldo</I>";
msg[29] = "The beautiful rests on the foundations of the necessary.<BR><I>Emerson, Ralph Waldo</I>";
msg[30] = "Beauty without grace is the hook without the bait.<BR><I>Emerson, Ralph Waldo</I>";
msg[31] = "If eyes were made for seeing, then Beauty is it's own excuse for being.<BR><I>Emerson, Ralph Waldo</I>";
msg[32] = "A thorn defends the rose, harming only those who would steal the blossom.<BR><I>Proverb, Chinese</I>";
msg[33] = "The best part of beauty is that which no picture can express.<BR><I>Bacon, Sir Francis</I>";
msg[34] = "Beauty is power; a smile is its sword.<BR><I>Reade, Charles</I>";
msg[35] = "Backward, turn backward, O Time, in your flight. Make me a child again just for to-night.<BR><I>Allen, Elizabeth Anne Chase Akers</I>";
msg[36] = "The secret of staying young is to live honestly, eat slowly, and lie about your age.<BR><I>Ball, Lucille Desiree</I>";
msg[37] = "Age is an ugly thing, and it goes on getting worse.<BR><I>Cooper, Diana</I>";
msg[38] = "If wrinkles must be written upon our brows, let them not be written upon the heart. The spirit should never grow old.<BR><I>Garfield, President James Abram</I>";
msg[39] = "There is nothing that makes its way more directly to the soul than beauty.<BR><I>Addison, Joseph</I>";
msg[40] = "The best part of beauty is that which no picture can express.<BR><I>Bacon, Sir Francis</I>";
msg[41] = "Beauty is the mark God sets on virtue.<BR><I>Emerson, Ralph Waldo</I>";

function writeTip(number) { 
	if (number==100)
	{
		document.write(index_msg);
		document.write("<br><br>Meer info <font color=\"#C0D62D\">&raquo;&raquo; </font>a href=\"http://www.mediclinic.eu\">Klik hier</a>");
	}
	else
	{
		document.write(msg[today+number]);
		document.write("<br><br>Meer info <font color=\"#C0D62D\">&raquo;&raquo; </font><a href=\"http://www.mediclinic.eu\">Klik hier</a>");
	}
}


////////////////////////////////////////////////////////////////////////////////////////////////////
//MacroMedia UltraDev Code
////////////////////////////////////////////////////////////////////////////////////////////////////

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  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; x.src=a[i+2];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (C) 1999 Dan Steinman
////////////////////////////////////////////////////////////////////////////////////////////////////

function BrowserCheck() {
	var b = navigator.appName
	if (b=="Netscape") this.b = "ns"
	else if (b=="Microsoft Internet Explorer") this.b = "ie"
	else this.b = b
	this.v = parseInt(navigator.appVersion)
	this.ns = (this.b=="ns" && this.v>=4)
	this.ns4 = (this.b=="ns" && this.v==4)
	this.ns5 = (this.b=="ns" && this.v==5)
	this.ie = (this.b=="ie" && this.v>=4)
	this.ie4 = (navigator.userAgent.indexOf('MSIE 4')>0)
	this.ie5 = (navigator.userAgent.indexOf('MSIE 5')>0)
	if (this.ie5) this.v = 5
	this.min = (this.ns||this.ie)
}

////////////////////////////////////////////////////////////////////////////////////////////////////
//  Web In One - WIO - http://www.wio.be
////////////////////////////////////////////////////////////////////////////////////////////////////

/* MAIN */

var objBC = new BrowserCheck();
if (objBC.ns && objBC.v <= 4){
	document.write('<link rel="stylesheet" type="text/css" href="../css/ns.css">')
}else{
	document.write('<link rel="stylesheet" type="text/css" href="../css/ie.css">')
}


////////////////////////////////////////////////////////////////////////////////////////////////////
// OTHER FUNCTIONS

/*
	Checks for value in searchbox and submits form to search.asp
*/

function searchSite(){
	alert('to be implemented');
}

////////////////////////////////////////////////////////////////////////////////
/*
	Writes current date on clients PC
*/

function writeDatum(){
	var vandaag = new Date();
	var dag = vandaag.getDay();
	switch(dag){
		case 0: dag = "Zondag";
				break;
		case 1: dag = "Maandag";
				break;
		case 2: dag = "Dinsdag";
				break;
		case 3: dag = "Woensdag";
				break;
		case 4: dag = "Donderdag";
				break;
		case 5: dag = "Vrijdag";
				break;
		case 6: dag = "Zaterdag";
				break;
	}
	var maand = vandaag.getMonth();
	switch(maand){
		case 0: maand = "januari";
				break;
		case 1: maand = "februari";
				break;
		case 2: maand = "maart";
				break;
		case 3: maand = "april";
				break;
		case 4: maand = "mei";
				break;
		case 5: maand = "juni";
				break;
		case 6: maand = "juli";
				break;
		case 7: maand = "augustus";
				break;
		case 8: maand = "september";
				break;
		case 9: maand = "october";
				break;
		case 10: maand = "november";
				break;
		case 11: maand = "december";
				break;
	}
	var ditjaar = vandaag.getFullYear();
	document.write("<span class='datetext'>" + vandaag.getDate() + " " + maand.substring(0,3) + " " + ditjaar + "</span>");
}

////////////////////////////////////////////////////////////////////////////////////////////////////
/*
	Writes Yahoopath, needs HM_Arrays.js, and in it WIO_topMenu array AND variable WIO_strHomepage
*/

function writeYahooPath(){
	document.write("<div class='yahoopath'>[<a href='sitemap.shtml'>" + WIO_strSitemap + "</a>] - ")
	for (var i=0;i < arguments.length; i++){
		if (i==0){
			if (i < (arguments.length -1)){
				document.write("<a href='" + WIO_topMenu[arguments[i]-1][1] + "'>" + WIO_topMenu[arguments[i]-1][0] + "</a>");
			}else{
				document.write(WIO_topMenu[arguments[i]-1][0]);
			}
		}else{
			var arrName = "HM_Array" + arguments[0] ;			
			for(var j=1; j <= i;j++){							
				if( j != i){
					arrName += "_" + arguments[j];
				}else{
					arrName += "[" + arguments[j] + "]";
				}
			}
			var zval = eval((arrName) + "[0]")
			if (i < (arguments.length -1)){
				document.write("<a href='" + eval(arrName + "[1]") + "'>" + zval.replace(/\s{2}/g,"") + "</a>")
			}else{
				document.write(zval.replace(/\s{2}/g,""))
			}
		}		
		if (i != arguments.length-1){
			//document.write(" >> ");
			document.write('<img src="../images/yahoospacer.gif" align="absbottom" hspace="3" width="5" height="11" border="0"> ');
		}
	}
	if(arguments.length == 0){
		document.write(WIO_strHomepage)
	}
	document.write("</div>");
}

////////////////////////////////////////////////////////////////////////////////////////////////////
/*
	Dynamically writes full sitemap.
*/
function writeSiteMap(){
	document.writeln('<ul class="lev2">');
	for (var i=0;i < WIO_topMenu.length; i++){		
		document.writeln('<li><a href="' + WIO_topMenu[i][1] + '">' +  WIO_topMenu[i][0] + '</a></li>')
		if(i != (WIO_topMenu.length -1)){
			writeSubLevel("HM_Array" + (i+1),2);
		}
	}
	document.writeln('</ul>');	
}

//private function
function writeSubLevel(strArrName, intLevel){
	var objArr = eval(strArrName);
	if (objArr != null){
		document.writeln("<UL class='lev" + intLevel + "'>");
		for (var i=1; i< objArr.length; i++){
			document.writeln('<li><a href="' + objArr[i][1] + '">' + objArr[i][0].replace(/\s{2}/g,"") + '</a></li>');
			if (objArr[i][4]){
				writeSubLevel(strArrName + "_" + i, intLevel + 1);
			}
		}
		document.writeln("</UL>");
	}else{
		document.writeln("<b>No Object: </b>" + strArrname + "<br>");
	}

}
////////////////////////////////////////////////////////////////////////////////////////////////////

/*
  Opens a window in the middle of the screen
	strURL: relative URL to current HTML page
	strScroll: yes | no
*/
var openwins = 1;
function openwin(strURL,intWidth,intHeight,strScroll){
	var winl = (top.screen.width - intWidth)/2;
	var wint = (top.screen.height - intHeight) /2;
	var winname = "windw" + openwins;
	openwins++;
	if (strScroll == null){
		strScroll = "yes";
	}
	var wfeatures  = "height=" + intHeight + ",width=" + intWidth + ",scrollbars=" + strScroll+",resizable";
	wfeatures += objBC.ie ?  (",top="+wint+",left="+winl) : (",screenX="+wint+",screenY="+winl);
	var mywin = top.open(strURL,winname,wfeatures);
	if (objBC.v >= 4) {
		mywin.window.focus();
	}
}

//////////////////////////////////////////////////////////////////////////////////////////////////////
/* Opens search popup*/

function searchWin(){
	openwin("popup_search.asp",570,250,"yes");
}

//////////////////////////////////////////////////////////////////////////////////////////////////////
/*
	Checks for opener window, if presents opens link in it, otherwise opens new window with link in it.
*/

function mainLink(strURL){
	if (top.opener){
		top.opener.location.href = strURL;
	}else{
		openwin(strURL,790,510,"yes")
	}
}
//////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////
/* LANGUAGE SWITCH */
/*
	Replaces /[lang]/ in full URL (including Querystring) by language.
	Array of possible languages in function !!
*/
function switchLanguage(strLang){
	//Possible languages	
	var arrPosLang = new Array("NL","FR")
	
	//Check language to switch to
	var blnNewLangOK = false;
	for (var j=0; j <arrPosLang.length; j++){
		if (arrPosLang[j].toUpperCase() == strLang.toUpperCase()){
			blnNewLangOK = true;
			break;
		}		
	}
	if (!blnNewLangOK){
		alert('Illegal language to switch to: ' + strLang);
		return;
	}
	
	//Variables
	var strCurURL, strCurLang, strNewURL, intBegin, intEnd,blnLangFound, strURLBegin, strURLEnd;
	blnLangFound = false;
	
	//Determine current language
	strCurURL = self.location.href.toUpperCase();
	strRealURL = self.location.href;
	for (var i=0; i< arrPosLang.length; i++){
		var strSearch = "/" + arrPosLang[i].toUpperCase() + "/";
		if(strCurURL.indexOf(strSearch) >= 0){
			strCurLang = arrPosLang[i];
			blnLangFound = true;
			break;
		}
	}
	
	//Determine new URL
	if (blnLangFound){
		strSearch = "/" + strCurLang + "/";
		intBegin = strCurURL.indexOf(strSearch);
		intEnd = intBegin + strSearch.length;
		strURLBegin = strRealURL.substring(0,intBegin);
		strURLEnd = strRealURL.substring(intEnd);
		strNewURL = strURLBegin + "/" + strLang.toLowerCase() + "/" + strURLEnd;
		self.location.href = strNewURL;
		
	}else{      	
		alert('Could not determine current language.'); 
		return; 
	}	
}

//-->