/* Start Product Expanding Function*/	
	
	function showSpan(val, spanId)
	{
	//alert(val);
		var Id=document.getElementById(spanId)
		switch (val)
		{
		
		case "0":
		Id.style.display="inline";
		break ;
		
		case "1":
		Id.style.display="none";
		break ;
		}
	}
	
	function showSpanOpen(val, spanId)
	{
	//alert(val);
	var Id=document.getElementById(spanId)
	switch (val)
	{
	
	case "0":
	Id.style.display="none";
	break ;
	
	case "1":
	Id.style.display="inline";
	break ;
	}
	}

	function readSpec(){
	var a = new Ajax.Updater(
		"result",
		"./spec_table.txt",
		{
			"method": "get",
			"parameters": "a=b&c=d&e=f",
			onSuccess: function(request) {
				// 成功時の処理を記述
				// alert('OK');
				// jsonの値を処理する場合↓↓
				//  var json;
				//  eval("json="+request.responseText);
			},
			onComplete: function(request) {
				// 完了時の処理を記述
				// alert('Done');
				// jsonの値を処理する場合↓↓
				//  var json;
				//  eval("json="+request.responseText);
			},
			onFailure: function(request) {
				alert('Failure');
			},
			onException: function (request) {
				alert('Error!!!');
			}
		}
	);
	}
	
	
	
	
		function ProCatShowHide(id, newid, Imgid, newImg, specCase, spanId)
		{
		identity=document.getElementById(id);
		identityImage=document.getElementById(Imgid);
		
		if (identity.idName==newid) 
		{
		newid='arrowpoint';
		newImg='/HP/images/layout/default/icon_arrow_down.jpg';
		specCase='1';
		}
		//alert(newImg);
		identity.idName=newid;
		identityImage.src=newImg;
		
		showSpan(specCase, spanId);
		}



		function ProModelShowHide(id, newid, Imgid, newImg, specCase, spanId)
		{
		identity=document.getElementById(id);
		identityImage=document.getElementById(Imgid);
		
		if (identity.idName==newid) 
		{
		newid='arrowpoint';
		newImg='/HP/images/layout/default/icon_arrow_down.jpg';
		specCase='1';
		}
		//alert(newImg);
		identity.idName=newid;
		identityImage.src=newImg;
		
		showSpanOpen(specCase, spanId);
		}
		

/* End Product Expanding Function*/

/* Start Series Page Show and Hide Function */
		function ProSeriesShowHide(id, newid, Imgid, newImg, specCase, spanId)
		{
		identity=document.getElementById(id);
		identityImage=document.getElementById(Imgid);
	
		if (identity.idName==newid) 
		{
		newid='arrowpoint';
		newImg='/HP/images/layout/default/icon_hding_arrow_up.jpg';
		specCase='1';
		}
		identity.idName=newid;
		identityImage.src=newImg;
		showSpanOpen(specCase, spanId);
		}
		
		function ProRetiredShowHide(id, newid, Imgid, newImg, specCase, spanId)
		{
		identity=document.getElementById(id);
		identityImage=document.getElementById(Imgid);
	
		if (identity.idName==newid) 
		{
		newid='arrowpoint';
		newImg='/HP/images/layout/default/icon_hding_arrow_up.jpg';
		specCase='1';
		}
		identity.idName=newid;
		identityImage.src=newImg;
		showSpanOpen(specCase, spanId);
		}
		
		
		function ProCompareShowHide(id, newid, Imgid, newImg, specCase, spanId)
		{
		identity=document.getElementById(id);
		identityImage=document.getElementById(Imgid);
	
		if (identity.idName==newid) 
		{
		newid='arrowpoint';
		newImg='/HP/images/layout/default/icon_hding_arrow_up.jpg';
		specCase='1';
		}
		identity.idName=newid;
		identityImage.src=newImg;
		showSpanOpen(specCase, spanId);
		}
		
		
/* End Series Page Show and Hide Function */


/* Start Support Tutorial Page Show and Hide Function */
		function SupportTutShowHide(id, newid, Imgid, newImg, specCase, spanId)
		{
		identity=document.getElementById(id);
		identityImage=document.getElementById(Imgid);
	
		if (identity.idName==newid) 
		{
		newid='arrowpoint';
		newImg='/HP/images/layout/default/icon_arrow_down.jpg';
		specCase='1';
		}
		identity.idName=newid;
		identityImage.src=newImg;
		showSpan(specCase, spanId);
		}
/* End Support Tutorial Page Show and Hide Function */