Created
February 11, 2013 18:42
-
-
Save sapel/4756553 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM DB | |
| var POWERREVIEWS=(function(D){D.common=D.common||{};function A(l,T){var n=window,L=n.document,R=L.location,m=encodeURIComponent||escape,s=decodeURIComponent||unescape,I=Object.prototype.toString,P=10,G=\"__pr.\"+parseInt(l.merchantGroupId).toString(36),F=60*60*24*365*2,h=\"//t.powerreviews.com/t/v1.gif\",g=p({event:\"e\",eventType:\"et\",userId:\"uid\",time:\"t\",locale:\"l\",merchantGroupId:\"mgid\",merchantId:\"mid\",pageId:\"pid\",siteId:\"sid\",pageUrl:\"p\",referrerUrl:\"r\",orderId:\"oid\",orderSubtotal:\"os\",orderNumberOfItems:\"on\",orderItems:\"oi\",merchantUserId:\"muid\",userEmail:\"ue\",userFirstName:\"uf\",userLastName:\"ul\",userFullName:\"un\",marketingOptIn:\"mo\"},l.parameterAbbreviations||{}),U=\"array\",x=\"boolean\";function p(){var z={},AB,AC;for(var AA=0,w=arguments.length;AA<w;AA++){for(AB in arguments[AA]){AC=arguments[AA][AB];if(AC!==T){z[AB]=AC;}}}return z;}function N(w){return w.replace(/([-.*+?^${}()|[\\]\\/\\\\])/g,\"\\\\$1\");}function J(w){var z=L.cookie.match(\"(?:^|;)\\\\s*\"+N(w)+\"=([^;]*)\");return(z)?s(z[1]):null;}function S(AA,AD,AB,AC){var z=new Date(),w=z;w.setTime(z.getTime()+AB*1000);L.cookie=AA+\"=\"+m(AD)+\";expires=\"+w.toGMTString()+\";path=/\"+(AC?\";domain=\"+AC:\"\");}function u(){return l.trackingPixelUrl||h;}function O(w){if(typeof w!==\"object\"){return typeof w;}if(w===null){return\"null\";}return I.call(w).match(/\\[object\\s(\\w+)\\]/)[1].toLowerCase();}function M(z,w){return O(z)===w;}function q(w){return w!==T&&w!==null&&w!==\"\"&&w!==Number.NaN;}var a=[\";\",\",\"];function Y(AA,AB){var w=[],z;AB=AB||0;if(M(AA,U)&&AB<a.length){for(z=0;z<AA.length;z++){w.push(Y(AA[z],AB+1));}return w.join(a[AB]);}else{if(M(AA,x)){return AA?\"y\":\"n\";}else{if(q(AA)){return m(AA);}else{return\"\";}}}}function H(AC){var AA=[],z,AB,w;for(z in AC){AB=AC[z];if(q(AB)){AA.push(m(g[z]||z)+\"=\"+Y(AB));}}return AA.join(\"&\");}function c(w,z){var AA=w;new Image().src=AA+\"?\"+H(z);}function j(AA){var w=[];for(var z=0;z<AA;z++){w.push((Math.random()*36|0).toString(36));}return w.join(\"\");}function V(){return(Date.now?Date.now():+new Date).toString(36);}function r(){return R.href;}function k(){return L.referrer;}function f(){var w=l.userTrackingDomain;w=w&&w.replace(/^\\s+|\\s+$/g,\"\");if(w){if(w.charAt(0)!==\".\"){w=\".\"+w;}return w;}return null;}function y(z,AA,w){if(z.addEventListener){z.addEventListener(AA,w,false);}else{if(z.attachEvent){z.attachEvent(\"on\"+AA,function(){w.call(z);});}}}function K(z,AA,w){if(z.removeEventListener){z.removeEventListener(AA,w,false);}else{if(z.detachEvent){z.detachEvent(\"on\"+AA,w);}}}function Q(z){var AA=z||window.event,w=false;if(AA.target){w=AA.target;}else{if(AA.srcElement){w=AA.srcElement;}else{w=document;}}if(w.nodeType==3){w=w.parentNode;}return w;}function o(w,AB,AA){var z=w;while(z&&z!==AB.parentNode&&z.nodeType!==9){if(z.nodeType===1&&AA(z)){return z;}z=z.parentNode;}return false;}function b(AE){var AE=AE||document,z=AE.documentElement,AB=AE.body,AD=window.pageYOffset||Math.max(z.scrollTop,AB.scrollTop),AC=window.pageXOffset||Math.max(z.scrollLeft,AB.scrollLeft),AA=Math.max(z.clientWidth,AB.clientWidth),w=Math.max(z.clientHeight,AB.clientHeight);return{top:AD,left:AC,bottom:AD+w,right:AC+AA,width:AA,height:w};}function e(z,w){var AB=z.left,AH=z.top,AF=w.left,AD=w.top,AA=AB+z.width,AG=AH+z.height,AE=AF+w.width,AC=AD+w.height;if(AB<AF){AB=AF;}if(AH<AD){AH=AD;}if(AA>AE){AA=AE;}if(AG>AC){AG=AC;}return{top:AH,left:AB,bottom:AG,right:AA,height:AG-AH,width:AA-AB};}function i(AB){if(AB.offsetWidth===0||AB.offsetHeight===0){return false;}var w=b(),AA=AB.getBoundingClientRect(),z={top:AA.top+w.top,bottom:AA.bottom+w.top,left:AA.left+w.left,right:AA.right+w.left,width:AA.right-AA.left,height:AA.bottom-AA.top};var AC=e(w,z);if((AC.width*AC.height)/(z.width*z.height)<0.5){return false;}if(o(document.elementFromPoint((AA.left+AA.right)/2,(AA.top+AA.bottom)/2),AB,function(AD){return AD===AB;})){return true;}return false;}var X=[];var v=false;function E(){var z=0,AA;for(var w=0;w<X.length;w++){if(X[w]){z++;AA=X[w]();if(AA){X[w]=false;}}}if(z===0){clearInterval(v);v=false;X=[];K(window,\"scroll\",E);K(window,\"resize\",E);}}function W(w,z){d(w,p({pageUrl:r(),referrerUrl:k()},z));}function d(z,AB){var w=J(G);if(!w){w=j(P);}S(G,w,F,f());var AA={event:z,id:j(P),time:V(),userId:w,merchantGroupId:l.merchantGroupId};AA=p(AA,AB);if(l.delayFire===\"true\"||AA.delay===\"true\"){if(AA.delay){delete AA.delay;}if(L.readyState===\"complete\"){c(u(),AA);return ;}if(n.addEventListener){n.addEventListener(\"load\",function(){c(u(),AA);},false);}else{if(n.attachEvent){n.attachEvent(\"onload\",function(){c(u(),AA);});}}}else{if(AA.delay){delete AA.delay;}c(u(),AA);}}function Z(AA,AC,AD){var z=M(AA,U)?AA:[AA],AB=\"data-pr-event\";function AE(AI){var AG=Q(AI);var AF=o(AG,this,function(AJ){return AJ&&AJ.getAttribute(AB);});if(AF){var AH=AF.getAttribute(AB);W(AC,p({eventType:AH},AD));}}for(var w=0;w<z.length;w++){y(z[w],\"click\",AE);}}function t(z,AA,AC){if(M(z,U)){for(var w=0;w<z.length;w++){t(z[w],AA,AC);}}else{var AB=function(){if(i(z)){W(AA,AC);return true;}return false;};if(!AB()){X.push(AB);if(!v){v=setInterval(E,1000);y(window,\"scroll\",E);y(window,\"resize\",E);}}}}return{trackEvent:d,trackPageview:W,trackClickEvents:Z,trackVisibility:t,isElementVisible:i};}if(window.document&&window.location){var C={delayFire:\"false\",merchantGroupId:16084,userTrackingDomain:\"\",trackingPixelUrl:\"//t.powerreviews.com/t/v1.gif\",parameterAbbreviations:{reviewCount:\"rc\",starRating:\"s\",inlineSEO:\"i\",engineVersion:\"v\",questionCount:\"qc\",answerCount:\"ac\",visible:\"vis\",synMerchantId:\"symid\",synSharedReviewIds:\"sysrids\",synReviewsOnPageCount:\"syropc\"}};var B=A(C);}D.common.trackEvent=B.trackEvent;D.common.trackPageview=B.trackPageview;D.common.trackClickEvents=B.trackClickEvents;return D;}(POWERREVIEWS||{}));POWERREVIEWS.common.trackPageview('rd',{et:'inline',l:'en_US',pid:'4930',v:'2',rc:1,ropc:1,srids:[30958807],s:5,delay:false,i:true}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment