function showhtml(args){
var url="";
	switch (args){
		case 0 : url ="/main.asp" ; break;	
		case 1 : url ="/sub/news.asp" ; break;	
		case 2 : url ="/sub/project.asp" ; break;	
		case 3 : url ="/sub/biography.asp" ; break;	
		case 4 : url ="/sub/gallery.asp" ; break;	
		case 5 : url ="/sub/board.asp" ; break;	
		case 6 : url ="/sub/links.asp" ; break;	

	}
	top.document.location.href = url
}
function windo(){
window.open('/eng_page/eng01.html','eng_page','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes, resizable=yes,width=830,height=600');
} 
function url_co(sw) {
	var os = navigator.userAgent.toLowerCase();
	if (os.indexOf("win") != -1) {
		document.all.t.style.width = 640
		var h = window.t.document.body.scrollHeight+0 ;
		if (h>900){
			document.all.t.style.height = window.t.document.body.scrollHeight+0 ;	
		} else {
			document.all.t.style.height = 900
		}
	} 
	else if (os.indexOf("mac") != -1) {
		document.getElementById("t").width = 640;
		var h = document.getElementById("t").document.body.scrollHeight; 
		if (h>900){
			document.getElementById("t").height = document.getElementById("t").document.body.scrollHeight;
		} else {
			document.getElementById("t").height =  h
		}
	}	
}
function chframe() {
	var os = navigator.userAgent.toLowerCase();
	if (os.indexOf("win") != -1) {
		document.all.t.style.height = 900
		document.all.t.style.height = window.t.document.body.scrollHeight+0 ;	
	} 
	else if (os.indexOf("mac") != -1) {
		document.getElementById("t").height = 900		
	}		
}
function getQuicktimeVersion() 
	{
	var agent = navigator.userAgent.toLowerCase(); 
	if (agent.indexOf("safari") != -1)
		{
		quicktimeVersion=6; 
		}
	// NS3+, Opera3+, IE5+ Mac (support plugin array):  check for Quicktime plugin in plugin array
	else if (navigator.plugins != null && navigator.plugins.length > 0) 
			{
      	
      	for (i=0; i < navigator.plugins.length; i++ ) 
      		{
         	var plugin =navigator.plugins[i];
         	
         	if (plugin.name.indexOf("QuickTime") > -1) 
         		{
            	quicktimeVersion = parseFloat(plugin.name.substring(18));
         		}
      		}
		}
   
	// IE4+ Win32:  attempt to create an ActiveX object using VBScript
	else if (agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1) 
		{
	 	document.write('<scr' + 'ipt language="VBScript"\> \n');
		document.write('on error resume next \n');
		document.write('dim obQuicktime \n');
		document.write('set obQuicktime = CreateObject("QuickTimeCheckObject.QuickTimeCheck.1") \n');
		document.write('if IsObject(obQuicktime) then \n');
		document.write('   if obQuicktime.IsQuickTimeAvailable(0) then \n');
		document.write('      quicktimeVersion = CInt(Hex(obQuicktime.QuickTimeVersion) / 1000000) \n');
		document.write('   end if \n');
		document.write('end if \n');
		document.write('</scr' + 'ipt\> \n');
  		}

	// Can't detect in all other cases
	else 
		{
		quicktimeVersion = -1;
		}

	return quicktimeVersion;
}