function main_thumbIn(obj){
	obj.style.border = '1px solid #CCCCCC';
	obj.style.width = '238px';
	obj.style.height = '86px';
}
function main_thumbOut(obj){
	obj.style.border = '';
	obj.style.width = '240px';
	obj.style.height = '90px';
}

function goto(location){
	window.location=location+'.php';
}



function hideAllProd(){
	allDiv = getElementsByClassName(document,'*','product_eaContent');
	for(i=0; i<allDiv.length; i++){
		allDiv[i].style.display = 'none';	
	}
	document.getElementById('orgContent').style.display = 'none';
	return false;
}
function showProd(divId){
	hideAllProd();
	document.getElementById(divId).style.display = 'block';
}



function showSubNavi(name){
	document.getElementById('productCaption').style.display = 'block';
	document.getElementById('productCaption').innerHTML=name;
}
function hideSubNavi(){
	document.getElementById('productCaption').style.display = 'none';
}




/*
	Written by Jonathan Snook, http://www.snook.ca/jonathan
	Add-ons by Robert Nyman, http://www.robertnyman.com
*/

function getElementsByClassName(oElm, strTagName, strClassName){
	var arrElements = (strTagName == "*" && oElm.all)? oElm.all : oElm.getElementsByTagName(strTagName);
	var arrReturnElements = new Array();
	strClassName = strClassName.replace(/\-/g, "\\-");
	var oRegExp = new RegExp("(^|\\s)" + strClassName + "(\\s|$)");
	var oElement;
	for(var i=0; i<arrElements.length; i++){
		oElement = arrElements[i];
		if(oRegExp.test(oElement.className)){
			arrReturnElements.push(oElement);
		}
	}
	return (arrReturnElements)
}