		var t=0;
        var old_objectID = null;
        var lDelay = 10;
		var lCount = 0;
		var pause = 5000;
		var timerID = null;
		var timerRunning = false;
		var id,pause=0,position=0;
		var oldMsg;
		var sponsor_array = new Array (4);
		var ae=-1;al=0; ac=0,w=0,old_pos=0, visible=0;
var isDHTML = 0;
var isID = 0;
var isAll = 0;
var isLayers = 0;
var beeldnr=1;


if (document.getElementById) {isID = 1; isDHTML = 1;}
else {
if (document.all) {isAll = 1; isDHTML = 1;}
else {
browserVersion = parseInt(navigator.appVersion);
if ((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)) {isLayers = 1; isDHTML = 1;}
}}

function findDOM(objectID,withStyle) {
	if (withStyle == 1) {
		if (isID) { return (document.getElementById(objectID).style) ; }
		else { 
			if (isAll) { return (document.all[objectID].style); }
		else {
			if (isLayers) { return (document.layers[objectID]); }
		};}
	}
	else {
		if (isID) { return (document.getElementById(objectID)) ; }
		else { 
			if (isAll) { return (document.all[objectID]); }
		else {
			if (isLayers) { return (document.layers[objectID]); }
		};}
	}
}
		function toggleClamShellMenu(objectID) {
		t=2;
		if (old_objectID){
		    if (objectID != old_objectID){
		  	   domStyle = findDOM(old_objectID,1);
			   if (domStyle.display =='block')  domStyle.display='none';				
		    }
		}
		old_objectID = objectID;
		domStyle = findDOM(objectID,1);
		if (domStyle.display =='block') domStyle.display='none';
		else {domStyle.display='block';}		
		return;
		}
		function delayHide() {
		///// Checks to see if there is a menu showing and whether 
		///// the global variable 't' has been set to 0
    	if ((old_objectID || null) && (t == 0)) {
		    ///// Hides the old menu, resets menu conditions, 
		    ///// and stops the function running
		    domStyle = findDOM(old_objectID,1);
  		    domStyle.display='none'; 		
	        old_objectID = null;
            lCount = 0; 
            return false;
        }
		///// Interupts the function if another menu is opened
        if (t == 2) { lCount = 0; return false; }
        ///// Repeats the function adding 1 to lCount each time until 
        ///// lCount is equal to lDelay and then sets 't' to 0 so that 
        ///// the menu will hide when it runs again
        if (t == 1) { 
          lCount = lCount + 1;
          if (lDelay <= lCount) { t = 0; }
          ////if (lDelay >= lCount) { setTimeout('delayHide()',pause); }
          setTimeout('delayHide()',pause);

        }
        return;
		}




function ticker(){
   var i,k,l,front_msg,msg; 
   if (ac==0){
         if (ae>=0) oldMsg=sponsor_array [ae];
         ae++;
         if (ae == al) ae=0;
         ac = ab+20;
         position=0;
         w=0;
     }
   else w++;
   msg=sponsor_array [ae];

   if (w>=ab) {
     w=ab;
//
// knipperend verwijderd.
//
//    if (visible==1){
//        msg=space.substring(0,w);
//        visible=0;
//     }
//     else visible=1;
     document.lichtkrant1.veld1.value = msg.substring(0,w);
   }  
   else{
     i = ab-w;
     l = oldMsg.length;
     frontMsg=space.substring(0,i);
     if (w<l) frontMsg=oldMsg.substring(w,l)+space.substring(l-w,i);
     document.lichtkrant1.veld1.value = frontMsg + msg.substring(0,w);
   }
   ac--;
   id=setTimeout("ticker()",2000/10);
}
function action(){
  if(!pause) {
    clearTimeout(id);
    pause=1; }
  else {
    ticker();
    pause=0; }
}



function overvloeier(){
   if (!document.images)
      return
   if (document.all)
      topsponsor.filters.blendTrans.apply()
   document.images.topsponsor.src=eval(sparr[stap])
   if (document.all)
      topsponsor.filters.blendTrans.play()
      beeldnr=stap;
      if (stap<sparr.length-1)// wijzigen indien meer beeldjes
         stap++;
      else
         stap=0;
      setTimeout("overvloeier()",4000)// tijd tussen twee beeldjes
}

function overgang(){
if (beeldnr==1)
   window.location.href="link1.htm";
else if (beeldnr==2)
   window.location.href="link2.htm";
else if (beeldnr==3)
    window.location.href="link3.htm"; // identiek uitbreiden indien meer beeldjes
}