
var w3c = document.getElementById ? true : false;
var iex = document.all ? true : false;
var ns4 = document.layers ? true : false;

function openWindow(myLink,windowName)
{
if(! window.focus)return;
var myWin=window.open("",windowName,"height=200,width=200,dependent=yes,scrollbars=no");
myWin.focus();
myLink.target=windowName;
}

function fixNetscape(){
	if(origWidth != window.innerWidth || origHeight != window.innerHeight){
		window.location.reload();
	}	
}
if(ns4){
	origWidth = window.innerWidth;
	origHeight = window.innerHeight;
	window.onresize = fixNetscape;
}
/*function newImage(src){
	img = new Image();
	img.src = src;
	return img;
}*/
/*function imageSwap(img,obj,div){
	if(ns4 && div != null){
		document.layers[div].document.images[img].src = obj.src;
	}else{
		document.images[img].src = obj.src;
	}
}*/
function getStyle(name, nest){
	nest = nest ? 'document.'+nest+'.' : '';
	return w3c ? document.getElementById(name).style : iex ? document.all[name].style : ns4 ? eval(nest+'document.'+name) : false;
}

// ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~

Menus = new Object();
var curMenu = null;

MakeMenu = function(name,left,top,rollimg,rollout,rollover,rolldiv){
	this.name = name;
	this.left = left;
	this.top = top;
	this.timer = null;
	this.rollimg = rollimg;
	//this.rollout = newImage(rollout);
	//this.rollover = newImage(rollover);
	this.rolldiv = (rolldiv != null) ? rolldiv : null;
	this.obj = name+'Object';
	eval(this.obj+'=this');
}
MakeMenu.prototype.show = function(){
	clearTimeout(this.timer);
	getStyle(this.name).visibility = 'visible';
	//imageSwap(this.rollimg,this.rollover,this.rolldiv);
	curMenu = this.name;
}
MakeMenu.prototype.hide = function(){
	this.timer = setTimeout(this.obj+'.hideIt()',500);
}
MakeMenu.prototype.hideIt = function(){
	getStyle(this.name).visibility = 'hidden';

	//imageSwap(this.rollimg,this.rollout,this.rolldiv);
}
MakeMenu.prototype.startMenu = function(){
	var html;
	if(ns4){
		html = '<layer name="'+this.name+'" left="'+this.left+'" top="'+this.top+'" z-index="1000" visibility="hidden" ';
	}else{
		html = '<div id="'+this.name+'" style="position:absolute; left:'+this.left+'px; top:'+this.top+'px; z-index:1000; visibility:hidden" ';
	}
	html += 'onMouseOver="Menus.'+this.name+'.show()" onMouseOut="Menus.'+this.name+'.hide()">';
	return html;
}
hideCur = function(){
	if(curMenu != null){
		Menus[curMenu].hideIt();
		curMenu = null;
	}
}
endMenu = function(){
	 return ns4 ? '<\/layer>' : '<\/div>';
}
/*createMenu = function(name,left,top,rollimg,rollout,rollover,rolldiv){
	Menus[name] = new MakeMenu(name,left,top,rollimg,rollout,rollover,rolldiv);
}*/

createMenu = function(name,left,top,rollimg){
	Menus[name] = new MakeMenu(name,left,top,rollimg);
}


// ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~

// object name | left position | top position | rollover image name | normal image src | rollover image src | rollover div name (optional)

/*createMenu('submenu1', 262,  86, 'img_1', 'images/mainButtProducts.gif', 'images/mainButtProducts.gif');
createMenu('submenu2', 385, 86, 'img_2', 'images/mainButtSupport.gif', 'images/mainButtSupport.gif');
createMenu('submenu3', 508, 86, 'img_3', 'images/partners.gif', 'images/partners.gif');
createMenu('submenu4', 631, 86, 'img_4', 'images/mainButtCompany.gif', 'images/mainButtCompany.gif');*/

createMenu('submenu1', 262,  86, 'img_1');
createMenu('submenu2', 385, 86, 'img_2');
createMenu('submenu3', 508, 86, 'img_3');
createMenu('submenu4', 631, 86, 'img_4');



// ~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~




document.write(Menus.submenu1.startMenu());

document.write ("<table class='sub' border='0' cellspacing='1' cellpadding='2' bgcolor='#CCCCCC' width = '200'>" );
document.write ("<tr>");
document.write ("<td><font class='menu'><a href='entry_level.html'>入门级 CD/DVD/BD光盘打印刻录机</a> </font></td>");
document.write (" </tr>");
document.write (" <tr>");
document.write ("<td><font class='menu'><a href='mid_range.html'>中端  CD/DVD/BD 光盘打印刻录机</a> </font></td>");
document.write ("</tr>");
document.write ("<tr>");
document.write ("<td><font class='menu'><a href='bravopro_Xi-Series_publisher.html'>高端  CD/DVD/BD 光盘印刷刻录机</a> </font></td>");
document.write ("</tr>");
document.write ("<tr>");
document.write ("<td><font class='menu'><a href='bravoxr_series.html'>专业级CD/DVD/BD光盘印刷刻录机</a> </font></td>");
document.write ("</tr>");
document.write ("<tr>");
document.write ("<td><font class='menu'><a href='backup-archival.html'>CD/DVD/BD 数据备份 & 归档</a></font></td>");
document.write ("</tr>");
document.write ("<tr>");
document.write ("<td><font class='menu'><a href='http://www.primeralabel.com.cn/' title='彩色标签打印机'>彩色标签制作设备</a></font></td>");
document.write ("</tr>");
document.write ("<tr>");
document.write ("<td><font class='menu'><a href='lx_printers.html'>LX系列标签打印机</a></font></td>");
document.write ("</tr>");
document.write ("</table>");



document.write(endMenu());

document.write(Menus.submenu2.startMenu());
document.write("<table class='sub' border='0' cellspacing='1' cellpadding='3' bgcolor='#CCCCCC'width = '122'>");
document.write("<tr>");
document.write("<td><font class='menu'><a href='tutorials.html'>产品指南</a></font></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td width='112'><font class='menu'><a href='manuals.html'>产品操作手册</a></font></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><font class='menu'><a href='primera_printer_drivers.html'>驱动程序</a></font></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><font class='menu'><a href='firmware_upgrade.html'>固件升级</a></font></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><font class='menu'><a href='software_upgrade.html'>软件升级</a></font></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><font class='menu'><a href='http://www.cdprinter.com.cn/support_kb.php'  target='_blank'>产品知识库</a></font></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><font class='menu'><a href='http://www.primera.com/primera_tech_news.html' target='_blank'>最新技术信息</a></font></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><font class='menu'><a href='contact_tech_support.cfm.html'>联系技术支持</a></font></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><font class='menu'><a href='registration.html'>产品注册</a></font></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><font class='menu'><a href='http://www.primera.com/rohs_compliance.html' target='_blank'>RoHS Compliance </a></font></td>");
document.write("</tr>");
document.write("</table>");


document.write(endMenu());
//<!-- 3. -->
document.write(Menus.submenu3.startMenu());
document.write("<table class='sub' border='0' cellspacing='1' cellpadding='3' bgcolor='#CCCCCC' width ='122'>");
document.write("<tr>");
document.write("<td width='110'><font class='menu'><a href='http://www.primera.com/partner_program.html' target='_blank'>合作计划</a></font></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td><font class='menu'><a href='http://www.primera.com/register_developer.cfm' target='_blank'>开发</a></font></td>");
document.write(" </tr>");
document.write(" <tr>");
document.write("<td><font class='menu'><a href='industry_links.html'>合作伙伴</a></font></td>");
document.write("</tr>");
document.write("</table>");

document.write(endMenu());
//<!-- 4. -->
document.write(Menus.submenu4.startMenu());
document.write("<table width='118' border='0' cellpadding='3' cellspacing='1' bgcolor='#CCCCCC' class='sub' width= '122'>");
document.write("<tr>");
document.write("<td width='110'><font class='menu'><a href='about.html'>关于 Primera </a></font></td>");
document.write("</tr>");
document.write("<tr>");
document.write(" <td><font class='menu'><a href='http://www.primera.com/headline_news.html' target='_blank'>新闻 </a></font></td>");
document.write("</tr>");
//document.write("<tr>");
//document.write("<td><font class='menu'><a href='jobs.html'>Jobs</a></font></td>");
//document.write(" </tr>");
document.write("<tr>");
document.write(" <td><font class='menu'><a href='contact.html'>联系我们</a></font></td>");
document.write("</tr>");
document.write("</table>");
document.write(endMenu());
//<!--START HEADER NAV -->


document.write("<table width='100%' background='images/htmlBackg.gif' border='0' cellspacing='0' cellpadding='0'>");
document.write("<tr>");
document.write("<td><img src='images/spacer.gif' width='3' height='3'></td>");
document.write("</tr>");
document.write("<tr>");
document.write("<td>");


document.write ("<table width='754' height='83' background='images/topNavGradient.gif' border='0' cellspacing='0' cellpadding='0'>");
document.write ("<tr><td width='18'>&nbsp;</td><td width='245' valign='top'><a href='index.html'><img src='images/primeraLogo.gif' hspace='0' vspace='12' border='0'></a></td>");
				
document.write ("<td width='492' valign='top' align='right'><table width='492' border='0' cellspacing='5' cellpadding='0'><tr>");
document.write ("<td><div align='right'><a href='http://www.cdprinter.com.cn/'><img src='images/buttStore.gif' width='47' height='11' border='0'></a><img src='images/topNavSpacer.gif' border='0'><a href='contact.html'>联系我们</a><img src='images/topNavSpacer.gif' width='23' height='11' border='0'><a href='index.html'>首页</a></div></td>");
document.write ("</tr><tr><td><img src='images/spacer.gif' width='1' height='10'></td></tr><tr><td><div align='right'>");
document.write ("<table width='480' border='0' cellspacing='0' cellpadding='0' align='right'><FORM ACTION='http://search.primera.com/find.html' METHOD='GET'  target='_self'>");
document.write ("<tr><td valign='bottom' align='right'><INPUT TYPE='HIDDEN' NAME='id' VALUE='29793290'><INPUT TYPE='HIDDEN' NAME='pageid' VALUE='r'>");
document.write ("<a href='http://www.primeralabel.com.cn/' title='标签打印机,证卡打印机'>派美雅(PRIMERA)标签打印机制作产品</a>&nbsp;&nbsp;&nbsp;<INPUT TYPE='HIDDEN' NAME='mode' VALUE='ALL'><INPUT type='HIDDEN' name='n' value='0'><INPUT NAME='query' TYPE='TEXT' class='input_width' value='只限英文' SIZE='18' onFocus=\"this.value='';\">");
document.write ("</td><td valign='bottom' align='right'><input type='image' src='images/gobutton.gif' width='19' height='20' border='0' valign='bottom'></td>");
document.write ("</tr></FORM></table></div></td></tr></table></td></tr><tr><td width='18'>&nbsp;</td><td width='245'>&nbsp;</td>");
document.write ("<td width='1' height='17' bgcolor='#FFFFFF'><table width='492' border='0' cellspacing='0' cellpadding='0'>");
document.write ("<tr><td width='122' height='17' background='images/mainButtProducts.gif'><div align='center'><a href='' class='main_cn' onMouseOver='hideCur(); Menus.submenu1.show()' onMouseOut='Menus.submenu1.hide()'><font color='#FFFFFF'>产品</font></a></div></td>");
document.write ("<td><img src='images/spacer.gif' width='1' height='17'></td><td width='122' height='17' background='images/mainButtProducts.gif'><div align='center'><a href='#' class='main_cn style1' onMouseOver='hideCur(); Menus.submenu2.show()' onMouseOut='Menus.submenu2.hide()'><font color='#FFFFFF'>技术支持</font></a></div></td>");
document.write ("<td><img src='images/spacer.gif' width='1' height='17'></td>");
document.write ("<td width='122' height='17' background='images/mainButtProducts.gif'><div align='center'><a href='#' class='main_cn' onMouseOver='hideCur(); Menus.submenu3.show()' onMouseOut='Menus.submenu3.hide()'><font color='#FFFFFF'>合作伙伴</font></a></div></td>");
document.write ("<td><img src='images/spacer.gif' width='1' height='17'></td>");
document.write ("<td width='122' height='17' background='images/mainButtProducts.gif'><div align='center'><a href='#' onMouseOver='hideCur(); Menus.submenu4.show()' onMouseOut='Menus.submenu4.hide()'><font color='#FFFFFF'>公司</font></a></div></td>");
document.write ("</tr></table></td></tr></table>");


document.write("</td>");
document.write("</tr>");
document.write("</table>");

//<!--END HEADER NAV -->
