/*
Up down slideshow Script
By Dynamic Drive (www.dynamicdrive.com)
For full source code, terms of use, and 100's more scripts, visit http://www.dynamicdrive.com
Edited by Manos Orfanoudakis (www.orfanoudakis.gr) for Estate Agent Improved
*/



///////Do not edit pass this line///////////////////////
if(typeof(EAscrollH ) == "undefined"){
function EArotateH(obj,i,visiblediv,hiddendiv,swidth,pause){
	objects= eval(obj);
	i=(i==objects.length)?0:i;
	vdiv= document.getElementById(visiblediv);
	hdiv= document.getElementById(hiddendiv);

	if (parseInt(hdiv.style.left)<=1){
		hdiv.style.left=0+"px"
		vdiv.style.left=swidth+"px";
		vdiv.innerHTML=objects[i];
		setTimeout("EArotateH('"+obj+"',"+(++i)+",'"+hiddendiv+"','"+visiblediv+"',"+swidth+","+pause+")",pause);
		return
	}
	
	vdiv.style.left=parseInt(vdiv.style.left)-4+"px";
	hdiv.style.left=parseInt(hdiv.style.left)-4+"px";
	setTimeout("EArotateH('"+obj+"',"+i+",'"+visiblediv+"','"+hiddendiv+"',"+swidth+","+pause+")",40);
	
}

function EAscrollH(obj,div1,div2,swidth,pause){
	objects= eval(obj);
	dom=document.getElementById;
	if (dom){
		first_obj= document.getElementById(div1);
		second_obj= document.getElementById(div2);
		if(objects.length<1)return;
		if(objects.length==1){
			first_obj.top=0+'px';
			first_obj.innerHTML=objects[0];
			return;	
		}
		first_obj.innerHTML=objects[0];
		second_obj.style.left=swidth+'px';
		second_obj.style.visibility='visible';
		second_obj.innerHTML=objects[1];
		setTimeout("EArotateH('"+obj+"',2,'"+div1+"','"+div2+"',"+swidth+","+pause+")",pause);
	}	
}
}


