// JavaScript Document

//Procuct image switching for the index1 and index2 pages
if (document.images) 
{
	
	 // Set width and height of all images
	 var img_width=160;
	 var img_height=100;

	 // SET DEFAULT IMAGES FOR EACH FAMILY (onmouseout)    
	 desktop_off     = new Image(img_width,img_height);
	 desktop_off.src = "images/swap/hp_desktop_pc.jpg";
	 
	 printer_off     = new Image(img_width,img_height);
	 printer_off.src = "images/swap/hp_printer.jpg";
	 
	 storage_off     = new Image(img_width,img_height);
	 storage_off.src = "images/swap/hp_mediasmart_server.jpg";
	 
	 // DESKTOP IMAGES
	 desktop     = new Image(img_width,img_height);
	 desktop.src = "images/swap/hp_desktop_pc.jpg";

	 notebook     = new Image(img_width,img_height);
	 notebook.src = "images/swap/hp_notebook.jpg";
	 
	 handheld     = new Image(img_width,img_height);
	 handheld.src = "images/swap/hp_ipaq_handheld.jpg";
	 
	 monitor     = new Image(img_width,img_height);
	 monitor.src = "images/swap/hp_monitor.jpg";

	 accessories     = new Image(img_width,img_height);
	 accessories.src = "images/swap/hp_accessories.jpg";
	 
	 thin    = new Image(img_width,img_height);
	 thin.src = "images/swap/hp_thin.jpg";
	 
	 gaming     = new Image(img_width,img_height);
	 gaming.src = "images/swap/voodoo_desktop.jpg";
	 
	 // PRINTING IMAGES
	 printer     = new Image(img_width,img_height);
	 printer.src = "images/swap/hp_printer.jpg";

	 fcs     = new Image(img_width,img_height);
	 fcs.src = "images/swap/hp_scanner.jpg";
	 
	 dp     = new Image(img_width,img_height);
	 dp.src = "images/swap/hp_photosmart.jpg";
	 
	 supplies     = new Image(img_width,img_height);
	 supplies.src = "images/swap/hp_supplies.jpg";
		 
	 // STORAGE IMAGES
	 mediasmart     = new Image(img_width,img_height);
	 mediasmart.src = "images/swap/hp_mediasmart_server.jpg";
	 
	 mediavault     = new Image(img_width,img_height);
	 mediavault.src = "images/swap/hp_media_vault.jpg";
	 	 	 
}

// Change the image
function swap(imgName,picobj) 
{
	if (document.images) 
	{ 
		document.images[imgName].src= picobj.src;
	}
}