﻿//输出左侧产品快速链接
function writeLeftLink(type){var i=0;var db=new Array();var myproducts=new Array();var html="";if(products.length>0){myproducts=products.reverse();for(i=0;i<myproducts.length;i++){db=myproducts[i].split("|");if(db[0]==type){html+="<div><a href=\"javascript:viewProduct('";html+=db[3];html+="&";html+=db[1];html+="','";html+=db[0];html+="');\"";html+="class=\"Tr_LinksList\" ";html+="onmouseover=\"this.className='Tr_LinksListA'\" ";html+="onmouseout=\"this.className='Tr_LinksList'\">";html+="&nbsp;&nbsp;&nbsp;&nbsp;";html+="<img src=\"../images/arrow_mm.gif\" border=\"0\">";html+=db[1];html+="</a></div>";}}
document.write(html);products.reverse();}}


function getPDF(theURL){theURL="../doc/"+theURL;location=theURL;}
function viewProduct(theURL,className){var i;if(className=="无齿轮系列: GTW-GTS"){i="0"}
if(className=="无齿轮系列: ER-VM"){i="1"}
if(className=="无齿轮系列: GTN"){i="2"}
if(className=="无齿轮系列: 家用梯"){i="3"}
if(className=="混合动力PMG系列"){i="4"}
if(className=="扶梯FJ系列"){i="5"}
if(className=="有齿轮系列"){i="6"}
if(className=="TRL系列永磁螺杆空压机主机"){i="7"}
if(className=="Gearless Traction Machine: GTW GTS Series"){i="0"}
if(className=="Gearless Traction Machine: ER VM Series"){i="1"}
if(className=="Gearless Traction Machine: GTN Series"){i="2"}
if(className=="Gearless Traction Machine: For Home Lift"){i="3"}
if(className=="PMG Series"){i="4"}
if(className=="FJ Series"){i="5"}
if(className=="Geared Traction Machine"){i="6"}
if(className=="TRL Series Compressor Airends"){i="7"}
theURL="products_viewer.htm?"+escape(theURL+"&"+i);location=theURL;}
function simplePreload()
{var args=simplePreload.arguments;document.imageArray=new Array(args.length);for(var i=0;i<args.length;i++)
{document.imageArray[i]=new Image;document.imageArray[i].src=args[i];}}
function LoadFlash(url,wmode,width,height){var htmstr='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" ';htmstr+='width="'+width+'" height="'+height+'">';htmstr+='<param name="movie" value="'+url+'" />';htmstr+='<param name="quality" value="high" />';htmstr+='<param value="opaque" name="wmode"/>';htmstr+='<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" ';htmstr+='wmode="'+wmode+'" width="'+width+'" height="'+height+'"></embed></object>';document.write(htmstr);}
function MM_openBrWindow(theURL,winName,features){window.open(theURL,winName,features);}
function isFilled(obj){if(obj.value==""||obj.value==null){return false}
return true;}
function setCookie(name,value,hours)
{var expire="";if(hours!=null)
{expire=new Date((new Date()).getTime()+hours*3600000);expire="; expires="+expire.toGMTString();}
document.cookie=name+"="+escape(value)+expire;}
function getCookieData(labelName){var labelLen=labelName.length;var cookieData=document.cookie;var cLen=cookieData.length;var i=0;var cEnd=null;while(i<cLen){var j=i+labelLen;if(cookieData.substring(i,j)==labelName){cEnd=cookieData.indexOf(";",j);if(cEnd==-1)
cEnd=cookieData.length;return unescape(cookieData.substring(j+1,cEnd));}
i++;}
return"";}
function deleteCookie(name,path,domain){if(getCookieData(name)!=''){document.cookie=name+'='+
(";expires= Thu, 01-jan-70 00:00:01 GMT")+
((path)?"; path="+path:"")+
(domain)?"; domain="+domain:"";}}
function wEmail(user){var emailHtml="<a href=\"mailto:";if(user.indexOf("*")>-1){var s;s=user.replace("*","@");emailHtml+=s+"\">"+s+"</a>";}else{emailHtml+=user+"@tracton.cn\">"+user+"@traction.cn</a>";}
document.write(emailHtml);}
function showSb(tag){var divObj=document.getElementById(tag);var icount=7;for(var i=0;i<icount;i++){var div=document.getElementById("sb"+i);if(div)div.className="hide";}
if(divObj){if(divObj.className=="hide"){divObj.className="show";}else{divObj.className="hide";}}}
