///* by Eleven 03/09/2010
//page located
var crrentMenu;
window.onload = function(){
//var temp = window.location.search;
//var menuTitle = temp.split("sub=");
//crrentMenu = menuTitle[1];
}
//mouse move ouver menu
function MenuAct(obj){
	if(obj.className == obj.id)
	{
		var iid = obj.id; 
		obj.className = iid+"_hover";
		obj.onmouseout = function(){Mout(obj,iid);};
	}
}
//mouse mover out menu
function Mout(obj,iid){
	
	obj.className = iid;
	}
	/* ctrl menu */
function menuCtrl(index)
{
	switch(index){
		case 'home':
		window.location.href="index.html";
		break;
		case 'us':
		window.location.href="aboutus.html";
		break;
		case 'china':
		window.location.href="inchina.html";
		break;
		case 'bpo':
		window.location.href="bpo.html";
		break;
		case 'client':
		window.location.href="client.html";
		break;
		case 'product':
		window.location.href="product.html";
		break;
		case 'inquiry':
		window.location.href="inquiry.html";
		break;
		case 'process':
		window.location.href="process.html";
		break;
		case 'out':
		window.location.href="inchina.html";
		break;
		case 'dalian':
		window.location.href="outsourcing.html";
		break;
		case 'tech':
		window.location.href="technology.html";
		break;
		case 'case':
		window.location.href="case.html";
		break;
		case 'culture':
		window.location.href="aboutus.html";
		break;
		case 'history':
		window.location.href="history.html";
		break;
		case 'speech':
		window.location.href="speech.html";
		break;
		case 'structure':
		window.location.href="structure.html";
		break;
		case 'activity':
		window.location.href="activity.html";
		break;
		case 'contact':
		window.location.href="contact.html";
		break;
		case 'qualificaton':
		window.location.href="qualification.html";
		break;
		case 'ebook':
		window.location.href="nlebook.html";
		break;
		default:
		break;
		}
	}
	/**/
function showImg(obj){
	var h_id = obj.id;
	var tbl_id = h_id + "_tbl";
	var tbls = document.getElementById(tbl_id);
	if(tbls){
		if(tbls.style.display == 'none')
		{
			tbls.style.display = "block";
			tbls.style.visible = "true";
			}
		else
		{
			tbls.style.display = "none";
			tbls.style.visible = "false";
			}
	}
	}
	
	/* add to */
function AddFavorite()
{
	
    if (document.all){  
     window.external.addFavorite('http://www.newlandsystem.com','Dalian Newland Software');  
     }
	 else if(window.sidebar){  
    window.sidebar.addPanel('Dalian Newland Software', 'http://www.newlandsystem.com/', "");  
			}
}
	
