

/*Current date script credit: 
JavaScript Kit (www.javascriptkit.com)
Over 200+ free scripts here!
*/



<!-- Begin
var good;
function checkEmailAddress(field) {
// the following expression must be all on one line...
var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
if (goodEmail) {
good = true;
}
else {
alert('Fill in a valid email adress.');
field.focus();
field.select();
good = false;
   }
}
u = window.location;
m = "I thought you would like this site...";
function mailThisUrl() {
good = false
checkEmailAddress(document.eMailer.address);
if (good) {
// the following expression must be all on one line...
window.location = "mailto:"+document.eMailer.address.value+"?subject="+m+"&body="+document.title+" "+u;
   }
}
//  End -->

var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}
("../giffiles/up_button2.gif","../giffiles/down_button2.gif")

<!-- Begin
// plaatjes bekijken
//  End -->

function changestrandimage(filename)
{
  strandimage.src = filename;
}


function openfroka(){ 
	window.open('froka/froka.html','','toolbar=no, scrollbars=no,  menubar=no, height=410, width=260, left=100, top=90,');
}

function openjade_13_7(){ 
	window.open('nieuws_7-2004/opening_jade_13-7.html','','toolbar=no, scrollbars=yes,  menubar=no, height=410, width=345, left=100, top=90,');
}


// dit is voor het gecentreerde popup, waar is? window

<!-- Original:  Eric King (eric_andrew_king@hotmail.com) -->
<!-- Web Site:  http://redrival.com/eak/ -->
<!-- gecentreerde pop up-->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//  End -->



// if you want to open sub-window onclick of images set variables here
var subWin;
var subWinWd = 560;	// width of sub-window
var subWinHt = 400;	// height of sub-window
// add/remove window chrome as needed (no spaces between them!)
// list of common chrome elements: "menubar,location,toolbar,status,scrollbars,resizable"
var subWinChrome = "resizable,menubar,location,toolbar,status,scrollbars,resizable";
// for centering sub-window on screen
var subWinTop = Math.round( (screen.availHeight - subWinHt)/2 );
var subWinLeft = Math.round( (screen.availWidth - subWinWd)/2 );

function initImgRotation() {
  // create rotating image objects here 
  // arguments: image name, rotation speed (milliseconds)
  var rotator1 = new rotateImgObj('img1',2500);
  // add the images to rotate into that image object
  rotator1.addImages("colibri_banner.gif","colibri_website.gif");
  // add the corresponding actions to take onclick of those images (last one shows how to call another function onclick)
  rotator1.addActions("http://www.elcolibri.net", "http://www.elcolibri.net");
  
  // starts rotation for all defined rotateImgObjs
  for (var i=0; i<rotateImgObjs.length; i++) 
    rotateImgObjs[i].timer = setInterval(rotateImgObjs[i].animString + ".rotate()", rotateImgObjs[i].speed);
}

// for example function call onclick  
var msg1 = "You could call another function onclick of the images, or set" + "\n" + "the window.location property to load another document.";
function doMsg(msg) { alert(msg); }

// If all the images you wish to display are in the same location, you can specify the path here 
rotateImgObj.imagesPath = "colibri/";

rotateImgObjs = []; // holds all rotating image objects defined
// constructor 
function rotateImgObj(nm,s) {
  this.speed=s; this.ctr=0; this.timer=0;  
  this.imgObj = document.images[nm]; // get reference to the image object
  this.index = rotateImgObjs.length; rotateImgObjs[this.index] = this;
  this.animString = "rotateImgObjs[" + this.index + "]";

  this.addImages = addRotatingImages; this.addActions = addClickActions;
  this.rotate = rotateImg;
}

function addRotatingImages() {
  this.imgObj.imgs = [];
  for (var i=0; i<arguments.length; i++) {
    this.imgObj.imgs[i] = new Image();
    this.imgObj.imgs[i].src = rotateImgObj.imagesPath + arguments[i];
  }
}

function addClickActions() {
  this.actions = [];
  for (var i=0; i<arguments.length; i++) { this.actions[i] = arguments[i]; }
}

// called onclick of images
function doImgClick(n) {
	if ( document.images && rotateImgObjs[n] ) {
    var obj = rotateImgObjs[n]; // shorten reference 
    if ( obj.actions && obj.actions[obj.ctr] ) {
  		if ( obj.actions[obj.ctr].indexOf('javascript:') != -1 ) eval( obj.actions[obj.ctr] );
  		else {
  			if ( subWin && !subWin.closed ) subWin.focus();
  			subWin = window.open( obj.actions[obj.ctr], "subWin",
           subWinChrome+",height="+subWinHt+",width="+subWinWd+",top="+subWinTop+",left="+subWinLeft); 
  		}
    } 
	}
}

// automatically closes sub-window when document unloads
function closeWin() {	if (subWin && !subWin.closed) subWin.close(); }
window.onunload = closeWin;


// controls rotation
function rotateImg() {
  if (this.ctr < this.imgObj.imgs.length-1) this.ctr++;
  else this.ctr = 0;
  this.imgObj.src = this.imgObj.imgs[this.ctr].src;
}

// for stopping/starting onmouseover/out
function stopRotation(n) {	
  if (rotateImgObjs[n]) clearInterval(rotateImgObjs[n].timer); 
}

function restartRotation(n) {
  if ( rotateImgObjs[n] ) {
    var obj = rotateImgObjs[n]; // shorten reference 
    obj.rotate(); // rotate now and resume repeated calls
    obj.timer = setInterval( obj.animString + ".rotate()", obj.speed );
  }
}


<!-- Begin

function changeimage(filename)
{
  mainimage.src = filename;
}

//  End -->

<!-- Begin
// plaatjes bekijken hieronder begint de voorpagina vergroot foto script

//  End -->
PositionX = 10;
PositionY = 10;
defaultWidth  = 600;
defaultHeight = 400;

//kinda important
var AutoClose = true;

//don't touch
function popImage(imageURL,imageTitle){
  var imgWin = window.open('','_blank','scrollbars=no,resizable=1,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY);
  if( !imgWin ) { return true; } //popup blockers should not cause errors
  imgWin.document.write('<html><head><title>'+imageTitle+'<\/title><script type="text\/javascript">\n'+
    'function resizeWinTo() {\n'+
    'if( !document.images.length ) { document.images[0] = document.layers[0].images[0]; }'+
    'var oH = document.images[0].height, oW = document.images[0].width;\n'+
    'if( !oH || window.doneAlready ) { return; }\n'+ //in case images are disabled
    'window.doneAlready = true;\n'+ //for Safari and Opera
    'var x = window; x.resizeTo( oW + 200, oH + 200 );\n'+
    'var myW = 0, myH = 0, d = x.document.documentElement, b = x.document.body;\n'+
    'if( x.innerWidth ) { myW = x.innerWidth; myH = x.innerHeight; }\n'+
    'else if( d && d.clientWidth ) { myW = d.clientWidth; myH = d.clientHeight; }\n'+
    'else if( b && b.clientWidth ) { myW = b.clientWidth; myH = b.clientHeight; }\n'+
    'if( window.opera && !document.childNodes ) { myW += 16; }\n'+
    'x.resizeTo( oW = oW + ( ( oW + 200 ) - myW ), oH = oH + ( (oH + 200 ) - myH ) );\n'+
    'var scW = screen.availWidth ? screen.availWidth : screen.width;\n'+
    'var scH = screen.availHeight ? screen.availHeight : screen.height;\n'+
    'if( !window.opera ) { x.moveTo(Math.round((scW-oW)/2),Math.round((scH-oH)/2)); }\n'+
    '}\n'+
    '<\/script>'+
    '<\/head><body onload="resizeWinTo();"'+(AutoClose?' onblur="self.close();"':'')+'>'+
    (document.layers?('<layer left="0" top="0">'):('<div style="position:absolute;left:0px;top:0px;display:table;">'))+
    '<img src="'+imageURL+'" alt="Loading image ..." title="" onload="resizeWinTo();">'+
    (document.layers?'<\/layer>':'<\/div>')+'<\/body><\/html>');
  imgWin.document.close();
  if( imgWin.focus ) { imgWin.focus(); }
  return false;
}
