function addstring() {
	document.forms[0].q.value = 'site:www.sempos.or.jp ' + document.forms[0].q.value;
	return true;
}
function yado_divDisp(){

	document.getElementById('yado_moushikomi').style.display = "none" ;
	document.getElementById('yado_senpo').style.display = "none" ;
	document.getElementById('yado_kaizi').style.display = "none" ;
	document.getElementById('yado_ryoukin').style.display = "none" ;
	document.getElementById('yado_waribiki').style.display = "none" ;
}
function yado_ocDiv(disDiv){
	if(disDiv == 'moushikomi'){
		if(document.getElementById('yado_moushikomi').style.display == "none"){
		document.getElementById('yado_moushikomi').style.display = "" ;
		document.getElementById('li_moushikomi').style.backgroundImage = 'url("images/icon_Apoint.gif")' ;
		
		}
		else{
		document.getElementById('yado_moushikomi').style.display = "none" ;
		document.getElementById('li_moushikomi').style.backgroundImage = 'url("images/icon_point.gif")' ;

		}
		}
	else if(disDiv == 'senpo'){
		if(document.getElementById('yado_senpo').style.display == "none"){
		document.getElementById('yado_senpo').style.display = "" ;
		document.getElementById('li_senpo').style.backgroundImage = 'url("images/icon_Apoint.gif")' ;
		
		}
		else{
		document.getElementById('yado_senpo').style.display = "none" ;
		document.getElementById('li_senpo').style.backgroundImage = 'url("images/icon_point.gif")' ;

		}
		}
	else if(disDiv == 'kaizi'){
		if(document.getElementById('yado_kaizi').style.display == "none"){
		document.getElementById('yado_kaizi').style.display = "" ;
		document.getElementById('li_kaizi').style.backgroundImage = 'url("images/icon_Apoint.gif")' ;
		
		}
		else{
		document.getElementById('yado_kaizi').style.display = "none" ;
		document.getElementById('li_kaizi').style.backgroundImage = 'url("images/icon_point.gif")' ;

		}
		}
	else if(disDiv == 'ryoukin'){
		if(document.getElementById('yado_ryoukin').style.display == "none"){
		document.getElementById('yado_ryoukin').style.display = "" ;
		document.getElementById('li_ryoukin').style.backgroundImage = 'url("images/icon_Apoint.gif")' ;
		
		}
		else{
		document.getElementById('yado_ryoukin').style.display = "none" ;
		document.getElementById('li_ryoukin').style.backgroundImage = 'url("images/icon_point.gif")' ;

		}
		}
	else if(disDiv == 'waribiki'){
		if(document.getElementById('yado_waribiki').style.display == "none"){
		document.getElementById('yado_waribiki').style.display = "" ;
		document.getElementById('li_waribiki').style.backgroundImage = 'url("images/icon_Apoint.gif")' ;
		
		}
		else{
		document.getElementById('yado_waribiki').style.display = "none" ;
		document.getElementById('li_waribiki').style.backgroundImage = 'url("images/icon_point.gif")' ;
	
		}
	}
}

function moveTo(url){
	location.href = url;
}

function mov(btn){
var btnid;
btnid = btn.split('A');
btnid = btnid.join('');
document.getElementById(btnid).src = 'images/' + btn + '.gif';
}

function mot(btn){
document.getElementById(btn).src = 'images/' + btn + '.gif';
}

function getSearch(){

    var swfMovie;
    swfMovie = (navigator.appName.indexOf("Microsoft") != -1) ? zyunkai : document.zyunkai;
    
	var idx;
	var QS = new Array;
	if(location.search.length > 1){
	
		var isIE = navigator.appName.indexOf("Microsoft") != -1;
		var mc = isIE ? window["zyunkai"] : window.document["zyunkai"];
		
		var m_Array = location.search.substr(1).split("&"); 
		  for(idx in m_Array){
		    QS.push(m_Array[idx].split("="));
		 }
		 
		var pref;
		var area;
		
		pref = QS[0][1];
		area = QS[1][1];
		
		document.getElementById('flash').style.height = "40px";
	    document.getElementById('zyunkai').style.height = "40px";

	    mc.SetVariable("_level0.pref", pref);
	    mc.SetVariable("_level0.area", area);
	    
	}
	else{
	    document.getElementById('flash').style.height = "400px";
	    document.getElementById('zyunkai').style.height = "400px";
	}


}
function dr(){
	document.write('<!--外部ファイルより。ムービーで使用されている URL--><a href="zyunkai.asp?tdfk=北海道"></a><!--ムービーで使用されているテキスト--><!-- saved from url=(0013)about:internet --><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="100%" id="zyunkai" name="zyunkai" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="zyunkai.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="zyunkai.swf" quality="high" bgcolor="#ffffff" width="100%" height="100%" swfLiveConnect="true" id="zyunkai" name="zyunkai" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
}
function drm(){
	document.write('<!--ムービーで使用されているテキスト--><!-- saved from url=(0013)about:internet --><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="500" id="map" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="map.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="map.swf" quality="high" bgcolor="#ffffff" width="550" height="500" name="map" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
	}
function blink(){
	if(document.all){
		if(document.all("kbosyuu").style.visibility == "visible"){
			document.all("kbosyuu").style.visibility = "hidden";
		}else{
			document.all("kbosyuu").style.visibility = "visible";
		}
	}else if(document.getElementById){
		if(document.getElementById("kbosyuu").style.visibility == "visible"){
			document.getElementById("kbosyuu").style.visibility = "hidden";
		}else{
			document.getElementById("kbosyuu").style.visibility = "visible";
		}
	}else{
		return;
	}
	setTimeout(blink, 500);
}
function iu(){
document.getElementById("aa").src = '../aspx/AccessLogs/count.aspx?id=goudou&sw=' + screen.width + '&sh=' + screen.height + '&sd=' + screen.colorDepth + '&r=' + document.referrer;
}