/*
	config.js ver.0.7
	2002.7.13
	SUZUKI Yuji
*/

// getUA
var ua = new function getUA() {
	var usrAgt = navigator.userAgent;
	
	// DOM
	this._dom = document.getElementById;
	this._all = document.all;
//	this._lyr = document.layers;
	
	// Browser
	this.moz = this._dom && usrAgt.indexOf("Gecko") != -1;					// Mozilla (Netscape 6 or 7)
	this.op  = usrAgt.indexOf("Opera") != -1 && this._dom;					// Opera
	this.ie6 = usrAgt.indexOf("MSIE 6") != -1 && this._all && !this.op;		// IE 6
	this.ie5 = usrAgt.indexOf("MSIE 5") != -1 && this._all && !this.op;		// IE 5
	this.ie4 = this._all && !this._dom && !this.op;							// IE 4
	this.ie  = this.ie6 || this.ie5 || this.ie4;							// IE
	this.nn4 = this._lyr && !this._dom;										// Netscape 4
	
	this.ua  = this.moz || this.op || this.ie6 || this.ie5 || this.ie4 || this.nn4;
	
	// Platform
	this.mac = usrAgt.indexOf("Mac") != -1;
	this.win = usrAgt.indexOf("Windows") != -1;
	this.otr = !this.mac && !this.win;
	
	// Select CSS file [ Mac or Win & Others ]
	if (this.mac) this.css = "mac.css";
	if (this.win || this.otr) this.css = "win.css";
	
	return this;
}

function subWin(){
	var url = "http://www.pw-s.com/dev2/MobileSchedule/manager/index.jsp";
	window.open(url, "preview", "scrollbars=yes,width=800,height=720");
}

