﻿<!--// Rotating images 
// geef de foto's een naam als foto1.jpg, foto2.jpg, foto3.jpg.... 
var image_prefix = "http://www.gooreind.be/templates/wuustwezel/images/"; // waar staan de foto's 
var image_total = 9; //het aantal foto's 
var slideShowSpeed = 5000; // Duration of crossfade (seconds) 
var crossFadeDuration = 3; // Specify the image files 
// do not edit anything below this line 

var Pic = new Array(); 
for(var i=0; i<image_total; i++){ 
    Pic[i] = image_prefix + 'image' + i + '.jpg'; 
    } 

var t; 
var j = 0; 
var p = Pic.length; 
var preLoad = new Array(); 
for (i = 0; i < p; i++) { 
preLoad[i] = new Image(); 
preLoad[i].src = Pic[i]; 
} 
function runSlideShow() {
if (document.all) { 
document.images.SlideShow.style.filter="blendTrans(duration=2)"; 
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"; 
document.images.SlideShow.filters.blendTrans.Apply(); 
} 
document.images.SlideShow.src = preLoad[j].src; 
if (document.all) { 
document.images.SlideShow.filters.blendTrans.Play(); 
} 
j = j + 1; 
if (j > (p - 1)) j = 0; 
t = setTimeout('runSlideShow()', slideShowSpeed); 
} 
function OpenImageWindow(IID){ 
    var V = window.open('http://www.gooreind.be/image.php?src='+IID, '_blank', 
'location=no,menubar=no,scrollbars=no,resizable=no,status=no,width=100,height=100,left=100,top=100') 
    window.event.returnValue = false; 
}
function setTextSize(pct){
        tables = document.getElementsByTagName('div');
        for (var i = 0; i < tables.length; i++){
	  document.getElementsByTagName('div').item(i).style.fontSize= pct + '%';
        }
	var fonts='aa';
	if (pct == '100')fonts='a';
	if (pct == '103')fonts='aa';
	if (pct == '106')fonts='aaa';
	
	setCookie( 'nbfsize', fonts);
}	
		

function getTextSize(){

	var cookieFSize = getCookie('nbfsize');
	if (cookieFSize == null){
		cookieFSize= 'aa';
	}
	if (cookieFSize == 'a')setTextSize('100');
	if (cookieFSize == 'aa')setTextSize('103');
	if (cookieFSize == 'aaa')setTextSize('106');
}
	function getCookieVal(offset) {  
		var endstr = document.cookie.indexOf (";", offset);  
		if (endstr == -1)    
		endstr = document.cookie.length;  
		return unescape(document.cookie.substring(offset, endstr));
	}
	

	function getCookie(name) {  
		var arg = name + "=";  
		var alen = arg.length;  
		var clen = document.cookie.length;  
		var i = 0;  
		while (i < clen){    
			var j = i + alen;    
			if (document.cookie.substring(i, j) == arg)      
			return getCookieVal (j);    
			i = document.cookie.indexOf(" ", i) + 1;    
			if (i == 0) break;   
		}  
		return '';
	}

	function setCookie(name, value){ 
	  var expDays = 30;
	  var now = new Date(); 
	  var expired = new Date(now.getTime() - 48 * 60 * 60 * 1000); 
	  now.setTime(now.getTime() + (expDays*24*60*60*1000));	
	  document.cookie = name + "=" + escape (value) + "; expires=" + now.toGMTString() + "; path=/"
	}

//  End !-->
