﻿try {  document.execCommand("BackgroundImageCache", false, true);} catch(err) {}var starttimer; // algemene setTimeout variabelewindow.onload=function(){	//pngFix();	init();}window.onresize = function() {	setFooter();}var rightimagedown, initwrapperH;var attributes;var currentdown;function init(){	initwrapperH = $('wrapper').offsetHeight;	setFooter();		attributes = { height: { from: 0, to: (getWindowHeight()) }, opacity: {from: 0, to: 1}, top: {from: -20, to: 0} };	rightimagedown = new YAHOO.util.Motion('rightimage', attributes, 1.1, YAHOO.util.Easing.easeOut);				rightimagedown.animate();}function setFooter() {	var wH = getWindowHeight();	if(initwrapperH<wH) {		document.getElementById('wrapper').style.height = wH + 'px';		//document.getElementById('block_1').style.height = wH;		document.getElementById('rightimage').style.height = wH + 'px';		//init()	} else {		}	//alert(wH + ", " + $('wrapper').offsetHeight + ", " + block1H);}function $(id) {	return document.getElementById(id);}function loadDiv(ObjFrom, ObjTo) {	if(ObjTo==null) {ObjTo = 'content';}	if(ObjFrom==null) {		$(ObjTo).innerHTML = '';	} else {		$(ObjTo).innerHTML = $(ObjFrom).innerHTML;	}	}function getWindowHeight() {	var windowHeight = 0;	if (typeof(window.innerHeight) == 'number') {		windowHeight = window.innerHeight;	}	else {		if (document.documentElement && document.documentElement.clientHeight) {			windowHeight = document.documentElement.clientHeight;		}		else {			if (document.body && document.body.clientHeight) {				windowHeight = document.body.clientHeight;			}		}	}	return windowHeight;}function getWindowWidth() {	var windowWidth = 0;	if (typeof(window.innerWidth) == 'number') {		windowWidth = window.innerWidth;	}	else {		if (document.documentElement && document.documentElement.clientWidth) {			windowWidth = document.documentElement.clientWidth;		}		else {			if (document.body && document.body.clientWidth) {				windowWidth = document.body.clientWidth;			}		}	}	return windowWidth;} function pngFix(){	var arVersion = navigator.appVersion.split("MSIE")	var version = parseFloat(arVersion[1])	if ((version >= 5.5) && (document.body.filters)) 	{	   for(var i=0; i<document.images.length; i++)	   {		  var img = document.images[i]		  var imgName = img.src.toUpperCase()		  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")		  {			 var imgID = (img.id) ? "id='" + img.id + "' " : ""			 var imgClass = (img.className) ? "class='" + img.className + "' " : ""			 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "			 var imgStyle = "display:inline-block;" + img.style.cssText 			 if (img.align == "left") imgStyle = "float:left;" + imgStyle			 if (img.align == "right") imgStyle = "float:right;" + imgStyle			 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle			 var strNewHTML = "<span " + imgID + imgClass + imgTitle			 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"			 + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"			 + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 			 img.outerHTML = strNewHTML			 i = i-1		  }	   }	}}function emailcheck(str){	accept = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";	for (h=0; h < str.length ;h++){		if (accept.indexOf(str.charAt(h))<0){			return (false);		}	}	if (document.images){		pat = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;		pat_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;		if (!str.match(pat) && str.match(pat_two)){			return (-1);		}	}}
