
/* definities en variabelen */


pg=new Array('01','02','03','04','05','06','07','08','08','10','11','12','13','14','15','16','17','18','19','20','21','22','23','24','25','26','27');

function selectdate()	{
if (d.forms[0].elements[0].value=='Surfsafari')	{selectsafari();
} else if ((d.forms[0].elements[0].value=='Surfcamp')||(d.forms[0].elements[0].value=='Surfstudio') ){selectcamp();
} else if (d.forms[0].elements[0].value=='Surfspecial'){selectspecial();}
else {window.alert("Please choose the type of trip first!")}
}

function selectsafari(){
	window.open('selectsafari.html','datu','width=250,height=200,resize=no');
}

function selectcamp(){
	window.open('selectcamp.html','datu','width=230,height=200,resize=no');
}
function selectspecial(){
	window.open('selectspecial.html','datu','width=230,height=200,resize=no');
}

	function playmovie()	{
//	alert()
		window.open('http://www.xs4all.nl/~ejonker/surf/movie.html','weeeee','width=260,height=260,resize=no,top=100,left=100');

	}
	function pop(best)	{
		window.open(best,'weh','width=360,height=500,resize=yes,top=100,left=100');

	}



/* api */
d=document;l=d.layers;op=navigator.userAgent.indexOf('Opera')!=-1;px='px';ts=6;ti=50;
function gE(e,f){if(l){f=(f)?f:self;var V=f.document.layers;if(V[e])return V[e];for(var W=0;W<V.length;)t=gE(e,V[W++]);return t;}if(d.all)return d.all[e];return d.getElementById(e);}
function sE(e){l?e.visibility='show':e.style.visibility='visible';}
function hE(e){l?e.visibility='hide':e.style.visibility='hidden';}

function sxE(e){l?e.visibility='show':e.style.display='inline';}
function hxE(e){l?e.visibility='hide':e.style.display='none';}

function sZ(e,z){l?e.zIndex=z:e.style.zIndex=z;}
function sX(e,x){l?e.left=x:op?e.style.pixelLeft=x:e.style.left=x+px;}
function sY(e,y){l?e.top=y:op?e.style.pixelTop=y:e.style.top=y+px;}


function sW(e,w){l?e.clip.width=w:op?e.style.pixelWidth=w:e.style.width=w+px;}
function sH(e,h){l?e.clip.height=h:op?e.style.pixelHeight=h:e.style.height=h+px;}
function sC(e,t,r,b,x){l?(X=e.clip,X.top=t,X.right=r,X.bottom=b,X.left=x):e.style.clip='rect('+t+px+' '+r+px+' '+b+px+' '+x+px+')';}
function wH(e,h){if(l){Y=e.document;Y.open();Y.write(h);Y.close();}if(e.innerHTML)e.innerHTML=h;}
function gX(e){if(l)return e.left;else if(op)return e.style.pixelLeft;else return e.style.left;}
function gY(e){if(l)return e.top;else if(op)return e.style.pixelTop;else return e.style.top;}

function sT(e,t){e.id=setInterval('gT('+t+');',ti);}
function gT(e,x,y){o=parseInt(gX(e));a=parseInt((o-x)/ts);if(o!=x)sX(e,o-a);if(a==0){clearInterval(e.id);}}

function cE(i,j,xco,yco){if(l){d.layers[i]=new Layer(0);eval("document."+i+"=d.layers[i]");}else{if(typeof d.createElement!='undefined'){X="<div id='"+i+"' style=\"position:absolute;top:"+yco+"px; left:"+xco+"px; \" class=\""+j+"\">&nbsp;</div>";Y=d.createElement("DIV");if(Y){Y.innerHTML=X;d.body.appendChild(Y);}else if(typeof d.body.insertAdjacentHTML!='undefined')d.body.insertAdjacentHTML("BeforeEnd",X);}}}

function acE(i,j,xco,yco,dpap){if(typeof d.createElement!='undefined'){X="<div id='"+i+"' style=\"position:absolute;top:"+yco+"px; left:"+xco+"px; \" class=\""+j+"\">&nbsp;</div>";Y=d.createElement("DIV");if(Y){Y.innerHTML=X;dpap.appendChild(Y);}}}

//function sBgcl(e,cl) {e.style.background=cl;};
function sBgcl(e,cl) {e.style.color=cl;};
//function sBgcl(e,cl) {e.style.weight='bold';};



function popm(nr)	{
	cnt=100;
	cimg=imag[tn[nr].pos].bigg;
	h=imag[tn[nr].pos].y;
	w=imag[tn[nr].pos].x;
	var awidth = screen.availWidth;
	var aheight = screen.availHeight;
	var scrleft = (awidth>w)?((awidth-w)/2):0;
	var scrtop = (aheight>h)?((aheight-h)/2):0;
	var scrwidth = (awidth>w)?w:awidth;
	var scrheight = (aheight>h)?h:aheight;
	window.open('surf/portugal/beeldpopup.html?'+cimg,'weeeee','width='+scrwidth+',height='+scrheight+',resize=no,top='+scrtop+',left='+scrleft);

}




