	function checkMainPage() {
		return true;
	}
	function UpdateTimer() {
	  if(timerID) {
	     clearTimeout(timerID);
	     clockID  = 0;
	  }
		
		refeshNow();
			   
	  timerID = setTimeout("UpdateTimer()", 60000);
	}
	
	function TimerStart() {
		reclameTeller = 5;
		refeshNow();
		toggledRefresh = true;
	  timerID  = setTimeout("UpdateTimer()", 60000);
	}
	
	function TimerStop() {
	   if(timerID) {
	      clearTimeout(timerID);
	      timerID  = 0;
	   }
	   toggledRefresh = false;
	}

	function include(xUrl,xId) {

  var xmlhttp = false;

  /*@cc_on @*/

  /*@if (@_jscript_version >= 5)

  // JScript gives us Conditional compilation, we can cope with old IE versions.
  // and security blocked creation of the objects.

  try {
    xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
   } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
   }

  /*@end @*/

  if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
    xmlhttp = new XMLHttpRequest();
  }

  xmlhttp.open("GET", xUrl,true);
  xmlhttp.onreadystatechange=function() {

          if (xmlhttp.readyState==4) {
                document.getElementById(xId).innerHTML = xmlhttp.responseText;
          }
  }
  xmlhttp.send(null)

}

function refeshNow() {
	include('news1.php', "l-links");
	include('news2.php', "l-rechts");
	include('weer2.php', "weerImage");		
	include('weer.php', "weer");
	
	reclameTeller++;
	
	
	
	if (reclameTeller >= 5) {
				
		document.getElementById('reclameframe').src = document.getElementById('reclameframe').src;
		document.getElementById('reclameframe2').src = document.getElementById('reclameframe2').src;
		document.getElementById('reclameframe3').src = document.getElementById('reclameframe3').src;
		reclameTeller = 1;
	}
}

function toggleRefresh() {
	if (toggledRefresh) {
		document.getElementById('autoImg').src="/img/auto_unchecked.gif";
		TimerStop();
	} else {
		document.getElementById('autoImg').src="/img/auto_checked.gif";
		TimerStart();
	}
}

function keepsizescroll() {
	if (parseInt(navigator.appVersion)>3) {
 		
 		if (navigator.appName.indexOf("Microsoft")!=-1) {
  		winW = document.body.offsetWidth;
  		winH = document.body.offsetHeight;
 		} else {
 			winW = window.innerWidth;
	  	winH = window.innerHeight;
 		}
 		document.getElementById('opBG').style.height = winH + "px"; 
 		document.getElementById('opBG').style.width = winW + "px";
 	}

 	if (navigator.appName == "Microsoft Internet Explorer") {
			document.getElementById('opBG').style.top = document.body.scrollTop+"px";
	}else { 
		document.getElementById('opBG').style.top = window.pageYOffset+"px";
	}

	if (zShow==true) {
		window.setTimeout ('keepsizescroll()', 100);
	}
	
}

	function showZenders() {
		document.getElementById('opBG').style.visibility = "visible";
		document.getElementById('zenders3').style.visibility = "visible";
		zShow = true;
		keepsizescroll();
	}
	function closeZenders() {
		document.getElementById('opBG').style.visibility = "hidden";
		document.getElementById('zenders3').style.visibility = "hidden";
		zShow = false;
	}
	function showWeer() {
		document.getElementById('opBG').style.visibility = "visible";
		document.getElementById('weer').style.visibility = "visible";
		zShow = true;
		keepsizescroll();
	}
	function closeWeer() {
		document.getElementById('opBG').style.visibility = "hidden";
		document.getElementById('weer').style.visibility = "hidden";
		zShow = false;
	}