<!--

var elady_step=3;	//1:small, 3:middle, 5:big
var elady_speed=8000;	//20:fast, 50:middle, 80:slow
var e_tp=new Array();
var e_tplink=new Array();
var adNum_elady1=0;  
var elady_stop_sh=0;
var elady_star_sh=1;
var theTimer;

function elady1_moveImg(){
if ((!document.all&&!document.getElementById)||(elady_stop_sh==0))	return;
if (elady_star_sh==1){
	document.all.elady1_divimg.style.pixelTop=parseInt(document.all.elady1_divimg.style.pixelTop)+elady_step;}
else if (elady_star_sh==2){
	document.all.elady1_divimg.style.pixelLeft=parseInt(document.all.elady1_divimg.style.pixelLeft)+elady_step;}
else if (elady_star_sh==3){
	document.all.elady1_divimg.style.pixelTop=parseInt(document.all.elady1_divimg.style.pixelTop)-elady_step;}
else{
	document.all.elady1_divimg.style.pixelLeft=parseInt(document.all.elady1_divimg.style.pixelLeft)-elady_step;}
if (elady_star_sh<4)	elady_star_sh++;
else	elady_star_sh=1;
setTimeout("elady1_moveImg()",elady_speed);
}
e_tplink[0]="http://www.sfrealtors.com/video/short/36";
e_tp[0]="images/v6.jpg";

e_tplink[1]="http://www.sfrealtors.com/video/short/48";
e_tp[1]="images/v7.jpg";

e_tplink[2]="http://www.sfrealtors.com/video/short/47";
e_tp[2]="images/v8.jpg";

e_tplink[3]="http://www.sfrealtors.com/video/short/49";
e_tp[3]="images/v9.jpg";

e_tplink[4]="http://www.sfrealtors.com/video/short/31";
e_tp[4]="images/v0.jpg";

e_tplink[5]="http://www.sfrealtors.com/video/short/32";
e_tp[5]="images/v1.jpg";

e_tplink[6]="http://www.sfrealtors.com/video/short/27";
e_tp[6]="images/v2.jpg";

e_tplink[7]="http://www.sfrealtors.com/video/short/30";
e_tp[7]="images/v3.jpg";

e_tplink[8]="http://www.sfrealtors.com/video/short/12";
e_tp[8]="images/v4.jpg";

e_tplink[9]="http://www.sfrealtors.com/video/short/10";
e_tp[9]="images/v5.jpg";


var currentimage=new Array();   
for (i=0;i<=9;i++){
      currentimage=document.createElement("img"); 
	    currentimage[i]=new Image();
      currentimage[i].src=e_tp[i];
}

function elady1_set(){
   if (document.all){
      e_tprotator.filters.revealTrans.Transition=12;//Math.floor(Math.random()*23);
      e_tprotator.filters.revealTrans.apply();   
	}
}

function elady1_playCo(){
   if (document.all)      e_tprotator.filters.revealTrans.play()
}
function elady1_thatAd(num){
	   clearInterval(theTimer);
	   var o=document.getElementById("v_list").childNodes;
	   for(var   i=0;i <o.length;i++){
	      if(o[i].nodeName=="#text") continue;
	      o[i].style.borderBottom="0px";
	   }
	   adNum_elady1=num;
	   elady1_set();
	   document.images.e_tprotator.src=e_tp[adNum_elady1];
	   elady1_playCo(adNum_elady1);
	    var v_list="v_list_"+adNum_elady1;
     document.getElementById(v_list).style.borderBottom ="1px #FFFFFF solid";
	   theTimer=setInterval("elady1_nextAd()", elady_speed)
	}
function elady1_nextAd(){
	clearInterval(theTimer);
	 var o=document.getElementById("v_list").childNodes;
	   for(var   i=0;i <o.length;i++){
	      if(o[i].nodeName=="#text") continue;
	      o[i].style.borderBottom="0px";
	   }
   if(adNum_elady1<e_tp.length-1)adNum_elady1++ ;
   else adNum_elady1=0;
   elady1_set();
   document.images.e_tprotator.src=e_tp[adNum_elady1];
   var v_list="v_list_"+adNum_elady1;
   document.getElementById(v_list).style.borderBottom ="1px #FFFFFF solid";
   elady1_playCo();
   theTimer=setTimeout("elady1_nextAd()", elady_speed);
}

function elady1_linkurl(){   
	jumpUrl=e_tplink[adNum_elady1];
    jumpTarget='_blank';
    if (jumpUrl != ''){
		if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
        else location.href=jumpUrl;                                                
	}	
}
function elady1_listMsg() 
{
status=e_tplink[adNum_elady1];
document.returnValue = true;
}
/*document.write("<div id='elady1_divimg' style='position:relative'>");
document.write('<a onMouseOver="elady1_listMsg();return document.returnValue" href="javascript:elady1_linkurl()" target="_self">');
document.write('<img style="FILTER: revealTrans(duration=2,transition=20)" height=130 src="images/01.jpg" width=292 border=0 name=e_tprotator >');
document.write("</div>");*/
elady1_nextAd();

//-->