function cc_frontsl(){
 cc_frontfademi=1;
 imgarr=new Array();
 imgstr=new Array();
 linkstr=new Array();
 clslinkstr=new Array();
 cc_numpics=3;
 cc_width=430;
 cc_height=100;
 imgarr[0]=new Image();imgarr[0].src='slideshow/image1.jpg';imgstr[0]='slideshow/image1.jpg';linkstr[0]='';clslinkstr[0]='';
 imgarr[1]=new Image();imgarr[1].src='slideshow/image2.jpg';imgstr[1]='slideshow/image2.jpg';linkstr[1]='';clslinkstr[1]='';
 imgarr[2]=new Image();imgarr[2].src='slideshow/image3.jpg';imgstr[2]='slideshow/image3.jpg';linkstr[2]='';clslinkstr[2]='';
 cc_frontvcurr=0;
 cc_frontvnext=0;
 cc_frontvssdiv=null;
 stepc=20*(2000/1000);
 cc_frontdif=0.00;
 cc_frontop=1.00;
 cc_frontdif=(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:'+cc_width+'px;height:'+cc_height+'px;visibility:hidden;left:0px;top:0px;padding:0px;margin:0px;overflow:hidden;">';
 dstr3='<img id="cc_frontimg';
 dstr4='" src="';
 dstr5='" style="position:relative;left:0px;top:0px;padding:0px;margin:0px;border:0px;" alt="" border="0"></img>';
 dstr6='</div>';
 this.cc_frontdotrans=cc_frontdotrans;
 this.cc_frontinitte=cc_frontinitte;
 this.cc_frontinitte2=cc_frontinitte2;
 this.cc_frontbeftrans=cc_frontbeftrans;
 this.cc_frontdotransff=cc_frontdotransff;
}

function cc_frontdotrans(){
 if(IEB==true){cc_frontvssdiv.filters[0].apply();}
 cc_frontobjc=document.getElementById('cc_frontd'+cc_frontvcurr);
 cc_frontobjn=document.getElementById('cc_frontd'+cc_frontvnext);
 cc_frontobjc.style.visibility="hidden";
 cc_frontobjn.style.visibility="visible";
 if(IEB==true){cc_frontvssdiv.filters[0].play();}
 cc_frontvcurr=cc_frontvnext;	cc_frontvnext=cc_frontvnext+1;		
 if(cc_frontvnext>=cc_numpics){cc_frontvnext=0;}
 setTimeout('cc_frontdotrans()',(2000+4000));
}

function cc_frontdotransff(){
 cc_frontop=cc_frontop-cc_frontdif;
 cc_frontobjc=document.getElementById('cc_frontd'+cc_frontvcurr);
 cc_frontobjn=document.getElementById('cc_frontd'+cc_frontvnext);
 if(cc_frontop<(0.00)){cc_frontop=0.00;}
 cc_frontobjc.style.opacity = cc_frontop;
 cc_frontobjn.style.opacity = 1.00;
 if(cc_frontop>(0.00)) {setTimeout('cc_frontdotransff()',50);}
  else {
   cc_frontobjc.style.zIndex=2;
   cc_frontobjn.style.zIndex=3;
   setTimeout('cc_frontbeftrans()',4000);
 }
}

function cc_frontbeftrans(){
 cc_frontvcurr=cc_frontvnext;
 cc_frontvnext=cc_frontvnext+1;
 if(cc_frontvnext>=cc_numpics)	{cc_frontvnext=0;}
 cc_frontop=1.00;
 cc_frontobjc=document.getElementById('cc_frontd'+cc_frontvcurr);
 cc_frontobjn=document.getElementById('cc_frontd'+cc_frontvnext);
 cc_frontobjc.style.visibility="visible";
 cc_frontobjn.style.visibility="visible";
 cc_frontobjc.style.zIndex=3;
 cc_frontobjn.style.zIndex=2;
 cc_frontobjc.style.opacity = 1.00;
 cc_frontobjn.style.opacity = 1.00;
 cc_frontdotransff();
}

function cc_frontinitte2(){
 cc_frontvssdiv=document.getElementById("picfader");
 if(12>0){
  cc_frontobjc=document.getElementById('cc_frontd'+0);
  cc_frontobjc.style.visibility="visible";
 }	
 if(12>1){
  if((IEB==true)||(cc_frontfademi==0)){
   cc_frontvcurr=0;
   cc_frontvnext=1;
   setTimeout('cc_frontdotrans()',4000);
  }
  else{
   cc_frontvcurr=0;
   cc_frontvnext=0;
   setTimeout('cc_frontbeftrans()',4000);
  }
 }
}

function cc_frontinitte(){
 i=0;
 innertxt="";
 for(i=0;i<cc_numpics;i++){
  innertxt=innertxt+dstr1+"cc_frontd"+i+dstr2+linkstr[i]+dstr3+i+dstr4+imgstr[i]+dstr5+clslinkstr[i]+dstr6;
 }
 spage=document.getElementById('picfader');
 spage.innerHTML=""+innertxt;
 setTimeout('cc_frontinitte2()',200);
}

cc_fronts=new cc_frontsl();
cc_fronts.cc_frontinitte();

