// TOP NAVIGATION SCRIPT
       var internetPaymentsOn = null;
//set path to navigation image directory
var pth = "/content/images/navigation/";
/*function youAreHereState()
{
    if(internetPaymentsOn == 1)
    {
	document.images['internet_payments'].src = "/content/images/navigation/internet_payments_over.jpg";
    }
}*/







//load array of image names. We'll append _out.gif and _over.gif to these when we set the source
var imgArray = new Array('products','resellers','merchants','developers','company','newscenter','contact');
var imgOut = new Array();
var imgOver = new Array();




    // preload the images
    if (document.images)
    {   // i is passed when we call the function from the image link
        // loop through the imgArray, create a new image object of the same name
        // and set it's src to pth + rootname + _out.gif or _over.gif
        for( i=0; i<imgArray.length; i++)
        {
            // preload the out images
            imgOut[i] = new Image();
            imgOut[i].src = pth + imgArray[i] + "_out.jpg";
            // preload the over images
            imgOver[i] = new Image();
            imgOver[i].src = pth + imgArray[i] + "_over.jpg";
                 
        }   // okay. the image objects now have their paths set to 1 out gif and 2 over gifs
     }

    function rollOver(i)
    {    
        document.images[imgArray[i]].src = imgOver[i].src; // set image with name i to imgOver[i].src
    }

    function rollOut(i)
    {    // swap it back
        document.images[imgArray[i]].src = imgOut[i].src;
   }