

//
	cssset();
	brCheck();
	

//CSSSelect
function cssset(){
	if(navigator.userAgent.indexOf("Windows",0) != -1){
	//Windows
		if(navigator.appName.indexOf("Netscape",0) != -1){
			//NN
			if(navigator.appVersion.charAt(0) < 5){
			//4ˆÈ‰º
				document.write('<link rel="stylesheet" type="text/css" href="/css/winNN_Style.css">');
			}
		}
	}

	if(navigator.userAgent.indexOf("Windows",0) == -1){
	//Not Windows
		document.write('<link rel="stylesheet" type="text/css" href="/css/other_Style.css">');
	}
}


//AgentCheck
function brCheck(){
	if(navigator.appName == "Netscape" && navigator.appVersion.charAt(0) >=4){
	//NN6
		if(document.getElementById){
			Agent="NN6";
		}

	//NN4.7
		if(document.layers){
			Agent="NN";
		}
	}

	else if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.charAt(0) >= 4){
	//IE5
		if((document.getElementById)&&(document.all)){
			Agent="IE5";
		}

	//IE4
		if(!(document.getElementById)&&(document.all)){
			Agent="IE";
		}
	}
	else{
		Agent="OTHER";
	}
}



//PreLoad Images
var preloadflag = false;
function PreLoad(){
	var preimgs = new Array();
	for(i = 0 ; i < Imglist.length ; i++){
		preimgs[i] = new Image();
		preimgs[i].src = Imglist[i];
	}
	preloadflag = true;
}


//Swap Images
function SwapImage(ImageName,FileName){
	if(preloadflag == true){
		target = document.images[ImageName];
		target.src = FileName;
	}
}




//Window Open


function newWindow(url){
	newwindow=window.open("","newwin","toolbar=no,location=no,directories=no,status=yes,scrollbars=no,resizable=no,width=750,height=485");
	newwindow.focus();
	newwindow.location.href=url;
}

//Window Open  CERO


function newWindowCERO(url){
	newwindow=window.open("","newwinCERO","toolbar=no,location=no,directories=no,status=yes,scrollbars=no,resizable=no,width=400,height=270");
	newwindow.focus();
	newwindow.location.href=url;
}





