function slide1sl(){

	fademi=1;
	imgarr=new Array();
	imgstr=new Array();
	linkstr=new Array();
	clslinkstr=new Array();
				
    imgarr[0]=new Image();
	imgarr[0].src='http://cedarfoundation.org/images/title_pic4.jpg';
	imgstr[0]='http://cedarfoundation.org/images/title_pic4.jpg';
	linkstr[0]='';
	clslinkstr[0]='';
	
	imgarr[1]=new Image();
	imgarr[1].src='http://cedarfoundation.org/images/title_pic5.jpg';
	imgstr[1]='http://cedarfoundation.org/images/title_pic5.jpg';
	linkstr[1]='';
	clslinkstr[1]='';
	
	imgarr[2]=new Image();
	imgarr[2].src='http://cedarfoundation.org/images/title_pic6.jpg';
	imgstr[2]='http://cedarfoundation.org/images/title_pic6.jpg';
	linkstr[2]='';
	clslinkstr[2]='';

	imgarr[3]=new Image();
	imgarr[3].src='http://cedarfoundation.org/images/title_pic7.jpg';
	imgstr[3]='http://cedarfoundation.org/images/title_pic7.jpg';
	linkstr[3]='';
	clslinkstr[3]='';
  
	imgarr[4]=new Image();
	imgarr[4].src='http://cedarfoundation.org/images/title_pic8.jpg';
	imgstr[4]='http://cedarfoundation.org/images/title_pic8.jpg';
	linkstr[4]='';
	clslinkstr[4]='';
  
	imgarr[5]=new Image();
	imgarr[5].src='http://cedarfoundation.org/images/title_pic9.jpg';
	imgstr[5]='http://cedarfoundation.org/images/title_pic9.jpg';
	linkstr[5]='';
	clslinkstr[5]='';
				
    imgarr[6]=new Image();
	imgarr[6].src='http://cedarfoundation.org/images/title_pic10.jpg';
	imgstr[6]='http://cedarfoundation.org/images/title_pic10.jpg';
	linkstr[6]='';
	clslinkstr[6]='';
	
	imgarr[7]=new Image();
	imgarr[7].src='http://cedarfoundation.org/images/title_pic11.jpg';
	imgstr[7]='http://cedarfoundation.org/images/title_pic11.jpg';
	linkstr[7]='';
	clslinkstr[7]='';
	
	imgarr[8]=new Image();
	imgarr[8].src='http://cedarfoundation.org/images/title_pic12.jpg';
	imgstr[8]='http://cedarfoundation.org/images/title_pic12.jpg';
	linkstr[8]='';
	clslinkstr[8]='';

	
vcurr = 0;
vnext = 0;
vssdiv = null;
stepc = 20 * (3000 / 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="visibility:hidden; position: absolute;">';
dstr3 = '<img id="slide1img';
dstr4 = '" src="';
dstr5 = '" style="" alt="" border="0"></img>';
dstr6 = '</div>';
this.slide1dotrans = slide1dotrans;
this.slide1initte = slide1initte;
this.slide1initte2 = slide1initte2;
this.slide1beftrans = slide1beftrans;
this.slide1dotransff = slide1dotransff;
}
function slide1dotrans() {
if(IEB == true) {
   vssdiv.filters[0].apply();
   }
objc = document.getElementById('slide1d' + vcurr);
objn = document.getElementById('slide1d' + 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('slide1dotrans()', (3000 + 2000));
}
function slide1dotransff() {
op = op - dif;
objc = document.getElementById('slide1d' + vcurr);
objn = document.getElementById('slide1d' + vnext);
if(op < (0.00)) {
   op = 0.00;
   }
objc.style.opacity = op;
objn.style.opacity = 1.00;
if(op > (0.00)) {
   setTimeout('slide1dotransff()', 50);
   }
else {
   objc.style.zIndex = 2;
   objn.style.zIndex = 3;
   setTimeout('slide1beftrans()', 2000);
   }
}
function slide1beftrans() {
vcurr = vnext;
vnext = vnext + 1;
if(vnext >= 9) {
   vnext = 0;
   }
op = 1.00;
objc = document.getElementById('slide1d' + vcurr);
objn = document.getElementById('slide1d' + 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;
slide1dotransff();
}
function slide1initte2() {
vssdiv = document.getElementById("pic");
if(5 > 0) {
   objc = document.getElementById('slide1d' + 0);
   objc.style.visibility = "visible";
   }
if(5 > 1) {
   if((IEB == true) || (fademi == 0)) {
      vcurr = 0;
      vnext = 1;
      setTimeout('slide1dotrans()', 2000);
      }
   else {
      vcurr = 0;
      vnext = 0;
      setTimeout('slide1beftrans()', 2000);
      }
   }
}
function slide1initte() {
i = 0;
innertxt = "";
for(i = 0; i < 9; i++) {
   innertxt = innertxt + dstr1 + "slide1d" + i + dstr2 + linkstr[i] + dstr3 + i + dstr4 + imgstr[i] + dstr5 + clslinkstr[i] + dstr6;
   }
spage = document.getElementById('pic');
spage.innerHTML = "" + innertxt;
setTimeout('slide1initte2()', 200);
}
s = new slide1sl();
s.slide1initte();

