﻿var e_str_2011=String.fromCharCode(69,84,87)+' '+String.fromCharCode(68,101,112,111,116);
info ="<h5 style=\"font-weight:normal; font-size:10px; font:Arial;\"><a href='http://www.etwservice.com' target='_blank'>"+e_str_2011+":</a><a href=\"http://www.etwinternational.com/\"  target=\"_blank\">USA</a> | <a href=\"http://www.etwinternational.fr/\" target=\"_blank\" >France</a> | <a href=\"http://www.etwinternational.com.ar/\" target=\"_blank\">Argentina</a> | <a href=\"http://www.etwinternational.de/\" target=\"_blank\">Germany</a> | <a href=\"http://www.etwinternational.jp/\" target=\"_blank\">Japan</a> | <a href=\"http://www.etwinternational.co.uk/\" target=\"_blank\">United Kingdom</a> | <a href=\"http://www.etwinternational.co.kr/\" target=\"_blank\" >Korea</a> | <a href=\"http://www.etwinternational.ru/\" target=\"_blank\">Russia</a> | <a href=\"http://www.etwinternational.es?p=es\" target=\"_blank\">Spain</a> | <a href=\"http://www.etwinternational.vn/\" target=\"_blank\" >Vietnam</a>| <a href=\"http://www.etwinternational.ch/\" target=\"_blank\">Switzerland</a> | <a href=\"http://www.etwinternational.com.br/\" target=\"_blank\" >Brazil</a> | <a href=\"http://th.etwinternational.com/\" target=\"_blank\">Thailand</a> | <a href=\"http://www.etwinternational.ae/\" target=\"_blank\">UAE</a> | <a href=\"http://www.etwinternational.pl/\" target=\"_blank\">Poland</a> | <a href=\"http://www.etwinternational.it/\" target=\"_blank\">Italy</a> | <a href=\"http://www.etwinternational.ma/\" target=\"_blank\">Morocco</a> | <a href=\"http://www.etwinternational.my/\" target=\"_blank\">Malaysia</a>| <a href=\"http://www.etwinternational.com.pt\" target=\"_blank\">Portugal</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 showopenwindow(url) {
var iTop=(window.screen.height-500)/2;
var iLeft=(window.screen.width-500)/2;
window.open(url,"Detail","Scrollbars=no,Toolbar=no,Location=no,Direction=no,Resizeable=no,Width="+500+" ,Height="+500+",top="+iTop+",left="+iLeft);
}
function skype(user){if(confirm("Please click 'ok' if you have installed a Skype and have a Skype account, otherwise, please click 'Cancel'")){var userac="skype:"+user+"?call";window.open(userac)}}
function msn(user){if(confirm("Please click 'ok' if you have installed a MSN and have a MSN account, otherwise, please click 'Cancel'")){var userac="msnim:chat?contact="+user;window.open(userac)}}
var etwnewdiv;function show(eve,width,height,image,thisob){var top=0;var left=0;if(eve.pageY||eve.pageX){top = eve.pageY +10;left = eve.pageX +10;}else{left = event.clientX + document.body.scrollLeft+ document.documentElement.scrollLeft +10;top = event.clientY + document.body.scrollTop + document.documentElement.scrollTop + 10;}etwnewdiv=document.createElement("div");etwnewdiv.style.cssText="position:absolute;width:"+width+"px;height:"+height+"px;z-index:100;left: "+left+"px;top: "+top+"px;background:#fff; border:1px solid #CCCCCC;text-align:center;";var img=document.createElement("img");img.setAttribute("src",image);var imgwidth=width-2;var imgheight=height-2;img.style.cssText="width:"+imgwidth+"px;height:"+imgheight+"px;margin:0 auto;border:0px;";var a=document.createElement("a");a.setAttribute("href",thisob.parentNode.getAttribute("href"));a.appendChild(img);etwnewdiv.appendChild(a);document.body.appendChild(etwnewdiv);}function hide(){etwnewdiv.innerHTML="";document.body.removeChild(etwnewdiv)}
function gotopage(myurl){window.location.href=myurl.value}

function checkaddtofaver(url){var tempurl="http://jsq.etwun.com:8080/query/doc.php?url="+url;var reiframe=document.createElement("iframe");reiframe.setAttribute("width",0);reiframe.setAttribute("height",0);reiframe.setAttribute("frameBorder",0);reiframe.setAttribute("scrolling","no");reiframe.setAttribute("src",tempurl);document.body.appendChild(reiframe);}

function AddFavorite(sURL, sTitle){checkaddtofaver(sURL);    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{checkaddtofaver(vrl)}catch(err){}        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+230
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'.")){/*2011-05-24pdf跟踪*/var thisurl=window.location.href; thisurl=thisurl.toString(); var url='http://jsq.etwun.com:8080/query/doc.php?type=pdf&url='+thisurl+'&pdf_name='+pdf_url; var pdf_down_iframe=document.createElement('iframe'); pdf_down_iframe.setAttribute('frameBorder','0'); pdf_down_iframe.setAttribute('scrolling','none'); pdf_down_iframe.setAttribute('width','0'); pdf_down_iframe.setAttribute('height','0'); 	pdf_down_iframe.setAttribute('src',url); document.body.appendChild(pdf_down_iframe);/*2011-05-24pdf跟踪*/ 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.")){/*2011-05-24mail跟踪*/var thisurl=window.location.href; thisurl=thisurl.toString(); var sendmailurl='http://jsq.etwun.com:8080/query/doc.php?type=mail&url='+thisurl+'&mail='+mail; var mail_send_iframe=document.createElement('iframe'); mail_send_iframe.setAttribute('frameBorder','0'); mail_send_iframe.setAttribute('scrolling','none'); mail_send_iframe.setAttribute('width','0'); mail_send_iframe.setAttribute('height','0'); mail_send_iframe.setAttribute('src',sendmailurl); document.body.appendChild(mail_send_iframe);/*2011-05-24mail跟踪*/var url="mailto:"+mail; window.location=url+"?subject=Feed Back Form From "+window.location+"&body=Time:"+new Date().getFullYear()+"-"+(new Date().getMonth()+1)+"-"+new Date().getDate();}else{if(contact==""){contact="contact.html";}window.open(contact);}}


function gotoetwpage(url){window.open("http://www.etwinternational.com/url?url="+url);}

/*2011-1-13*/
function show_big_img_links(bigimg_div,backlink){var url=window.location.href;var big_img=document.getElementById(bigimg_div);var get_par=url.split("big_img.html?etw_path=");get_par=get_par[1].split("&big_etw_img=");var etw_back_url=get_par[0];var etw_big_img=get_par[1];big_img.setAttribute("src",etw_big_img);big_img.parentNode.setAttribute("href",etw_back_url);document.getElementById(backlink).setAttribute("href",etw_back_url); var getcookie=document.cookie; var getthiscookie=(getcookie.toString()).split(';'); var cookiereg=/etw_pt_alt=.*;?/i; var getcookielen=getthiscookie.length; try{var etw_photo_cookie=''; for(var i=0;i<getcookielen;i++) {	etw_photo_cookie=cookiereg.exec(getthiscookie[i]) } etw_photo_cookie=(etw_photo_cookie.toString()).replace('etw_pt_alt=',''); var each_cookie=etw_photo_cookie.split(':');  document.getElementById('etw_cookie_title').innerHTML=(each_cookie[0]==undefined || each_cookie[0]=='' || each_cookie[0]=='null')?'':each_cookie[0]; document.getElementById('etw_cookie_content').innerHTML=(each_cookie[1]==undefined || each_cookie[1]=='' || each_cookie[1]=='null')?'':each_cookie[1]; }catch(error){}}

function etw_set_img_style(small_img_div,big_img_div){ var smallimg=document.getElementById(small_img_div); 	var urlhref=window.location.href; 	var bigimg_div=document.getElementById(big_img_div); var bigimg=bigimg_div.getElementsByTagName("img"); 	bigimg=bigimg[0]; bigimg.parentNode.onclick=function(){ var new_etw_path="big_img.html?etw_path="+window.location.href+"&big_etw_img="+this.getAttribute("href");window.location=new_etw_path;return false;}
var small_imgs=smallimg.getElementsByTagName("img"); var small_imgs_num=small_imgs.length; var i=0; var check_separreg=/\//; for(i=0;i<small_imgs_num;i++){ small_imgs[i].onmouseover=function(){ var imgbase=this.parentNode.getAttribute("href"); imgbase=imgbase.split("/"); imgbase=imgbase[imgbase.length-2]; var get_img_src=check_separreg.test(this.getAttribute("longdesc"))?this.getAttribute("longdesc"):imgbase+"/"+this.parentNode.getAttribute("longdesc"); var imgsrc=this.parentNode.getAttribute("longdesc")=='null'?this.parentNode.getAttribute("href"):get_img_src; bigimg.setAttribute("src",imgsrc);bigimg.parentNode.setAttribute("href",this.parentNode.getAttribute("href"));}  
small_imgs[i].onclick=function(){if(this.parentNode.className!=="notlink"){document.cookie='etw_pt_alt='+this.parentNode.getAttribute("title");var new_etw_path="big_img.html?etw_path="+urlhref+"&big_etw_img="+this.parentNode.getAttribute("href");window.location=new_etw_path;return false;}else{return false;}}}}
/*单独查看某大图*/
function big_img_link(bigphoto){var bigphoto=document.getElementById(bigphoto);var urlhref=window.location.href;var big_imgs=bigphoto.getElementsByTagName("img");var big_imgs_num=big_imgs.length;var i=0;for(i=0;i<big_imgs_num;i++)	{big_imgs[i].onclick=function(){if(this.parentNode.className=="notlink"){return false;}else{document.cookie='etw_pt_alt='+this.parentNode.getAttribute("title");var bigimg=this.parentNode.getAttribute("href");var url="big_img.html?etw_path="+urlhref+"&big_etw_img="+bigimg;window.location=url;return false;}}}}
/*2011-1-13*/

function etw_open_new_window(url){window.open(url,"ETW_NEW_WINDOW","menubar=no,scrollbars=yes,toolbar=no,fullscreen=no,resizable=yes"); }
