
//Browser Check
var browserType=new checkBrowserType();
var osType=new checkOsType();
function checkBrowserType(){
	this.IE=(navigator.userAgent.indexOf("MSIE")!=-1);
	this.Gecko=(navigator.userAgent.indexOf("Gecko")!=-1);
	this.IE6=(navigator.userAgent.indexOf("MSIE 6.")!=-1);
	this.IE5=(navigator.userAgent.indexOf("MSIE 5.")!=-1);
	this.NC71=(navigator.userAgent.indexOf("Netscape/7.1")!=-1);
	this.NC70=(navigator.userAgent.indexOf("Netscape/7.0")!=-1);
	this.NC6=(navigator.userAgent.indexOf("Netscape/6.")!=-1);
	this.NC7=(navigator.userAgent.indexOf("Netscape/7.")!=-1);
	this.NC4=(navigator.userAgent.indexOf("Netscape/4.")!=-1);
}
function checkOsType(){
	this.Win=(navigator.appVersion.indexOf("Win")!=-1);
	this.Mac=(navigator.appVersion.indexOf("Mac")!=-1);
	this.Unix=(navigator.appVersion.indexOf("X11")!=-1);
}


//Contents maxwidth minwith

function setContainerWidth() {
	var windowWidth = document.body.clientWidth;
	if(document.getElementById){
		if(windowWidth <= 760) {
			document.getElementById("wrapper").style.width = '760px';
		} else if(windowWidth >= 780) {
			document.all("wrapper").style.width = '97%';
		} else {
			document.getElementById("wrapper").style.width = 'auto';
		}
	}

	else if(document.all){
		if(windowWidth <= 760) {
			document.all("wrapper").style.width = '760px';
		} else if(windowWidth >= 761) {
			document.all("wrapper").style.width = '97%';
		} else {
			document.all("wrapper").style.width = 'auto';
		}
	}

}

//Contents maxwidth minwith Setting
//if(browserType.IE){
//	window.onload = setContainerWidth;
//	window.onresize = setContainerWidth;
//}



