
function toggle( element ) {
	var box = document.getElementById( element );
	box.style.display = ( box.style.display=="block" ) ? "none" : "block";
}

function showDescription() {
	document.getElementById("products-description").className = "products-tab-selected";
	document.getElementById("products-description-contents").style.display = "block";
	document.getElementById("products-technical-specifications").className = "products-tab";
	document.getElementById("products-technical-specifications-contents").style.display = "none";
	if( document.getElementById("products-extra-files-contents") ) {
		document.getElementById("products-extra-files").className = "products-tab";
		document.getElementById("products-extra-files-contents").style.display = "none";
	}
}

function showSpecifications() {
	document.getElementById("products-description").className = "products-tab";
	document.getElementById("products-description-contents").style.display = "none";
	document.getElementById("products-technical-specifications").className = "products-tab-selected";
	document.getElementById("products-technical-specifications-contents").style.display = "block";
	if( document.getElementById("products-extra-files-contents") ) {
		document.getElementById("products-extra-files").className = "products-tab";
		document.getElementById("products-extra-files-contents").style.display = "none";
	}
}

function showExtraFiles() {
	document.getElementById("products-description").className = "products-tab";
	document.getElementById("products-description-contents").style.display = "none";
	document.getElementById("products-technical-specifications").className = "products-tab";
	document.getElementById("products-technical-specifications-contents").style.display = "none";
	if( document.getElementById("products-extra-files-contents") ) {
		document.getElementById("products-extra-files").className = "products-tab-selected";
		document.getElementById("products-extra-files-contents").style.display = "block";
	}
}

function popup( href , width , height ) { 
	var top = parseInt( ( screen.height - height ) / 2 ); 
	var left = parseInt( ( screen.width - width ) / 2 );
	args = 'toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,menuBar=no'; 
	dimensions = 'width='+width+',height='+height; 
	position = 'top='+top+',ypos='+top+',left='+left+',xpos='+left; 
	window.open( href, 'image-zoom', args+','+dimensions+','+position ); 
} 

