// JavaScript Document

//Procuct image switching for the index1 and index2 pages
if (document.images) 
{
	
	 // Set width and height of all images
	 var img_width=110;
	 var img_height=85;

	 // SET DEFAULT IMAGES FOR EACH FAMILY (onmouseout)    
	 inkjet_off     = new Image(img_width,img_height);
	 inkjet_off.src = "images/product/deskjet_6980.jpg";
	 
	 mfp_off     = new Image(img_width,img_height);
	 mfp_off.src = "images/product/colour_mfp_officejet_pro_8500.jpg";
	 
	 laserjet_off     = new Image(img_width,img_height);
	 laserjet_off.src = "images/product/bw_laserjet_p2015.jpg";

	 specialty_off		   = new Image(img_width,img_height);
	 specialty_off.src = "images/product/mobile_printer_h470.jpg";
	 
	 supplies_off		   = new Image(img_width,img_height);
	 supplies_off.src = "images/product/supplies.jpg";
	 
	 // COLOUR PRINTER IMAGES
	 inkjet_printer     = new Image(img_width,img_height);
	 inkjet_printer.src = "images/product/deskjet_6980.jpg";

	 photo_printer     = new Image(img_width,img_height);
	 photo_printer.src = "images/product/photosmart_b8550.jpg";
	 
	 color_laser_printer     = new Image(img_width,img_height);
	 color_laser_printer.src = "images/product/color_laserjet_cp3525.jpg";
	 
	 // MULTIFUNCTION IMAGES
	 col_mfp_printer     = new Image(img_width,img_height);
	 col_mfp_printer.src = "images/product/colour_mfp_officejet_pro_8500.jpg";

	 bw_mfp_printer     = new Image(img_width,img_height);
	 bw_mfp_printer.src = "images/product/bw_multifunction_printer_m2727.jpg";
	 
	 edgeline_printer     = new Image(img_width,img_height);
	 edgeline_printer.src = "images/product/edgeline_cm8000.jpg";
		 
	 // LASER IMAGES
	 bw_laser_printer     = new Image(img_width,img_height);
	 bw_laser_printer.src = "images/product/bw_laserjet_p2015.jpg";
	 	 
	 //SPECIALTY IMAGES
	 mobile_printer     = new Image(img_width,img_height);
	 mobile_printer.src = "images/product/mobile_printer_h470.jpg";
	 
	 specialty_photo     = new Image(img_width,img_height);
	 specialty_photo.src = "images/product/specialty_photosmart_b9180.jpg";	
	 
	 large_format     = new Image(img_width,img_height);
	 large_format.src = "images/product/large_format_designjet_z3100ps.jpg";
	 
	 ga_printers     = new Image(img_width,img_height);
	 ga_printers.src = "images/product/ga_printers_l65500.jpg";
}

// Change the image
function swap(imgName,picobj) 
{
	if (document.images) 
	{ 
		document.images[imgName].src= picobj.src;
	}
}