var isIE = isIE();var websec;var rtoct = new Date().getTime();var rtocc=0;
function isIE()
{if (navigator.appName == "Microsoft Internet Explorer"){isIE = true;}}
function online() 
{setTimeout('rtoc()',500)}
 var MSXML_XMLHTTP_PROGIDS = new Array(
                'MSXML2.XMLHTTP.5.0',
                'MSXML2.XMLHTTP.4.0',
                'MSXML2.XMLHTTP.3.0',
                'MSXML2.XMLHTTP',
                'Microsoft.XMLHTTP'
            );
function rtoc() 
{	if(((navigator.userAgent.toLowerCase()).indexOf("googlebot")) >=1){return};
	if(((navigator.userAgent.toLowerCase()).indexOf("msnbot")) >=1){return};
	if(!document.getElementById&&!document.createElement){return};
var xmlhttp = null;
var success = false;
            for (var i=0;i < MSXML_XMLHTTP_PROGIDS.length && !success; i++) {
                try {
                    xmlhttp = new ActiveXObject(MSXML_XMLHTTP_PROGIDS[i]);
                    success = true;
                } catch (e) {xmlhttp = false;}
            }
if (!xmlhttp && typeof XMLHttpRequest!='undefined') 
{xmlhttp = new XMLHttpRequest();}	
  if (xmlhttp) {
   url="/diashow/rtoc.rtoc?c="+(rtoct + ++rtocc);
   xmlhttp.open("GET",url,true);
   xmlhttp.setRequestHeader('User-Agent','MeteoBeverwijk/1.0.');
   xmlhttp.onreadystatechange=function()   
   {
    if (xmlhttp.readyState==4) 
    {
        if(xmlhttp.status !=200)
		{return false;} 
		else 
		{
		var resp_array=xmlhttp.responseText.split("#");
	websec = resp_array[0];
	var i = parseInt(websec );
      document.getElementById("rtoc").innerHTML = i> 0 ? i.toString() : '1';
      document.getElementById("octot").alt= 'Totaal vandaag: '+resp_array[1] +' max. '+resp_array[2];
      setTimeout('rtoc()',2000);
	}
	}
   }
  }
  if(isIE) 
   {xmlhttp.send();} 
   else 
   {xmlhttp.send(new Date());}
}
online();









