// Global Variables 

  var number_of_images = 7;
  
  var current_image = 0;
  var current_msg =0;
         
        images_to_display = new Array(number_of_images);
        big_images_to_display = new Array(number_of_images);
		
		images_to_display[0] = "images/ncrs_post.png";
        images_to_display[1] = "images/gate_house.png";
        images_to_display[2] = "images/admin_building.png";
		images_to_display[3] = "images/nimbia_kaduna.png";

		images_to_display[4] = "images/dig_political_map_plateau.png";
        images_to_display[5] = "images/ganawure_jos_dem.png";

        images_to_display[6] = "images/Part_YolaTownship.png";
        
                
        big_images_to_display[0] = "images/big_ncrs_post.png";
        big_images_to_display[1] = "images/big_gate_house.png";
        big_images_to_display[2] = "images/big_admin_building.png";
		big_images_to_display[3] = "images/big_nimbia_kaduna.png";

		big_images_to_display[4] = "images/big_dig_political_map_plateau.png";
        big_images_to_display[5] = "images/big_ganawure_jos_dem.png";

        big_images_to_display[6] = "images/big_Part_YolaTownship.png";

        images_desc = new Array(number_of_images);
		
		
		images_desc[0] = "Sign Post to NCRS Jos";
        images_desc[1] = "Gate House ";
		
        images_desc[2] = "Admin. Building Kaduna";
		images_desc[3] = "Nimbia Forest Kaduna";

        images_desc[4] = "Digital Political Map of Plateau State Nigeria";
        images_desc[5] = "Digital Elevation Map Ganawure-Jos, Nigeria";

        images_desc[6] = "Part of Yola Township from SPOT X";
        

//individualized messages

        images_abstract = new Array(number_of_images);

        images_abstract[0] = "<center><BR>Sign Post<B><U></U></B></center><BR> <BR>";
        images_abstract[1] = "<center><B><U>Gate House</U></B></center>Entrance to our newly commissioned headquarters<BR>"; 
		
		images_abstract[2] = "<center><B><U>Administrative Building</U></B></center><BR>"; 
        images_abstract[3] = "<center><B><U>Forest Management (Nimbia)</U></B></center><BR>"; 

        images_abstract[4] = "<center><BR><B><U>JOS-Environs</U></B></center><BR>This image was used for DEM project. <BR>";
 
        images_abstract[5] = "<center><B><U>Ganawure</U></B></center> A suburb of Jos<BR>";

        images_abstract[6] = "<center><B><U>Satellite Source:</U></B></center>SPOT XS1995<BR>";


       
roll_msg = new Array(number_of_images);


 roll_msg[0] = "<MARQUEE loop='1'>  ....We are the National Centre, building Remote Sensing Technologies for Sustainable Development of Nigeria...</MARQUEE>";
 roll_msg[1] = "<MARQUEE loop='1'>  We can provide satellite Imageries for your operations at competitive prices.</MARQUEE>";

  roll_msg[2] = "<MARQUEE loop='1'> ....We colloborate on research and development of major projects, with local and international entities.</MARQUEE>";

 roll_msg[3] = "<MARQUEE loop='1'>Congratulations to the Management & Staff of the centre for a successful commissioning of the permanent site.</MARQUEE>";
 
  roll_msg[4] = " <MARQUEE loop='1'> ... Are you a GIS expert, in transportation, exploration,Surveying or construction business? ... </MARQUEE>";

 
  roll_msg[5] = "<MARQUEE loop='2'>.................Join us in building a brighter future for Nigeria..................</MARQUEE>";




// prepare for rotation
 
   var no_of_images =  images_to_display.length;
   
   var no_of_msg = roll_msg.length;
   var picture_div_text;

function rotate_images()
{
    
  
  if (current_image == no_of_images)
     {
      current_image = 0;
     }

     document.images_pic.src = images_to_display[current_image];  
	 
	 
	     
	 picture_div_text =  "<a href ='" + big_images_to_display[current_image] + "' target='new'> <img name ='images_pic' title ='' ";
	 picture_div_text = picture_div_text + "src='" + images_to_display[current_image] + "' height = '130' width = '200' border ='0'></a>'";

	 
	 document.all.item("images_div").innerHTML = picture_div_text; 
	
	   
     document.images_pic.title = images_desc[current_image];
     
     document.images_pic.alt="Oops! Picture Missing. Sorry!";  // in case the image is missing

document.all.item("image_holder").innerHTML= "<font color='blue' size='2'> " +  images_desc[current_image] + "</font>";

document.all.item("msg_holder").innerHTML= "<font color='green' size='2'> " + images_abstract[current_image] + "</font>";

current_image++ ; 

 if (current_msg == no_of_msg)
     {
      current_msg = 0;
     }

   document.all.item("rolling_msg").innerHTML= "<font color='blue' size='3'> " + roll_msg[current_msg] + "</font>";


     current_msg++ ; 

    
   setTimeout("rotate_images()", 10 * 3000); 

 
  }