function check_url(){
	var strTemp;
	var nLength, nIndex, nCount;
	strTemp = location.pathname;
	nLength = strTemp.length; 
	nCount = 0;
	//コンマを検索してつなげる処理
	while (nLength > 0)
	{	
		nIndex = strTemp.indexOf("/");
		if (nIndex < 0)
		{
			nCount++;
			break;
		}
		nCount++;
		strTemp = strTemp.substring(strTemp.indexOf("/")+1, strTemp.length);
		nLength = strTemp.length; 
	}

	url_head = "";

	for( xloop = 1; xloop <= nCount; xloop ++ ){
		url_head += "../";
	}

	url_head += "swf/sankyo_menu.swf";

	return url_head;
}

	document.write('<div style="padding-left:5px;">');
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
	document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ');
	document.write('id="sankyo_menu" width="850" height="120" align="">');
	document.write('<param name="movie" value="' + check_url() +'"> ');
	document.write('<param name="quality" value="high"> ');
	document.write('<param name="base" value="."> ');
	document.write('<param name="wmode" value="transparent"> ');
	document.write('<param name="bgcolor" value="#f0f0f0"> '); 
	document.write('<embed src="' + check_url() +'" quality="high" bgcolor="#f0f0f0" base="."');
	document.write('width="850" height="120" name="sankyo_menu" align="" wmode="transparent"');
	document.write('type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
	document.write('</embed>');
	document.write('</object>');
	document.write('</div>');

