/* 
Javascript slideshow
© 2005 MEDOX.nl
*/

var slideShowSpeed = 7000 
var crossFadeDuration = 4 
var Pic = new Array() 
Pic[0] = 'images/fadefoto1.jpg'
Pic[1] = 'images/fadefoto2.jpg'
Pic[2] = 'images/fadefoto3.jpg'
Pic[3] = 'images/fadefoto4.jpg'
Pic[4] = 'images/fadefoto5.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 linktekstOvernemen()
{	
	document.mpform.f_trin_linktext.value = document.mpform.f_info_text_text.innerHTML;
}

function linktekstCIBOvernemen()
{
	
	document.mpform.f_trin_linktext.value = document.mpform.CIBTekst.value;
}


/* window opener
©2005 MEDOX.nl
*/
function ResourceWindow(strURL,strInstance,strParameters)
{
	window.open(strURL,strInstance,strParameters);
}

function Win(strURL,w,h)
{
	ResourceWindow(strURL,'','toolbar=no,width='+w+',height='+h+',left=250,top=200,directories=no,status=yes,scrollbars=yes,menubar=no,resizable=yes')
}

/* Javascript clock
©2005 MEDOX.nl
*/
var clockid=new Array()
var clockidoutside=new Array()
var i_clock=-1
var thistime= new Date()
var hours=thistime.getHours()
var minutes=thistime.getMinutes()
var seconds=thistime.getSeconds()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
if (seconds < 10) {seconds="0"+seconds}
var thistime = hours+":"+minutes+":"+seconds
	
function writeclock()
{
	i_clock++
	if (document.all || document.getElementById || document.layers)
	{
		clockid[i_clock]="clock"+i_clock
		document.write("<span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span>")
	}
}


function clockon()
{
	thistime= new Date()
	hours=thistime.getHours()
	minutes=thistime.getMinutes()
	seconds=thistime.getSeconds()
	seconds=seconds+1
	if (eval(hours) <10) {hours="0"+hours}
	if (eval(minutes) < 10) {minutes="0"+minutes}
	if (seconds < 10) {seconds="0"+seconds}
	if (seconds == 60) {seconds="00"}
	thistime = hours+":"+minutes+":"+seconds
		
	if (document.all)
	{
		for (i=0;i<=clockid.length-1;i++)
		{
			var thisclock=eval(clockid[i])
			thisclock.innerHTML=thistime
		}
	}
	
	if (document.getElementById)
	{
		for (i=0;i<=clockid.length-1;i++)
		{
			document.getElementById(clockid[i]).innerHTML=thistime
		}
	}
	var timer=setTimeout("clockon()",1000)
}
window.onload=clockon;



