<!-- 
function check_server()
{
check_server_dir ='http://www.loopgroepbedum.nl/images_lb/'

on_server=true

var img = new Image()
function errorHandler (evt){
   if (this.src.indexOf(check_server_dir) !=-1)
   on_server=false					//server is off, use local dir
}
img.onerror = errorHandler
img.src=check_server_dir+'server_check.gif'		//check if server is on
//test:
//on_server=false
}

function dir_selection()
{
if (on_server){
display_2000=false
display_2001=false
display_2002=false
display_2003=false
display_2004=true
display_2005=true
display_2006=true
display_2007=true
display_2008=true
}
else
{
display_2000=true
display_2001=true
display_2002=true
display_2003=true
display_2004=true
display_2005=true
display_2006=true
display_2007=true
display_2008=true
}

}

function dir_locations()
{
check_server()

if (on_server)
{
//remote settings:
webdir_ph='../../foto_archief_org/'
webdir_wp='../../foto_archief_org/'
webdir_lb='../../foto_archief_org/'
webdir_lb2='../../foto_archief_org/'
webdir_lb3='../../foto_archief_org/'
webdir_ph_image='../../foto_archief_org/'
webdir_lb_image='../../foto_archief_org/'
webdir_lb2_image='../../foto_archief_org/'
webdir_lb3_image='../../foto_archief_org/'
webdir_sohosted='../../foto_archief_org/'

dir_hamburg2003 = webdir_wp+'images/Hamburg2003/'
downloaddir_extern='http://www.loopgroepbedum.nl/downloads/'
webdir_extern     ='http://www.loopgroepbedum.nl/'
webdir_gallerij   ='images/'
webdir_joomla_gallerij='gallerij/images/'
}
else
{
//local settings:
webdir_local='c:/My Webs/NL_extern/foto_archief_compleet/'
webdir_wp= webdir_local
webdir_ph_image=webdir_local+'images/'
webdir_wp_image=webdir_local+'images/'
webdir_lb_image=webdir_local+'images/'
webdir_lb2_image=webdir_local+'images/'
webdir_lb3_image=webdir_local+'images/'
dir_hamburg2003 = webdir_wp+'images/Hamburg2003/'
downloaddir_extern='c:/My Webs/NL_Lycos_images_downloads_extern/'
webdir_extern     ='c:/My Webs/NL_Lycos_images_downloads_extern/'
webdir_gallerij   ='c:/My Webs/NL_extern/gallerij/images/'
}
//
//general settings:
foto_archief_pagina  ='foto_archief.htm'
foto_archief_pagina_2='../../foto_archief.htm'

dir_selection()
}


function pr(n) 
{
document.write(n,'\n');
}

function layout()
{
//if (navigator.appName == "Netscape")
if (document.layers)
{
pr('<body bgcolor="000066" text="#FFFF00" link="#00FFFF" vlink="#00FF00" alink="#FFFFFF">')
}
else
{
pr('<body>')
pr('<link rel=Stylesheet href="css/lgb.css" type="text/css">')
dir_locations()
}

}

function layout_formulier()
{
//if (navigator.appName == "Netscape")
if (document.layers)
{
pr('<body bgcolor="000066" text="#FFFF00" link="#00FFFF" vlink="#00FF00" alink="#FFFFFF">')
}
else
{
pr('<body>')
pr('<link rel=Stylesheet href="../css/lgb.css" type="text/css">')
dir_locations()
}

}

function layout_krant()
{
//if (navigator.appName == "Netscape")
if (document.layers)
{
pr('<body bgcolor="000066" text="#FFFF00" link="#00FFFF" vlink="#00FF00" alink="#FFFFFF">')
}
else
{
pr('<body>')
pr('<link rel=Stylesheet href="../../css/lgb.css" type="text/css">')
dir_locations()
}
}

function layout_images()
//18.1.04 at this moment identical with layout_krant
{
//if (navigator.appName == "Netscape")
if (document.layers)
{
pr('<body bgcolor="000066" text="#FFFF00" link="#00FFFF" vlink="#00FF00" alink="#FFFFFF">')
}
else
{
pr('<body>')
pr('<link rel=Stylesheet href="../../css/lgb.css" type="text/css">')
dir_locations()
}

}


function layout_with_background_image(backgroundimage)
{
//if (navigator.appName == "Netscape")
if (document.layers)
{
pr('<body bgcolor="000066" text="#FFFF00" link="#00FFFF" vlink="#00FF00" alink="#FFFFFF">')
}
else
{
pr('<body>')
pr('<link rel=Stylesheet href="css/lgb.css" type="text/css">')
pr('<span style="position: absolute; left: 200; top: 0; z-index: -1">')
document.write('<img border="0" src="')
document.write(backgroundimage,'"></span>')
document.write('\n')
}

}

function backto()
{
document.write('<center>')
document.write('<form>')
//document.write('<input type=BUTTON value="Terug" onclick="history.back(-1)">')
//added 28.3.2008
document.write('<input type=BUTTON value="Terug" onclick="history.back(-1)"><a target="_blank" href="http://v1.nedstatbasic.net/stats?ACBETABVd71tj4mFkNkAxOC+15Tw"><img src="http://m1.nedstatbasic.net/n?id=ACBETABVd71tj4mFkNkAxOC+15Tw" border="0" nosave width="1" height="1">')
document.write('</form>')
document.write('</center>')

}

function lastupdated()
{
document.write('<I>Last updated '+document.lastModified +'</I>');
}

function back_lastupdated()
{
backto()
//lastupdated()
}

function dodisplay_org(imgName,base_dir) {
document.write('<html>')
//
// all large images on hetnet
// base dir on this position, not before html, else Netscape will not work !
// test: base_dir = 'c:/temp/'
//base_dir = ''
//base_dir = 'http://home.hetnet.nl/~phulst/'
//base_dir = 'http://home.hetnet.nl/~wilma.peters/'
//base_dir = 'http://home.hetnet.nl/~loopgroepbedum/'

document.write('\n')
document.write('<head>')
document.write('\n')
document.write('<base target="_self">')
document.write('\n')
//onderstaande regel geeft hangup in IE55 IE6 op de server, niet van schrijf !
//document.write('<script TYPE="text/javascript" LANGUAGE="javascript1.2" SRC="scripts/PageLayoutFotos.js">')
//document.write('<script TYPE="text/javascript" SRC="scripts/PageLayoutFotos.js">')
document.write('\n')
document.write('</script>')
document.write('\n')
document.write('</head>')
document.write('\n')
//if (navigator.appName == "Netscape")
if (document.layers)
{
document.write('<body bgcolor="000066" text="#FFFF00" link="#00FFFF" vlink="#00FF00" alink="#FFFFFF">')
}
else
{
document.write('<body>')
document.write('\n')
document.write('<link rel=Stylesheet href="css/lgb.css" type="text/css">')
document.write('\n')
}
document.write('<center>')
document.write('\n')
document.write('<img name="mainpic" src="')
//document.write(base_dir+imgName,'" alt=',base_dir+imgName+'>\n')
document.write(base_dir+imgName,'" alt=',base_dir+imgName,'" onError=this.src="',imgName,'">\n')
document.write('<FORM>')
document.write('\n')
document.write('<input type=BUTTON value="Terug" onclick="history.back(-1)">')
document.write('\n')
document.write('</FORM>')
document.write('\n')
document.write('</center>')
document.write('\n')
document.write('</body>')
document.write('\n')
document.write('</html>')
document.write('\n')
document.close()
}

function dodisplay(imgName) {
document.write('<html>')
//
// all large images on hetnet
// base dir on this position, not before html, else Netscape will not work !
// test: base_dir = 'c:/temp/'
base_dir = ''
dodisplay_org(imgName,base_dir)
}

function dodisplay_lb(imgName) {
base_dir = webdir_lb
dodisplay_org(imgName,base_dir)
}

function dodisplay_extern(imgName) {
base_dir = webdir_extern
dodisplay_org(imgName,base_dir)
}

function dodisplay_new(imgName,base_dir) {
document.write('<html>')
//
// base dir on this position, not before html, else Netscape will not work !
//base_dir = 'c:/temp/'
//base_dir = ''
//base_dir = 'http://home.hetnet.nl/~phulst/'
//base_dir = 'http://home.hetnet.nl/~wilma.peters/'
//base_dir = 'http://home.hetnet.nl/~loopgroepbedum/images/2004/'
//test:
//document.write(base_dir)

document.write('\n')
document.write('<head>')
document.write('\n')
document.write('<base target="_self">')
document.write('\n')
document.write('\n')
document.write('</script>')
document.write('\n')
document.write('</head>')
document.write('\n')
//if (navigator.appName == "Netscape")
if (document.layers)
{
document.write('<body bgcolor="000066" text="#FFFF00" link="#00FFFF" vlink="#00FF00" alink="#FFFFFF">')
}
else
{
document.write('<body>')
document.write('\n')
document.write('<link rel=Stylesheet href="../../css/lgb.css" type="text/css">')
document.write('\n')
}
document.write('<center>')
document.write('\n')
document.write('<img name="mainpic" src="')
//12.5.03 do not display filename
//document.write(base_dir+imgName,"\" alt=",base_dir+imgName+">\n")
//document.write(base_dir+imgName,'" alt=',base_dir+imgName+'>\n')
//20.7'03 test eerst base_dir, als plaatje er niet is: zonder base_dir
//werkt: document.write(base_dir+imgName,'">\n')
//werkt: document.write(base_dir+imgName,'" onError=this.src="',imgName,'">\n')
//document.write(base_dir+imgName,'" onError=this.src="',imgName,'">\n')
//onerror werkt niet met netscape
//16.1.05:second imgName can NOT start with directory e.g local_dir+imgName
document.write(base_dir+imgName,'" alt=',base_dir+imgName,'" onError=this.src="',imgName,'">\n')
document.write('<FORM>')
document.write('\n')
document.write('<input type=BUTTON value="Terug" onclick="history.back(-1)">')
document.write('\n')
document.write('</FORM>')
document.write('\n')
document.write('</center>')
document.write('\n')
document.write('</body>')
document.write('\n')
document.write('</html>')
document.write('\n')
document.close()
}

function dodisplay_groep(imgName) {
document.write('<html>')
base_dir = ''
dodisplay_new(imgName,base_dir)
}


function dodisplay_new_e(imgName) {
base_dir = webdir_ph
dodisplay_new(imgName,base_dir)
}

function dodisplay_new_ph(imgName) {
base_dir = webdir_ph_image
dodisplay_new(imgName,base_dir)
}

function dodisplay_new_wp(imgName) {
base_dir = webdir_wp
dodisplay_new(imgName,base_dir)
}

function dodisplay_new_lb(imgName) {
base_dir = webdir_lb_image
dodisplay_new(imgName,base_dir)
}

function dodisplay_new_lb_2(imgName) {
base_dir = webdir_lb2_image
dodisplay_new(imgName,base_dir)
}

function dodisplay_new_lb_3(imgName) {
base_dir = webdir_lb3_image
dodisplay_new(imgName,base_dir)
}

function dodisplay_sohosted(imgName) {
base_dir = webdir_sohosted
dodisplay_new(imgName,base_dir)
}

function dodisplaykrant(imgName) {
base_dir = ''
dodisplay_new(imgName,base_dir)
}


function popimage(imgName,winwidth,winheight){
var look='width='+winwidth+',height='+winheight+','
popwin=window.open("","",look)
popwin.document.open()
popwin.document.write('<title>'+imgName+'</title><body onLoad="setTimeout(window.close, 5000)" topmargin="0" leftmargin="0"><img src="'+imgName+'"></body>')
popwin.document.close()
}

function popimage_extern(imgName,winwidth,winheight){
var look='width='+winwidth+',height='+winheight+','
popwin=window.open("","",look)
popwin.document.open()
popwin.document.write('<title>'+imgName+'</title><body onLoad="setTimeout(window.close, 5000)" topmargin="0" leftmargin="0"><img src="'+webdir_extern+imgName,'" alt=',webdir_extern+imgName,'" onError=this.src="',imgName,'"></body>')
popwin.document.close()
}

function popimage_extern_no_time(imgName,winwidth,winheight){
var look='width='+winwidth+',height='+winheight+','
popwin=window.open("","",look)
popwin.document.open()
popwin.document.write('<title>'+imgName+'</title><body topmargin="0" leftmargin="0"><img src="'+webdir_extern+imgName,'" alt=',webdir_extern+imgName,'" onError=this.src="',imgName,'"></body>')
popwin.document.close()
}


//call: javascript:foto_archief('foto_archief/2001/FotosPlantsoenloop2001.htm,display_2001')
function foto_archief(foto_pagina,display){
//if (display) parent._selectie.location=foto_pagina equivalent met:
if (display) location=foto_pagina
else location=foto_archief_pagina
}

//for use in knipsels:
function foto_archief_2(foto_pagina,display){
if (display) location=foto_pagina
else location=foto_archief_pagina_2
}
<!-- -->

function do_download(download_file){
popwin=window.open()
popwin.document.open()
popwin.location=downloaddir_extern+download_file
popwin.document.close()
//window.location=download_file
//document.write('href',download_file)
//return download_file
}


//25.10.2007 replace ipv href voor FireFox
function do_slideshow_EasyPhpAlbum(dir){
document.location.replace(dir+'&screenwidth=' + screen.width)
}

function do_slideshow_EasyPhpAlbum_frame(dir){
document.location.replace(dir+'&screenwidth=' +  document.body.clientWidth)
}

function do_showPhoto_EasyPhpAlbum_frame(dir){
document.location.replace(dir+'&screenwidth=' +  document.body.clientWidth)
}
