﻿<!--
createMenu('order', new Array('订购ET99多功能锁','订购ET199超级多功能锁','订购ET199Auto USB Key','订购ET299加密锁','订购ET299 U盘锁','订购ePassOTP动态令牌','订购坚石智能卡读写器','订购桌面保护锁','订购卡E通'),
//'订购ET199超级多功能锁',

new Array('../et99/sale.php','../et199/sale.php','../et199auto/sale.php','../et299/sale.php?type=1','../et299/sale.php?type=2','../otp/sale.php?type=1','../screader/sale.php?type=1','../dts/sale.php','../carde/sale.php'));
//'et199/sale.php',

createMenu('download', new Array('下载ET99多功能锁资源','下载ET199超级多功能锁资源','下载ET199Auto USB Key资源','下载ET299加密锁资源','下载ET299 U盘锁资源','下载ePassOTP动态令牌资源','下载坚石智能卡读写器资源','下载桌面保护锁资源','下载卡E通资源'),
//'下载ET199超级多功能锁资源',

new Array('../et99/download.php','../et199/download.php','../et199auto/download.php','../et299/download.php?type=1','../et299/download.php?type=2','../otp/download.php?type=1','../screader/download.php?type=1','../dts/download.php','../carde/download.php'));
//'et199/download.php',

function createMenu(itemID, content, linkURL){
 	document.write('<div id="'+itemID+'_menu" style="position:absolute; z-index:1000; visibility: hidden" onmouseover="showMenu2(this);" onmouseout="hideMenu2(this);">');
	if(content.length!=0){
		document.write('<table class="toolsmenu">');
		for(h=0;h<content.length;h++){
			document.write('<tr><td class="toolsmenu" onmouseover="this.style.backgroundColor=\'#aaccd9\';" onmouseout="this.style.backgroundColor=\'#cadfe7\';"><a class="toolsmenu_link" href="'+linkURL[h]+'">'+content[h]+'</a></td></tr>');
		}
		document.write('</table>');
	}
	document.write('</div>');
}

function showMenu(obj) {
	var itemMenuID=obj.id+'_menu';
	var itemMenu=document.getElementById(itemMenuID);
	var pos=getOffset(obj);
	var xx = pos[1];
	itemMenu.style.left = "" + xx + "px";
	var xx = pos[0] + obj.clientHeight;
	itemMenu.style.top = "" + xx + "px";
	itemMenu.style.visibility = 'visible';
}

function showMenu2(obj)  {
	obj.style.visibility = 'visible';
}

function hideMenu(obj) {
	var itemMenuID=obj.id+'_menu';
	var itemMenu=document.getElementById(itemMenuID);
	itemMenu.style.visibility = 'hidden';
}

function hideMenu2(obj) {
	obj.style.visibility = 'hidden';
}

function fix(event) {
	if (!event) event = window.event;
	if (event.target) {
		if (event.target.nodeType == 3) event.target = event.target.parentNode;
	} else if (event.srcElement) {
		event.target = event.srcElement;
	}
	return event;
}

function getOffset(e) {
	var t=e.offsetTop;
	var l=e.offsetLeft;
	while(e=e.offsetParent) {
		t+=e.offsetTop;
		l+=e.offsetLeft;
	}
	var rec = new Array(1);
	rec[0]  = t;
	rec[1] = l;
	return rec;
}
-->