if (document.images) {

	home_weaponson = new Image();
    home_weaponson.src = "/images/home_weapons_on.gif";
    home_weaponsoff = new Image();
    home_weaponsoff.src = "/images/home_weapons_off.gif";
	home_uniformson = new Image();
    home_uniformson.src = "/images/home_uniforms_on.gif";
    home_uniformsoff = new Image();
    home_uniformsoff.src = "/images/home_uniforms_off.gif";
	home_shoeson = new Image();
    home_shoeson.src = "/images/home_shoes_on.gif";
    home_shoesoff = new Image();
  	home_shoesoff.src = "/images/home_shoes_off.gif";
	home_videoson = new Image();
    home_videoson.src = "/images/home_videos_on.gif";
    home_videosoff = new Image();
    home_videosoff.src = "/images/home_videos_off.gif";
	home_musicon = new Image();
    home_musicon.src = "/images/home_music_on.gif";
    home_musicoff = new Image();
    home_musicoff.src = "/images/home_music_off.gif";
 	home_accessorieson = new Image();
    home_accessorieson.src = "/images/home_accessories_on.gif";
    home_accessoriesoff = new Image();
    home_accessoriesoff.src = "/images/home_accessories_off.gif";
	home_avon = new Image();
    home_avon.src = "/images/home_av_on.gif";
    home_avoff = new Image();
    home_avoff.src = "/images/home_av_off.gif";
 	home_customon = new Image();
    home_customon.src = "/images/home_custom_on.gif";
    home_customoff = new Image();
    home_customoff.src = "/images/home_custom_off.gif";
	home_specialon = new Image();
    home_specialon.src = "/images/home_special_on.gif";
    home_specialoff = new Image();
    home_specialoff.src = "/images/home_special_off.gif";
	home_contacton = new Image();
    home_contacton.src = "/images/home_contact_on.gif";
    home_contactoff = new Image();
    home_contactoff.src = "/images/home_contact_off.gif";
		
	nav_homeon = new Image();
    nav_homeon.src = "/images/nav_home_on.gif";
    nav_homeoff = new Image();
    nav_homeoff.src = "/images/nav_home_off.gif";
	nav_weaponson = new Image();
    nav_weaponson.src = "/images/nav_weapons_on.gif";
    nav_weaponsoff = new Image();
    nav_weaponsoff.src = "/images/nav_weapons_off.gif";
	nav_uniformson = new Image();
    nav_uniformson.src = "/images/nav_uniforms_on.gif";
    nav_uniformsoff = new Image();
    nav_uniformsoff.src = "/images/nav_uniforms_off.gif";
	nav_shoeson = new Image();
    nav_shoeson.src = "/images/nav_shoes_on.gif";
    nav_shoesoff = new Image();
  	nav_shoesoff.src = "/images/nav_shoes_off.gif";
	nav_videoson = new Image();
    nav_videoson.src = "/images/nav_videos_on.gif";
    nav_videosoff = new Image();
    nav_videosoff.src = "/images/nav_videos_off.gif";
	nav_musicon = new Image();
    nav_musicon.src = "/images/nav_music_on.gif";
    nav_musicoff = new Image();
    nav_musicoff.src = "/images/nav_music_off.gif";
 	nav_accessorieson = new Image();
    nav_accessorieson.src = "/images/nav_accessories_on.gif";
    nav_accessoriesoff = new Image();
    nav_accessoriesoff.src = "/images/nav_accessories_off.gif";
	nav_avon = new Image();
    nav_avon.src = "/images/nav_av_on.gif";
    nav_avoff = new Image();
    nav_avoff.src = "/images/nav_av_off.gif";
 	nav_customon = new Image();
    nav_customon.src = "/images/nav_custom_on.gif";
    nav_customoff = new Image();
    nav_customoff.src = "/images/nav_custom_off.gif";
	nav_specialon = new Image();
    nav_specialon.src = "/images/nav_special_on.gif";
    nav_specialoff = new Image();
    nav_specialoff.src = "/images/nav_special_off.gif";
	nav_contacton = new Image();
    nav_contacton.src = "/images/nav_contact_on.gif";
    nav_contactoff = new Image();
    nav_contactoff.src = "/images/nav_contact_off.gif";	
		
	button_shortweaponson = new Image();
    button_shortweaponson.src = "/images/button_shortweapons_on.gif";
    button_shortweaponsoff = new Image();
    button_shortweaponsoff.src = "/images/button_shortweapons.gif";
 	button_longweaponson = new Image();
    button_longweaponson.src = "/images/button_longweapons_on.gif";
    button_longweaponsoff = new Image();
    button_longweaponsoff.src = "/images/button_longweapons.gif";
	button_doubleweaponson = new Image();
    button_doubleweaponson.src = "/images/button_doubleweapons_on.gif";
    button_doubleweaponsoff = new Image();
    button_doubleweaponsoff.src = "/images/button_doubleweapons.gif";
	button_miscweaponson = new Image();
    button_miscweaponson.src = "/images/button_miscweapons_on.gif";
    button_miscweaponsoff = new Image();
    button_miscweaponsoff.src = "/images/button_miscweapons.gif";	
      
}

// Function to 'activate' images.
function imgOn(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "on.src");
           
           
        }
}



// Function to 'deactivate' images.
function imgOff(imgName) {
        if (document.images) {
            document[imgName].src = eval(imgName + "off.src");
            
          
        }
}

