function delCookie (name) {
    var expireNow = new Date();
    document.cookie = name + "=" +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT" +  "; path=/";
    }

function loadFrame(n,u)
{
//document.write(n)
//document.write(u)
var a=u.indexOf('#');
if(a>0)
{
u=u.substring(0,a)+top.ctaal
}
frm=parent.window.frames[n]
frm.location=u+'.htm'
//parent.updateFrames(n,u+'.htm')
}

function initiate(t)
{
if (window.top!=window.self)
{
window.top.location=window.self.location
}
if(t=="NL"){iniTaal()}
top.taal=t
top.quality="h"
top.pquality="p"
top.vquality="h"
top.croom=1
top.ctaal=top.taal
top.chtm="alg_#"
top.cvhtm="voorz_alg_#"
top.clig="sd"
top.cHist=0
top.aHist = new Array(1)
top.aHist[0]=new Array(2,-47)
top.speed=-1
top.cookie=getCookie("Zoomoord")
if (top.cookie.length>0)
{var d=top.cookie
top.taal=d.substring(0,2)
top.quality=d.substring(2,3)
top.vquality=d.substring(3,4)
top.pquality=d.substring(4,5)
top.speed=d.substring(5,20)}
var ts="nldegb"
top.taalnr=ts.indexOf(top.taal)/2
top.ctaalnr=top.taalnr
document.write('<FRAMESET COLS="156,*,-1">')
document.write('<FRAME SRC="frames/items_'+top.taal+'.htm" NAME="INDEX" MARGINWIDTH=1 MARGINHEIGHT=10>')
document.write('<FRAME SRC="frames/alg_'+top.taal+'.htm" NAME="TEXT">')
document.write('<FRAME SRC="speed.htm">')
}

function iniTaal()
{
top.taal="nl"
var t=navigator.systemLanguage
if(t!=undefined)
{taal="de/nl/be"
var n=taal.indexOf(t)
if(n<0){top.taal="gb"}
if(n==0){top.taal="de"}}
}

function settaal(n)
{var t =  new Array("nl","de","gb")
top.ctaal=t[n]
top.ctaalnr=n
loadFrame('TEXT',top.chtm)}

function getCookie (name) {
    var dcookie = document.cookie;
    var cname = name + "=";
    var clen = dcookie.length;
    var cbegin = 0;
        while (cbegin < clen) {
        var vbegin = cbegin + cname.length;
            if (dcookie.substring(cbegin, vbegin) == cname) {
            var vend = dcookie.indexOf (";", vbegin);
                if (vend == -1) vend = clen;
            return unescape(dcookie.substring(vbegin, vend));
            }
        cbegin = dcookie.indexOf(" ", cbegin) + 1;
            if (cbegin == 0) break;
        }
    return "";
    }

function setCookie (name, value, expires) {
        if (!expires) expires = new Date();
    document.cookie = name + "=" + escape (value) +
    "; expires=" + expires.toGMTString() +  "; path=/";
    }

//93a=fout[

//a=fout[


function sayprint(u,s150,s300)
{
tt=new Array("Print deze pagina in hoge kwaliteit","Dieser Seite in hohe Qualit&auml;t ausdr&uuml;cken","Print this page in high quality")
//tt=new Array("P","1","2") 
s=s150;dpi="150";if(top.pquality=="p"){s=s300;dpi="300"};
t="'"+tt[top.ctaalnr]+" ("+dpi+" dpi, "+s+")'";
ret=""
ret+='<DIV TITLE='+t+'>';
ret+='<A target="_new" HREF="'+u+'"';
ret+='onmouseover="window.status='+t+';return true"';
ret+='>';
ret+='<IMG SRC="../pictogrm/printer.gif" BORDER=0 ALIGN=RIGHT>';
ret+='</A></DIV>';
return ret;
}

function ShowVergroting(f,w,h)
{
	mw=screen.width-20;
	mh=screen.height-60;
	file=f;
	width=2*w;
	height=2*h;
	if(width>mw)
	{
	height=height*mw/width;
	width=mw;
	}
	if(height>mh)
	{
	width=width*mh/height;
	height=mh;
	}
	l=(mw-width)/2;
	t=(mh-height)/2;
	open('showvergroting.htm','zoomoord','left='+l+',top='+t+',width='+width+',height='+height+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
}

function Showpano(f,n,i)
{
ctaal=top.ctaal;
pfile=f;
pname=n;
pinipan=i;
open('../pano/showpano.htm','zoomoord','left=300,top=300,width=358,height=290,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
}

function Showfoto(quality,file,width,height,v,panofile,panoname,inipan,h,l)
{
vn = new Array("Vergroting","Vergrößerung","Magnification");
vt=vn[top.ctaalnr]+"(2x, "+v+"Kb)";
pn1 = new Array("Klik","Klicken Sie","Click on")
pn2 = new Array("voor een 360&#176; panoramafoto","für ein 360° Panoramafoto","for a panoramic 360° photo")
ret='<A HREF="#dummy" TITLE="'+vt+'" ';
ret=ret+'onmouseover="window.status='+"'"+vt+"'"+';return true" ';
ret=ret+'onclick="ShowVergroting('+"'"+file+"v.jpg"+"',"+width+','+height+')">';
ret=ret+'<IMG SRC="../plaatjes/'+file+quality+'.jpg'+'" HSPACE=5 BORDER=0 WIDTH='+width+' HEIGHT='+height+'> ';
ret=ret+'</A>';
if (panofile!=undefined)
	{
	var s=h;
	var pn3 = new Array("Panoramafoto","Panoramafoto","Panoramic photo")
	if(top.vquality=='l'){s=l};
	ret=ret+'<DIV style="position:relative;top:0;left:5">';
	ret=ret+pn1[top.ctaalnr]+' <A HREF="#dummy" TITLE="360&#176; '+pn3[top.ctaalnr]+'"';
	ret=ret+' onmouseover="window.status='+"'360&#176; "+pn3[top.ctaalnr]+" ("+s+" Kb)'"+';return true"';
	ret=ret+'onclick="Showpano('+"'"+panofile+top.vquality+".jpg','"+panoname+"',"+inipan+')">';
	ret=ret+'<IMG src="../pictogrm/panorama.gif" border=0>';
	ret=ret+'</A> '+pn2[top.ctaalnr]+' ('+s+' Kb)<BR><BR>';
	ret=ret+"</DIV";
	}
return ret;
}
