imgs = [

  
   
    'http://www.eastsidechurch.org/RotateFadeImg/ExciteNight.png',
   'http://www.eastsidechurch.org/RotateFadeImg/Easter2010.png',
	'http://www.eastsidechurch.org/RotateFadeImg/Easter Extravaganza.png',		
	'http://www.eastsidechurch.org/RotateFadeImg/MensAdvance.png',
   
	//'http://www.eastsidechurch.org/RotateFadeImg/Moses573x200.png',
	//'http://www.eastsidechurch.org/RotateFadeImg/WelcomeBrunch573x200.png',
	// 'http://www.eastsidechurch.org/RotateFadeImg/Feinberg.png',
	// 'http://www.eastsidechurch.org/RotateFadeImg/FPU.png'
	'http://www.eastsidechurch.org/RotateFadeImg/Choir-OrchEaster.png'

   





];


urls = [
    
    'http://uturnjh.blogspot.com/2010/02/excite-night.html',
    'http://www.eastsidechurch.org/Images/2010Easterposter11x17.pdf', 
  'http://www.eastsidechurch.org/newevents.htm#Easter Extravaganza',
  'http://www.eastsidechurch.org/newevents.htm#mensadvance',
   	
    'http://www.eastsidechurch.org/newevents.htm#Choir-OrchEaster'
	
   
   // 'http://www.eastsidechurch.org/newevents.htm#Financial',
    //'http://www.eastsidechurch.org/newevents.htm#Moses573x200', 
   // 'http://www.eastsidechurch.org/newevents.htm#BeyondFrame573x200'
  


];
var timeoutID = 0;
var imgIndex = 0;


function rotate() {

    if (document.images) {

        imgIndex++;

        if (imgIndex >= imgs.length) {
            imgIndex = 0;
        }

        crossfade(document.getElementById('rollimg'), imgs[imgIndex], '1');

        timeoutID = setTimeout("rotate();", 4000);

    }

}


function gotoURL() {
    window.location = urls[imgIndex];
}

function prevImg() {
    if (document.images) {
        imgIndex--;
        if (imgIndex < 0) {
            if (imgs.length > 0) {
                imgIndex = imgs.length - 1;
            } else {
                imgIndex = 0;
            }
        }
        crossfade(document.getElementById('rollimg'), imgs[imgIndex], '1');

        clearTimeout(timeoutID);
    }

}

function nextImg() {
    if (document.images) {
        imgIndex++;
        if (imgIndex >= imgs.length) {
            imgIndex = 0;
        }

        crossfade(document.getElementById('rollimg'), imgs[imgIndex], '1');

        clearTimeout(timeoutID);
    }

}

timeoutID = setTimeout("rotate();", 6000);

