// *******************************************************************************************
// Created by: r3plica
// Date Created: 26/02/09
// Date Modified: 01/03/09
// Version: 2.0.0.0
// *******************************************************************************************

function showHide(sItemId, iMax) {
	// I have tried to make this more dynamic by adding iMax
	// it works the same way as featured products, except this is a string
	
	// Declare our variable
	var i = 1;
	
	// For
	for (i=1;i<=iMax;i++){
		// Create a item that should match our id at some point in this loop
		var item = 'tab'+i;
		var thisChild = document.getElementById(item+'_show').firstChild;
		
		// check if item is equal to sItemId
		if (item == sItemId){
			// Set our active tab to this one
			document.getElementById(item+'_show').style.backgroundImage = 'url(images/left_hover.jpg)';
			thisChild.style.color = 'White';	
			
			// Show our content
			document.getElementById(item).style.display = 'block';
		}
		else{
			// Remove classes from links	
			document.getElementById(item+'_show').style.backgroundImage = '';
			thisChild.style.color = '#055987';
			
			// Set our content to be invisible
			document.getElementById(item).style.display = 'none';
		}
	}
}