// JavaScript Document
info =    "<h5 style=\"font-weight:normal; font-size:10px; font:Arial, Helvetica, sans-serif;\">Paesi: <a href=\"http://www.etwinternational.com/\" title=\"ETW USA\" target=\"_blank\">USA</a> | <a href=\"http://www.etwinternational.fr/\" target=\"_blank\" title=\"ETW Francia\">Francia</a> | <a href=\"http://www.etwinternational.com.ar/\" target=\"_blank\" title=\"ETW Argentina\">Argentina</a> | <a href=\"http://www.etwinternational.de/\" target=\"_blank\" title=\"ETW Germania\">Germania</a> | <a href=\"http://www.etwinternational.jp/\" target=\"_blank\" title=\"ETW Giappone\">Giappone</a> | <a href=\"http://www.etwinternational.co.uk/\" title=\"ETW Regno Unito\" target=\"_blank\">Regno Unito</a> | <a href=\"http://www.etwinternational.co.kr/\" target=\"_blank\" title=\"ETW Corea\">Corea</a> | <a href=\"http://www.etwinternational.ru/\" target=\"_blank\" title=\"ETW Russia\">Russia</a> | <a href=\"http://www.etwinternational.es/?p=es\" title=\"ETW Spagna\" target=\"_blank\">Spagna</a> | <a href=\"http://www.etwinternational.vn/\" target=\"_blank\" title=\"ETW Vietnam\">Vietnam</a> | <a href=\"http://www.etwinternational.ch/\" target=\"_blank\" title=\"ETW Svizzera\">Svizzera</a> | <a href=\"http://www.etwinternational.com.br/\" target=\"_blank\" title=\"ETW Brasile\">Brasile</a> | <a href=\"http://th.etwinternational.com/\" target=\"_blank\" title=\"ETW Tailandia\">Tailandia</a> | <a href=\"http://www.etwinternational.ae/\" target=\"_blank\" title=\"ETW Emirati Arabi \">Emirati Arabi </a> | <a href=\"http://www.etwinternational.pl/\" target=\"_blank\" title=\"ETW Polonia\">Polonia</a> | <a href=\"http://www.etwinternational.it/\" target=\"_blank\" title=\"ETW Italia\">Italia</a> | <a href=\"http://www.etwinternational.asia/\" target=\"_blank\" title=\"ETW Egitto\">Egitto</a> | <a href=\"http://www.etwinternational.my/\" target=\"_blank\" title=\"ETW Malesia\">Malesia</a> | <a href=\"http://www.etwinternational.com.pt/\" target=\"_blank\" title=\"ETW Portogallo\">Portogallo</a></h5>"

document.write(info)
function counter(num){var reiframe=document.createElement("iframe");var iframe=document.createElement("iframe");url="http://jsq.etwun.com:8080/counter.php?user="+num+"&refer="+escape(escape(document.referrer))+"&url="+top.location.href+"&vrcBrower="+navigator.appName+"&vrcPx="+screen.width+"x"+screen.height;iframe.setAttribute("src",url);iframe.setAttribute("width","0");iframe.setAttribute("height","0");var dbbody=document.getElementsByTagName("head");dbbody[0].appendChild(iframe);}
function msn(ob){window.open("msnim:chat?contact="+ob)}
function setsearch()
{window.location="search.htm?key="+document.getElementById("searchkey").value+"&searchstate="+document.getElementById("searchstate").checked+"&searchstateL="+document.getElementById("searchstateL").checked}
function gotopage(myurl){window.location.href=myurl.value}
function AddFavorite(sURL, sTitle){    try    {        window.external.addFavorite(sURL, sTitle);    }    catch (e)    {        try        {            window.sidebar.addPanel(sTitle, sURL, "");        }        catch (e)        {            alert("Fail,Add to favorite fails, please use Ctrl D");        }    }}function SetHome(obj,vrl){        try{                obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);        }        catch(e){                if(window.netscape) {                        try {                                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");                        }                        catch (e) {                                alert("Your browser doesn't support Javascript");                        }                        var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);                        prefs.setCharPref('browser.startup.homepage',vrl);                 }        }}
/*<a href="#" onclick="AddFavorite(window.location,document.title)">加入收藏</a><a href="#" onclick="SetHome(this,window.location)">设为首页</a>*/

//引用代码示例(图片外面要有一个唯一的标签包含img标签)  <a href="1a-wet-process-resin.html"> <img src="1-pu-resin/1-1s.jpg" alt="" onmousemove="setBigPic('1-pu-resin/2-1b.jpg'(大图),200(大图宽度),200(大图高度),-20(大图水平偏移量),-20(大图垂直偏移量),'5'(边框大小),'#333'(色彩),this(保持不变),obwidth(小图宽度),obheight(小图高度),obborder(小图边框))" onmouseout="ResetPic('1-pu-resin/1-1s.jpg',this)"/></a>
function setBigPic(bigpic,width,height,moveX,moveY,borderWidth,borderColor,ob,obWidth,obHeight,obborder){var str="position:relative;z-index:999;width:"+(obWidth+obborder*2)+"px;height:"+(obHeight+obborder*2)+"px";ob.parentNode.style.cssText=str;ob.style.cssText="position:absolute;left:"+moveX+"px; top:"+moveY+"px;border:"+borderWidth+"px solid "+borderColor;ob.setAttribute("src",bigpic);ob.setAttribute("width",width);ob.setAttribute("height",height);}
function ResetPic(smallPic,ob){ob.setAttribute("src",smallPic);ob.removeAttribute("width");ob.removeAttribute("height");ob.removeAttribute("border");ob.style.cssText="position:inherit;";ob.parentNode.style.cssText="z-index:-999";}
/*动态显示图片*/
var etw=new Object();etw.i=0;etw.alpha=0;etw.time=0;function flash_changepic(parentOb,width,height,time,pousetime,pictures,divBgImg,hn,x,y,color){try{document.getElementById(hn).style.cssText="z-index:900;position:absolute;left:"+x+"px;top:"+y+"px;color:"+color;}catch(e){}var bgurl;if(divBgImg==undefined || divBgImg==""){bgurl=pictures[pictures.length-1];}else{bgurl=divBgImg;}var ob=document.getElementById(parentOb);var imgdiv=document.createElement("div");ob.appendChild(imgdiv);imgdiv.style.cssText="background:url("+bgurl+");position:relative;";imgdiv.setAttribute("width",width);imgdiv.setAttribute("height",height);	var img=document.createElement("img");img.src=pictures[pictures.length-1]; imgdiv.appendChild(img);/*changepic*/function changepic(){ img.style.cssText="filter:alpha(opacity=0);opacity:0;"; img.src=pictures[etw.i];/*set alpha++*/function setalpha(){img.style.cssText="filter:alpha(opacity="+etw.alpha+");opacity:"+(etw.alpha/100)+";";if(etw.alpha<100){etw.alpha++;}else{etw.alpha=100;clearInterval(setalpha);function addtime(){if(etw.time<pousetime){etw.time++;}else{etw.time=0;clearInterval(addtime_fun);function setalpha__(){img.style.cssText="filter:alpha(opacity="+etw.alpha+");opacity:"+(etw.alpha/100)+";";if(etw.alpha>0){etw.alpha--;}else{etw.alpha=0;clearInterval(setalphafun__);}}var setalphafun__=setInterval(setalpha__,10);setalphafun__;}}var addtime_fun=setInterval(addtime,1000);addtime_fun;}}var setalpha=setInterval(setalpha,10);setalpha;/*set alpha++*/if(etw.i<(pictures.length-1)){etw.i++;}else{etw.i=0;}}/*changepic*/setInterval(changepic,time*1000);}
/*var picarr=new Array("1.jpg","2.jpg","3.jpg");
flash_changepic("msg",866,190,8,2,picarr,'25.jpg','h1',40,80,"#fff");
changepic("msg",866,190,8,2,picarr,'25.jpg');*/
/*动态显示图片*/
function etwchangepic(bigpic,picwidth,picheight,ob){if(ob==undefined || ob==""){var setbg=document.getElementById("imgpro");}else{var setbg=document.getElementById(ob);}setbg.setAttribute("src",bigpic);if(picwidth!="" || picwidth!=null){setbg.setAttribute("width",picwidth);}if(picheight!="" || picheight!=null){setbg.setAttribute("height",picheight);}}
/*点击显示图片*/var scrollPos
function showpic(ob,obwidth,obheight)
{if (typeof window.pageYOffset != 'undefined') {scrollPos = window.pageYOffset;}
else if (typeof document.compatMode != 'undefined' &&
		document.compatMode != 'BackCompat') {
		  scrollPos = document.documentElement.scrollTop;
		}
else if (typeof document.body != 'undefined') {
scrollPos = document.body.scrollTop;
		}
	scrollPos=scrollPos+250
var allbox=document.getElementById("allbox")
if(allbox!==null)
{
	document.body.removeChild(allbox)
}
var screenwidth=(document.body.scrollWidth)
var newlayer=document.createElement("div")
newlayer.style.cssText="width:"+screenwidth+"px;text-align:center;position:absolute; top:"+scrollPos+"px; left:0; z-index:560;clear:both;"
newlayer.setAttribute("id","allbox")
var ahref=document.createElement("a")
ahref.setAttribute("href","#")
ahref.style.cssText="border:none;"
var pic=document.createElement("img")
pic.setAttribute("src",ob)
pic.style.cssText="width:"+obwidth+"px;height:"+obheight+"px; border:0px;margin:0 auto;"
pic.onclick=function()
{
document.body.removeChild(newlayer)
return false;
}
var pic_box=document.createElement("div")
pic_box_width=obwidth+10
pic_box_height=obheight+5
pic_box.style.cssText="width:"+pic_box_width+"px;height:"+pic_box_height+"px; margin:0 auto;"
ahref.appendChild(pic)
pic_box.appendChild(ahref)
newlayer.appendChild(pic_box)
document.body.appendChild(newlayer)

}/*点击显示图片*/
/*定义在div中动态显示内容用*/var xmlhttp;var tempdiv;var url="";function createxmlhttp(){if(window.ActiveXObject){xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}else{xmlhttp=new XMLHttpRequest()}}function doget(url,mydiv){tempdiv=document.getElementById(mydiv);createxmlhttp();xmlhttp.open("GET",url,true);xmlhttp.onreadystatechange=xmlhttponchange;xmlhttp.send(null);}function xmlhttponchange(){if(xmlhttp.readyState==4){if(xmlhttp.status==200){tempdiv.innerHTML="";tempdiv.innerHTML=xmlhttp.responseText}}}/*定义在div中动态显示内容用,调用方式<a href="hp.html" onmouseover="doget('hp.html','msg');return false;">Ink Cartridge for HP</a>*/
function etw_pdf_download(pdf_url){if(confirm("Please click 'OK' to open the file using Adobe Reader, \n\rif you do not want to open the file or have not installed Adobe Reader, please click the 'Cancel'.")){window.open(pdf_url)}}
function etw_mail_to(mail,contact){if(confirm("Send an email with Microsoft Outlook, \n\rplease click 'OK' if you have an Outlook account,\n\r otherwise, please click 'Cancel' and contact us via Feedback Form.")){var url="mailto:"+mail;window.location=url;}else{if(contact==""){contact="contact.html";}window.open(contact);}}



