function productHover(obj, state) {
    var mouseover = (state == 1) ? true : false;		
    var objClass = (mouseover) ? 'product-on' : 'product-off';
    
    obj.className = objClass;
}

function changeProductImage(obj) {
	var cutLengthNew = (obj.src.substr(0, 11) == 'http://www.') ? 64 : 60;

	/* Convert the thumbnail path to the full size path */
	var newImage = '/images/uploads/images/' + obj.src.substr(cutLengthNew, obj.length);
	
	/* Reverse the above */
	var currentImage = document.getElementById('product-image').src;
	var cutLengthOld = (currentImage.substr(0, 11) == 'http://www.') ? 56 : 52;
		currentImage = '/images/uploads/_thumbs/images/' + currentImage.substr(cutLengthOld, currentImage.length);

	/* Apply the new sources */
	document.getElementById('product-image').src = newImage;
	obj.src = currentImage;
}
