function link(num){
	switch(num)
	 {
		case 10 :
		location.href="/about/about0104.asp";
		break;
		case 11 :
		location.href="/about/about0104.asp";
		break;
		case 12 :
		location.href="/about/about02.asp";
		break;
		case 13 :
		location.href="/about/about03.asp";
		break;
		case 14 :
		location.href="/about/about04.asp";
		break;
		case 15 :
		location.href="/about/about05.asp";
		break;
		case 20 :
		location.href="/news/news01.asp";
		break;
		case 21 :
		location.href="/news/news01.asp";
		break;
		case 22 :
		location.href="/news/news02.asp";
		break;
		case 23 :
		location.href="/news/news03.asp";
		break;
		case 30 :
		location.href="/products/products01.asp";
		break;
		case 31 :
		location.href="/products/products01.asp";
		break;		
		case 32 :
		location.href="/products/products02.asp";
		break;
		case 33 :
		location.href="/products/products03.asp";
		break;
		case 40 :
		location.href="/tech/tech01.asp";
		break;
		case 41 :
		location.href="/tech/tech01.asp";
		break;
		case 42 :
		location.href="/tech/tech02.asp";
		break;
		case 43 :
		location.href="/tech/tech03.asp";
		break;
		case 50 :
		location.href="/hr/hr01.asp";
		break;
		case 51 :
		location.href="/hr/hr01.asp";
		break;
		case 52 :
		location.href="/hr/hr01.asp";
		break;
		case 53 :
		location.href="/hr/hr03.asp";
		break;
		case 54 :
		location.href="/hr/hr04.asp";
		break;
		case 60 :
		location.href="/mc/mc01.asp";
		break;
		case 61 :
		location.href="/mc/mc01.asp";
		break;
		case 62 :
		location.href="/mc/mc02.asp";
		break;
		case 63 :
		location.href="/mc/mc03.asp";
		break;
		case 64 :
		location.href="/mc/mc04.asp";
		break;
		case 65 :
		location.href="/mc/mc05.asp";
		break;
		case 66 :
		location.href="/mc/mc06.asp";
		break;
		case 70 :
		location.href="/map/contact.asp";
		break;		
	 }
}

function quickLick(num){
	switch(num)
	 {
		 case 1 :
		location.href="/products/products03.asp";
		break;
		case 2 :
		location.href="/map/contact.asp";
		break;
		case 3 :
		location.href="/products/products02.asp";
		break;		
	 }
}
function quick(num){
	switch(num)
	 {
		case 1 :
		location.href="/news/activities_list.asp";
		break;
		case 2 :
		location.href="/games/images_show.asp";
		break;
		case 3 :
		location.href="/mc/faq_com.asp";
		break;
		case 4 :
		location.href="/products/product_list.asp";
		break;
	 }
}
function gohome(){
location.href="/index.asp";
}
function cus(){

}
function sitemap(){
location.href="/map/map01.asp";
}
function GetObj(objName){if(document.getElementById){return eval('document.getElementById("'+objName+'")')}else if(document.layers){return eval("document.layers['"+objName+"']")}else{return eval('document.all.'+objName)}}



function hiddenObj(ObjId){GetObj(ObjId).style.display="none"}
function showObj(ObjId){GetObj(ObjId).style.display="block"}

 	function cssChange(node) {
        var ul = document.getElementById("nav");
        var children = ul.childNodes;
//        for (var i=0;i<children.length;i++) {
//            children[i].className = "lioff";
//        }
        while (!node.className || node.className != "lioff") {
            node = node.parentNode;
        }
        node.className = "lion";	
//		location.href = node.url;
    }
function MakeFlashString(source,id,width,height,wmode)
{	
	return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,22,0\" width="+width+" height="+height+" id="+id+"><param name=wmode value="+wmode+" /><param name=movie value="+source+" /><param name=quality value=high /><embed src="+source+" quality=high wmode="+wmode+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+width+" height="+height+"></embed></object>";
}

function MakeObjectString(classid, codebase, name, id, width,height, param)
{
	return "<object classid="+classid+" codebase="+codebase+" name="+name+" width="+width+" height="+height+" id="+id+"><param name=wmode value="+wmode+" />"+param+"</object>";
}


function SetInnerHTML(target, code)
{ 
	target.innerHTML = code; 
}


function DocumentWrite(src)
{
	document.write(src);
}
// scrolling layer
function initMoving(target, position, topLimit, btmLimit) {
	if (!target)
		return false;

	var obj = target;
	obj.initTop = position;
	obj.topLimit = topLimit;
	obj.bottomLimit = document.documentElement.scrollHeight - btmLimit;

	obj.style.position = "absolute";
	obj.top = obj.initTop;
	obj.left = obj.initLeft;

	if (typeof(window.pageYOffset) == "number") {
		obj.getTop = function() {
			return window.pageYOffset;
		}
	} else if (typeof(document.documentElement.scrollTop) == "number") {
		obj.getTop = function() {
			return document.documentElement.scrollTop;
		}
	} else {
		obj.getTop = function() {
			return 0;
		}
	}

	if (self.innerHeight) {
		obj.getHeight = function() {
			return self.innerHeight;
		}
	} else if(document.documentElement.clientHeight) {
		obj.getHeight = function() {
			return document.documentElement.clientHeight;
		}
	} else {
		obj.getHeight = function() {
			return 500;
		}
	}

	obj.move = setInterval(function() {
		if (obj.initTop > 0) {
			pos = obj.getTop() + obj.initTop;
		} else {
			pos = obj.getTop() + obj.getHeight() + obj.initTop;
			//pos = obj.getTop() + obj.getHeight() / 2 - 15;
		}

		if (pos > obj.bottomLimit)
			pos = obj.bottomLimit;
		if (pos < obj.topLimit)
			pos = obj.topLimit;

		interval = obj.top - pos;
		obj.top = obj.top - interval / 3;
		obj.style.top = obj.top + "px";
	}, 30)
}
function dEI(elementID){	
	return document.getElementById(elementID);
}
function imgRollover(imgBoxID){
	var MenuCounts = dEI(imgBoxID).getElementsByTagName("img");
	for (i=0;i<MenuCounts.length;i++) {
		var numImg=MenuCounts.item(i);
		var ImgCheck = numImg.src.substring(numImg.src.length-6,numImg.src.length);
		if (ImgCheck!="on.gif") {
				numImg.onmouseover = function () {
					this.src = this.src.replace(".gif", "_on.gif");
				}
				numImg.onmouseout = function () {
					this.src = this.src.replace("_on.gif", ".gif");
				}
			}
	}
}

