//<script>
var Step=32;
var baseSiteUrl = window.location.href.split(window.location.pathname)[0];

function window.onload(){
	pic1.galleryImg=false;
	pic2.galleryImg=false;
	pic3.galleryImg=false;
	pic1.runtimeStyle.pixelTop=-225;
	pic1.runtimeStyle.pixelLeft=0;
	pic2.runtimeStyle.pixelTop=225;
	pic2.runtimeStyle.pixelLeft=0;
	pic3.runtimeStyle.pixelTop=-225;
	pic3.runtimeStyle.pixelLeft=0;
	Slide1();
}
function Slide1(){
	if(pic1.offsetTop<0){
		pic1.runtimeStyle.pixelTop/=Math.SQRT2;				
		window.setTimeout(Slide1,50);				
	}
	else Slide2();
}
function Slide2(){
	if(pic2.offsetTop>0){
		pic2.runtimeStyle.pixelTop/=Math.SQRT2;
		window.setTimeout(Slide2,50);				
	}
	else Slide3();
}
function Slide3(){
	if(pic3.offsetTop<0){
		pic3.runtimeStyle.pixelTop/=Math.SQRT2;
		window.setTimeout(Slide3,50);				
	}
	else{
		Tile1.style.backgroundImage="url("+baseSiteUrl+"/images/agiswebtrade2.jpg)";
		Tile2.style.backgroundImage="url("+baseSiteUrl+"/images/agisagro.jpg)";
		Tile3.style.backgroundImage="url("+baseSiteUrl+"/images/agisprofile2.png)";
	
		Tile1.innerHTML=new String("Webtrade").bold()+"<DIV class='TileTitle'>"+new String("Webtrade").bold()+"</DIV>";
		Tile2.innerHTML=new String("Agro").bold()+"<DIV class='TileTitle'>"+new String("Agro").bold()+"</DIV>";
		Tile3.innerHTML=new String("Organisatie").bold()+"<DIV class='TileTitle'>"+new String("Organisatie").bold()+"</DIV>";
	
		TextFader.Start();
	}	
}
function ReturnFalse(){
	try{
		event.returnValue=false;
	}
	catch(e){
		return false;
	}
}