
function myFunc() {

checkSize('content');
displayspotlight();
}

function checkSize(name)
{
	
	var q = document.getElementById(name).offsetHeight;
	//alert(q);
			
	if(document.getElementById(name).offsetHeight  < 429)
	{
		document.getElementById('content').style.height = "429px" ;
	}

	if(document.getElementById(name).offsetHeight  > 429)
	{
		//document.getElementById('spotlight').style.borderBottom = "1px solid #FFFFFF" ;
		document.getElementById('right_menu').style.borderBottom = "1px solid #FFFFFF" ;
	}
}
	
function limiet(veld, maximum, telveld)
{   if (veld.value.length > maximum)      veld.value = veld.value.substring(0, maximum);   else      document.getElementById(telveld).firstChild.nodeValue = (maximum - veld.value.length);}


/* 
Script made by Martial Boissonneault © 2001-2006 http://getElementById.com
This script may be used and changed freely as long as this msg is intact
Visit http://getElementById.com/ for more free scripts and tutorials.
*/
var ie5 = (document.getElementById && document.all); 
var ns6 = (document.getElementById && !document.all);

var nextspotlight = 0;

function displayspotlight(){

var spotlight = document.getElementById('cont').getElementsByTagName('DIV');
var objs = document.getElementById('cont');

	if(ie5 && !window.opera){
		objs.style.filter = "blendTrans(Duration=0.7)"
		objs.filters[0].Apply();
		objs.style.visibility = "visible";
		objs.filters[0].Play();
	}
	else if(ns6){
		objs.style.visibility = "visible";
	}

	if(ie5 || ns6){
		for(var i=0; i<spotlight.length; i++){
			spotlight[i].style.visibility = "hidden";
		}
		spotlight[nextspotlight++].style.visibility = "visible";
		nextspotlight=nextspotlight%spotlight.length;
	}
}

setInterval("displayspotlight()",7000);