
//----pre-caching images
if (document.images) {

homeoff = new Image();
homeoff.src = "images/home_over.gif";
homeon =  new Image();
homeon.src = "images/home.gif";

reffer_a_friendoff = new Image();
reffer_a_friendoff.src = "images/reffer_a_friend_over.gif";
reffer_a_friendon =  new Image();
reffer_a_friendon.src = "images/reffer_a_friend.gif";

gift_ideasoff = new Image();
gift_ideasoff.src = "images/gift_ideas_over.gif";
gift_ideason =  new Image();
gift_ideason.src = "images/gift_ideas.gif";

helpoff = new Image();
helpoff.src = "images/help_over.gif";
helpon =  new Image();
helpon.src = "images/help.gif";

contact_usoff = new Image();
contact_usoff.src = "images/contact_us_over.gif";
contact_uson =  new Image();
contact_uson.src = "images/contact_us.gif";

my_accountoff = new Image();
my_accountoff.src = "images/my_account_over.gif";
my_accounton =  new Image();
my_accounton.src = "images/my_account.gif";

view_cartoff = new Image();
view_cartoff.src = "images/view_cart_over.gif";
view_carton =  new Image();
view_carton.src = "images/view_cart.gif";

}

function imageon(imgName){
        if (document.images) {
    document[imgName].src = eval(imgName + 'on.src')
}}

function imageoff(imgName){
        if (document.images) {
    document[imgName].src = eval(imgName + 'off.src')

}}
