//Redirect url if site accessed with www.project20-20.org
var dir = location.href; 
if(dir.indexOf('project20-20.org') > 1)  
{  
 location.replace("http://www.project2020.org");  
} 
//Redirect url if site accessed with phpwebhosting.com 
if(dir.indexOf('phpwebhosting.com') > 1)  
{  
 location.replace("http://www.project2020.org");  
}

var pics;
pics = new Array();

var objCount = 0; // number of (changing) images on web-page

function preload(name, first, second) 
{  
 // preload images and place them in an array
 pics[objCount] = new Array(3);
 pics[objCount][1] = new Image();
 pics[objCount][1].src = first;
 pics[objCount][0] = name;
 pics[objCount][2] = new Image();
 pics[objCount][2].src = second;
 objCount++;
}

function on(name)
{
 for (i = 0; i < objCount; i++) 
 {
  if (document.images[pics[i][0]] != null)
  {
   if (name != pics[i][0]) 
   { 
    // set back all other pictures
    document.images[pics[i][0]].src = pics[i][1].src;
   } else 
   {
    // show the second image because cursor moves across this image
    document.images[pics[i][0]].src = pics[i][2].src;
   }
  }
 }
}

function off()
{
 for (i = 0; i < objCount; i++) 
 {
  // set back all pictures
  if (document.images[pics[i][0]] != null) 
  {
   document.images[pics[i][0]].src = pics[i][1].src;
  }
 }
}







