﻿
/* Copyright 1999 By Heidi Allen

Knowledge Hound - The How-To Hunter
Learn how to do almost anything...for free!
Please visit us at http://www.knowledgehound.com  */

var image = "";
var banners = 0;

function cycle() {
  if (++banners > 9) banners=1;
    loadbanners();
    document.school1.src = image;

    window.setTimeout('cycle();',6000);
  }

  
function loadbanners() {
   if (banners==1)
      {
      image="images/homeRotate/schoolM/school_1.jpg";
      }
   if (banners==2)
      {
      image="images/homeRotate/schoolM/school_2.jpg";
      }
   if (banners==3)
      {
      image="images/homeRotate/schoolM/school_3.jpg";
      }
   if (banners==4)
      {
      image="images/homeRotate/schoolM/school_4.jpg";
      }      
   if (banners==5)
      {
      image="images/homeRotate/schoolM/school_5.jpg";
      }  
   if (banners==6)
      {
      image="images/homeRotate/schoolM/school_6.jpg";
      } 
         if (banners==7)
      {
      image="images/homeRotate/schoolM/school_7.jpg";
      } 
         if (banners==8)
      {
      image="images/homeRotate/schoolM/school_8.jpg";
      } 
         if (banners==9)
      {
      image="images/homeRotate/schoolM/school_9.jpg";
      } 
      }



var imageT = "";
var bannersT = 0;

function cycleT() {
  if (++bannersT > 8) bannersT=1;
    loadbannersT();
    document.tour1.src = imageT;

    window.setTimeout('cycleT();',6000);

  }

  
function loadbannersT() {
   if (bannersT==1)
      {
      imageT="images/homeRotate/tourL/tour_1.jpg";
      }
   if (bannersT==2)
      {
      imageT="images/homeRotate/tourL/tour_2.jpg";
      }
   if (bannersT==3)
      {
      imageT="images/homeRotate/tourL/tour_3.jpg";
      }
   if (bannersT==4)
      {
      imageT="images/homeRotate/tourL/tour_4.jpg";
      }      
   if (bannersT==5)
      {
      imageT="images/homeRotate/tourL/tour_5.jpg";
      }  
 if (bannersT==6)
      {
      imageT="images/homeRotate/tourL/tour_6.jpg";
      }   
if (bannersT==7)
      {
      imageT="images/homeRotate/tourL/tour_7.jpg";
      }   
if (bannersT==8)
      {
      imageT="images/homeRotate/tourL/tour_8.jpg";
      }  
      
      }


var imageS = "";
var bannersS = 0;

function cycleS() {
  if (++bannersS > 8) bannersS=1;
    loadbannersS();
    document.sing1.src = imageS;

    window.setTimeout('cycleS();',6000);

  }

  
function loadbannersS() {
   if (bannersS==1)
      {
      imageS="images/homeRotate/singR/sing_1.jpg";
      }
   if (bannersS==2)
      {
      imageS="images/homeRotate/singR/sing_2.jpg";
      }
   if (bannersS==3)
      {
      imageS="images/homeRotate/singR/sing_3.jpg";
      }
   if (bannersS==4)
      {
      imageS="images/homeRotate/singR/sing_4.jpg";
      }      
   if (bannersS==5)
      {
      imageS="images/homeRotate/singR/sing_5.jpg";
      }  
   if (bannersS==6)
      {
      imageS="images/homeRotate/singR/sing_6.jpg";
      }  
         if (bannersS==7)
      {
      imageS="images/homeRotate/singR/sing_7.jpg";
      }  
         if (bannersS==8)
      {
      imageS="images/homeRotate/singR/sing_8.jpg";
      }  
        
      }



function startImages()	{
	window.setTimeout('cycle();',4000);(loadbanners());
    window.setTimeout('cycleT();',4000);(loadbannersT());
    window.setTimeout('cycleS();',4000);(loadbannersS());
	}
