
function montre(id){if(document.getElementById){document.getElementById(id).style.display="block";}else if(document.all){document.all[id].style.display="block";}else if(document.layers){document.layers[id].display="block";}}
function cache(id){if(document.getElementById){document.getElementById(id).style.display="none";}else if(document.all){document.all[id].style.display="none";}else if(document.layers){document.layers[id].display="none";}}
function ShowPic(foto,beschrijving,breedte,hoogte) {
  myWin= open("", "displayWindow",
    "width=" + breedte + ",height=" + hoogte + ",status=no,toolbar=no,menubar=no");

  // open document for further output
  myWin.document.open();

  // create document
  myWin.document.write("<html><head><title>");
  myWin.document.write(beschrijving);
  myWin.document.write("</title></head><body style='margin: 0px;'>");
  myWin.document.write("<center>");
  myWin.document.write("<img src='");
  myWin.document.write(foto);
  myWin.document.write("'>");
  myWin.document.write("</center>");
  myWin.document.write("</body></html>");

  // close the document - (not the window!)
  myWin.document.close();
}

function externalLinks() {
if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;
function addbookmark(){bookmarkurl="http://www.gidsenkringbrugge.com"
bookmarktitle="Bookmark Gidsenkring Brugge"
if(document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)}
function mailsome1(){who=prompt("Wie >: ","iemand@jouvriend.net");what=prompt("Enter the subject: ","Gidsenkring Brugge: check this one out");if(confirm("Link doormailen naar "+who+" met volgende vermelding "+what+"?")==true){parent.location.href='mailto:'+who+'?subject='+what+'';}}
var winheight=250
var winwidth=200
var pop=null
step=1;function popswindows(url,name,width,height){if(!document.all){if(!document.layers){paramstp="height="+height+",width="+width+",top=10"+",left=10,scrollbars=no,location=no"+",directories=no,status=no,menubar=no,toolbar=no,resizable=no"
pop=window.open(url,name,paramstp);if(pop.focus){pop.focus();}
return;}
else{LeftPosition=(screen.width)?(screen.width-width)/2:100;TopPosition=(screen.height)?(screen.height-height)/2:100;paramstp="height="+height+",width="+width+",top="+TopPosition+",left="+LeftPosition+",scrollbars=yes,location=no"+",directories=no,status=no,menubar=no,toolbar=no,resizable=no"
pop=window.open(url,name,paramstp);loadpos=height/2-40
if(pop.focus){pop.focus();}
return;}}
LeftPosition=(screen.width)?(screen.width-width)/2:100;TopPosition=(screen.height)?(screen.height-height)/2:100;paramstp="height="+winheight+",width="+winwidth+",top="+TopPosition+",left="+LeftPosition+",scrollbars=yes,location=no"+",directories=no,status=no,menubar=no,toolbar=no,resizable=no"
pop=window.open(url,name,paramstp);x=y=step
var z=1
while(z<200){pop.resizeBy(x,y)
z++;}
if(pop.focus){pop.focus();}}
var str=""
function setMessage(){if(str==""){for(var ii=0;ii<120;ii+=10){str=str+"            "}
str=str+"De West-Vlaamse Gidsenkring Brugse Vrije"}
else{str=str.substring(2,str.length)}
window.status=str
STBTimeOutID=window.setTimeout('setMessage()',100)}
function selected(cal,date){cal.sel.value=date;if(cal.dateClicked&&(cal.sel.id=="sel1"||cal.sel.id=="sel3"))
cal.callCloseHandler();}
function closeHandler(cal){cal.hide();calendar=null;}
function showCalendar(id,format,showsTime,showsOtherMonths){var el=document.getElementById(id);if(calendar!=null){calendar.hide();}else{var cal=new Calendar(true,null,selected,closeHandler);if(typeof showsTime=="string"){cal.showsTime=true;cal.time24=(showsTime=="24");}
if(showsOtherMonths){cal.showsOtherMonths=true;}
calendar=cal;cal.setRange(1900,2070);cal.create();}
calendar.setDateFormat(format);calendar.parseDate(el.value);calendar.sel=el;calendar.showAtElement(el.nextSibling,"Br");return false;}
var MINUTE=60*1000;var HOUR=60*MINUTE;var DAY=24*HOUR;var WEEK=7*DAY;function isDisabled(date){var today=new Date();return(Math.abs(date.getTime()-today.getTime())/DAY)>10;}
function flatSelected(cal,date){var el=document.getElementById("preview");el.innerHTML=date;}
function showFlatCalendar(){var parent=document.getElementById("display");var cal=new Calendar(true,null,flatSelected);cal.weekNumbers=false;cal.setDisabledHandler(isDisabled);cal.setDateFormat("%A, %B %e");cal.create(parent);cal.show();}
var tl=new Array("Iedereen is welkom!","We hope you will enjoy it!");var speed=60;var index=0;text_pos=0;var str_length=tl[0].length;var contents,row;function type_text(){contents='';row=Math.max(0,index-4);while(row<index)
contents+=tl[row++]+'\r\n';document.forms[0].elements[0].value=contents+tl[index].substring(0,text_pos)+"_";if(text_pos++==str_length){text_pos=0;index++;if(index!=tl.length){str_length=tl[index].length;setTimeout("type_text()",1500);}}else
setTimeout("type_text()",speed);}
var win=null;function NewWindow(mypage,myname,w,h,scroll){LeftPosition=(screen.width)?(screen.width-w)/2:0;TopPosition=(screen.height)?(screen.height-h)/2:0;settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win=window.open(mypage,myname,settings)}
