uagent = window.navigator.userAgent.toLowerCase();
IEB=(uagent.indexOf('msie') != -1)?true:false;
var scompat = document.compatMode;
var slide3_cwidth=0;
var slide3_cheight = 0;
// Change this to specify the number of images the rotator will display.
// Go to slide3sl() to define the images.
var slide3_numberOfImages = 2;

if((IEB==true)&&(scompat == "BackCompat" ))
{ 
   slide3_cwidth=480;    slide3_cheight=43;    
}
else
{    
    slide3_cwidth=480-2*(0);
    slide3_cheight=43-2*(0);
}
    
var slide3_icwidth=480-2*(0);
var slide3_icheight=43-2*(0);
var imagesizingholder="";
document.write('<div style="position:relative;width:'+slide3_cwidth+'px;height:'+slide3_cheight+'px;overflow:hidden;border-style:'+'solid'+';border-width:'+0+'px;border-color:#'+'FFEEEE'+';'+''+'background-image:url("raysImages/tabLeft.png");background-position:0px 0px;background-repeat:norepeat;'+'">');
document.write('<div id="slide3dv" style="position:relative;width:'+slide3_icwidth+'px;height:'+slide3_icheight+'px;overflow:hidden;padding:0px;margin:0px;z-index:1;FILTER: progid:DXImageTransform.Microsoft.Fade(Overlap=1.00,duration=2,enabled=false);">'+'<img src="raysImages/wePic01.png" alt="" />'+'</div>');
document.write('</div>');


function slide3sl()
{
    slide3fademi=1;
    imgarr=new Array();
    imgstr=new Array();
    linkstr=new Array();
    clslinkstr=new Array();

    // Copy this block for each image that can be displayed. Increment the array index for each
    // additional image.
    // All images must end with the "0x" value, where x is the position of the image in the array.
    imgarr[0]=new Image();
    imgarr[0].src='raysImages/wePic01.png';
    imgstr[0]='raysImages/wePic01.png';
    linkstr[0]='';
    clslinkstr[0]='';

    imgarr[1]=new Image();
    imgarr[1].src='raysImages/wePic02.png';
    imgstr[1]='raysImages/wePic02.png';
    linkstr[1]='';
    clslinkstr[1]='';

    /* imgarr[2]=new Image();
    imgarr[2].src='raysImages/wePic03.png';
    imgstr[2]='raysImages/wePic03.png';
    linkstr[2]='';
    clslinkstr[2]=''; */

    slide3vcurr=0;
    slide3vnext=0;
    slide3vssdiv=null;
    stepc=20*(2);
    slide3dif=0.00;
    slide3op=1.00;
    slide3dif=(1.00/stepc);
    dstr1='<div id="';
    dstr2='" style="position:absolute;visibility:hidden;left:0px;top:0px;padding:0px;margin:0px;overflow:hidden;">';
    dstr23='<table cellspacing="0" cellpadding="0" style="position:relative;left:0px;top:0px;padding:0px;margin:0px;"><tr><td align="left" valign="bottom" style="width:'+slide3_icwidth+'px;height:'+slide3_icheight+'px;left:0px;top:0px;padding:0px;margin:0px;text-align:'+'left'+';vertical-align:'+'bottom'+';">';
    dstr3='<img id="slide3img';
    dstr4='" src="';
    dstr5='" style="position:relative;border:0px;'+imagesizingholder+'" alt="" border="0"></img>';
    dstr56='</td></tr></table>';
    dstr6='</div>';
    this.slide3dotrans=slide3dotrans;
    this.slide3initte=slide3initte;
    this.slide3initte2=slide3initte2;
    this.slide3beftrans=slide3beftrans;
    this.slide3dotransff=slide3dotransff;
}

function slide3dotrans()
{	
    if(IEB==true){slide3vssdiv.filters[0].apply();
}	

slide3objc=document.getElementById('slide3d'+slide3vcurr);	
slide3objn=document.getElementById('slide3d'+slide3vnext);			
slide3objc.style.visibility="hidden";	
slide3objn.style.visibility="visible";	

if(IEB==true)
{
    slide3vssdiv.filters[0].play();
}		

slide3vcurr=slide3vnext;
slide3vnext=slide3vnext+1;		

if(slide3vnext >= slide3_numberOfImages)	
{		
    slide3vnext=0;	
    
}			

setTimeout('slide3dotrans()',((1000*2)+5000));

}

function slide3dotransff()
{	
    slide3op=slide3op-slide3dif;	
    slide3objc=document.getElementById('slide3d'+slide3vcurr);	
    slide3objn=document.getElementById('slide3d'+slide3vnext);		
    
    if(slide3op<(0.00))
    {
        slide3op=0.00;
    }	
    slide3objc.style.opacity = slide3op;	
    slide3objn.style.opacity = 1.00-slide3op;	
    
    if(slide3op>(0.00))	
    {		
        setTimeout('slide3dotransff()',25);	
    }
    else
    {		
        slide3objc.style.zIndex=2;		
        slide3objn.style.zIndex=3;		
        setTimeout('slide3beftrans()',3000);			
    }
}

function slide3beftrans()
{	
    slide3vcurr=slide3vnext;	
    slide3vnext=slide3vnext+1;

    if (slide3vnext >= slide3_numberOfImages)	
    {		
        slide3vnext=0;	
    }	
    
    slide3op=1.00;	
    slide3objc=document.getElementById('slide3d'+slide3vcurr);	
    slide3objn=document.getElementById('slide3d'+slide3vnext);	
    slide3objc.style.visibility="visible";	
    slide3objn.style.visibility="visible";		
    slide3objc.style.zIndex=3;	
    slide3objn.style.zIndex=2;		
    slide3objc.style.opacity = 1.00;		
    slide3objn.style.opacity = 1.00;			
    slide3dotransff();	
}

function slide3initte2()
{	
    slide3vssdiv=document.getElementById("slide3dv");	
    
    if(2>0)	
    {		
        slide3objc=document.getElementById('slide3d'+0);			
        slide3objc.style.visibility="visible";		
    }	
    if(2>1)	
    {		
        if((IEB==true)||(slide3fademi==0))		
        {			
            slide3vcurr=0;			
            slide3vnext=1;			
            setTimeout('slide3dotrans()',3000);		
        }		
        else		
        {			
            slide3vcurr=0;			
            slide3vnext=0;					
            setTimeout('slide3beftrans()',3000);			
        }	
     }
}


function slide3initte()
{	
    i=0;	
    innertxt="";
    for (i = 0; i < slide3_numberOfImages; i++)	
    {		
        innertxt=innertxt+dstr1+"slide3d"+i+dstr2+dstr23+linkstr[i]+dstr3+i+dstr4+imgstr[i]+dstr5+dstr56+clslinkstr[i]+dstr6;	
    }	
    
    spage=document.getElementById('slide3dv');	
    spage.innerHTML=""+innertxt;	
    setTimeout('slide3initte2()',1000);
}

slide3s=new slide3sl();
slide3s.slide3initte();