function init()
{
	if(window.alphaPNG) alphaPNG() ; 
}

/* short generic onload by Brothercake */
if(typeof window.addEventListener != 'undefined') {
	window.addEventListener('load', init, false);
} else if(typeof document.addEventListener != 'undefined') {
	document.addEventListener('load', init, false);
} else if(typeof window.attachEvent != 'undefined') {
	window.attachEvent('onload', init);
}


function removeSpaces(string) {
	var tstring = "";
	string = '' + string;
	splitstring = string.split(" ");
	for(i = 0; i < splitstring.length; i++)
	tstring += splitstring[i];
	return tstring;
}
function clear_textbox()
{
//if (document.addressForm.address.value == "Vul hier je e-mail adres in")
document.addressForm.address.value = "";
} 
function clear_textbox1()
{
//if (document.addressForm.address.value == "Vul hier je e-mail adres in")
document.addressForm1.address1.value = "";
} 


	var slideCache = new Array();

	function RunSlideShow(pictureName,imageFiles,displaySecs) {
		var imageSeparator = imageFiles.indexOf(";");
		var nextImage = imageFiles.substring(0,imageSeparator);
		if (document.all) {
			document.getElementById(pictureName).style.filter="blendTrans(duration=2)";
			
		if (document.getElementById(pictureName).filters.blendTrans.status != 2) {
        document.getElementById(pictureName).filters.blendTrans.Apply();
        document.getElementById(pictureName).visibility="hidden";
        document.getElementById(pictureName).filters.blendTrans.Play();
		}
		}
		document.getElementById(pictureName).src = nextImage;
		if (document.all) {
			document.getElementById(pictureName).filters.blendTrans.Play();
		}
		var futureImages= imageFiles.substring(imageSeparator+1,imageFiles.length) + ';' + nextImage;
		setTimeout("RunSlideShow('"+pictureName+"','"+futureImages+"',"+displaySecs+")",
		displaySecs*1000);
		// Cache the next image to improve performance.
		imageSeparator = futureImages.indexOf(";");
		nextImage = futureImages.substring(0,imageSeparator);
		if (slideCache[nextImage] == null) {
			slideCache[nextImage] = new Image;
			slideCache[nextImage].src = nextImage;
		}
	}




/*
* FLASH ITEMS 
**********************************************************************************************************************/
function flashbanner (id)
{
	if (DetectFlashVer (7, 0, 0))
	{
		var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'width="300" height="298"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="swf/banner.swf?id='+id+'" />'
		+ '<param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />'
		+ '<param name="wmode" value="transparent" />'
		+ '<embed src="swf/banner.swf?id='+id+'" quality="high" bgcolor="#ffffff" '
		+ 'width="300" height="298" name="" align="middle"'
		+ 'play="true"'
		+ 'loop="true"'
		+ 'wmode="transparent"'
		+ 'quality="high"'
		+ 'allowScriptAccess="sameDomain"'	
		+ 'type="application/x-shockwave-flash"'
		+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
		+ '<\/embed>'
		+ '<\/object>';
		document.write(oeTags);
	} else { 
		var alternateContent = '<img src="pix/x.gif" alt="" width="300" height="298" />';
		document.write(alternateContent);
	}
}

function flashplayer (url, w, h)
{
	if (DetectFlashVer (8, 0, 0))
	{
		var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'width="'+w+'" height="'+h+'"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="swf/video.swf?'+url+'" />'
		+ '<param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />'
		+ '<param name="wmode" value="transparent" />'
		+ '<embed src="swf/video.swf?'+url+'" quality="high" bgcolor="#ffffff" '
		+ 'width="'+w+'" height="'+h+'" name="" align="middle"'
		+ 'play="true"'
		+ 'loop="true"'
		+ 'wmode="transparent"'
		+ 'quality="high"'
		+ 'allowScriptAccess="sameDomain"'	
		+ 'type="application/x-shockwave-flash"'
		+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
		+ '<\/embed>'
		+ '<\/object>';
		document.write(oeTags);
	} else { 
		var alternateContent = '<img src="pix/x.gif" alt="" width="'+w+'" height="'+h+'" />';
		document.write(alternateContent);
	}
}

function flashplayer2 (url, w, h)
{
	if (DetectFlashVer (8, 0, 0))
	{
		var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'width="'+w+'" height="'+h+'"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="swf/video2.swf?'+url+'" />'
		+ '<param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />'
		+ '<param name="wmode" value="transparent" />'
		+ '<embed src="swf/video2.swf?'+url+'" quality="high" bgcolor="#ffffff" '
		+ 'width="'+w+'" height="'+h+'" name="" align="middle"'
		+ 'play="true"'
		+ 'loop="true"'
		+ 'wmode="transparent"'
		+ 'quality="high"'
		+ 'allowScriptAccess="sameDomain"'	
		+ 'type="application/x-shockwave-flash"'
		+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
		+ '<\/embed>'
		+ '<\/object>';
		document.write(oeTags);
	} else { 
		var alternateContent = '<img src="pix/x.gif" alt="" width="'+w+'" height="'+h+'" />';
		document.write(alternateContent);
	}
}


