﻿function navactionOver(el) {	var cssclass=el.className;	var cssprefix=cssclass.substring(0, cssclass.indexOf("_"));	el.className=cssprefix+"_over";}function navactionOut(el) {	var cssclass=el.className;	var cssprefix=cssclass.substring(0, cssclass.indexOf("_"));    el.className=cssprefix+"_out";}function dropdownMenu(layer_, show_) {	var node   = document.getElementById("n_"+layer_);	var oLayer = document.getElementById("l_"+layer_);	var table  = document.getElementById("t_"+layer_);	var pos    = findPosition(node);	oLayer.style.left=pos[0];	oLayer.style.top=pos[1]+32;	oLayer.style.height=(table.rows.length+1)*10+(table.rows.length+1)/2;	if(show_) {		MM_showHideLayers("l_"+layer_,'','show');	}else {		MM_showHideLayers("l_"+layer_,'','inherit');	}}function findPosition( oLink ) {  if( oLink.offsetParent ) {    for( var posX = 0, posY = 0; oLink.offsetParent; oLink = oLink.offsetParent ) {      posX += oLink.offsetLeft;      posY += oLink.offsetTop;    }    return [ posX, posY ];  } else {    return [ oLink.x, oLink.y ];  }}function chooseProduct(obj, lang) {  nodeid=parseInt(obj.value);       if (nodeid !=171 && nodeid !=96){      if(nodeid>0)        window.location.href="index.php?id="+obj.value+"&lang="+lang;    }  else if (nodeid == 171){      window.open("http://sk.geze.com.cn/en/home.asp");    }  else{      window.open("http://sk.geze.com.cn/home.asp");    }}function goGeze(obj) {  var url=obj.value;  if(url.length>0)    window.open(url, "_blank");}function addToFavorites() {	if (window.external) {		window.external.AddFavorite('http://www.geze.com.cn', 'www.geze.com.cn');  } else {  	alert("failed to add to favorites");  }}