function showInfo(id) {
						
	/* First hide all information divs */
	var allInfo = document.getElementsByClassName('labelWrapper');
	var x;
	
	for (x in allInfo) {
		if (allInfo[x].id) {
			styleID = allInfo[x].id;
			labelId = styleID.replace('selectedLabel', '');
			document.getElementById('label-' + labelId).checked = false;
			if (labelId == id) {
				allInfo[x].style.display = 'block';
			}
			else {
				allInfo[x].style.display = 'none';
			}
		}
	}
}


function setThumbnails() {
	var thumbnails = document.getElementsByClassName('thumbimage');
	
	for (x in thumbnails) {
		if (typeof(thumbnails[x]) == 'object') {
			var tempImage = new Image();
			tempImage.src = thumbnails[x].src;
			
			var currentWidth			= tempImage.width;
			var currentHeight			= tempImage.height;
			
			var newWidth				= Math.ceil(currentWidth * 0.80);
			var newHeight				= Math.ceil(currentHeight * 0.80);
			
			thumbnails[x].style.width	= newWidth + 'px';
			thumbnails[x].style.height	= newHeight + 'px';
			
			tempImage = null;
		}
	}
}


var alreadyrunflag=0 //flag to indicate whether target function has already been run

if (document.addEventListener) {
	document.addEventListener("DOMContentLoaded", function(){alreadyrunflag=1; setThumbnails()}, false);
} else if (document.all && !window.opera){
	document.write('<script type="text/javascript" id="contentloadtag" defer="defer" src="javascript:void(0)"><\/script>');
	var contentloadtag=document.getElementById("contentloadtag");
	contentloadtag.onreadystatechange=function(){
		if (this.readyState=="complete"){
		  alreadyrunflag=1;
		  setThumbnails();
		}
	}
}

window.onload=function(){
	setTimeout("if (!alreadyrunflag) setThumbnails()", 0);
}

function stripAlphaChars(pstrSource, inputID) 
{ 
	var m_strOut = new String(pstrSource); 
	    m_strOut = m_strOut.replace(/[^0-9]/g, ''); 
	
	var input = document.getElementById(inputID);
	input.value = m_strOut;
}

	
function calculateTotal(quant, piece) {
	piece = parseFloat(piece);
	quant = parseFloat(quant);
	total = piece * quant;
	totalSpan = document.getElementById('totalPrice');
	
	if (!isNaN(total)) {
		total = '&euro; ' + total.toFixed(2);
		total = total.replace(".",",");
		
		totalSpan.innerHTML = total;
	} else {
		totalSpan.innerHTML = '';
	}
}

-->
