var heroes_to_rotate = new Array();
heroes_to_rotate[0] = new Array();heroes_to_rotate[0][0] = "Blue Schroeder";
heroes_to_rotate[0][1] = "/hero_image/file/240/thumb/bluesm.jpg";
heroes_to_rotate[1] = new Array();heroes_to_rotate[1][0] = "Sengha";
heroes_to_rotate[1][1] = "/hero_image/file/234/thumb/senga3.jpg";
heroes_to_rotate[2] = new Array();heroes_to_rotate[2][0] = "Bandit";
heroes_to_rotate[2][1] = "/hero_image/file/185/thumb/Banditwilma.jpg";
heroes_to_rotate[3] = new Array();heroes_to_rotate[3][0] = "Maggie";
heroes_to_rotate[3][1] = "/hero_image/file/177/thumb/tripods+swim_1_.jpg";
heroes_to_rotate[4] = new Array();heroes_to_rotate[4][0] = "Libby";
heroes_to_rotate[4][1] = "/hero_image/file/248/thumb/Jenny_kissing_Libby.jpg";
heroes_to_rotate[5] = new Array();heroes_to_rotate[5][0] = "Leo";
heroes_to_rotate[5][1] = "/hero_image/file/115/thumb/Love.jpg";
heroes_to_rotate[6] = new Array();heroes_to_rotate[6][0] = "Skylar";
heroes_to_rotate[6][1] = "/hero_image/file/220/thumb/skypie-best.jpg";
heroes_to_rotate[7] = new Array();heroes_to_rotate[7][0] = "Shayla Schroeder";
heroes_to_rotate[7][1] = "/hero_image/file/238/thumb/Shaylaheadsm.jpg";
heroes_to_rotate[8] = new Array();heroes_to_rotate[8][0] = "Lucky";
heroes_to_rotate[8][1] = "/hero_image/file/162/thumb/Lucky.jpg";
heroes_to_rotate[9] = new Array();heroes_to_rotate[9][0] = "Sydney Schroeder";
heroes_to_rotate[9][1] = "/hero_image/file/239/thumb/Sydneysm.jpg";
heroes_to_rotate[10] = new Array();heroes_to_rotate[10][0] = "Brooke";
heroes_to_rotate[10][1] = "/hero_image/file/258/thumb/Brooke_and_kids_2.jpg";
heroes_to_rotate[11] = new Array();heroes_to_rotate[11][0] = "Samson ";
heroes_to_rotate[11][1] = "/hero_image/file/236/thumb/100_0784.jpg";
heroes_to_rotate[12] = new Array();heroes_to_rotate[12][0] = "Atticus";
heroes_to_rotate[12][1] = "/hero_image/file/109/thumb/happy_face.jpg";
heroes_to_rotate[13] = new Array();heroes_to_rotate[13][0] = "Bandit Bartelloni";
heroes_to_rotate[13][1] = "/hero_image/file/192/thumb/happy_baandit.jpg";
heroes_to_rotate[14] = new Array();heroes_to_rotate[14][0] = "The Schroeder Herd";
heroes_to_rotate[14][1] = "/hero_image/file/263/thumb/daherdhayfixedlblsm.jpg";
heroes_to_rotate[15] = new Array();heroes_to_rotate[15][0] = "Sampson";
heroes_to_rotate[15][1] = "/hero_image/file/132/thumb/sampson.jpg";
heroes_to_rotate[16] = new Array();heroes_to_rotate[16][0] = "Cynnamon";
heroes_to_rotate[16][1] = "/hero_image/file/255/thumb/cyn.jpg";
heroes_to_rotate[17] = new Array();heroes_to_rotate[17][0] = "Aiden";
heroes_to_rotate[17][1] = "/hero_image/file/260/thumb/9-23-2005-02.jpg";
heroes_to_rotate[18] = new Array();heroes_to_rotate[18][0] = "Rowdy Roddy Piper";
heroes_to_rotate[18][1] = "/hero_image/file/91/thumb/roddy_portrait_2.jpg";
heroes_to_rotate[19] = new Array();heroes_to_rotate[19][0] = "Stone";
heroes_to_rotate[19][1] = "/hero_image/file/254/thumb/stone_in_the_poppies.jpg";
heroes_to_rotate[20] = new Array();heroes_to_rotate[20][0] = "Kassa Bella";
heroes_to_rotate[20][1] = "/hero_image/file/227/thumb/kass.jpg";
heroes_to_rotate[21] = new Array();heroes_to_rotate[21][0] = "Jogger";
heroes_to_rotate[21][1] = "/hero_image/file/108/thumb/JOGSNOW.JPG.jpg";
heroes_to_rotate[22] = new Array();heroes_to_rotate[22][0] = "Dakota";
heroes_to_rotate[22][1] = "/hero_image/file/141/thumb/DSCF0689.jpg";
heroes_to_rotate[23] = new Array();heroes_to_rotate[23][0] = "Candi";
heroes_to_rotate[23][1] = "/hero_image/file/311/thumb/Candi_-_I_love_fall_1.jpg";
heroes_to_rotate[24] = new Array();heroes_to_rotate[24][0] = "Hannibal";
heroes_to_rotate[24][1] = "/hero_image/file/166/thumb/Hoser_.jpg";
heroes_to_rotate[25] = new Array();heroes_to_rotate[25][0] = "Jasmine";
heroes_to_rotate[25][1] = "/hero_image/file/116/thumb/P8220011a.jpg";
heroes_to_rotate[26] = new Array();heroes_to_rotate[26][0] = "Runt Schroeder";
heroes_to_rotate[26][1] = "/hero_image/file/241/thumb/runtbuddypix.jpg";
var angel_viewImage = new Image();
var angel_preloadImage = new Image();
var currentAngel = 0;
var nextAngel = 1;
angel_viewImage.src = heroes_to_rotate[currentAngel][1];
angel_preloadImage.src = heroes_to_rotate[nextAngel][1];
function rotate_angel_image() {
currentAngel = (currentAngel+1) % heroes_to_rotate.length;
nextAngel = (nextAngel+1) % heroes_to_rotate.length;
opacity('angel', 100, 0, 500);
imgPreloader = new Image();
next_imgPreloader = new Image();
setTimeout(fade_up_image,700);
function fade_up_image()
{
	document.getElementById('angel_image').setAttribute('src',heroes_to_rotate[currentAngel][1]);
	so_clearInnerHTML(document.getElementById('angel_name'));
	document.getElementById('angel_name').appendChild(document.createTextNode(heroes_to_rotate[currentAngel][0]));
	opacity('angel',0,100,500);
}

imgPreloader.src = heroes_to_rotate[currentAngel][1];
next_imgPreloader.src = heroes_to_rotate[nextAngel][1]
setTimeout(rotate_angel_image,6000);
}

function init_angel_rotation() {
	document.getElementById('angel_image').setAttribute('src',heroes_to_rotate[currentAngel][1]);
  so_clearInnerHTML(document.getElementById('angel_name'));
  document.getElementById('angel_name').appendChild(document.createTextNode(heroes_to_rotate[currentAngel][0]));
	setTimeout(rotate_angel_image,6000);
}
function so_clearInnerHTML(obj) {
	while(obj.firstChild) obj.removeChild(obj.firstChild);
}
function opacity(id, opacStart, opacEnd, millisec) {
    //speed for each frame                                                                         
    var speed = Math.round(millisec / 100);                                                        
    var timer = 0;                                                                                 
                                                                                                   
    //determine the direction for the blending, if start and end are the same nothing happens      
    if(opacStart > opacEnd) {                                                                      
        for(i = opacStart; i >= opacEnd; i--) {                                                    
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));                      
            timer++;                                                                               
        }                                                                                          
    } else if(opacStart < opacEnd) {                                                               
        for(i = opacStart; i <= opacEnd; i++)                                                      
            {                                                                                      
            setTimeout("changeOpac(" + i + ",'" + id + "')",(timer * speed));                      
            timer++;                                                                               
        }                                                                                          
    }                                                                                              
}                                                                                                  
                                                                                                   
//change the opacity for different browsers                                                        
function changeOpac(opacity, id) {                                                                 
    var object = document.getElementById(id).style;                                                
    object.opacity = (opacity / 100);                                                              
    object.MozOpacity = (opacity / 100);                                                           
    object.KhtmlOpacity = (opacity / 100);                                                         
    object.filter = "alpha(opacity=" + opacity + ")";                                              
}                                                                                                  
Event.observe(window, 'load', init_angel_rotation, false);
