// *******************************************************************************************
// Created by: r3plica
// Date Created: 01/03/09
// Version: 1.0.0.0
// *******************************************************************************************


// This function accepts 2 values, the first value is the ID of the 
// div you want to show, the second is the maximum divs you have.
// So if you have 15 products, you give each ofthem the id 0 to 14
// and iMax would be 14
function ShowProduct(id, iMax){
	// Create our counter
	var i=0;
	
	// Do a loop 
	for (i=0;i<=iMax;i++){
		// if i == id
		if (i == id){
			// Show the element
			document.getElementById(i).style.display = 'block';
		}
		else{
			// hide the element
			document.getElementById(i).style.display = 'none';
		}
	}
}