/*
##################################################
#This javascript was made on January 31, 2003.
#It is responsible for a MEDAL Co,Ltd.
#Responsibility is not taken although use is free.
##################################################
#nn4 reload & window resize bugfix
#reloads the window if Netscape4x resized.
#copyright macromedia.Co, Ltd.
##################################################
*/
function MM_reloadPage(init){
	if( init==true ){
		with( navigator ){
			if(( appName.charAt(0)=="N" )&&( parseInt(appVersion)<=4 )){
				document.MM_pgW=innerWidth;
				document.MM_pgH=innerHeight;
				window.onresize = MM_reloadPage; 
			}
		}
	}else if((innerWidth!=document.MM_pgW)||(innerHeight!=document.MM_pgH)) location.reload();
}
MM_reloadPage(true);


function MM_showHideLayers(){ //v6.0
	var i, p, v, obj;
	var args = MM_showHideLayers.arguments;

	for (i=0; i<(args.length-2); i+=3){
		if(( obj = MM_findObj(args[i])) != null){
			v = args[i+2];
			if( obj.style ){
				obj = obj.style;
				v = (v == 'show')?'visible':(v == 'hide')?'hidden':v;
			}
			obj.visibility = v;
		}
	}

}

function MM_findObj( n, d ){ //v4.01
	var p, i, x;
	if(!d) d = document;

	if((p = n.indexOf("?")) >0 && parent.frames.length){
		d = parent.frames[n.substring(p+1)].document;
		n = n.substring( 0, p );
	}

	if(!(x = d[n]) && d.all){ //ie4 lower or ie5up
		x = d.all[n];
		for(i=0; !x&&i<d.forms.length; i++){
			x=d.forms[i][n];
		}
	}

	for(i=0; !x&&d.layers&&i<d.layers.length; i++){
		x = MM_findObj( n, d.layers[i].document ); //ns4 lower
	}

	if(!x && d.getElementById) x=d.getElementById(n); //ie5up or ns6up

	return x;
}


/*
###################################
#menu pushbutton script
###################################
*/
var imgpath = "./";
var imageList = new Array();

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;

		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = imgpath+changeImages.arguments[i+1];
			//alert(imgpath+changeImages.arguments[i+1]);
		}
	}
}

var preloadFlag = false;

function preloadImages() {
	if (document.images) {
		//jp
		imageList[imageList.length++] = newImage(imgpath+"images/common/sitemap_on.gif");
		imageList[imageList.length++] = newImage(imgpath+"images/common/mail_on.gif");
		imageList[imageList.length++] = newImage(imgpath+"images/common/english_on.gif");


		preloadFlag = true;
	}
}

preloadImages();




/*
###################################################################
#open window method
#The value of the argument of windowSize is 'width=***,height=***'
#features is  [ true | false | Array ]
###################################################################
*/

function WindowFeaturesItem( foption ){ //features option.
	var wf = "";
	wf = "toolbar=" + (foption[0] ? "yes" : "no");
	wf += ",location=" + (foption[1] ? "yes" : "no");
	wf += ",directories=" + (foption[2] ? "yes" : "no");
	wf += ",status=" + (foption[3] ? "yes" : "no");
	wf += ",menubar=" + (foption[4] ? "yes" : "no");
	wf += ",scrollbars=" + (foption[5] ? "yes" : "no");
	wf += ",resizable=" + (foption[6] ? "yes" : "no");

	return wf;
}

function openWin( theUrl, windowName, features, windowSize, x, y ){
	var is = new Is_env();

	// windowhight is adjusted at the time of Mac ie4.5.
	if( is.MAC && is.IE && is.IE45 ) var adjusth = 2;
	else var adjusth = 0;
	
	var H = parseInt( windowSize.substring(17,20)) + adjusth;
	var winSize = new String( windowSize.substring(0,17) + H ); //String constructor is set up.
	//alert( winSize );
	
	if((features==true)||(features==false)){
		var f = new Array ();
		for(i=0; i<7; i++){
			f[i] = features;
		}
		var wfeatures = WindowFeaturesItem(f);
	}else{
		var wfeatures = WindowFeaturesItem( features ); //window features setting.
		//alert( wfeatures );
	}

	var windowPosition = ( "top=" + x + "," + "left=" + y );
	wfeatures += ( "," + winSize + "," + windowPosition );
	//alert( wfeatures );

	new_window = window.open( theUrl, windowName, wfeatures ); //window open method.
	//new_window.moveTo( x, y );
}


/*
#################################
#closed window method
#################################
*/
function onErrMacWinClose(){
	closeWin();
	return true;
}

function closeWin(){
	var is = new Is_env();

	if( is.MAC && is.IE4X ) window.onerror = onErrMacWinClose;
	if( !this.closed ) this.close();
}

/*
#########################################################################
#scroll potion method.
#ex.JavaScript:doPageScroll('up', -100) or doPageScroll('down', 500)
#########################################################################
*/
function doScroller( action, pram ){
	if (action == 'up'){ //scroll up action
		if (pram == screen.availHeight) var y = 0;
		else var y = 1000;

		y = y +(pram - y)*.1;
		while(y != pram){
			window.scroll(0, y);
			y = y + (pram - y)*.1;
			//window.status = "pram is : " +pram+ ", Y is : " +y;
			if (((pram - y) <= .5)&&((pram - y) >= -.5)) y = pram;
		}
	}else if (action == 'down'){ //scroll down action1
		y = 1;
		boundary = pram*.5;

		while(y <= boundary){
			window.scroll(0, y);
			y = y +(y*.3);
			if (((boundary - y) <= .5)&&((boundary - y) >= -.5)) y = boundary;
		}

		while(y != pram){
			window.scroll(0, y);
			y = y +(pram - y)*.1;
			if (((pram - y) <= .5)&&((pram - y) >= -.5)) y = pram;
		}
	}else{ //scroll down action2
		y = 0;
		y = y +(pram - y)*.1;

		while(y != pram){
			window.scroll(0, y);
			y = y +(pram-y)*.1;
			if (((pram - y) <= .5)&&((pram - y) >= -.5)) y = pram;
		}
	}
}

/*
###################################################################
#Environment(browser name & varsion) check constructor &  method
###################################################################
*/
function Is_env(){
	/* os check */
	this.MAC = (navigator.userAgent.indexOf("Mac") != -1);
	//this.MAC68K = (this.MAC && (nv_usagnt.indexOf("68") != -1)); //Mac 68000, 68K
	this.PPC = (this.MAC && (navigator.userAgent.indexOf("PC") != -1)); //Mac_PowerPC, Mac PowerPC, PPC
	this.OSX = (this.PPC && (navigator.userAgent.indexOf("OS X") != -1));
	this.WIN = (navigator.userAgent.indexOf("Win") != -1);
	this.UNIX = (navigator.userAgent.indexOf("X11") != -1);

	this.GECKO = (navigator.userAgent.indexOf("Gecko/") != -1);
	this.NETSCAPE = (navigator.userAgent.indexOf("Netscape") != -1);
	this.MICROSOFT = (navigator.appName.indexOf("Microsoft") != -1);

	/* version check */
	this.major = parseInt( navigator.appVersion );
	this.miner = parseFloat( navigator.appVersion );
	this.VENDOR = (navigator.vendorSub);

	//sniffer
	this.NN4_LOWER = (document.layers) ? true : false;
	this.NN6_UPPER = (document.getElementById && !document.all) ? true : false;
	this.IE4_LOWER = (document.all) ? true : false;
	this.IE5_UPPER = (document.getElementById && document.all) ? true : false;

	/* browser check */
	//netscape
	this.NN = (navigator.appName.charAt(0)=="N");
	this.IS_MOZILLA = (navigator.userAgent.indexOf('Mozilla')!=-1);

	this.NN3X = (this.NN && (this.major<=3) && this.IS_MOZILLA);
	this.NN4X = (this.NN && (this.major==4) && this.IS_MOZILLA);
	//this.NN401 = (this.NN4X && (this.miner==4.01));
	//this.NN403 = (this.NN4X && (this.miner==4.03));
	//this.NN404 = (this.NN4X && (this.miner==4.04));
	//this.NN405 = (this.NN4X && (this.miner==4.05));
	//this.NN406 = (this.NN4X && (this.miner==4.06));
	this.NN40X_LOW = (this.NN4X && (this.miner<=4.06));
	//this.NN45X_UP  = (this.NN4X && (this.miner>=4.5));
	//this.NN45X = (this.NN4X && (navigator.userAgent.indexOf("4.5") != -1));
	//for_english_&_UNIX_version_only
	//this.NN46X = (this.NN4X && (navigator.userAgent.indexOf("4.6") != -1));
	//this.NN47X = (this.NN4X (navigator.userAgent.indexOf("4.7") != -1));
	//this.NN470 = (this.NN4X && (this.miner==4.7));
	//this.NN473 = (this.NN4X && (this.miner==4.73));
	//this.NN475 = (this.NN4X && (this.miner==4.75));
	//this.NN478 = (this.NN4X && (this.miner==4.78));
	//not_japanese_version
	//this.NN48X = (this.NN4X && (this.miner==4.8));

	this.NN6X_UP = (this.NN && (this.major==5) && this.IS_MOZILLA && parseInt(this.VENDOR) >= 6);
	this.NN6X = (this.NN && (this.major==5) && this.IS_MOZILLA && (navigator.userAgent.indexOf("Netscape6/") != -1) && this.VENDOR);
	//this.NN60 = (this.NN6X && (navigator.userAgent.indexOf("6.0") != -1));
	//this.NN601 = (this.NN6X && (navigator.userAgent.indexOf("6.01") != -1));
	//this.NN61 = (this.NN6X && (navigator.userAgent.indexOf("6.1") != -1));
	//this.NN62 = (this.NN6X (navigator.userAgent.indexOf("6.2") != -1));
	//this.NN621 = (this.NN6X && (navigator.userAgent.indexOf("6.2.1") != -1));
	//this.NN623 = (this.NN6X && (navigator.userAgent.indexOf("6.2.3") != -1));

	this.NN7X = (this.NN && (this.major==5) && this.IS_MOZILLA && (navigator.userAgent.indexOf("Netscape/7") != -1) && this.VENDOR);
	this.NN70X = (this.NN7X &&  (navigator.vendorSub == "7.0"));
	this.NN701 = (this.NN7X && (navigator.vendorSub == "7.01"));
	this.NN702 = (this.NN7X && (navigator.vendorSub == "7.02"));
	this.NN71X = (this.NN7X && (navigator.vendorSub == "7.1"));
	this.NN72X = (this.NN7X && (navigator.vendorSub == "7.2"));

	this.NN80B = (this.NN && (this.major>=5) && this.GECKO || (navigator.userAgent.indexOf("rv:1.7.5") != -1));
	this.NN8X = (this.NN && (this.major>=5) && this.GECKO && (navigator.userAgent.indexOf("Netscape/8") != -1) || (navigator.userAgent.indexOf("rv:1.7.5") != -1));
	this.NN801 = (this.NN8X && (navigator.userAgent.indexOf("8.0.1") != -1) || (navigator.vendorSub == "8.0.1"));
	this.NN802 = (this.NN8X && (navigator.userAgent.indexOf("8.0.2") != -1) || (navigator.vendorSub == "8.0.2"));
	this.NN8033 = (this.NN8X && (navigator.userAgent.indexOf("8.0.3.3") != -1) || (navigator.vendorSub == "8.0.3.3"));
	this.NN804 = (this.NN8X && (navigator.userAgent.indexOf("8.0.4") != -1) || (navigator.vendorSub == "8.0.4"));


	//ie
	this.EXPLORER = (navigator.appName.charAt(0)=="M");
	this.COMPATI  = (navigator.userAgent.indexOf("compatible") != -1);
	this.IS_MSIE  = (navigator.userAgent.indexOf('MSIE')!=-1);
	this.IE = (this.EXPLORER && this.COMPATI);

	this.IE3X = (this.IE && (this.major<4));
	this.IE4X = (this.IE && (this.major==4) && (navigator.userAgent.indexOf("MSIE 4") != -1));
	this.IE45 = (this.IE4X && this.MAC && (navigator.userAgent.indexOf("4.5") != -1));

	this.IE5X = (this.IE && (this.major==4) && (navigator.userAgent.indexOf("MSIE 5") != -1));
	this.IE5X_UP = (this.IE && parseInt(this.getBrowserVersion()) >= 5 );
	this.IE501 = (this.WIN && this.IE5X && (navigator.userAgent.indexOf("5.01") != -1));

	this.IE51X = (this.IE5X && this.MAC && this.PPC && (navigator.userAgent.indexOf("5.1") != -1));
	//this.IE516 = (this.IE5X && this.PPC && (navigator.userAgent.indexOf("5.16") != -1));
	//this.IE517 = (this.IE5X && this.PPC && (navigator.userAgent.indexOf("5.17") != -1));
	this.IE52X = (this.IE5X && this.MAC && this.PPC && (navigator.userAgent.indexOf("5.2") != -1));
	//this.IE522 = (this.IE5X && this.PPC && (navigator.userAgent.indexOf("5.22") != -1));
	//this.IE523 = (this.IE5X && this.PPC && (navigator.userAgent.indexOf("5.23") != -1));

	this.IE55 = (this.IE5X && (navigator.userAgent.indexOf("5.5") != -1));
	this.IE6X = (this.IE && (this.major==4) && (navigator.userAgent.indexOf("MSIE 6") != -1));

	//mozilla
	this.MOZILLA = (this.GECKO && !this.NETSCAPE);
	//this.MOZI_11X = (this.MOZILLA && (navigator.userAgent.indexOf("rv:1.1") != -1));
	//this.MOZI_12X = (this.MOZILLA && (navigator.userAgent.indexOf("rv:1.2") != -1));
	//this.MOZI_14X = (this.MOZILLA && (navigator.userAgent.indexOf("rv:1.4") != -1));
	//this.MOZI_15X = (this.MOZILLA && (navigator.userAgent.indexOf("rv:1.5") != -1));
	//this.MOZI_16X = (this.MOZILLA && (navigator.userAgent.indexOf("rv:1.6") != -1));
	//this.MOZI_171 = (this.MOZILLA && (navigator.userAgent.indexOf("rv:1.7.1") != -1));
	//this.MOZI_175 = (this.MOZILLA && (navigator.userAgent.indexOf("rv:1.7.5") != -1));

	//opera
	this.OPERA = ((window.opera)||(this.COMPATI && (navigator.userAgent.indexOf("Opera") != -1)) && !this.VENDOR);
	//this.OPERA6X =(this.OPERA && !(document.plugins));
	//this.OPERA7X =(this.OPERA && (document.plugins));
	//this.OPERA8X =(this.OPERA && (document.plugins) && (navigator.userAgent.indexOf("8.01") != -1));

	//firefox
	//this.FIREBIRD = (this.GECKO && (navigator.userAgent.indexOf("Firebird/") != -1));
	this.FIREFOX = (this.MOZILLA && (navigator.userAgent.indexOf("Firefox/") != -1) && this.VENDOR);
	//this.FIREFOX08X = this.FIREFOX && (navigator.vendorSub == "0.8") && (navigator.userAgent.indexOf("rv:1.6") != -1);
	//this.FIREFOX08X = this.FIREFOX && (navigator.vendorSub == "0.9");
	//this.FIREFOX09X = this.FIREFOX && (navigator.vendorSub == "0.9.2") && (navigator.userAgent.indexOf("rv:1.7") != -1);
	//this.FIREFOX09X = this.FIREFOX && (navigator.vendorSub == "0.9.3");
	//this.FIREFOX10X = this.FIREFOX && (navigator.vendorSub == "1.0") && (navigator.userAgent.indexOf("rv:1.7.5") != -1);
	//this.FIREFOX106X = this.FIREFOX && (navigator.vendorSub == "1.0.6") && (navigator.userAgent.indexOf("rv:1.7.10") != -1);

	//iCab
	this.ICAB_NAME = (navigator.appName.indexOf("iCab") != -1);
	this.ICAB_J = (navigator.userAgent.indexOf("iCab J") != -1);
	this.ICAB_MOZ45 = (navigator.userAgent.indexOf("iCab") != -1);
	this.ICAB_MOZ40 = (this.IS_MSIE && (this.major==5) && (this.miner==5));
	this.ICAB_MOZ476 =(!this.GECKO && !this.NETSCAPE && (navigator.userAgent.indexOf("Mozilla/4.76") != -1));
	this.ICAB = (this.COMPATI && this.ICAB_NAME || this.ICAB_MOZ45 || this.ICAB_MOZ40 || this.ICAB_J || this.ICAB_MOZ476);

	//other
	this.SAFARI = (this.OSX && (navigator.userAgent.indexOf("KHTML") != -1) && (navigator.userAgent.indexOf("Safari/") != -1));
	//this.SAFARI_856 = this.SAFARI && (navigator.userAgent.indexOf("85.6") != -1);
	//this.SAFARI_857 = this.SAFARI && (navigator.userAgent.indexOf("85.7") != -1);
	//this.SAFARI_1001 = this.SAFARI && (navigator.userAgent.indexOf("100.1") != -1);
	//this.SAFARI_1251 = this.SAFARI && (navigator.userAgent.indexOf("125.1") != -1);
	//this.SAFARI_1258 = this.SAFARI && (navigator.userAgent.indexOf("125.8") != -1);
	//this.SAFARI_1259 = this.SAFARI && (navigator.userAgent.indexOf("125.9") != -1);
	
	this.CAMINO = (this.OSX && this.GECKO && ((navigator.userAgent.indexOf("Chimera") != -1)));

	this.LUNASCAPE = this.COMPATI && (navigator.userAgent.indexOf("FunWebProducts") != -1);
	this.LUNASCAPE_MOZ = this.GECKO && (navigator.userAgent.indexOf("rv:1.7.2") != -1);

	//this.OMNIWEB = (this.COMPATI && navigator.userAgent.indexOf("OmniWeb") != -1);
	//this.HOTJAVA = (navigator.userAgent.indexOf("HotJava") != -1);
	//this.WEBTV = (this.COMPATI && (avigator.userAgent.indexOf("WebTV") != -1));
}

Is_env.prototype.getBrowserName = function(){
	var userBrowser = "";

	if( this.FIREFOX ) userBrowser = "Firefox";
	else if( this.MOZILLA ) userBrowser = "Mozilla";
	else if( this.OPERA ) userBrowser = "Opera";
	else if( this.NN4_LOWER || this.NN6_UPPER ) userBrowser = "Netscape";
	else if( this.MICROSOFT ) userBrowser = "Explorer";
	else if( this.ICAB ) userBrowser = "iCab";

	return userBrowser;
}

Is_env.prototype.getBrowserVersion = function(){
	var version    = "";
	var start      = 0;
	var end        = 0;
	var usrBrowser = this.getBrowserName();
	var usrAgent   = navigator.userAgent.toUpperCase();
	var appVersion = navigator.appVersion;
	
	if( usrBrowser.charAt(0) == "M" ){ //Mozilla
		start   = usrAgent.indexOf("RV:") +3;
		end     = usrAgent.indexOf(")", start);
		version = usrAgent.substring(start, end);
	}else if( usrBrowser.charAt(0) == "F" ){
		start   = usrAgent.indexOf("FIREFOX/",0) +8;
		end     = usrAgent.length;
		version = usrAgent.substring(start, end);
	}else if( this.NN4_LOWER ){
		start   = appVersion.indexOf(" ",0);
		version = appVersion.substring(0, start);
	}else if( this.NN6_UPPER ){
		version = this.VENDOR;
	}else if( this.OPERA ){
		start   = usrAgent.indexOf("OPERA ",0) +6;
		end     = usrAgent.indexOf(" ",start);
		version = usrAgent.substring(start, end);
	}else if( usrBrowser.charAt(0) == "E" ){
		start   = appVersion.indexOf("MSIE ",0) +5;
		end     = appVersion.indexOf(";",start);
		version = appVersion.substring(start, end);
	}else if( usrBrowser.charAt(0) == "i" ){
		start   = usrAgent.indexOf("iCab ",0) +8;
		end     = usrAgent.indexOf("(",start);
		version = usrAgent.substring(start, end);
	}

	return version;
}


Is_env.prototype.checkenv = function(){
	/* browser branch */
	if( this.MAC ){
		if( this.SAFARI ) return "mac_safari";
		else if( this.OPERA ) return "mac_opera";
		else if( this.MOZILLA ) return "mac_mozilla";
		else if( this.OSX && this.FIREFOX ) return "mac_firefox";
		else if( this.ICAB ) return "mac_icab";
		else if( this.IE3X ) return "mac_ie3_lower";
		else if( this.IE45 ) return "mac_ie45";
		else if( this.IE5X ) return "mac_ie5";
		else if( this.NN3X ) return "mac_ns3_lower";
		else if( this.NN4X ) return "mac_ns4";
		else if( this.NN6X ) return "mac_ns6";
		else if( this.NN7X ) return "mac_ns7";
		else if( this.NN8X ) return "mac_ns8";
	}else if( this.WIN ){
		if( this.OPERA ) return "win_opera";
		else if( this.MOZILLA ) return "win_mozilla";
		else if( this.FIREFOX ) return "win_firefox";
		else if( this.IE3X ) return "win_ie3_lower";
		else if( this.IE4X ) return "win_ie4";
		else if( this.IE5X ) return "mac_ie5";
		else if( this.IE6X ) return "mac_ie6";
		else if( this.NN3X ) return "win_ns3_lower";
		else if( this.NN4X ) return "win_ns4";
		else if( this.NN6X ) return "win_ns6";
		else if( this.NN7X ) return "win_ns7";
		else if( this.NN8X ) return "win_ns8";
	}else if( this.UNIX ){
		if( this.OPERA ) return "unix_opera";
		else if( this.MOZILLA ) return "unix_mozilla";
		else if( this.FIREFOX ) return "unix_firefox";
		else if( this.NN4X ) return "unix_ns4";
		else if( this.NN6X ) return "unix_ns6";
		else if( this.NN7X ) return "unix_ns7";
		else if( this.NN8X ) return "unix_ns8";
	}else{
		return "other_brws";
	}
}


Is_env.prototype.checkNN6UP = function(){
	var varsion = navigator.vendorSub;
	if( this.NN6X_UP || this.FIREFOX ){
		if((varsion != undefined)||(varsion != null)){
			return true;
		}
	}else{
		return false;
	}
}


/*
##########################################################################
#platform check constructor & method
#windows ME and XP have an inaccurate return value from NN4X or NN6.0.
########################################################################## 
*/
function Is_os(){
	var nv_usagnt = navigator.userAgent.toLowerCase();
	this.NN = (navigator.appName.charAt(0)=="N");
	this.IE = (navigator.appName.charAt(0)=="M");

	//Mac (68K, PPC, OSX)
	this.MAC = (nv_usagnt.indexOf("mac") != -1);
	this.MAC68K = (this.MAC && (nv_usagnt.indexOf("68") != -1)); //Mac 68000, 68K
	this.PPC = (this.MAC && (nv_usagnt.indexOf("pc") != -1)); //Mac_PowerPC, Mac PowerPC, PPC
	this.OSX = (this.MAC && (nv_usagnt.indexOf("os x") != -1));

	//Win 9x (95, 98)
	this.WIN = ((nv_usagnt.indexOf("win") != -1) || (nv_usagnt.indexOf("windows ") != -1));
	this.WIN95 = (this.WIN && (nv_usagnt.indexOf("95") != -1));
	this.WIN98 = (this.WIN && (nv_usagnt.indexOf("98") != -1));

	//Win CE
	this.COMPATI = (nv_usagnt.indexOf("compatible") != -1);
	this.WINCE = (this.WIN && this.COMPATI && (nv_usagnt.indexOf("ce") != -1));

	//Win Me
	this.ME = (this.WIN98 && (nv_usagnt.indexOf("9x 4.90") != -1)); //for ie only
	this.ME_N6 = (this.WIN && (nv_usagnt.indexOf("9x 4.90") != -1)); //for nn6Up or mozilla only
	this.ME_OP = (this.WIN && (nv_usagnt.indexOf("me") != -1)); //for Opera only
	this.WINME = (this.ME || this.ME_N6 || this.ME_OP);

	//Win NT4
	this.NT = (this.WIN && (nv_usagnt.indexOf("nt") != -1)); //for opera, ie
	this.NT4 = (this.NT && (nv_usagnt.indexOf("nt 4.0") != -1)); //ie 5.5
	this.WINNT = (this.WIN && (nv_usagnt.indexOf("winnt") != -1)); //for nn4.7Up only
	this.NT4X = (this.NT || this.NT4 || this.WINNT);

	//Win 2000 (NT5)
	this.NT5 = (this.NT && (nv_usagnt.indexOf("nt 5.0") != -1)); //for ie or nn6.1Up only
	this.WIN2K_OP = (this.WIN && (nv_usagnt.indexOf("2000") != -1)); //for Opera only
	this.WIN2K = (this.NT5 || this.WIN2K_OP);
	
	//Win XP (NT5.1)
	this.NT51 = (this.NT && (nv_usagnt.indexOf("nt 5.1") != -1)); //for ie or nn6.1Up only
	this.OP_XP = (this.WIN && (nv_usagnt.indexOf("xp") != -1)); //for Opera only
	this.WINXP = (this.NT51 || this.OP_XP);

	//Win XP SP1
	this.WINXP_SP1 = this.IE && this.NT51 && (navigator.appMinorVersion.indexOf("SP1") != -1);

	//Win XP SP2
	this.WINXPSP2 =  this.IE && (navigator.appMinorVersion.indexOf("SP2") != -1);
	this.WINXP_SP2 = (this.NT51 && (navigator.userAgent.indexOf("SV1") != -1) || this.WINXPSP2);

	//UNIX for NN or mozilla or Opera
	this.UNIX = (nv_usagnt.indexOf("x11") != -1);
	this.LINUX = (this.UNIX && (nv_usagnt.indexOf("linux") != -1));
	this.SUNOS = (this.UNIX && (nv_usagnt.indexOf("sunos") != -1));
	this.HP_UX = (this.UNIX && (nv_usagnt.indexOf("hp-ux") != -1));
	this.OSF1 = (this.UNIX && (nv_usagnt.indexOf("osf1") != -1));
	this.FREEBSD = (this.UNIX && (nv_usagnt.indexOf("freebsd") != -1));
	this.NETBSD = (this.UNIX && (nv_usagnt.indexOf("netbsd") != -1));
	this.IRIX = (this.UNIX && (nv_usagnt.indexOf("irix") != -1));

}


Is_os.prototype.checkPlatform = function(){

	myPlatform = new Array(
		new Array("Mac68K","MacPPC","MacOSX"), //mac
		new Array("WinCE","Win95","Win98","WinMe","WinNT4","Win2000","WinXP"), //win
		new Array("Linux","SunOS","HP-UX","OSF1","FreeBSD","NetBSD","IRIX"), //unix
		new Array("otherOS") //other
	);

	if(this.MAC68K) return myPlatform[0][0];
	else if(this.OSX) return myPlatform[0][2];
	else if(this.PPC) return myPlatform[0][1];

	else if(this.WINCE) return myPlatform[1][0];
	else if(this.WIN95) return myPlatform[1][1];
	else if(this.WINME) return myPlatform[1][3];
	else if(this.WIN98) return myPlatform[1][2];
	else if(this.WIN2K) return myPlatform[1][5];
	else if(this.WINXP) return myPlatform[1][6];
	else if(this.NT4X) return myPlatform[1][4];

	else if(this.LINUX) return myPlatform[2][0];
	else if(this.SUNOS) return myPlatform[2][1];
	else if(this.HP_UX) return myPlatform[2][2];
	else if(this.OSF1) return myPlatform[2][3];
	else if(this.FREEBSD) return myPlatform[2][4];
	else if(this.NETBSD) return myPlatform[2][5];
	else if(this.IRIX) return myPlatform[2][6];

	else return myPlatform[3][0];

}

/*
###################################
#writing global footer method
###################################
*/
function writefooter(path){
	var is = new Is_env();
	var this_year = new Date();

	if(!(is.NN4_LOWER)){
		document.open("text/html");
		document.write('<div lang="en">');
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="760">');
		document.write('<tr><td height="21" background="'+path+'images/common/footerbase.gif"><address>Copyright(c) 2002-'+this_year.getFullYear()+' ARES All Rights Reserved.</address></td></tr>');
		document.write('</table>');
		document.write('</div>');
		document.close();

	}else{
		if( this_year.getYear() >= 2000 ) var match_year = this_year.getYear();
		else var match_year = this_year.getYear()+1900;

		document.open("text/html");
		document.write('<div lang="en">');
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="760">');
		document.write('<tr><td height="21" background="'+path+'images/common/footerbase.gif"><address>Copyright(c) 2002-'+match_year+' ARES All Rights Reserved.</address></td></tr>');
		document.write('</table>');
		document.write('</div>');
		document.close();

	}
}


/* j-reit footer */
function writefooter_jreit(path){
	var is = new Is_env();
	var this_year = new Date();

	if(!(is.NN4_LOWER)){
		document.open("text/html");
		document.write('<div lang="en">');
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="860">');
		document.write('<tr><td height="21" background="'+path+'images/common/footerbase.gif"><address>Copyright(c) 2002-'+this_year.getFullYear()+' ARES All Rights Reserved.</address></td></tr>');
		document.write('</table>');
		document.write('</div>');
		document.close();

	}else{
		if( this_year.getYear() >= 2000 ) var match_year = this_year.getYear();
		else var match_year = this_year.getYear()+1900;

		document.open("text/html");
		document.write('<div lang="en">');
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="860">');
		document.write('<tr><td height="21" background="'+path+'images/common/footerbase.gif"><address>Copyright(c) 2002-'+match_year+' ARES All Rights Reserved.</address></td></tr>');
		document.write('</table>');
		document.write('</div>');
		document.close();

	}
}


/* j-reit_e footer_zuhyou */
function zuhyou_writefooter_jreit(path){
	var is = new Is_env();
	var this_year = new Date();

	if(!(is.NN4_LOWER)){
		document.open("text/html");
		document.write('<div lang="en">');
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="1300">');
		document.write('<tr><td height="21" background="'+path+'images/common/footerbase.gif"><address>Copyright(c) 2002-'+this_year.getFullYear()+' ARES All Rights Reserved.</address></td></tr>');
		document.write('</table>');
		document.write('</div>');
		document.close();

	}else{
		if( this_year.getYear() >= 2000 ) var match_year = this_year.getYear();
		else var match_year = this_year.getYear()+1900;

		document.open("text/html");
		document.write('<div lang="en">');
		document.write('<table border="0" cellpadding="0" cellspacing="0" width="1300">');
		document.write('<tr><td height="21" background="'+path+'images/common/footerbase.gif"><address>Copyright(c) 2002-'+match_year+' ARES All Rights Reserved.</address></td></tr>');
		document.write('</table>');
		document.write('</div>');
		document.close();

	}
}


function getthisdate( pram ){
	var _year, _month, _date, _day, _d, _m;
	var is = new Is_env();
	var this_year = new Date();

	_year  = this_year.getFullYear();
	_month = this_year.getMonth()+1;
	_date  = this_year.getDate();
	
	if(pram=='jp') _d = new Array("日","月","火","水","木","金","土");
	else _d = new Array("Sun.","Mon.","Tue.","Wed.","Thu.","Fri.","Sat.");

	if(pram!='jp') _m= new Array(
		"Jan. ", "Feb. ", "Mar. ", "Apr. ", "May. ", "Jun. ", "Jul. ", "Aug. ", "Sep. ", "Oct. ", "Nov. ", "Dec. "
	);

	_day   = _d[this_year.getDay()];

	if(this_year.getDay() == 0) _day = _day.fontcolor("FF0000"); //Sunday
	if(this_year.getDay() == 6) _day = _day.fontcolor("0000FF"); //Saturday

	if(pram=='jp'){
		if(!(is.NN4_LOWER)){
			document.open("text/html");
			document.write('<b class="t75h10">'+_year+'年'+_month+'月'+_date+'日'+'（'+_day+'）'+'</b>');
			document.close();

		}else{
			if( this_year.getYear() >= 2000 ) var match_year = this_year.getYear();
			else var match_year = this_year.getYear()+1900;

			document.open("text/html");
			document.write('<b class="t75h10">'+match_year+'年'+_month+'月'+_date+'日'+'（'+_day+'）'+'</b>');
			document.close();
		}
	}else{
		if(!(is.NN4_LOWER)){
			document.open("text/html");
			document.write('<b class="t75h10">'+'['+_day+'] '+_m[_month-1]+' .'+_date+' .'+_year+'</b>');
			document.close();

		}else{
			if( this_year.getYear() >= 2000 ) var match_year = this_year.getYear();
			else var match_year = this_year.getYear()+1900;

			document.open("text/html");
			document.write('<b class="t75h10">'+'['+_day+'] '+_m[_month-1]+' .'+_date+' .'+match_year+'</b>');
			document.close();
		}
	}
}

