function showProdDetails(camID){

	var thisProductName = "";
	// show sprechblase
	if( document.getElementById ) {
		document.getElementById("sprechblase").style.display = "block";
	}
	// hide all product details
	for (i = 0; i < document.getElementsByTagName("div").length; i++){
				if( document.getElementById ) {
					if ( document.getElementsByTagName("div")[i].id.substr(0, 3) == "cam")
//alert('true' + document.getElementsByTagName("div")[i].id);
						document.getElementsByTagName("div")[i].style.display = "none";
		}
	}

	// show product details
	if( document.getElementById ) {
		document.getElementById('cam' + camID).style.display = "block";
	}
}


function showProducts(prod, doOpen) {
	// hide sprechblase
	if( document.getElementById ) {
		document.getElementById("sprechblase").style.display = "none";
	}

	// show products
	shortInfo = ('prodName' + (prod));
	detailedInfo = ('prodDetails' + (prod));
	if( document.getElementById ) {
			if( doOpen ) {
				document.getElementById(shortInfo).style.display = "none";
				document.getElementById(detailedInfo).style.display = "block";
			} else {
				document.getElementById(shortInfo).style.display = "block";
				document.getElementById(detailedInfo).style.display = "none";
				}
	}
}


function showDetails(prod, doOpen) {
	// show products
	shortInfo = ('prodName' + (prod));
	detailedInfo = ('prodDetails' + (prod));
	if( document.getElementById ) {
			if( doOpen ) {
				document.getElementById(shortInfo).style.display = "none";
				document.getElementById(detailedInfo).style.display = "block";
			} else {
				document.getElementById(shortInfo).style.display = "block";
				document.getElementById(detailedInfo).style.display = "none";
				}
	}
}



// delete!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

// check if document in Frameset
if ((parent.name == "") | (parent.name == "printWindow") )
	var alone = true
	else var alone = false;

// in this case the document is not in a frame, cameras_en.js is also read in this document
function writeProductFull(prodCat){
	textString = "<p>";
	for (i = 0; i< maxCamerasPerCat; i++){
		if (!cameras[prodCat][i].title ==""){
			notEmpty = true;
			textString += "<b>";
			textString += cameras[prodCat][i].title;
			textString += "</b>";
			textString += "<br>";
			textString += cameras[prodCat][i].details;
			textString += "<br><br>";
		}
	}
	textString += "<p>";
	document.write(textString);
	if (notEmpty) 
		document.write('<p></p><br>');	
}


