/****************************************/ 
/* ブサウザチェッカ(IE/NS&&WIN/MAC)        */ 
/* -------------------------------------*/ 
/* (C) インターネット開発研究所 T.U　　　　　　*/ 
/****************************************/ 

/* ブラウザ判定 */ 
var IE,NS6,NS4,OP,MZ,SF,PLAT ;

// OS判定 
var tmp = ( navigator.platform ).toUpperCase() ;
	if ( tmp.indexOf("WIN")>=0 ) PLAT="WIN" ;
	if ( tmp.indexOf("MAC")>=0 ) PLAT="MAC" ;

// ブラウザ判定 
var tmp = ( navigator.userAgent ).toUpperCase() ;
	IE = ( document.all ) ? true : false ;
	OP = ( IE && tmp.indexOf("OPERA")>=0 ) ? true : false ;
	NS6 = ( document.getElementById && !IE ) ? true : false ;
	MZ = ( NS6 && ( tmp.indexOf("NETSCAPE")<0 || tmp.indexOf("NETSCAPE/7")>=0 ) ) ? true : false ;
	SF = ( NS6 && tmp.indexOf("SAFARI")<0 ) ? true : false ;
	NS4 = ( document.layers ) ? true : false ;

// OS/ブラウザ情報を文字列に 
function getAgent() {
	var arg = new Array() ;
	// プラットフォーム
	var tmp ;
	if ( PLAT == "WIN" ) tmp = "Windows" ;
	if ( PLAT == "MAC" ) tmp = "Macintosh" ;
	arg[0] = tmp ;
	
	// ブラウザ 
	var tmp ;
	if ( IE && !OP ) tmp = 'InternetExplorer' ;
	if ( IE && OP ) tmp = 'Opera' ;
	if ( NS4 ) tmp = 'Netscape_4' ;
	if ( NS6 && !MZ && !SF ) tmp = 'Netscape' ;
	if ( NS6 && MZ ) tmp = 'Mozilla' ;
	if ( NS6 && SF ) tmp = 'Safari' ;
	arg[1] = tmp ;

	return arg ;
}

/* SITEMAP OPEN */
function open_sitemap () {
	var host = location.hostname;
	if ( host == "210.239.46.216" || host == "www2.idi-net.co.jp" ) {
		host = "/adtec-rf/" ;
	} else {
		host = "/" ;
	}
	var sm_id = open ( host+"jp/sitemap.html", "adtec_sitemap", "location=0,directories=0,menubar=0,status=1,scrollbars=1,toolbar=0,resizable=0,width=335,height=400" ) ;
	sm_id.focus();
	return void(0);
}

/* SITEMAP CLOSE */
function close_sitemap() {
	window.opener.focus() ;
	this.close() ;
	return void(0);
}

function loc_chg( url ) {
	window.opener.location = url ;
	window.opener.focus() ;
	this.focus();
}