// JavaScript Document

<!--
//ご意見でテキストを返す
function updateResponseDiv(req) 
{
	Spry.Utils.setInnerHTML('opinionResponses', req.xhRequest.responseText);
}
//-->

var aa,bb;
function init()
{
	aa = document.getElementById("findByMap");
	bb = document.getElementById("findByArea");
			
	bb.style.display = "none";
}
function tab(n)
{
	switch(n)
	{
		case 1 :
			btn1 = document.getElementById("btnFindMap");
			btn1.style.backgroundImage = "url(/images/btn_find_map_on.gif)";
			btn1.onmouseover= function(){}
			btn1.onmouseout= function(){}
			
			btn2 = document.getElementById("btnFindArea");
			btn2.style.backgroundImage = "url(/images/btn_find_area.gif)";
			btn2.onmouseover= function(){btn2.style.backgroundImage = "url(/images/btn_find_area_on.gif)";}
			btn2.onmouseout= function(){btn2.style.backgroundImage = "url(/images/btn_find_area.gif)";}
			
			aa.style.display = "block";
			bb.style.display = "none";
		break;
		case 2 :
			btn1 = document.getElementById("btnFindMap");
			btn1.style.backgroundImage = "url(/images/btn_find_map.gif)";
			btn1.onmouseover= function(){btn1.style.backgroundImage = "url(/images/btn_find_map_on.gif)";}
			btn1.onmouseout= function(){btn1.style.backgroundImage = "url(/images/btn_find_map.gif)";}
			btn2 = document.getElementById("btnFindArea");
			btn2.style.backgroundImage = "url(/images/btn_find_area_on.gif)";
			btn2.onmouseover= function(){}
			btn2.onmouseout= function(){}
			
			aa.style.display = "none";
			bb.style.display = "block";
		break;
	}
}/*btn1 = document.getElementById("btnFindMap");
			btn1.style.backgroundImage = "url(/images/btn_find_map_on.gif)";
			btn2 = document.getElementById("btnFindArea");
			btn2.style.backgroundImage = "url(/images/btn_find_area.gif)";
			*/
