 function expand()
  	  { var ExtendedSearch = document.getElementById( 'ExtendedSearch' );
            var More       = document.getElementById( 'More' );
            var Less       = document.getElementById( 'Less' );

  	    ExtendedSearch.style.display = ExtendedSearch.style.display == 'none' ? 'block' : 'none';
  	    More.style.display = More.style.display == 'none' ? 'inline' : 'none';
  	    Less.style.display = Less.style.display == 'none' ? 'inline' : 'none';  	    
        document.getElementById( 'SearchMode' ).value = ExtendedSearch.style.display == 'none' ? 'Standard' : 'Extended';
  	  }

function FWFindLayer(lay)
{
	if (lay)
	{
		if (document.layers) 
			return document[lay];
		else if (document.getElementById)
			return document.getElementById(lay).style;
		else if (document.all) 
			return document.all[lay].style;
	}
	return null;
}

function FWPos(layName,xInc,yInc,xLim,yLim,speed,Fwd,Back)
{
	var lay = FWFindLayer(layName);
	if (!lay) return;
	var pos = new Object;
	pos.lay = lay;
	pos.xStart = parseInt(lay[fwLeft]);
	pos.yStart = parseInt(lay[fwTop]);
	pos.xInc = xInc;pos.yInc = yInc;
	pos.xLim = Math.abs(xLim); pos.yLim = Math.abs(yLim);
	pos.Fwd = Fwd;	pos.Back = Back;
	pos.speed = speed;
	return pos;
}

function FWMove(pos) 
{
	var yPos = pos.lay[fwTop] = parseInt(pos.lay[fwTop]) +pos.yInc; 
	var xPos = pos.lay[fwLeft]  = parseInt(pos.lay[fwLeft]) + pos.xInc;
	if (Math.abs(xPos - pos.xStart) <= pos.xLim && Math.abs(yPos - pos.yStart) <= pos.yLim)
	{
		if (pos.Fwd) setTimeout(pos.Fwd,pos.speed);
	}
	else if (pos.Back) setTimeout(pos.Back ,pos.speed);
}

var counter=0;
imageList = new Array();
imageList[0] = "images/venstra.gif";
imageList[1] = "images/vanderweyden.gif";
imageList[2] = "images/vuboekhandel.gif";

preloadList = new Array();
for (i=0; i<imageList.length; i++){
	preloadList[i] = new Image();
	preloadList[i].src = imageList[i];
}

function swapImage(imgName, newSrc){
	document.images[imgName].src = newSrc;
}

function animate(){
		swapImage("Logo", imageList[counter]);
		counter++;
		if (counter==imageList.length) counter = 0;
		slideshow = window.setTimeout("animate();", 5000);
}


