		function jumphtml() {

			if (parent.frame2.document.F2.DISPHTML.value != "NO_HTML") {
				window.open(parent.frame2.document.F2.DISPHTML.value )
			}
		}

//------------------------------------------------------------------------------------------------------
		function MenuOpen(){
			
			var ObjRef = window.parent.document.getElementById("frms");
			ObjRef.setAttribute("cols", "335,*");

			window.parent.frames.frame0.document.body.style.backgroundImage = "url(../../images/upbg_s2.gif)";
			document.body.style.backgroundImage = "url(../../images/leftbg_s2.gif)";
		}
//------------------------------------------------------------------------------------------------------
		function MenuClose(){

			var ObjRef = window.parent.document.getElementById("frms");
			ObjRef.setAttribute("cols", "172,*");

			window.parent.frame0.document.body.style.backgroundImage = "url(../../images/upbg.gif)";
			document.body.style.backgroundImage = "url(../../images/leftbg_s.gif)";
		}

//-------------------------------------------------------------------------------------------------------
function FavoriteAdd(){

	var Agt = navigator.userAgent.toUpperCase();

	if(Agt.indexOf("MSIE") > -1){
//		window.alert("IE!!");
		window.external.AddFavorite("http://www.jartic.or.jp/", "JARTIC：日本道路交通情報センター");
	}
	else if((Agt.indexOf("NETSCAPE") > -1) || (Agt.indexOf("FIREFOX") > -1)){
//		window.alert(navigator.userAgent);
		window.sidebar.addPanel("JARTIC：日本道路交通情報センター","http://www.jartic.or.jp/","");
	}
	else{
		void(0);
	}
}

//---------------------------------------------------------------------------------------------------------
// *** For Internet Explorer ***

function ShowFavorite(){
			window.external.AddFavorite("http://www.jartic.or.jp/", "JARTIC：日本道路交通情報センター");
}

//---------------------------------------------------------------------------------------------------------
// *** For Netscape, FireFox ***
function ShowSideBar(){
			window.sidebar.addPanel("JARTIC：日本道路交通情報センター","http://www.jartic.or.jp/","");
}

//---------------------------------------------------------------------------------------------------------

function ShowAddBtn(){
	var Agt = navigator.userAgent.toUpperCase();
//	window.alert(Agt);
	if(Agt.indexOf("MSIE") > -1){
		document.write('<tr bgcolor="#66FFFF">');
		document.write('<td>');
		document.write('<div align="center"> <a HREF="javaScript:onClick=ShowFavorite()">');
		document.write('<font size="2" face="ＭＳ Ｐゴシック, Osaka">お気に入りに登録</font></a></div>');
		document.write('</td>');
		document.write('</tr>');
	}
	else if((Agt.indexOf("FIREFOX") > -1) || (Agt.indexOf("NETSCAPE") > -1)) {
		document.write('<tr bgcolor="#66FFFF">');
		document.write('<td>');
		document.write('<div align="center"> <a HREF="javaScript:onClick=ShowSideBar()">');
		document.write('<font size="2" face="ＭＳ Ｐゴシック, Osaka">ブックマークに追加</font></a></div>');
		document.write('</td>');
		document.write('</tr>');
	}
	else if(Agt.indexOf("OPERA") > -1) {
		document.write('<tr bgcolor="#66FFFF">');
		document.write('<td>');
		document.write('<div align="center"><a href="http://www.jartic.or.jp/" rel="sidebar" title="JARTIC：日本道路交通情報センター">');
		document.write('<font size="2" face="ＭＳ Ｐゴシック, Osaka">ブックマークに追加</font></a></div>');
		document.write('</td>');
		document.write('</tr>');
	}

	else if(Agt.indexOf("SAFARI") > -1) {
		document.write('<tr bgcolor="#66FFFF">');
		document.write('<td>');
		document.write('<div align="center">');
		document.write('<a href="javascript:location.href=\'http://www.jartic.or.jp/\'" ');
		document.write('OnClick="javascript:unClickable();return false" onKeypress="javascript:unKeypressable();return false">');
		document.write('<font size="2">ブックマークに追加</a></div>');
		document.write('</td>');
		document.write('</tr>');

	}
	else{
		void(0);
	}
}

//---------------------------------------------------------------------------------------------------------
function unClickable() {
	window.alert('ブックマークに追加する場合には、リンクバーにドラッグして下さい。');

}
function unKeypressable() {
	window.alert('ブックマークに追加する場合には、リンクバーにドラッグして下さい。');
}


