slink='<a href="/" target="_self">';
ssize = 7;

prefix = 'http://media.scoutbaby.com/images/slides/latest/'

function slideshowsl(){
    fademi=1;
    imgarr=new Array();
    imgstr=new Array();
    linkstr=new Array();
    clslinkstr=new Array();
    imgarr[0]=new Image();
    imgarr[0].src=prefix + '1.jpg';
    imgstr[0]=prefix + '1.jpg';
    linkstr[0]=slink;
    clslinkstr[0]='</a>';
    imgarr[1]=new Image();
    imgarr[1].src=prefix + '2.jpg';
    imgstr[1]=prefix + '2.jpg';
    linkstr[1]=slink;
    clslinkstr[1]='</a>';
    imgarr[2]=new Image();
    imgarr[2].src=prefix + '3.jpg';
    imgstr[2]=prefix + '3.jpg';
    linkstr[2]=slink;
    clslinkstr[2]='</a>';
    imgarr[3]=new Image();
    imgarr[3].src=prefix + '4.jpg';
    imgstr[3]=prefix + '4.jpg';
    linkstr[3]=slink;
    clslinkstr[3]='</a>';
    imgarr[4]=new Image();
    imgarr[4].src=prefix + '5.jpg';
    imgstr[4]=prefix + '5.jpg';
    linkstr[4]=slink;
    clslinkstr[4]='</a>';
    imgarr[5]=new Image();
    imgarr[5].src=prefix + '6.jpg';
    imgstr[5]=prefix + '6.jpg';
    linkstr[5]=slink;
    clslinkstr[5]='</a>';
    imgarr[6]=new Image();
    imgarr[6].src=prefix + '7.jpg';
    imgstr[6]=prefix + '7.jpg';
    linkstr[6]=slink;
    clslinkstr[6]='</a>';
    vcurr=0;
    vnext=0;
    vssdiv=null;
    stepc=20*(1000/1000);
    dif=0.00;
    op=1.00;
    dif=(1.00/stepc);
    uagent = window.navigator.userAgent.toLowerCase();
    IEB=(uagent.indexOf('msie') != -1)?true:false;
    var scompat = document.compatMode;
    if(scompat != "BackCompat"){}dstr1='<div id="';
    dstr2='" style="position:absolute;text-align:'+"center"+';width:'+400+'px;height:'+600+'px;visibility:hidden;left:0px;top:0px;padding:0px;margin:0px;overflow:hidden;">';
    dstr3='<img id="slideshowimg';
    dstr4='" src="';
    dstr5='" style="position:relative;left:0px;top:0px;padding:0px;margin:0px;border:0px;" alt="" border="0"></img>';
    dstr6='</div>';
    this.slideshowdotrans=slideshowdotrans;
    this.slideshowinitte=slideshowinitte;
    this.slideshowinitte2=slideshowinitte2;
    this.slideshowbeftrans=slideshowbeftrans;
    this.slideshowdotransff=slideshowdotransff;
}

function slideshowdotrans(){	
    if(IEB==true){vssdiv.filters[0].apply();}	
    objc=document.getElementById('slideshowd'+vcurr);	
    objn=document.getElementById('slideshowd'+vnext);			
    objc.style.visibility="hidden";	
    objn.style.visibility="visible";	
    if(IEB==true){vssdiv.filters[0].play();}		
    vcurr=vnext;	
    vnext=vnext+1;		
    if(vnext>=2)	{		vnext=0;	}			
    setTimeout('slideshowdotrans()',(3000+2000));
}

function slideshowdotransff(){	
    op=op-dif;	
    objc=document.getElementById('slideshowd'+vcurr);	
    objn=document.getElementById('slideshowd'+vnext);		
    if(op<(0.00)){op=0.00;}	
    objc.style.opacity = op;	
    objn.style.opacity = 1.00;	
    if(op>(0.00))	{	setTimeout('slideshowdotransff()',50);	}	
    else	{		
        objc.style.zIndex=2;		
        objn.style.zIndex=3;		
        setTimeout('slideshowbeftrans()',4000);			
            }
}

function slideshowbeftrans(){	
    vcurr=vnext;	
    vnext=vnext+1;	
    if(vnext>=ssize)	{		vnext=0;	}	
    op=1.00;	
    objc=document.getElementById('slideshowd'+vcurr);	
    objn=document.getElementById('slideshowd'+vnext);	
    objc.style.visibility="visible";	
    objn.style.visibility="visible";		
    objc.style.zIndex=3;	
    objn.style.zIndex=2;		
    objc.style.opacity = 1.00;		
    objn.style.opacity = 1.00;			
    slideshowdotransff();	
}

function slideshowinitte2(){	
    vssdiv=document.getElementById("slideshowdv");	
    if(2>0)	{		
        objc=document.getElementById('slideshowd'+0);			
        objc.style.visibility="visible";		
    }	
    if(2>1)	{		
        if((IEB==true)||(fademi==0))		{			
            vcurr=0;			
            vnext=1;			
            setTimeout('slideshowdotrans()',2000);		
            }		
        else {			
            vcurr=0;			
            vnext=0;					
            setTimeout('slideshowbeftrans()',4000);			
        }	
    }
}

function slideshowinitte(){	
    i=0;	
    innertxt="";	
    for(i=0;i<ssize;i++)	{		
        innertxt=innertxt+dstr1+"slideshowd"+i+dstr2+linkstr[i]+dstr3+i+dstr4+imgstr[i]+dstr5+clslinkstr[i]+dstr6;	
    }	
    spage=document.getElementById('slideshowdv');	
    spage.innerHTML=""+innertxt;	
    setTimeout('slideshowinitte2()',200);
}

s=new slideshowsl();s.slideshowinitte();
