oojs.define({name:"feedbackevents",namespace:"rs.business",deps:{},tipTime:null,fromPage:"ts",$feedbackevents:function(){var m=document.getElementById("fbIconDiv");if(!m){return false}var f=document.getElementById("fbTipDiv");var j=document.getElementById("feedbackTSBtn");var h=document.getElementById("feedbackCX");var d=document.getElementById("feedbackCX2");var b=document.getElementById("feedbackCX3");var a=document.getElementById("feedbackQueInput");var n=document.getElementById("feedbackBtn2");var c=document.getElementById("feedbackQueUl");var k=document.getElementById("feedbackQueArrow");this.bind(m,"mouseover",this.onFBDivMousrover.proxy(this));this.bind(m,"mouseout",this.onFBDivMousrout.proxy(this));this.bind(m,"click",this.onFBDivClick.proxy(this));this.bind(f,"mouseover",this.onFBTipMousrover.proxy(this));this.bind(f,"mouseout",this.onFBTipMousrout.proxy(this));this.bind(f,"click",this.onFBDivClick.proxy(this));this.bind(j,"click",this.onFBTSClick.proxy(this));this.bind(n,"click",this.onFBConfirmClick.proxy(this));this.bind(h,"click",this.onFBCXClick.proxy(this));this.bind(d,"click",this.onEBCX2Click.proxy(this));this.bind(b,"click",this.onEBCX3Click.proxy(this));this.bind(a,"click",this.onFBQueInputClick.proxy(this));this.bind(c,"mouseover",this.onFBQueMouseover.proxy(this));this.bind(c,"mouseout",this.onFBQueMouseout.proxy(this));this.bind(k,"click",this.onFBQueArrowClick.proxy(this));for(var e=1;e<5;e++){var l=document.getElementById("ans"+e);this.bind(l,"click",this.onAnsClick.proxy(this))}for(var e=1;e<4;e++){var g=document.getElementById("feedbackQueList"+e);this.bind(g,"click",this.onfbQueListClick.proxy(this))}},onfbQueListClick:function(d){var f=this.formatEventObj(d);var a=f.target;var b=document.getElementById("feedbackQueInput");b.value=a.innerHTML;b.style.color="#000";var c=document.getElementById("feedbackQueUl");c.style.display="none";this.stopEvent(d)},onFBQueInputClick:function(b){clearTimeout(this.tipTime);var a=document.getElementById("feedbackQueInput");if(a.value==="请输入…"){a.value=""}},onFBQueArrowClick:function(c){clearTimeout(this.tipTime);var b=document.getElementById("feedbackQueUl");var a=document.getElementById("feedbackQueArrow");if(b.style.display!=="block"){b.style.display="block";a.style.background='#fff url("http://cpro.baidustatic.com/cpro/ui/noexpire/img/2.0.0/radio_btn.png") no-repeat scroll right -105px'}else{b.style.display="none";a.style.background='#fff url("http://cpro.baidustatic.com/cpro/ui/noexpire/img/2.0.0/radio_btn.png") no-repeat scroll right -85px'}},onFBQueMouseover:function(c){clearTimeout(this.tipTime);var a=document.getElementById("feedbackQueInput");if(a.value==="请输入…"){a.value=""}var b=document.getElementById("feedbackQueUl");b.style.display="block"},onFBQueMouseout:function(){var a=document.getElementById("feedbackQueInput");if(a.value.replace(/^ /g,"")===""){a.value="请输入…"}this.tipTime=setTimeout(function(){var b=document.getElementById("feedbackQueUl");b.style.display="none"},1000)},onAnsClick:function(b){var c=this.formatEventObj(b);var a=c.target;var d=this.getAttr(a,"reasonId");this.fromPage="ans";this.doHideDiv("feedbackDiv");this.doShowDiv("feedbackGX");this.doSendLogs(3,d)},onFBCXClick:function(){this.doHideDiv("feedbackCon");this.doSendLogs(5,"")},onEBCX2Click:function(){this.doShowDiv("feedbackDiv");this.doHideDiv("feedbackTS");this.doSendLogs(12,"")},onEBCX3Click:function(){if(this.fromPage==="ans"){this.doShowDiv("feedbackDiv")}else{this.doShowDiv("feedbackTS")}this.doSendLogs(4,"");this.doHideDiv("feedbackGX")},onFBConfirmClick:function(){try{var c=document.getElementById("feedbackQueInput").value.replace(/^ */g,"");if(c===""||c==="请输入…"){alert("请输入反馈原因!");return false}this.fromPage="ts";this.doHideDiv("feedbackTS");this.doShowDiv("feedbackGX");var a=document.getElementById("feedbackEmail").value;this.doSendLogs(10,"",a,c)}catch(b){}},onFBDivClick:function(){this.doShowDiv("feedbackCon");this.doSendLogs(1,"")},onFBDivMousrover:function(){clearTimeout(this.tipTime);this.doShowDiv("fbTipDiv")},onFBDivMousrout:function(){this.tipTime=setTimeout(function(){var a=document.getElementById("fbTipDiv");a.style.display="none"},2000)},onFBTipMousrover:function(){clearTimeout(this.tipTime);this.doShowDiv("fbTipDiv")},onFBTipMousrout:function(){this.tipTime=setTimeout(function(){var a=document.getElementById("fbTipDiv");a.style.display="none"},2000)},doShowDiv:function(a){var b=document.getElementById(a);b.style.display="block"},doHideDiv:function(a){var b=document.getElementById(a);b.style.display="none"},onFBTSClick:function(){this.doShowDiv("feedbackTS");this.doHideDiv("feedbackDiv");this.doSendLogs(11,"")},doSendLogs:function(a,c,j,i){var b="http://eclick.baidu.com/close_feedback.jpg?",d=[];var g=document.getElementById("logInfoDiv");var e=g&&g.innerHTML?g.innerHTML:"";var k=document.getElementById("dspDiv").innerHTML;var h={type:1,action:a,filter:0,adn:1,list:1,s:e,dspid:k,email:j,reasonid:c,report_reason:i};for(var l in h){if(h[l]!==""){d.push(l+"="+h[l])}}var f=new Image();f.src=b+d.join("&")+"&_="+new Date().getTime()},bind:function(a,c,b){if(a.addEventListener){a.addEventListener(c,b,false)}else{a.attachEvent("on"+c,b)}},getAttr:function(b,a){if(b&&b.getAttribute){return b.getAttribute(a)}else{return b[a]}},formatEventObj:function(a){a=a||window.event;a.target=a.target||a.srcElement;return a},stopEvent:function(a){if(a&&a.stopPropagation){a.stopPropagation()}else{window.event.cancelBubble=true}if(a&&a.preventDefault){a.preventDefault()}return false}});