﻿// JScript File
   var imgSelected = new Array(2);
   var imgSRCt = new Array(2); 
   
   imgSelected[1] = "images/Sponsors/Performance2500_Over.jpg";
   imgSelected[2] = "images/Sponsors/Performance2400_Over.jpg";
   imgSelected[3] = "images/Sponsors/OffStage_Over.jpg";
   imgSelected[4] = "images/Sponsors/Government_Over.jpg";
   imgSelected[5] = "images/Sponsors/Foundation_Media_Over.jpg";
   imgSelected[6] = "images/Sponsors/Series_Catering_Over.jpg";
   
   imgSRCt[1] = "images/Sponsors/Performance2500.jpg";
   imgSRCt[2] = "images/Sponsors/Performance2400.jpg";
   imgSRCt[3] = "images/Sponsors/OffStage.jpg";
   imgSRCt[4] = "images/Sponsors/Government.jpg"; 
   imgSRCt[5] = "images/Sponsors/Foundation_Media.jpg";  
   imgSRCt[6] = "images/Sponsors/Series_Catering.jpg"; 

function rollOver(imgObj){
  var imgID = imgObj.id;
  
  for (i = 1; i <= 6; i++)
   {     
      if ("tag" + i == imgID){
         if(document.getElementById("Section" + i).style.display=='block'){
            document.getElementById("tag" + i).src = imgSRCt[i]
            document.getElementById("Section" + i).style.display = "none";
            document.getElementById("Default").style.display = "block";
         } 
         else{
            document.getElementById("tag" + i).src = imgSelected[i];
            document.getElementById("Default").style.display = "none";
            document.getElementById("Section" + i).style.display = "block";
         }
      }
      else{
         document.getElementById("tag" + i).src = imgSRCt[i]
         document.getElementById("Section" + i).style.display = "none";
      }
   }
}

