var browversion=navigator.appVersion.substring(0,2)

profileon = new Image();
profileon.src = "images/profileon.gif";

profileoff = new Image();
profileoff.src = "images/profileoff.gif";

compon = new Image();
compon.src = "images/compon.gif";

compoff = new Image();
compoff = "images/compoff.gif";

ongoingon = new Image();
ongoingon.src = "images/ongoingon.gif";

ongoingoff = new Image();
ongoingoff.src = "images/ongoingoff.gif";

futureon = new Image();
futureon.src = "images/futureon.gif";

futureoff = new Image();
futureoff.src = "images/futureoff.gif";

contacton = new Image();
contacton.src = "images/contacton.gif";

contactoff = new Image();
contactoff.src = "images/contactoff.gif";

function imageOn(ImageName)
{  
   if(browversion>=3)
    {
      document[ImageName].src="images/"+ImageName+"on.gif";  
     }

}

function imageOff(ImageName)
{
   if(browversion>=3)
  {
    document[ImageName].src="images/"+ImageName+"off.gif";
  }
}
























