if(document.images)
{
    pics = new Array();
    pics[01] = new Image();
    pics[01].src = "images/index.jpg";
    pics[02] = new Image();
    pics[02].src = "images/index_ovr.jpg";
	
    pics[03] = new Image();
    pics[03].src = "images/products.jpg";
    pics[04] = new Image();
    pics[04].src = "images/products_ovr.jpg";
}


function change(from,to)
{
    if(document.images)
    {
        document.images[from].src = pics[to].src;
    }
}


