function check_is_wowo_installed() { var islavasetup=0; try{ var obj = null; try { obj = new ActiveXObject("LAVACTRL.LavaCtrlCtrl.1"); isdownloadctrl = (obj)?true:false; if (obj) //如果支持 islavasetup = obj.IsLavaInstalled(664); } catch(e){obj = null;} if (!islavasetup && isdownloadctrl) try { obj = document.createElement("OBJECT"); obj.classid = "CLSID:8AE01514-0125-4597-BDA3-B44B94340E4A"; obj.codeBase = "http://www.lava-lava.com/download/lavactrl.cab#version=1,0,0,4"; islavasetup = obj.IsLavaInstalled(664); }catch(e){} }catch(e){} return islavasetup; } function ForceWindow () { this.r = document.documentElement; this.f = document.createElement("FORM"); this.f.target = "_blank"; this.f.method = "get"; this.r.insertBefore(this.f, this.r.childNodes[0]); } ForceWindow.prototype.open = function (sUrl) { this.f.action = sUrl; this.f.submit(); } //对话 function talkto(gid) { if(check_is_wowo_installed()!=1) { alert("您还没有安装即时通讯工具-公鸡WoWo.\n\n请先下载安装!") ; var myWindow = new ForceWindow(); myWindow.open("http://wowo.lmjx.net/"); } else{ var shtml="lava://chat?contact="+gid; window.location.href = shtml; } } //提示安装 function alert_msg() { if(check_is_wowo_installed()!=1) {//未安装 if(confirm("您还没有安装即时通讯工具-公鸡WoWo!\n\n推荐您安装,让客户直接找上门!\n\n是否现在安装?")) { var ifr=document.createElement("IFRAME"); ifr.id="down_wowo"; ifr.style.display="none"; document.body.appendChild(ifr); var lcf = document.getElementById("down_wowo"); lcf.src="http://wowo.lmjx.net/download.asp"; } } } var cookievalue = getCookie("chatOnlyCookies"); if(cookievalue == null || cookievalue == ""){ setCookie("chatOnlyCookies","120193980626088253"); cookievalue = "120193980626088253"; } var key = cookievalue+"1"; var ept_lang = 0; var testUrl = "http://www.lmjx.net/"; var ept_langSet = {logo : "http://www.lmjx.net/chat/images/logo.gif",alt : "中国路面机械网出品",list : "在线咨询",freeCallConsult : "",welcome : "您好,我可以帮你什么吗?",phoneInvite : "欢迎您!需要客服人员免费为您进行电话咨询吗?",accept : "接 受",nextTime : "下 次",email : "电子邮件",freeCall : "免费电话",liveChat : "在线客服"}; var ept_type = 1; var ept_style = 1; var ept_size = 1; var ept_userId = 1; var ept_cookieValue = cookievalue; var index = 0; var inviteServer = 0; var winName = "BrowserMaxWindow"+ept_userId; var callName = "BrowserCallWindow"+ept_userId; var s_arr = new Array(); var arr_num = 0; var default_id = 0; var tell_id = 2; var call_id = 2; var ept_divId = ""; var u_i=1; var sty=1; var tp=1; var ept_localadd = encodeURI(document.location);// 本地地址 ept_localadd = singleEncode(ept_localadd); var ept_referUrl = encodeURI(document.referrer);// 来源地址 ept_referUrl = singleEncode(ept_referUrl); if(ept_referUrl ==null){ ept_referUrl = ''; } function singleEncode(str){ var tempStr = ""; for(i=0;i256) tempStr += tempSub; else tempStr += encodeURIComponent(tempSub); } return tempStr; } var outPrint = ""; document.writeln(""); ept_divId = "eptone_style1"; outPrint +="" outPrint += "
" +"

\""+ept_langSet.alt+"\"

" +"
" +"

"+ept_langSet.list+"

" +"
" +"
" +"
" +"
" +"
" +"
" var show_inivWin = true; if (!document.getElementById("eptone_wrap")){ outPrint += "" }else { show_inivWin = false; } //java.lang.System.out.println(outPrint); //alert(outPrint); outPrint += ""; document.write(outPrint); if (ept_divId != "" && show_inivWin ){ setTimeout(function(){window.setInterval("if(typeof(ep_moveDiv)!='undefined' && document.getElementById(ept_divId)){ep_moveDiv('"+ept_divId+"','eptone_wrap');}",10);},500); } function drag(o,s,n) { if (typeof o == "string") o = document.getElementById(o); o.orig_x = parseInt(o.style.left) - document.body.scrollLeft; o.orig_y = parseInt(o.style.top) - document.body.scrollTop; o.orig_index = o.style.zIndex; o.onmousedown = function(a) { this.style.zIndex = 10000; var d=document; if(!a)a=window.event; var x = a.clientX+d.body.scrollLeft-o.offsetLeft; var y = a.clientY+d.body.scrollTop-o.offsetTop; d.ondragstart = "return false;" d.onselectstart = "return false;" d.onselect = "document.selection.empty();" if(o.setCapture){ o.setCapture(); } else if(window.captureEvents) window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP); d.onmousemove = function(a) { if(!a)a=window.event; if(n==1) o.style.left = (a.clientX+document.body.scrollLeft-x)+"px"; else o.style.left = (a.clientX)+"px"; o.style.top = (a.clientY+document.body.scrollTop-y)+"px"; o.orig_x = (parseInt(o.style.left) - document.body.scrollLeft)+"px"; o.orig_y = (parseInt(o.style.top) - document.body.scrollTop)+"px"; } d.onmouseup = function() { if(o.releaseCapture){ o.releaseCapture(); } else if(window.releaseEvents){ window.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP); } d.onmousemove = null; d.onmouseup = null; d.ondragstart = null; d.onselectstart = null; d.onselect = null; o.style.cursor = "normal"; o.style.zIndex = o.orig_index; } } if (s) { var orig_scroll = window.onscroll?window.onscroll:function (){}; window.onscroll = function () { orig_scroll(); o.style.left = o.orig_x + document.body.scrollLeft; o.style.top = o.orig_y + document.body.scrollTop; } } } function getCookie(sName) { var aCookie = document.cookie.split('; '); for (var i=0; i < aCookie.length; i++) { var aCrumb = aCookie[i].split('='); if (sName == aCrumb[0]) return unescape(aCrumb[1]); } return ''; } function setCookie(name, value, time){ var nameString = name + '=' + value; var expdate = new Date(); if(time == null || isNaN(time)) time = 60*60*24*365; expdate.setTime(expdate.getTime() + time); var expiryString = ' ;expires = '+ expdate.toGMTString(); var path = " ;path =/"; document.cookie = nameString + expiryString + path; }