var currentWidth=0;var com;addEventListener("load",function(){setTimeout(detectOrient,0);},false);function detectOrient(){if(window.innerWidth!=currentWidth){currentWidth=window.innerWidth;var _1=currentWidth<321?1:2;if(com==null){com=_1;}if(com!=_1){windowOrient();com=_1;}}}setInterval(detectOrient,400);window.onorientationchange=function(){windowOrient();};function windowOrient(){if($("feedForm").style.display=="block"){var _2=document.body;var t=_2.offsetTop;var _4=$("gyBG");_4.style.width=document.body.scrollWidth;_4.style.top=0;_4.style.height=document.body.scrollHeight;var _5=$("feedForm");var _6=(_2.offsetWidth/2)-(_5.offsetWidth/2);_5.style.left=_6;_5.style.top=t+25;var _7=$("mainCont");_7.style.display="block";_7.style.left=_6+4;_7.style.top=t+85;window.scrollTo(0,t);}handleWindowOrient();}function $(id){return document.getElementById(id);}String.prototype.trim=new Function("return this.replace(/^\\s+|\\s+$/g,'')");function sendFeedBackMail(){var _9=$("feedfrom").value.trim();var _a=$("feedcont").value.trim();var _b=window.location;var _c=echeckFeedBack(_9);if(!_c||_a==""){if(!_c){$("feederrmsg").innerHTML=propDataFeed.result.mailvalidate;}else{if(_a==""){$("feederrmsg").innerHTML=propDataFeed.result.contentvalidate;}}return;}$("submitBut").onclick=null;var _d="&from="+encodeURIComponent(_9)+"&message="+encodeURIComponent(_a)+"&refererurl="+encodeURIComponent(_b);var _e=getXmlhttpFeed();_e.open("POST","/submitfeedback",true);_e.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");_e.send(_d);_e.onreadystatechange=function(){if(_e.readyState==4){if((_e.status==200)||(_e.status==0)){showResult(propDataFeed.result.successmsg,true);closeForm();}else{showResult(propDataFeed.result.errormsg,false);closeForm();}}};}function getXmlhttpFeed(){if(window.XMLHttpRequest){var _f=new XMLHttpRequest();}else{try{var _f=new ActiveXObject("Microsoft.XMLHTTP");}catch(ee){try{var _f=new ActiveXObject("Microsoft.XMLDOM");}catch(e){var _f=new ActiveXObject("Msxml2.XMLHTTP");}}}return _f;}function hideStatusMessage(){$("feedstatus").style.display="none";$("feedmsg").className="sucmsg";}function showResult(_10,_11){if(_11){$("feedstatus").className="status";}else{$("feedstatus").className="err";$("feedmsg").className="errmsg";}$("feedstatus").style.display="block";$("feedmsg").innerHTML=_10;setTimeout("hideStatusMessage()",2000);}function echeckFeedBack(str){var at="@";var dot=".";var lat=str.indexOf(at);var _16=str.length;if(str.indexOf(at)==-1||str.indexOf(at)==0||str.indexOf(at)==(_16-1)){return false;}if(str.indexOf(dot)==-1||str.indexOf(dot)==0){return false;}if(str.indexOf(at,(lat+1))!=-1){return false;}if(str.substring(lat-1,lat)==dot||str.substring(lat+1,lat+2)==dot){return false;}if(str.indexOf(dot,(lat+2))==-1){return false;}return true;}function feedbackPop(mod){if($("submitBut").onclick==null){$("submitBut").onclick=sendFeedBackMail;}findCanvasDim();var par=document.body;var t=par.offsetTop;var _1a=$("gyBG");var _1b=$("feedForm");if(_1a.parentNode!=document.body){document.body.appendChild(_1a);document.body.appendChild(_1b);}_1a.style.display="block";_1a.style.top=0;_1a.style.height=document.body.scrollHeight;_1a.style.width=document.body.scrollWidth;_1b.style.display="block";var _1c=(par.offsetWidth/2)-(_1b.offsetWidth/2);_1b.style.left=_1c;_1b.style.top=t+25;var _1d=$("mainCont");_1d.style.display="block";_1d.style.left=_1c+4;_1d.style.top=t+85;window.scrollTo(0,t);}var canvasWidth=0;var canvasHeight=0;function findCanvasDim(){var _1e=_1e;var _1f=_1f;if(typeof (window.innerWidth)=="number"){canvasWidth=window.innerWidth-(_1e&&_1e.scrollLeft);canvasHeight=window.innerHeight;}else{if(_1f&&(_1f.clientWidth||_1f.clientHeight)){canvasWidth=_1f.clientWidth;canvasHeight=_1f.clientHeight;}else{if(_1e&&(_1e.clientWidth||_1e.clientHeight)){canvasWidth=_1e.clientWidth;canvasHeight=_1e.clientHeight;}}}}function closeForm(){$("gyBG").parentNode.style.height="";$("feederrmsg").innerHTML="";$("feedfrom").value=$("userEml").value.trim();$("gyBG").style.display="none";$("feedForm").style.display="none";$("feedcont").value="";$("mainCont").style.display="none";window.scrollTo(0,1);}function footerTop(){window.scrollTo(0,1);}
