stringify!="function"&&(JSON.stringify=function(e,t,n){var r;gap="",indent="";if(typeof n=="number")for(r=0;r<n;r+=1)indent+=" ";else typeof n=="string"&&(indent=n);rep=t;if(!t||typeof t=="function"||typeof t=="object"&&typeof t.length=="number")return str("",{"":e});throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(e,t){var n,r,i=e[t];if(i&&typeof i=="object")for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(r=walk(i,n),r!==undefined?i[n]=r:delete i[n]);return reviver.call(e,t,i)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()}),define("cookieconsent",["jquery","cookie"],function(e){"use strict";var t=e(".cookie-consent"),n=e.cookie("sonymobile_consent");if(n===null||n===undefined)n=!1;n===!1&&e(t).show(),e(t).find("#cookie-accept").bind("click",function(){var n=!0;e.cookie("sonymobile_consent",n,{path:"/",domain:"sonymobile.com",expire:3650}),e(t).hide()})}),define("sony-survey",["jquery"],function(e){"use strict";function u(e){N("Available surveys:"),N(e),e=E(e);for(var t=0;t<e.length;t++)if(a(e[t])){e[t].url=p(e[t].url),h(e[t]),N("Survey to render:"),N(e[t]);return}}function a(e){return f(e)?r.p<e.min_page_visits?!1:l(e)?c(e)?!0:!1:!1:!1}function f(e){return n-r.a>=e.min_time_on_site*1e3}function l(e){var t;return t=Math.random()*1e6,t>=1e6-e.displays_per_million_requests}function c(e){var t,n,r,i;if((n=e.locations.length)<1)return!0;t=S(location.href),i=!1;for(var s=0;s<n;s++){r=S(e.locations[s]),r.substring(r.length-1)==="*"&&(r=r.substring(0,r.length-1),i=!0);if(t===r)return!0;if(i&&t.indexOf(r)>-1)return!0;if(T(t,r))return!0}return!1}function h(e){for(var t=0;t<i.length;t++)i[t](e.url)}function p(e){var t,n,r,i,s,o;return t=x(location.pathname),n=t.split("/"),r=n.length,i="",r>3&&(n[1]==="products"||n[1]==="support")&&(i=n[3]),i!==""&&((o=e.indexOf("#"))>-1&&(s=e.substring(o,e.length),e=e.substring(0,o)),e.indexOf("?")>-1?e+="&":e+="?",e=e+"product="+i,o>-1&&(e+=s)),e}function d(){n-r.l>36e5&&(r.a=n,r.p=0,r.pS=0,r.pP=0,r.pSw=0,r.pAS=0),r.l=n,r.p++,g()}function v(){return e("#sony-mobile-global-defines").data("survey-settings")}function m(){var e=y(t);e&&(r=JSON.parse(decodeURIComponent(e)))}function g(){var n={domain:"sonymobile.com",path:"/",expires:60};e("#cookie").html(JSON.stringify(r)),b(t,JSON.stringify(r),n)}function y(e){var t=e+"=",n=document.cookie.split(";");for(var r=0;r<n.length;r++){var i=n[r];while(i.charAt(0)===" ")i=i.substring(1,i.length);if(i.indexOf(t)===0)return i.substring(t.length,i.length)}return null}function b(e,t,n){n||(n={});if(t===null||t===undefined)n.expires=-1;if(typeof n.expires=="number"){var r=n.expires,i=n.expires=new Date;i.setDate(i.getDate()+r)}t=String(t),document.cookie=[encodeURIComponent(e),"=",encodeURIComponent(t),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("")}function w(){var e={path:"/",domain:".sonymobile.com"};b(t,null,e)}function E(e){var t=e.length,n,r;while(0!==t)r=Math.floor(Math.random()*t),t-=1,n=e[t],e[t]=e[r],e[r]=n;return e}function S(e){var t=new RegExp("http(s)?://");return e=e.replace(t,""),e=x(e),e}function x(e){return e.replace(/^\/|\/$/g,"")}function T(e,t){return e.indexOf(t,e.length-t.length)!==-1}function N(e){s&&o.push(e)}var t="surveycookie",n=(new Date).getTime(),r={a:0,l:0,p:0,pS:0,pP:0,pSw:0,pAS:0,o:!1},i=[],s=!1,o=[];return{init:function(){var e;m();if(r.o)return;d(),e=v();if(!e)return;u(e)},test:function(e){s=!0,e||N("Error: Expected a JSON string of surveys."),u(e)},testReport:function(){var e=o;return o=[],e},registerCallback:function(e){i.push(e)},answered:function(){},notAnswered:function(){},optOut:function(){r.o=!0,g()}}}),define("sony-survey-client",["jquery","bagman","sony-survey"],function(e,t,n){"use strict";var r,i={init:function(){r=this.el,n.registerCallback(this.survey),n.init(),e(r).find(".yes").click(function(){_gaq.push(["_trackEvent","site-survey-intercept","Yes response"]),n.answered()}),e(r).find(".no").click(function(){_gaq.push(["_trackEvent","site-survey-intercept","No response"]),n.notAnswered(),e(r).find(".responsebox").hide()})},survey:function(t){var n=e(r).find(".responsebox");n.find(".yes").attr("href",t),n.show()}};return i}),define("backtotop",["jquery"],function(e){"use strict";var t={};t.init=function(){var t=this;e(window).scroll(n(function(){e(this).scrollTop()>100?e(t.el).fadeIn():e(t.el).fadeOut()})),e(t.el).click(function(){return e("html, body").animate({scrollTop:0},600),!1})};var n=function(e,t,n){var r;return function(){function u(){n||e.apply(s,o),r=null}var s=this,o=arguments;r?clearTimeout(r):n&&e.apply(s,o),r=setTimeout(u,t||100)}};return t}),require(["cart","supernav","bagman","accounting","text","social","epshop","json2","cookie","cookieconsent","sony-survey","sony-survey-client","backtotop"]),define("main-mf",function(){})})();

Prev |
Pg.: 1 ... 6 7 8 9 10 11


Back to home | File page

Subscribe | Register | Login | N