(function(G,g){var c=false;var k=3000;function u(){if(!c){return}if(G.console&&G.console.log){G.console.log(arguments)}}function b(O,P){O=n(O);if(!O){return}if(g.all){O.innerText=P}else{O.textContent=P}}function D(O){O=n(O);if(!O){return}O.style.display="block"}function L(O){O=n(O);if(!O){return}O.style.display="none"}function n(O){if(typeof O==="string"){O=g.getElementById(O)}return O}function K(R,Q){var O=R.length;for(var P=0;P0){return Q.substring(0,Q.length-1)}return Q}function i(P,Q){var O=g.createElement("script");O.type="text/javascript";O.src=P;if(O.readyState){O.onreadystatechange=function(){if(O.readyState==="loaded"||O.readyState==="complete"){O.onreadystatechange=null;Q()}}}else{O.onload=function(){Q()}}g.getElementsByTagName("head")[0].appendChild(O)}function e(){if(n("sn-login")===null||n("sn-login")===undefined){return}d();var O=n("sony-mobile-global-defines").getAttribute("data-account-services-cookie");if(O==""){O="connect.returning-user"}if(F(O)){i(H(),l);o()}else{h()}}function F(O){if(g.cookie.indexOf(" "+O+"=")===-1){return false}else{return true}}function o(){if(history.replaceState){history.replaceState(null,g.title,m())}}function l(){var O=connectServerSSO.getNameOfUser();L("sn-login");L("sn-signup");b("bnw-nav-name",O);z("sn-name");z("sn-logout");B("bnw-nav-logout",function(P){s();return false})}function s(){var O=p()+"/logout/"+x();if(O.indexOf("?")>=0){O+="&"}else{O+="?"}O+="callback_url="+m();h();G.location=O;return false}function z(P){var O="display: inline-block";if(M()){O="display: inline-block; zoom: 1; *display: inline;"}n(P).style.cssText=O}function M(O){if(!O){O=navigator.appVersion}var Q=new RegExp("(MSIE) (.)");var P=Q.exec(O);return P&&P[2]==="7"}function h(){L("sn-name");L("sn-logout");b("bnw-nav-name","");z("sn-login");z("sn-signup")}function C(){return p()+"/connectserver_widget.js"}function H(){return p()+"/connectserver_sso.js"}function t(){return encodeURIComponent(m())}function x(){var P=G.bnw_supernav_app_id;if(!P){var O='Please set the global variable bnw_supernav_app_id="ACCOUNT_APP_ID" before including the supernav';alert(O);return"MISSING_GLOBAL_VARIABLE_bnw_supernav_app_id"}return P}function p(){return f("data-connect-server")||"http://connect.sonymobile.com"}function w(){return f("data-account-server")||"http://account.sonymobile.com"}function E(){return f("data-cc")||"US"}function j(){return f("data-lc")||"en"}function f(O){var P=n("bnw-super-nav-list");if(P&&P.getAttribute(O)){return P.getAttribute(O)}return null}function J(){return true}function r(){var O=C()+"?appid="+x()+"&cc="+E()+"&lc="+j()+"&brand_color=bnw&enable_sso="+J()+"&connected_url="+t()+"&canceled_url="+t()+"&error_url="+t()+"&";return O}function q(P){var O=w()+"/"+P+"?cc="+E()+"&lc="+j();return O}function v(P){var O=p()+"/"+P;return O}function A(O){if(G.connectServerWidget){return O()}i(r(),O)}function d(){B("bnw-nav-login",function(O){A(function(){G.connectServerWidget.start()});return false});N("bnw-nav-sign-up",q("signup"));N("bnw-nav-profile",q("profile"));N("bnw-nav-login",v("login"));N("bnw-nav-logout",v("logout"))}e()})(window,document);function do_toggle(a){var b=document.getElementById(a);if(b.style.display==="block"){b.style.display="none"}else{b.style.display="block"}}function hideURLbar(){if(!window.pageXOffset&&!window.pageYOffset&&!window.location.hash){window.scrollTo(0,1)}}function mobile_menu(){document.getElementById("toogle-search").addEventListener("click",function(f){var d=this.getAttribute("data-search");do_toggle(d);f.preventDefault()},false);document.getElementById("toogle-menu").addEventListener("click",function(f){var d=this.getAttribute("data-menu");do_toggle(d);f.preventDefault()},false);function c(f){f.preventDefault();var d=f.currentTarget.nextElementSibling;if(d.style.display==="block"){d.style.display="none"}else{d.style.display="block"}}var a=document.getElementsByClassName("have-submenu");for(var b=0;bthis.depCount&&!this.defined){if(J(n)){if(this.events.error&&this.map.isDefine||h.onError!==ca){try{e=k.execCb(c,n,b,e)}catch(d){a=d}}else{e=k.execCb(c,n,b,e)}this.map.isDefine&&((b=this.module)&&void 0!==b.exports&&b.exports!==this.exports?e=b.exports:void 0===e&&this.usingExports&&(e=this.exports));if(a){return a.requireMap=this.map,a.requireModules=this.map.isDefine?[this.map.id]:null,a.requireType=this.map.isDefine?"define":"require",w(this.error=a)}}else{e=n}this.exports=e;if(this.map.isDefine&&!this.ignore&&(r[c]=e,h.onResourceLoad)){h.onResourceLoad(k,this.map,this.depMaps)}y(c);this.defined=!0}this.defining=!1;this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}}else{this.fetch()}}},callPlugin:function(){var a=this.map,b=a.id,d=l(a.prefix);this.depMaps.push(d);u(d,"defined",v(this,function(e){var n,d;d=this.map.name;var g=this.map.parentMap?this.map.parentMap.name:null,C=k.makeRequire(a.parentMap,{enableBuildCallback:!0});if(this.map.unnormalized){if(e.normalize&&(d=e.normalize(d,function(a){return c(a,g,!0)})||""),e=l(a.prefix+"!"+d,this.map.parentMap),u(e,"defined",v(this,function(a){this.init([],function(){return a},null,{enabled:!0,ignore:!0})})),d=m(q,e.id)){this.depMaps.push(e);if(this.events.error){d.on("error",v(this,function(a){this.emit("error",a)}))}d.enable()}}else{n=v(this,function(a){this.init([],function(){return a},null,{enabled:!0})}),n.error=v(this,function(a){this.inited=!0;this.error=a;a.requireModules=[b];H(q,function(a){0===a.map.id.indexOf(b+"_unnormalized")&&y(a.map.id)});w(a)}),n.fromText=v(this,function(e,c){var d=a.name,g=l(d),i=Q;c&&(e=c);i&&(Q=!1);s(g);t(j.config,b)&&(j.config[d]=j.config[b]);try{h.exec(e)}catch(D){return w(B("fromtexteval","fromText eval for "+b+" failed: "+D,D,[b]))}i&&(Q=!0);this.depMaps.push(g);k.completeLoad(d);C([d],n)}),e.load(a.name,C,n,j)}}));k.enable(d,this);this.pluginMaps[d.id]=d},enable:function(){W[this.map.id]=this;this.enabling=this.enabled=!0;z(this.depMaps,v(this,function(a,b){var c,e;if("string"===typeof a){a=l(a,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap);this.depMaps[b]=a;if(c=m(P,a.id)){this.depExports[b]=c(this);return}this.depCount+=1;u(a,"defined",v(this,function(a){this.defineDep(b,a);this.check()}));this.errback&&u(a,"error",v(this,this.errback))}c=a.id;e=q[c];!t(P,c)&&(e&&!e.enabled)&&k.enable(a,this)}));H(this.pluginMaps,v(this,function(a){var b=m(q,a.id);b&&!b.enabled&&k.enable(a,this)}));this.enabling=!1;this.check()},on:function(a,b){var c=this.events[a];c||(c=this.events[a]=[]);c.push(b)},emit:function(a,b){z(this.events[a],function(a){a(b)});"error"===a&&delete this.events[a]}};k={config:j,contextName:b,registry:q,defined:r,urlFetched:V,defQueue:I,Module:$,makeModuleMap:l,nextTick:h.nextTick,onError:w,configure:function(a){a.baseUrl&&"/"!==a.baseUrl.charAt(a.baseUrl.length-1)&&(a.baseUrl+="http://www.sonymobile.com/");var b=j.pkgs,c=j.shim,e={paths:!0,config:!0,map:!0};H(a,function(a,b){e[b]?"map"===b?(j.map||(j.map={}),S(j[b],a,!0,!0)):S(j[b],a,!0):j[b]=a});a.shim&&(H(a.shim,function(a,b){K(a)&&(a={deps:a});if((a.exports||a.init)&&!a.exportsFn){a.exportsFn=k.makeShimExports(a)}c[b]=a}),j.shim=c);a.packages&&(z(a.packages,function(a){a="string"===typeof a?{name:a}:a;b[a.name]={name:a.name,location:a.location||a.name,main:(a.main||"main").replace(ka,"").replace(fa,"")}}),j.pkgs=b);H(q,function(a,b){!a.inited&&!a.map.unnormalized&&(a.map=l(b))});if(a.deps||a.callback){k.require(a.deps||[],a.callback)}},makeShimExports:function(a){return function(){var b;a.init&&(b=a.init.apply(ba,arguments));return b||a.exports&&da(a.exports)}},makeRequire:function(a,f){function d(e,c,g){var i,j;f.enableBuildCallback&&(c&&J(c))&&(c.__requireJsBuild=!0);if("string"===typeof e){if(J(c)){return w(B("requireargs","Invalid require call"),g)}if(a&&t(P,e)){return P[e](q[a.id])}if(h.get){return h.get(k,e,a,d)}i=l(e,a,!1,!0);i=i.id;return !t(r,i)?w(B("notloaded",'Module name "'+i+'" has not been loaded yet for context: '+b+(a?"":". Use require([])"))):r[i]}M();k.nextTick(function(){M();j=s(l(null,a));j.skipMap=f.skipMap;j.init(e,c,g,{enabled:!0});E()});return d}f=f||{};S(d,{isBrowser:A,toUrl:function(b){var d,f=b.lastIndexOf("."),g=b.split("http://www.sonymobile.com/")[0];if(-1!==f&&(!("."===g||".."===g)||1g.attachEvent.toString().indexOf("[native code"))&&!Z?(Q=!0,g.attachEvent("onreadystatechange",b.onScriptLoad)):(g.addEventListener("load",b.onScriptLoad,!1),g.addEventListener("error",b.onScriptError,!1)),g.src=d,M=g,E?y.insertBefore(g,E):y.appendChild(g),M=null,g}if(ea){try{importScripts(d),b.completeLoad(c)}catch(l){b.onError(B("importscripts","importScripts failed for "+c+" at "+d,l,[c]))}}};A&&O(document.getElementsByTagName("script"),function(b){y||(y=b.parentNode);if(L=b.getAttribute("data-main")){return s=L,u.baseUrl||(F=s.split("/"),s=F.pop(),ga=F.length?F.join("/")+"/":"./",u.baseUrl=ga),s=s.replace(fa,""),h.jsExtRegExp.test(s)&&(s=L),u.deps=u.deps?u.deps.concat(s):[s],!0}});define=function(b,c,d){var h,g;"string"!==typeof b&&(d=c,c=b,b=null);K(c)||(d=c,c=null);!c&&J(d)&&(c=[],d.length&&(d.toString().replace(ma,"").replace(na,function(b,d){c.push(d)}),c=(1===d.length?["require"]:["require","exports","module"]).concat(c)));if(Q){if(!(h=M)){R&&"interactive"===R.readyState||O(document.getElementsByTagName("script"),function(b){if("interactive"===b.readyState){return R=b}}),h=R}h&&(b||(b=h.getAttribute("data-requiremodule")),g=G[h.getAttribute("data-requirecontext")])}(g?g.defQueue:U).push([b,c,d])};define.amd={jQuery:!0};h.exec=function(b){return eval(b)};h(u)}})(this);define("async",function(){var e="callback",b=0;function d(i){var h,g;h=document.createElement("script");h.type="text/javascript";h.async=true;h.src=i;g=document.getElementsByTagName("script")[0];g.parentNode.insertBefore(h,g)}function c(h,k){var i=/!(.+)/,g=h.replace(i,""),j=(i.test(h))?h.replace(/.+!/,""):e;g+=(g.indexOf("?")<0)?"?":"&";return g+j+"="+k}function f(g){var h=g.split(":");return h[1]}function a(g){var h=f(g);if(h===undefined){b+=1;return"__async_req_"+b+"__"}else{return h}}return{load:function(h,j,i,g){if(g.isBuild){i(null)}else{var k=a(h);window[k]=i;d(c(h,k))}}}});define("text",["module"],function(d){var n,i,h,c,f=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],m=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,k=/]*>\s*([\s\S]+)\s*<\/body>/im,b=typeof location!=="undefined"&&location.href,e=b&&location.protocol&&location.protocol.replace(/\:/,""),g=b&&location.hostname,a=b&&(location.port||undefined),l=[],j=(d.config&&d.config())||{};n={version:"2.0.6",strip:function(o){if(o){o=o.replace(m,"");var p=o.match(k);if(p){o=p[1]}}else{o=""}return o},jsEscape:function(o){return o.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:j.createXhr||function(){var r,o,p;if(typeof XMLHttpRequest!=="undefined"){return new XMLHttpRequest()}else{if(typeof ActiveXObject!=="undefined"){for(o=0;o<3;o+=1){p=f[o];try{r=new ActiveXObject(p)}catch(q){}if(r){f=[p];break}}}}return r},parseName:function(q){var u,t,o,s=false,p=q.indexOf("."),r=q.indexOf("./")===0||q.indexOf("../")===0;if(p!==-1&&(!r||p>1)){u=q.substring(0,p);t=q.substring(p+1,q.length)}else{u=q}o=t||u;p=o.indexOf("!");if(p!==-1){s=o.substring(p+1)==="strip";o=o.substring(0,p);if(t){t=o}else{u=o}}return{moduleName:u,ext:t,strip:s}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(r,v,p,o){var t,u,s,q=n.xdRegExp.exec(r);if(!q){return true}t=q[2];u=q[3];u=u.split(":");s=u[1];u=u[0];return(!t||t===v)&&(!u||u.toLowerCase()===p.toLowerCase())&&((!s&&!u)||s===o)},finishLoad:function(o,q,r,p){r=q?n.strip(r):r;if(j.isBuild){l[o]=r}p(r)},load:function(s,u,t,r){if(r.isBuild&&!r.inlineText){t();return}j.isBuild=r.isBuild;var p=n.parseName(s),v=p.moduleName+(p.ext?"."+p.ext:""),q=u.toUrl(v),o=(j.useXhr)||n.useXhr;if(!b||o(q,e,g,a)){n.get(q,function(w){n.finishLoad(s,p.strip,w,t)},function(w){if(t.error){t.error(w)}})}else{u([v],function(w){n.finishLoad(p.moduleName+"."+p.ext,p.strip,w,t)})}},write:function(s,p,q,o){if(l.hasOwnProperty(p)){var r=n.jsEscape(l[p]);q.asModule(s+"!"+p,"define(function () { return '"+r+"';});\n")}},writeFile:function(t,p,v,w,q){var u=n.parseName(p),o=u.ext?"."+u.ext:"",r=u.moduleName+o,s=v.toUrl(u.moduleName+o)+".js";n.load(r,v,function(x){var y=function(z){return w(s,z)};y.asModule=function(z,A){return w.asModule(z,s,A)};n.write(t,r,y,q)},q)}};if(j.env==="node"||(!j.env&&typeof process!=="undefined"&&process.versions&&!!process.versions.node)){i=require.nodeRequire("fs");n.get=function(o,q){var p=i.readFileSync(o,"utf8");if(p.indexOf("\uFEFF")===0){p=p.substring(1)}q(p)}}else{if(j.env==="xhr"||(!j.env&&n.createXhr())){n.get=function(p,t,o,r){var q=n.createXhr(),s;q.open("GET",p,true);if(r){for(s in r){if(r.hasOwnProperty(s)){q.setRequestHeader(s.toLowerCase(),r[s])}}}if(j.onXhr){j.onXhr(q,p)}q.onreadystatechange=function(v){var u,w;if(q.readyState===4){u=q.status;if(u>399&&u<600){w=new Error(p+" HTTP status: "+u);w.xhr=q;o(w)}else{t(q.responseText)}if(j.onXhrComplete){j.onXhrComplete(q,p)}}};q.send(null)}}else{if(j.env==="rhino"||(!j.env&&typeof Packages!=="undefined"&&typeof java!=="undefined")){n.get=function(o,v){var q,w,p="utf-8",r=new java.io.File(o),s=java.lang.System.getProperty("line.separator"),u=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(r),p)),t="";try{q=new java.lang.StringBuffer();w=u.readLine();if(w&&w.length()&&w.charAt(0)===65279){w=w.substring(1)}q.append(w);while((w=u.readLine())!==null){q.append(s);q.append(w)}t=String(q.toString())}finally{u.close()}v(t)}}else{if(j.env==="xpconnect"||(!j.env&&typeof Components!=="undefined"&&Components.classes&&Components.interfaces)){h=Components.classes,c=Components.interfaces;Components.utils["import"]("resource://gre/modules/FileUtils.jsm");n.get=function(q,u){var p,r,o={},s=new FileUtils.File(q);try{p=h["@mozilla.org/network/file-input-stream;1"].createInstance(c.nsIFileInputStream);p.init(s,1,0,false);r=h["@mozilla.org/intl/converter-input-stream;1"].createInstance(c.nsIConverterInputStream);r.init(p,"utf-8",p.available(),c.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER);r.readString(p.available(),o);r.close();p.close();u(o.value)}catch(t){throw new Error((s&&s.path||"")+": "+t)}}}}}}return n}); /*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:+r+""===r?+r:D.test(r)?v.parseJSON(r):r}catch(s){}v.data(e,n,r)}else{r=t}}return r}function B(e){var t;for(t in e){if(t==="data"&&v.isEmptyObject(e[t])){continue}if(t!=="toJSON"){return !1}}return !0}function et(){return !1}function tt(){return !0}function ut(e){return !e||!e.parentNode||e.parentNode.nodeType===11}function at(e,t){do{e=e[t]}while(e&&e.nodeType!==1);return e}function ft(e,t,n){t=t||0;if(v.isFunction(t)){return v.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n})}if(t.nodeType){return v.grep(e,function(e,r){return e===t===n})}if(typeof t=="string"){var r=v.grep(e,function(e){return e.nodeType===1});if(it.test(t)){return v.filter(t,r,!n)}t=v.filter(t,r)}return v.grep(e,function(e,r){return v.inArray(e,t)>=0===n})}function lt(e){var t=ct.split("|"),n=e.createDocumentFragment();if(n.createElement){while(t.length){n.createElement(t.pop())}}return n}function Lt(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function At(e,t){if(t.nodeType!==1||!v.hasData(e)){return}var n,r,i,s=v._data(e),o=v._data(t,s),u=s.events;if(u){delete o.handle,o.events={};for(n in u){for(r=0,i=u[n].length;r").appendTo(i.body),n=t.css("display");t.remove();if(n==="none"||n===""){Pt=i.body.appendChild(Pt||v.extend(i.createElement("iframe"),{frameBorder:0,width:0,height:0}));if(!Ht||!Pt.createElement){Ht=(Pt.contentWindow||Pt.contentDocument).document,Ht.write(""),Ht.close()}t=Ht.body.appendChild(Ht.createElement(e)),n=Dt(t,"display"),i.body.removeChild(Pt)}return Wt[e]=n,n}function fn(e,t,n,r){var i;if(v.isArray(t)){v.each(t,function(t,i){n||sn.test(e)?r(e,i):fn(e+"["+(typeof i=="object"?t:"")+"]",i,n,r)})}else{if(!n&&v.type(t)==="object"){for(i in t){fn(e+"["+i+"]",t[i],n,r)}}else{r(e,t)}}}function Cn(e){return function(t,n){typeof t!="string"&&(n=t,t="*");var r,i,s,o=t.toLowerCase().split(y),u=0,a=o.length;if(v.isFunction(n)){for(;u)[^>]*$|#([\w\-]*)$)/,E=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,S=/^[\],:{}\s]*$/,x=/(?:^|:|,)(?:\s*\[)+/g,T=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,N=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,C=/^-ms-/,k=/-([\da-z])/gi,L=function(e,t){return(t+"").toUpperCase()},A=function(){i.addEventListener?(i.removeEventListener("DOMContentLoaded",A,!1),v.ready()):i.readyState==="complete"&&(i.detachEvent("onreadystatechange",A),v.ready())},O={};v.fn=v.prototype={constructor:v,init:function(e,n,r){var s,o,u,a;if(!e){return this}if(e.nodeType){return this.context=this[0]=e,this.length=1,this}if(typeof e=="string"){e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?s=[null,e,null]:s=w.exec(e);if(s&&(s[1]||!n)){if(s[1]){return n=n instanceof v?n[0]:n,a=n&&n.nodeType?n.ownerDocument||n:i,e=v.parseHTML(s[1],a,!0),E.test(s[1])&&v.isPlainObject(n)&&this.attr.call(e,n,!0),v.merge(this,e)}o=i.getElementById(s[2]);if(o&&o.parentNode){if(o.id!==s[2]){return r.find(e)}this.length=1,this[0]=o}return this.context=i,this.selector=e,this}return !n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return v.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),v.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return l.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=v.merge(this.constructor(),e);return r.prevObject=this,r.context=this.context,t==="find"?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return v.each(this,e,t)},ready:function(e){return v.ready.promise().done(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(l.apply(this,arguments),"slice",l.call(arguments).join(","))},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:[].sort,splice:[].splice},v.fn.init.prototype=v.fn,v.extend=v.fn.extend=function(){var e,n,r,i,s,o,u=arguments[0]||{},a=1,f=arguments.length,l=!1;typeof u=="boolean"&&(l=u,u=arguments[1]||{},a=2),typeof u!="object"&&!v.isFunction(u)&&(u={}),f===a&&(u=this,--a);for(;a0){return}r.resolveWith(i,[v]),v.fn.trigger&&v(i).trigger("ready").off("ready")},isFunction:function(e){return v.type(e)==="function"},isArray:Array.isArray||function(e){return v.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return !isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):O[h.call(e)]||"object"},isPlainObject:function(e){if(!e||v.type(e)!=="object"||e.nodeType||v.isWindow(e)){return !1}try{if(e.constructor&&!p.call(e,"constructor")&&!p.call(e.constructor.prototype,"isPrototypeOf")){return !1}}catch(n){return !1}var r;for(r in e){}return r===t||p.call(e,r)},isEmptyObject:function(e){var t;for(t in e){return !1}return !0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var r;return !e||typeof e!="string"?null:(typeof t=="boolean"&&(n=t,t=0),t=t||i,(r=E.exec(e))?[t.createElement(r[1])]:(r=v.buildFragment([e],t,n?null:[]),v.merge([],(r.cacheable?v.clone(r.fragment):r.fragment).childNodes)))},parseJSON:function(t){if(!t||typeof t!="string"){return null}t=v.trim(t);if(e.JSON&&e.JSON.parse){return e.JSON.parse(t)}if(S.test(t.replace(T,"@").replace(N,"]").replace(x,""))){return(new Function("return "+t))()}v.error("Invalid JSON: "+t)},parseXML:function(n){var r,i;if(!n||typeof n!="string"){return null}try{e.DOMParser?(i=new DOMParser,r=i.parseFromString(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(n))}catch(s){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&v.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&g.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(C,"ms-").replace(k,L)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,n,r){var i,s=0,o=e.length,u=o===t||v.isFunction(e);if(r){if(u){for(i in e){if(n.apply(e[i],r)===!1){break}}}else{for(;s0&&e[0]&&e[a-1]||a===0||v.isArray(e));if(f){for(;u-1){a.splice(n,1),i&&(n<=o&&o--,n<=u&&u--)}}),this},has:function(e){return v.inArray(e,a)>-1},empty:function(){return a=[],this},disable:function(){return a=f=n=t,this},disabled:function(){return !a},lock:function(){return f=t,n||c.disable(),this},locked:function(){return !f},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],a&&(!r||f)&&(i?f.push(t):l(t)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return !!r}};return c},v.extend({Deferred:function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return v.Deferred(function(n){v.each(t,function(t,r){var s=r[0],o=e[t];i[r[1]](v.isFunction(o)?function(){var e=o.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s+"With"](this===i?n:this,[e])}:n[s])}),e=null}).promise()},promise:function(e){return e!=null?v.extend(e,r):r}},i={};return r.pipe=r.then,v.each(t,function(e,s){var o=s[2],u=s[3];r[s[1]]=o.add,u&&o.add(function(){n=u},t[e^1][2].disable,t[2][2].lock),i[s[0]]=o.fire,i[s[0]+"With"]=o.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=0,n=l.call(arguments),r=n.length,i=r!==1||e&&v.isFunction(e.promise)?r:0,s=i===1?e:v.Deferred(),o=function(e,t,n){return function(r){t[e]=this,n[e]=arguments.length>1?l.call(arguments):r,n===u?s.notifyWith(t,n):--i||s.resolveWith(t,n)}},u,a,f;if(r>1){u=new Array(r),a=new Array(r),f=new Array(r);for(;t
a",n=p.getElementsByTagName("*"),r=p.getElementsByTagName("a")[0];if(!n||!r||!n.length){return{}}s=i.createElement("select"),o=s.appendChild(i.createElement("option")),u=p.getElementsByTagName("input")[0],r.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:p.firstChild.nodeType===3,tbody:!p.getElementsByTagName("tbody").length,htmlSerialize:!!p.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("style")),hrefNormalized:r.getAttribute("href")==="/a",opacity:/^0.5/.test(r.style.opacity),cssFloat:!!r.style.cssFloat,checkOn:u.value==="on",optSelected:o.selected,getSetAttribute:p.className!=="t",enctype:!!i.createElement("form").enctype,html5Clone:i.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",boxModel:i.compatMode==="CSS1Compat",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},u.checked=!0,t.noCloneChecked=u.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!o.disabled;try{delete p.test}catch(d){t.deleteExpando=!1}!p.addEventListener&&p.attachEvent&&p.fireEvent&&(p.attachEvent("onclick",h=function(){t.noCloneEvent=!1}),p.cloneNode(!0).fireEvent("onclick"),p.detachEvent("onclick",h)),u=i.createElement("input"),u.value="t",u.setAttribute("type","radio"),t.radioValue=u.value==="t",u.setAttribute("checked","checked"),u.setAttribute("name","t"),p.appendChild(u),a=i.createDocumentFragment(),a.appendChild(p.lastChild),t.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=u.checked,a.removeChild(u),a.appendChild(p);if(p.attachEvent){for(l in {submit:!0,change:!0,focusin:!0}){f="on"+l,c=f in p,c||(p.setAttribute(f,"return;"),c=typeof p[f]=="function"),t[l+"Bubbles"]=c}}return v(function(){var n,r,s,o,u="padding:0;margin:0;border:0;display:block;overflow:hidden;",a=i.getElementsByTagName("body")[0];if(!a){return}n=i.createElement("div"),n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",a.insertBefore(n,a.firstChild),r=i.createElement("div"),n.appendChild(r),r.innerHTML="
t
",s=r.getElementsByTagName("td"),s[0].style.cssText="padding:0;margin:0;border:0;display:none",c=s[0].offsetHeight===0,s[0].style.display="",s[1].style.display="none",t.reliableHiddenOffsets=c&&s[0].offsetHeight===0,r.innerHTML="",r.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=r.offsetWidth===4,t.doesNotIncludeMarginInBodyOffset=a.offsetTop!==1,e.getComputedStyle&&(t.pixelPosition=(e.getComputedStyle(r,null)||{}).top!=="1%",t.boxSizingReliable=(e.getComputedStyle(r,null)||{width:"4px"}).width==="4px",o=i.createElement("div"),o.style.cssText=r.style.cssText=u,o.style.marginRight=o.style.width="0",r.style.width="1px",r.appendChild(o),t.reliableMarginRight=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),typeof r.style.zoom!="undefined"&&(r.innerHTML="",r.style.cssText=u+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=r.offsetWidth===3,r.style.display="block",r.style.overflow="visible",r.innerHTML="
",r.firstChild.style.width="5px",t.shrinkWrapBlocks=r.offsetWidth!==3,n.style.zoom=1),a.removeChild(n),n=r=s=o=null}),a.removeChild(p),n=r=s=o=u=a=p=null,t}();var D=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,P=/([A-Z])/g;v.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(v.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?v.cache[e[v.expando]]:e[v.expando],!!e&&!B(e)},data:function(e,n,r,i){if(!v.acceptData(e)){return}var s,o,u=v.expando,a=typeof n=="string",f=e.nodeType,l=f?v.cache:e,c=f?e[u]:e[u]&&u;if((!c||!l[c]||!i&&!l[c].data)&&a&&r===t){return}c||(f?e[u]=c=v.deletedIds.pop()||v.guid++:c=u),l[c]||(l[c]={},f||(l[c].toJSON=v.noop));if(typeof n=="object"||typeof n=="function"){i?l[c]=v.extend(l[c],n):l[c].data=v.extend(l[c].data,n)}return s=l[c],i||(s.data||(s.data={}),s=s.data),r!==t&&(s[v.camelCase(n)]=r),a?(o=s[n],o==null&&(o=s[v.camelCase(n)])):o=s,o},removeData:function(e,t,n){if(!v.acceptData(e)){return}var r,i,s,o=e.nodeType,u=o?v.cache:e,a=o?e[v.expando]:v.expando;if(!u[a]){return}if(t){r=n?u[a]:u[a].data;if(r){v.isArray(t)||(t in r?t=[t]:(t=v.camelCase(t),t in r?t=[t]:t=t.split(" ")));for(i=0,s=t.length;i1,null,!1))},removeData:function(e){return this.each(function(){v.removeData(this,e)})}}),v.extend({queue:function(e,t,n){var r;if(e){return t=(t||"fx")+"queue",r=v._data(e,t),n&&(!r||v.isArray(n)?r=v._data(e,t,v.makeArray(n)):r.push(n)),r||[]}},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),r=n.length,i=n.shift(),s=v._queueHooks(e,t),o=function(){v.dequeue(e,t)};i==="inprogress"&&(i=n.shift(),r--),i&&(t==="fx"&&n.unshift("inprogress"),delete s.stop,i.call(e,o,s)),!r&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return v._data(e,n)||v._data(e,n,{empty:v.Callbacks("once memory").add(function(){v.removeData(e,t+"queue",!0),v.removeData(e,n,!0)})})}}),v.fn.extend({queue:function(e,n){var r=2;return typeof e!="string"&&(n=e,e="fx",r--),arguments.length1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})},prop:function(e,t){return v.access(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return e=v.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,s,o,u;if(v.isFunction(e)){return this.each(function(t){v(this).addClass(e.call(this,t,this.className))})}if(e&&typeof e=="string"){t=e.split(y);for(n=0,r=this.length;n=0){r=r.replace(" "+n[s]+" "," ")}}i.className=e?v.trim(r):""}}}return this},toggleClass:function(e,t){var n=typeof e,r=typeof t=="boolean";return v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n==="string"){var i,s=0,o=v(this),u=t,a=e.split(y);while(i=a[s++]){u=r?u:!o.hasClass(i),o[u?"addClass":"removeClass"](i)}}else{if(n==="undefined"||n==="boolean"){this.className&&v._data(this,"__className__",this.className),this.className=this.className||e===!1?"":v._data(this,"__className__")||""}}})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.length;for(;n=0){return !0}}return !1},val:function(e){var n,r,i,s=this[0];if(!arguments.length){if(s){return n=v.valHooks[s.type]||v.valHooks[s.nodeName.toLowerCase()],n&&"get" in n&&(r=n.get(s,"value"))!==t?r:(r=s.value,typeof r=="string"?r.replace(R,""):r==null?"":r)}return}return i=v.isFunction(e),this.each(function(r){var s,o=v(this);if(this.nodeType!==1){return}i?s=e.call(this,r,o.val()):s=e,s==null?s="":typeof s=="number"?s+="":v.isArray(s)&&(s=v.map(s,function(e){return e==null?"":e+""})),n=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()];if(!n||!("set" in n)||n.set(this,s,"value")===t){this.value=s}})}}),v.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return !t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,s=e.type==="select-one"||i<0,o=s?null:[],u=s?i+1:r.length,a=i<0?u:s?i:0;for(;a=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,r,i){var s,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2){return}if(i&&v.isFunction(v.fn[n])){return v(e)[n](r)}if(typeof e.getAttribute=="undefined"){return v.prop(e,n,r)}u=a!==1||!v.isXMLDoc(e),u&&(n=n.toLowerCase(),o=v.attrHooks[n]||(X.test(n)?F:j));if(r!==t){if(r===null){v.removeAttr(e,n);return}return o&&"set" in o&&u&&(s=o.set(e,r,n))!==t?s:(e.setAttribute(n,r+""),r)}return o&&"get" in o&&u&&(s=o.get(e,n))!==null?s:(s=e.getAttribute(n),s===null?t:s)},removeAttr:function(e,t){var n,r,i,s,o=0;if(t&&e.nodeType===1){r=t.split(y);for(;o=0}}})});var $=/^(?:textarea|input|select)$/i,J=/^([^\.]*|)(?:\.(.+)|)$/,K=/(?:^|\s)hover(\.\S+|)\b/,Q=/^key/,G=/^(?:mouse|contextmenu)|click/,Y=/^(?:focusinfocus|focusoutblur)$/,Z=function(e){return v.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};v.event={add:function(e,n,r,i,s){var o,u,a,f,l,c,h,p,d,m,g;if(e.nodeType===3||e.nodeType===8||!n||!r||!(o=v._data(e))){return}r.handler&&(d=r,r=d.handler,s=d.selector),r.guid||(r.guid=v.guid++),a=o.events,a||(o.events=a={}),u=o.handle,u||(o.handle=u=function(e){return typeof v=="undefined"||!!e&&v.event.triggered===e.type?t:v.event.dispatch.apply(u.elem,arguments)},u.elem=e),n=v.trim(Z(n)).split(" ");for(f=0;f=0&&(y=y.slice(0,-1),a=!0),y.indexOf(".")>=0&&(b=y.split("."),y=b.shift(),b.sort());if((!s||v.event.customEvent[y])&&!v.event.global[y]){return}n=typeof n=="object"?n[v.expando]?n:new v.Event(y,n):new v.Event(y),n.type=y,n.isTrigger=!0,n.exclusive=a,n.namespace=b.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,h=y.indexOf(":")<0?"on"+y:"";if(!s){u=v.cache;for(f in u){u[f].events&&u[f].events[y]&&v.event.trigger(n,r,u[f].handle.elem,!0)}return}n.result=t,n.target||(n.target=s),r=r!=null?v.makeArray(r):[],r.unshift(n),p=v.event.special[y]||{};if(p.trigger&&p.trigger.apply(s,r)===!1){return}m=[[s,p.bindType||y]];if(!o&&!p.noBubble&&!v.isWindow(s)){g=p.delegateType||y,l=Y.test(g+y)?s:s.parentNode;for(c=s;l;l=l.parentNode){m.push([l,g]),c=l}c===(s.ownerDocument||i)&&m.push([c.defaultView||c.parentWindow||e,g])}for(f=0;f=0:v.find(h,this,null,[s]).length),u[h]&&f.push(c)}f.length&&w.push({elem:s,matches:f})}}}d.length>m&&w.push({elem:this,matches:d.slice(m)});for(r=0;r0?this.on(t,null,e,n):this.trigger(t)},Q.test(t)&&(v.event.fixHooks[t]=v.event.keyHooks),G.test(t)&&(v.event.fixHooks[t]=v.event.mouseHooks)}),function(e,t){function nt(e,t,n,r){n=n||[],t=t||g;var i,s,a,f,l=t.nodeType;if(!e||typeof e!="string"){return n}if(l!==1&&l!==9){return[]}a=o(t);if(!a&&!r){if(i=R.exec(e)){if(f=i[1]){if(l===9){s=t.getElementById(f);if(!s||!s.parentNode){return n}if(s.id===f){return n.push(s),n}}else{if(t.ownerDocument&&(s=t.ownerDocument.getElementById(f))&&u(t,s)&&s.id===f){return n.push(s),n}}}else{if(i[2]){return S.apply(n,x.call(t.getElementsByTagName(e),0)),n}if((f=i[3])&&Z&&t.getElementsByClassName){return S.apply(n,x.call(t.getElementsByClassName(f),0)),n}}}}return vt(e.replace(j,"$1"),t,n,r,a)}function rt(e){return function(t){var n=t.nodeName.toLowerCase();return n==="input"&&t.type===e}}function it(e){return function(t){var n=t.nodeName.toLowerCase();return(n==="input"||n==="button")&&t.type===e}}function st(e){return N(function(t){return t=+t,N(function(n,r){var i,s=e([],n.length,t),o=s.length;while(o--){n[i=s[o]]&&(n[i]=!(r[i]=n[i]))}})})}function ot(e,t,n){if(e===t){return n}var r=e.nextSibling;while(r){if(r===t){return -1}r=r.nextSibling}return 1}function ut(e,t){var n,r,s,o,u,a,f,l=L[d][e+" "];if(l){return t?0:l.slice(0)}u=e,a=[],f=i.preFilter;while(u){if(!n||(r=F.exec(u))){r&&(u=u.slice(r[0].length)||u),a.push(s=[])}n=!1;if(r=I.exec(u)){s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=r[0].replace(j," ")}for(o in i.filter){(r=J[o].exec(u))&&(!f[o]||(r=f[o](r)))&&(s.push(n=new m(r.shift())),u=u.slice(n.length),n.type=o,n.matches=r)}if(!n){break}}return t?u.length:u?nt.error(e):L(e,a).slice(0)}function at(e,t,r){var i=t.dir,s=r&&t.dir==="parentNode",o=w++;return t.first?function(t,n,r){while(t=t[i]){if(s||t.nodeType===1){return e(t,n,r)}}}:function(t,r,u){if(!u){var a,f=b+" "+o+" ",l=f+n;while(t=t[i]){if(s||t.nodeType===1){if((a=t[d])===l){return t.sizset}if(typeof a=="string"&&a.indexOf(f)===0){if(t.sizset){return t}}else{t[d]=l;if(e(t,r,u)){return t.sizset=!0,t}t.sizset=!1}}}}else{while(t=t[i]){if(s||t.nodeType===1){if(e(t,r,u)){return t}}}}}}function ft(e){return e.length>1?function(t,n,r){var i=e.length;while(i--){if(!e[i](t,n,r)){return !1}}return !0}:e[0]}function lt(e,t,n,r,i){var s,o=[],u=0,a=e.length,f=t!=null;for(;u-1&&(s[f]=!(o[f]=c))}}}else{g=lt(g===o?g.splice(d,g.length):g),i?i(null,o,g,a):S.apply(o,g)}})}function ht(e){var t,n,r,s=e.length,o=i.relative[e[0].type],u=o||i.relative[" "],a=o?1:0,f=at(function(e){return e===t},u,!0),l=at(function(e){return T.call(t,e)>-1},u,!0),h=[function(e,n,r){return !o&&(r||n!==c)||((t=n).nodeType?f(e,n,r):l(e,n,r))}];for(;a1&&ft(h),a>1&&e.slice(0,a-1).join("").replace(j,"$1"),n,a0,s=e.length>0,o=function(u,a,f,l,h){var p,d,v,m=[],y=0,w="0",x=u&&[],T=h!=null,N=c,C=u||s&&i.find.TAG("*",h&&a.parentNode||a),k=b+=N==null?1:Math.E;T&&(c=a!==g&&a,n=o.el);for(;(p=C[w])!=null;w++){if(s&&p){for(d=0;v=e[d];d++){if(v(p,a,f)){l.push(p);break}}T&&(b=k,n=++o.el)}r&&((p=!v&&p)&&y--,u&&x.push(p))}y+=w;if(r&&w!==y){for(d=0;v=t[d];d++){v(x,m,a,f)}if(u){if(y>0){while(w--){!x[w]&&!m[w]&&(m[w]=E.call(l))}}m=lt(m)}S.apply(l,m),T&&!u&&m.length>0&&y+t.length>1&&nt.uniqueSort(l)}return T&&(b=k,c=N),x};return o.el=0,r?N(o):o}function dt(e,t,n){var r=0,i=t.length;for(;r2&&(f=u[0]).type==="ID"&&t.nodeType===9&&!s&&i.relative[u[1].type]){t=i.find.ID(f.matches[0].replace($,""),t,s)[0];if(!t){return n}e=e.slice(u.shift().length)}for(o=J.POS.test(e)?-1:u.length-1;o>=0;o--){f=u[o];if(i.relative[l=f.type]){break}if(c=i.find[l]){if(r=c(f.matches[0].replace($,""),z.test(u[0].type)&&t.parentNode||t,s)){u.splice(o,1),e=r.length&&u.join("");if(!e){return S.apply(n,x.call(r,0)),n}break}}}}return a(e,h)(r,t,s,n,z.test(e)),n}function mt(){}var n,r,i,s,o,u,a,f,l,c,h=!0,p="undefined",d=("sizcache"+Math.random()).replace(".",""),m=String,g=e.document,y=g.documentElement,b=0,w=0,E=[].pop,S=[].push,x=[].slice,T=[].indexOf||function(e){var t=0,n=this.length;for(;ti.cacheLength&&delete e[t.shift()],e[n+" "]=r},e)},k=C(),L=C(),A=C(),O="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",_=M.replace("w","w#"),D="([*^$|!~]?=)",P="\\["+O+"*("+M+")"+O+"*(?:"+D+O+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+_+")|)|)"+O+"*\\]",H=":("+M+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+P+")|[^:]|\\\\.)*|.*))\\)|)",B=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)",j=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),F=new RegExp("^"+O+"*,"+O+"*"),I=new RegExp("^"+O+"*([\\x20\\t\\r\\n\\f>+~])"+O+"*"),q=new RegExp(H),R=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,U=/^:not/,z=/[\x20\t\r\n\f]*[+~]/,W=/:not\($/,X=/h\d/i,V=/input|select|textarea|button/i,$=/\\(?!\\)/g,J={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),NAME:new RegExp("^\\[name=['\"]?("+M+")['\"]?\\]"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+H),POS:new RegExp(B,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),needsContext:new RegExp("^"+O+"*[>+~]|"+B,"i")},K=function(e){var t=g.createElement("div");try{return e(t)}catch(n){return !1}finally{t=null}},Q=K(function(e){return e.appendChild(g.createComment("")),!e.getElementsByTagName("*").length}),G=K(function(e){return e.innerHTML="",e.firstChild&&typeof e.firstChild.getAttribute!==p&&e.firstChild.getAttribute("href")==="#"}),Y=K(function(e){e.innerHTML="";var t=typeof e.lastChild.getAttribute("multiple");return t!=="boolean"&&t!=="string"}),Z=K(function(e){return e.innerHTML="",!e.getElementsByClassName||!e.getElementsByClassName("e").length?!1:(e.lastChild.className="e",e.getElementsByClassName("e").length===2)}),et=K(function(e){e.id=d+0,e.innerHTML="
",y.insertBefore(e,y.firstChild);var t=g.getElementsByName&&g.getElementsByName(d).length===2+g.getElementsByName(d+0).length;return r=!g.getElementById(d),y.removeChild(e),t});try{x.call(y.childNodes,0)[0].nodeType}catch(tt){x=function(e){var t,n=[];for(;t=this[e];e++){n.push(t)}return n}}nt.matches=function(e,t){return nt(e,null,null,t)},nt.matchesSelector=function(e,t){return nt(t,null,null,[e]).length>0},s=nt.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(i===1||i===9||i===11){if(typeof e.textContent=="string"){return e.textContent}for(e=e.firstChild;e;e=e.nextSibling){n+=s(e)}}else{if(i===3||i===4){return e.nodeValue}}}else{for(;t=e[r];r++){n+=s(t)}}return n},o=nt.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?t.nodeName!=="HTML":!1},u=nt.contains=y.contains?function(e,t){var n=e.nodeType===9?e.documentElement:e,r=t&&t.parentNode;return e===r||!!(r&&r.nodeType===1&&n.contains&&n.contains(r))}:y.compareDocumentPosition?function(e,t){return t&&!!(e.compareDocumentPosition(t)&16)}:function(e,t){while(t=t.parentNode){if(t===e){return !0}}return !1},nt.attr=function(e,t){var n,r=o(e);return r||(t=t.toLowerCase()),(n=i.attrHandle[t])?n(e):r||Y?e.getAttribute(t):(n=e.getAttributeNode(t),n?typeof e[t]=="boolean"?e[t]?t:null:n.specified?n.value:null:null)},i=nt.selectors={cacheLength:50,createPseudo:N,match:J,attrHandle:G?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:r?function(e,t,n){if(typeof t.getElementById!==p&&!n){var r=t.getElementById(e);return r&&r.parentNode?[r]:[]}}:function(e,n,r){if(typeof n.getElementById!==p&&!r){var i=n.getElementById(e);return i?i.id===e||typeof i.getAttributeNode!==p&&i.getAttributeNode("id").value===e?[i]:t:[]}},TAG:Q?function(e,t){if(typeof t.getElementsByTagName!==p){return t.getElementsByTagName(e)}}:function(e,t){var n=t.getElementsByTagName(e);if(e==="*"){var r,i=[],s=0;for(;r=n[s];s++){r.nodeType===1&&i.push(r)}return i}return n},NAME:et&&function(e,t){if(typeof t.getElementsByName!==p){return t.getElementsByName(name)}},CLASS:Z&&function(e,t,n){if(typeof t.getElementsByClassName!==p&&!n){return t.getElementsByClassName(e)}}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace($,""),e[3]=(e[4]||e[5]||"").replace($,""),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1]==="nth"?(e[2]||nt.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*(e[2]==="even"||e[2]==="odd")),e[4]=+(e[6]+e[7]||e[2]==="odd")):e[2]&&nt.error(e[0]),e},PSEUDO:function(e){var t,n;if(J.CHILD.test(e[0])){return null}if(e[3]){e[2]=e[3]}else{if(t=e[4]){q.test(t)&&(n=ut(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t}}return e.slice(0,3)}},filter:{ID:r?function(e){return e=e.replace($,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace($,""),function(t){var n=typeof t.getAttributeNode!==p&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return e==="*"?function(){return !0}:(e=e.replace($,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[d][e+" "];return t||(t=new RegExp("(^|"+O+")"+e+"("+O+"|$)"))&&k(e,function(e){return t.test(e.className||typeof e.getAttribute!==p&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r,i){var s=nt.attr(r,e);return s==null?t==="!=":t?(s+="",t==="="?s===n:t==="!="?s!==n:t==="^="?n&&s.indexOf(n)===0:t==="*="?n&&s.indexOf(n)>-1:t==="$="?n&&s.substr(s.length-n.length)===n:t==="~="?(" "+s+" ").indexOf(n)>-1:t==="|="?s===n||s.substr(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r){return e==="nth"?function(e){var t,i,s=e.parentNode;if(n===1&&r===0){return !0}if(s){i=0;for(t=s.firstChild;t;t=t.nextSibling){if(t.nodeType===1){i++;if(e===t){break}}}}return i-=r,i===n||i%n===0&&i/n>=0}:function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling){if(n.nodeType===1){return !1}}if(e==="first"){return !0}n=t;case"last":while(n=n.nextSibling){if(n.nodeType===1){return !1}}return !0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||nt.error("unsupported pseudo: "+e);return r[d]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?N(function(e,n){var i,s=r(e,t),o=s.length;while(o--){i=T.call(e,s[o]),e[i]=!(n[i]=s[o])}}):function(e){return r(e,0,n)}):r}},pseudos:{not:N(function(e){var t=[],n=[],r=a(e.replace(j,"$1"));return r[d]?N(function(e,t,n,i){var s,o=r(e,null,i,[]),u=e.length;while(u--){if(s=o[u]){e[u]=!(t[u]=s)}}}):function(e,i,s){return t[0]=e,r(t,null,s,n),!n.pop()}}),has:N(function(e){return function(t){return nt(e,t).length>0}}),contains:N(function(e){return function(t){return(t.textContent||t.innerText||s(t)).indexOf(e)>-1}}),enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&!!e.checked||t==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return !i.pseudos.empty(e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||(t=e.nodeType)===3||t===4){return !1}e=e.nextSibling}return !0},header:function(e){return X.test(e.nodeName)},text:function(e){var t,n;return e.nodeName.toLowerCase()==="input"&&(t=e.type)==="text"&&((n=e.getAttribute("type"))==null||n.toLowerCase()===t)},radio:rt("radio"),checkbox:rt("checkbox"),file:rt("file"),password:rt("password"),image:rt("image"),submit:it("submit"),reset:it("reset"),button:function(e){var t=e.nodeName.toLowerCase();return t==="input"&&e.type==="button"||t==="button"},input:function(e){return V.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:st(function(){return[0]}),last:st(function(e,t){return[t-1]}),eq:st(function(e,t,n){return[n<0?n+t:n]}),even:st(function(e,t){for(var n=0;n=0;){e.push(r)}return e}),gt:st(function(e,t,n){for(var r=n<0?n+t:n;++r",e.querySelectorAll("[selected]").length||i.push("\\["+O+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||i.push(":checked")}),K(function(e){e.innerHTML="

",e.querySelectorAll("[test^='']").length&&i.push("[*^$]="+O+"*(?:\"\"|'')"),e.innerHTML="",e.querySelectorAll(":enabled").length||i.push(":enabled",":disabled")}),i=new RegExp(i.join("|")),vt=function(e,r,s,o,u){if(!o&&!u&&!i.test(e)){var a,f,l=!0,c=d,h=r,p=r.nodeType===9&&e;if(r.nodeType===1&&r.nodeName.toLowerCase()!=="object"){a=ut(e),(l=r.getAttribute("id"))?c=l.replace(n,"\\$&"):r.setAttribute("id",c),c="[id='"+c+"'] ",f=a.length;while(f--){a[f]=c+a[f].join("")}h=z.test(e)&&r.parentNode||r,p=a.join(",")}if(p){try{return S.apply(s,x.call(h.querySelectorAll(p),0)),s}catch(v){}finally{l||r.removeAttribute("id")}}}return t(e,r,s,o,u)},u&&(K(function(t){e=u.call(t,"div");try{u.call(t,"[test!='']:sizzle"),s.push("!=",H)}catch(n){}}),s=new RegExp(s.join("|")),nt.matchesSelector=function(t,n){n=n.replace(r,"='$1']");if(!o(t)&&!s.test(n)&&!i.test(n)){try{var a=u.call(t,n);if(a||e||t.document&&t.document.nodeType!==11){return a}}catch(f){}}return nt(n,null,null,[t]).length>0})}(),i.pseudos.nth=i.pseudos.eq,i.filters=mt.prototype=i.pseudos,i.setFilters=new mt,nt.attr=v.attr,v.find=nt,v.expr=nt.selectors,v.expr[":"]=v.expr.pseudos,v.unique=nt.uniqueSort,v.text=nt.getText,v.isXMLDoc=nt.isXML,v.contains=nt.contains}(e);var nt=/Until$/,rt=/^(?:parents|prev(?:Until|All))/,it=/^.[^:#\[\.,]*$/,st=v.expr.match.needsContext,ot={children:!0,contents:!0,next:!0,prev:!0};v.fn.extend({find:function(e){var t,n,r,i,s,o,u=this;if(typeof e!="string"){return v(e).filter(function(){for(t=0,n=u.length;t0){for(i=r;i=0:v.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,s=[],o=st.test(e)||typeof e!="string"?v(e,t||this.context):0;for(;r-1:v.find.matchesSelector(n,e)){s.push(n);break}n=n.parentNode}}return s=s.length>1?v.unique(s):s,this.pushStack(s,"closest",e)},index:function(e){return e?typeof e=="string"?v.inArray(this[0],v(e)):v.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n=typeof e=="string"?v(e,t):v.makeArray(e&&e.nodeType?[e]:e),r=v.merge(this.get(),n);return this.pushStack(ut(n[0])||ut(r[0])?r:v.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),v.fn.andSelf=v.fn.addBack,v.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return v.dir(e,"parentNode")},parentsUntil:function(e,t,n){return v.dir(e,"parentNode",n)},next:function(e){return at(e,"nextSibling")},prev:function(e){return at(e,"previousSibling")},nextAll:function(e){return v.dir(e,"nextSibling")},prevAll:function(e){return v.dir(e,"previousSibling")},nextUntil:function(e,t,n){return v.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return v.dir(e,"previousSibling",n)},siblings:function(e){return v.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return v.sibling(e.firstChild)},contents:function(e){return v.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(n,r){var i=v.map(this,t,n);return nt.test(e)||(r=n),r&&typeof r=="string"&&(i=v.filter(r,i)),i=this.length>1&&!ot[e]?v.unique(i):i,this.length>1&&rt.test(e)&&(i=i.reverse()),this.pushStack(i,e,l.call(arguments).join(","))}}),v.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),t.length===1?v.find.matchesSelector(t[0],e)?[t[0]]:[]:v.find.matches(e,t)},dir:function(e,n,r){var i=[],s=e[n];while(s&&s.nodeType!==9&&(r===t||s.nodeType!==1||!v(s).is(r))){s.nodeType===1&&i.push(s),s=s[n]}return i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling){e.nodeType===1&&e!==t&&n.push(e)}return n}});var ct="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ht=/ jQuery\d+="(?:null|\d+)"/g,pt=/^\s+/,dt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,vt=/<([\w:]+)/,mt=/]","i"),Et=/^(?:checkbox|radio)$/,St=/checked\s*(?:[^=]|=\s*.checked.)/i,xt=/\/(java|ecma)script/i,Tt=/^\s*\s*$/g,Nt={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},Ct=lt(i),kt=Ct.appendChild(i.createElement("div"));Nt.optgroup=Nt.option,Nt.tbody=Nt.tfoot=Nt.colgroup=Nt.caption=Nt.thead,Nt.th=Nt.td,v.support.htmlSerialize||(Nt._default=[1,"X
","
"]),v.fn.extend({text:function(e){return v.access(this,function(e){return e===t?v.text(this):this.empty().append((this[0]&&this[0].ownerDocument||i).createTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(v.isFunction(e)){return this.each(function(t){v(this).wrapAll(e.call(this,t))})}if(this[0]){var t=v(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1){e=e.firstChild}return e}).append(this)}return this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){(this.nodeType===1||this.nodeType===11)&&this.insertBefore(e,this.firstChild)})},before:function(){if(!ut(this[0])){return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)})}if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(e,this),"before",this.selector)}},after:function(){if(!ut(this[0])){return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)})}if(arguments.length){var e=v.clean(arguments);return this.pushStack(v.merge(this,e),"after",this.selector)}},remove:function(e,t){var n,r=0;for(;(n=this[r])!=null;r++){if(!e||v.filter(e,[n]).length){!t&&n.nodeType===1&&(v.cleanData(n.getElementsByTagName("*")),v.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n)}}return this},empty:function(){var e,t=0;for(;(e=this[t])!=null;t++){e.nodeType===1&&v.cleanData(e.getElementsByTagName("*"));while(e.firstChild){e.removeChild(e.firstChild)}}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return v.access(this,function(e){var n=this[0]||{},r=0,i=this.length;if(e===t){return n.nodeType===1?n.innerHTML.replace(ht,""):t}if(typeof e=="string"&&!yt.test(e)&&(v.support.htmlSerialize||!wt.test(e))&&(v.support.leadingWhitespace||!pt.test(e))&&!Nt[(vt.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(dt,"<$1>");try{for(;r1&&typeof f=="string"&&St.test(f)){return this.each(function(){v(this).domManip(e,n,r)})}if(v.isFunction(f)){return this.each(function(i){var s=v(this);e[0]=f.call(this,i,n?s.html():t),s.domManip(e,n,r)})}if(this[0]){i=v.buildFragment(e,this,l),o=i.fragment,s=o.firstChild,o.childNodes.length===1&&(o=s);if(s){n=n&&v.nodeName(s,"tr");for(u=i.cacheable||c-1;a0?this.clone(!0):this).get(),v(o[i])[t](r),s=s.concat(r)}return this.pushStack(s,e,o.selector)}}),v.extend({clone:function(e,t,n){var r,i,s,o;v.support.html5Clone||v.isXMLDoc(e)||!wt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(kt.innerHTML=e.outerHTML,kt.removeChild(o=kt.firstChild));if((!v.support.noCloneEvent||!v.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!v.isXMLDoc(e)){Ot(e,o),r=Mt(e),i=Mt(o);for(s=0;r[s];++s){i[s]&&Ot(r[s],i[s])}}if(t){At(e,o);if(n){r=Mt(e),i=Mt(o);for(s=0;r[s];++s){At(r[s],i[s])}}}return r=i=null,o},clean:function(e,t,n,r){var s,o,u,a,f,l,c,h,p,d,m,g,y=t===i&&Ct,b=[];if(!t||typeof t.createDocumentFragment=="undefined"){t=i}for(s=0;(u=e[s])!=null;s++){typeof u=="number"&&(u+="");if(!u){continue}if(typeof u=="string"){if(!gt.test(u)){u=t.createTextNode(u)}else{y=y||lt(t),c=t.createElement("div"),y.appendChild(c),u=u.replace(dt,"<$1>"),a=(vt.exec(u)||["",""])[1].toLowerCase(),f=Nt[a]||Nt._default,l=f[0],c.innerHTML=f[1]+u+f[2];while(l--){c=c.lastChild}if(!v.support.tbody){h=mt.test(u),p=a==="table"&&!h?c.firstChild&&c.firstChild.childNodes:f[1]===""&&!h?c.childNodes:[];for(o=p.length-1;o>=0;--o){v.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o])}}!v.support.leadingWhitespace&&pt.test(u)&&c.insertBefore(t.createTextNode(pt.exec(u)[0]),c.firstChild),u=c.childNodes,c.parentNode.removeChild(c)}}u.nodeType?b.push(u):v.merge(b,u)}c&&(u=c=y=null);if(!v.support.appendChecked){for(s=0;(u=b[s])!=null;s++){v.nodeName(u,"input")?_t(u):typeof u.getElementsByTagName!="undefined"&&v.grep(u.getElementsByTagName("input"),_t)}}if(n){m=function(e){if(!e.type||xt.test(e.type)){return r?r.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)}};for(s=0;(u=b[s])!=null;s++){if(!v.nodeName(u,"script")||!m(u)){n.appendChild(u),typeof u.getElementsByTagName!="undefined"&&(g=v.grep(v.merge([],u.getElementsByTagName("script")),m),b.splice.apply(b,[s+1,0].concat(g)),s+=g.length)}}}return b},cleanData:function(e,t){var n,r,i,s,o=0,u=v.expando,a=v.cache,f=v.support.deleteExpando,l=v.event.special;for(;(i=e[o])!=null;o++){if(t||v.acceptData(i)){r=i[u],n=r&&a[r];if(n){if(n.events){for(s in n.events){l[s]?v.event.remove(i,s):v.removeEvent(i,s,n.handle)}}a[r]&&(delete a[r],f?delete i[u]:i.removeAttribute?i.removeAttribute(u):i[u]=null,v.deletedIds.push(r))}}}}}),function(){var e,t;v.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=v.uaMatch(o.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),v.browser=t,v.sub=function(){function e(t,n){return new e.fn.init(t,n)}v.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(r,i){return i&&i instanceof v&&!(i instanceof e)&&(i=e(i)),v.fn.init.call(this,r,i,t)},e.fn.init.prototype=e.fn;var t=e(i);return e}}();var Dt,Pt,Ht,Bt=/alpha\([^)]*\)/i,jt=/opacity=([^)]*)/,Ft=/^(top|right|bottom|left)$/,It=/^(none|table(?!-c[ea]).+)/,qt=/^margin/,Rt=new RegExp("^("+m+")(.*)$","i"),Ut=new RegExp("^("+m+")(?!px)[a-z%]+$","i"),zt=new RegExp("^([-+])=("+m+")","i"),Wt={BODY:"block"},Xt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:0,fontWeight:400},$t=["Top","Right","Bottom","Left"],Jt=["Webkit","O","Moz","ms"],Kt=v.fn.toggle;v.fn.extend({css:function(e,n){return v.access(this,function(e,n,r){return r!==t?v.style(e,n,r):v.css(e,n)},e,n,arguments.length>1)},show:function(){return Yt(this,!0)},hide:function(){return Yt(this)},toggle:function(e,t){var n=typeof e=="boolean";return v.isFunction(e)&&v.isFunction(t)?Kt.apply(this,arguments):this.each(function(){(n?e:Gt(this))?v(this).show():v(this).hide()})}}),v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Dt(e,"opacity");return n===""?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":v.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style){return}var s,o,u,a=v.camelCase(n),f=e.style;n=v.cssProps[a]||(v.cssProps[a]=Qt(f,a)),u=v.cssHooks[n]||v.cssHooks[a];if(r===t){return u&&"get" in u&&(s=u.get(e,!1,i))!==t?s:f[n]}o=typeof r,o==="string"&&(s=zt.exec(r))&&(r=(s[1]+1)*s[2]+parseFloat(v.css(e,n)),o="number");if(r==null||o==="number"&&isNaN(r)){return}o==="number"&&!v.cssNumber[a]&&(r+="px");if(!u||!("set" in u)||(r=u.set(e,r,i))!==t){try{f[n]=r}catch(l){}}},css:function(e,n,r,i){var s,o,u,a=v.camelCase(n);return n=v.cssProps[a]||(v.cssProps[a]=Qt(e.style,a)),u=v.cssHooks[n]||v.cssHooks[a],u&&"get" in u&&(s=u.get(e,!0,i)),s===t&&(s=Dt(e,n)),s==="normal"&&n in Vt&&(s=Vt[n]),r||i!==t?(o=parseFloat(s),r||v.isNumeric(o)?o||0:s):s},swap:function(e,t,n){var r,i,s={};for(i in t){s[i]=e.style[i],e.style[i]=t[i]}r=n.call(e);for(i in t){e.style[i]=s[i]}return r}}),e.getComputedStyle?Dt=function(t,n){var r,i,s,o,u=e.getComputedStyle(t,null),a=t.style;return u&&(r=u.getPropertyValue(n)||u[n],r===""&&!v.contains(t.ownerDocument,t)&&(r=v.style(t,n)),Ut.test(r)&&qt.test(n)&&(i=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=u.width,a.width=i,a.minWidth=s,a.maxWidth=o)),r}:i.documentElement.currentStyle&&(Dt=function(e,t){var n,r,i=e.currentStyle&&e.currentStyle[t],s=e.style;return i==null&&s&&s[t]&&(i=s[t]),Ut.test(i)&&!Ft.test(t)&&(n=s.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),s.left=t==="fontSize"?"1em":i,i=s.pixelLeft+"px",s.left=n,r&&(e.runtimeStyle.left=r)),i===""?"auto":i}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,r){if(n){return e.offsetWidth===0&&It.test(Dt(e,"display"))?v.swap(e,Xt,function(){return tn(e,t,r)}):tn(e,t,r)}},set:function(e,n,r){return Zt(e,n,r?en(e,t,r,v.support.boxSizing&&v.css(e,"boxSizing")==="border-box"):0)}}}),v.support.opacity||(v.cssHooks.opacity={get:function(e,t){return jt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?0.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=v.isNumeric(t)?"alpha(opacity="+t*100+")":"",s=r&&r.filter||n.filter||"";n.zoom=1;if(t>=1&&v.trim(s.replace(Bt,""))===""&&n.removeAttribute){n.removeAttribute("filter");if(r&&!r.filter){return}}n.filter=Bt.test(s)?s.replace(Bt,i):s+" "+i}}),v(function(){v.support.reliableMarginRight||(v.cssHooks.marginRight={get:function(e,t){return v.swap(e,{display:"inline-block"},function(){if(t){return Dt(e,"marginRight")}})}}),!v.support.pixelPosition&&v.fn.position&&v.each(["top","left"],function(e,t){v.cssHooks[t]={get:function(e,n){if(n){var r=Dt(e,t);return Ut.test(r)?v(e).position()[t]+"px":r}}}})}),v.expr&&v.expr.filters&&(v.expr.filters.hidden=function(e){return e.offsetWidth===0&&e.offsetHeight===0||!v.support.reliableHiddenOffsets&&(e.style&&e.style.display||Dt(e,"display"))==="none"},v.expr.filters.visible=function(e){return !v.expr.filters.hidden(e)}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){var r,i=typeof n=="string"?n.split(" "):[n],s={};for(r=0;r<4;r++){s[e+$t[r]+t]=i[r]||i[r-2]||i[0]}return s}},qt.test(e)||(v.cssHooks[e+t].set=Zt)});var rn=/%20/g,sn=/\[\]$/,on=/\r?\n/g,un=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,an=/^(?:select|textarea)/i;v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?v.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||an.test(this.nodeName)||un.test(this.type))}).map(function(e,t){var n=v(this).val();return n==null?null:v.isArray(n)?v.map(n,function(e,n){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),v.param=function(e,n){var r,i=[],s=function(e,t){t=v.isFunction(t)?t():t==null?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};n===t&&(n=v.ajaxSettings&&v.ajaxSettings.traditional);if(v.isArray(e)||e.jquery&&!v.isPlainObject(e)){v.each(e,function(){s(this.name,this.value)})}else{for(r in e){fn(r,e[r],n,s)}}return i.join("&").replace(rn,"+")};var ln,cn,hn=/#.*$/,pn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,dn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,vn=/^(?:GET|HEAD)$/,mn=/^\/\//,gn=/\?/,yn=/)<[^<]*)*<\/script>/gi,bn=/([?&])_=[^&]*/,wn=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,En=v.fn.load,Sn={},xn={},Tn=["*/"]+["*"];try{cn=s.href}catch(Nn){cn=i.createElement("a"),cn.href="",cn=cn.href}ln=wn.exec(cn.toLowerCase())||[],v.fn.load=function(e,n,r){if(typeof e!="string"&&En){return En.apply(this,arguments)}if(!this.length){return this}var i,s,o,u=this,a=e.indexOf(" ");return a>=0&&(i=e.slice(a,e.length),e=e.slice(0,a)),v.isFunction(n)?(r=n,n=t):n&&typeof n=="object"&&(s="POST"),v.ajax({url:e,type:s,dataType:"html",data:n,complete:function(e,t){r&&u.each(r,o||[e.responseText,t,e])}}).done(function(e){o=arguments,u.html(i?v("
").append(e.replace(yn,"")).find(i):e)}),this},v.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.each(["get","post"],function(e,n){v[n]=function(e,r,i,s){return v.isFunction(r)&&(s=s||i,i=r,r=t),v.ajax({type:n,url:e,data:r,success:i,dataType:s})}}),v.extend({getScript:function(e,n){return v.get(e,t,n,"script")},getJSON:function(e,t,n){return v.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?Ln(e,v.ajaxSettings):(t=e,e=v.ajaxSettings),Ln(e,t),e},ajaxSettings:{url:cn,isLocal:dn.test(ln[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Tn},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Cn(Sn),ajaxTransport:Cn(xn),ajax:function(e,n){function T(e,n,s,a){var l,y,b,w,S,T=n;if(E===2){return}E=2,u&&clearTimeout(u),o=t,i=a||"",x.readyState=e>0?4:0,s&&(w=An(c,x,s));if(e>=200&&e<300||e===304){c.ifModified&&(S=x.getResponseHeader("Last-Modified"),S&&(v.lastModified[r]=S),S=x.getResponseHeader("Etag"),S&&(v.etag[r]=S)),e===304?(T="notmodified",l=!0):(l=On(c,w),T=l.state,y=l.data,b=l.error,l=!b)}else{b=T;if(!T||e){T="error",e<0&&(e=0)}}x.status=e,x.statusText=(n||T)+"",l?d.resolveWith(h,[y,T,x]):d.rejectWith(h,[x,T,b]),x.statusCode(g),g=t,f&&p.trigger("ajax"+(l?"Success":"Error"),[x,c,l?y:b]),m.fireWith(h,[x,T]),f&&(p.trigger("ajaxComplete",[x,c]),--v.active||v.event.trigger("ajaxStop"))}typeof e=="object"&&(n=e,e=t),n=n||{};var r,i,s,o,u,a,f,l,c=v.ajaxSetup({},n),h=c.context||c,p=h!==c&&(h.nodeType||h instanceof v)?v(h):v.event,d=v.Deferred(),m=v.Callbacks("once memory"),g=c.statusCode||{},b={},w={},E=0,S="canceled",x={readyState:0,setRequestHeader:function(e,t){if(!E){var n=e.toLowerCase();e=w[n]=w[n]||e,b[e]=t}return this},getAllResponseHeaders:function(){return E===2?i:null},getResponseHeader:function(e){var n;if(E===2){if(!s){s={};while(n=pn.exec(i)){s[n[1].toLowerCase()]=n[2]}}n=s[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return E||(c.mimeType=e),this},abort:function(e){return e=e||S,o&&o.abort(e),T(0,e),this}};d.promise(x),x.success=x.done,x.error=x.fail,x.complete=m.add,x.statusCode=function(e){if(e){var t;if(E<2){for(t in e){g[t]=[g[t],e[t]]}}else{t=e[x.status],x.always(t)}}return this},c.url=((e||c.url)+"").replace(hn,"").replace(mn,ln[1]+"//"),c.dataTypes=v.trim(c.dataType||"*").toLowerCase().split(y),c.crossDomain==null&&(a=wn.exec(c.url.toLowerCase()),c.crossDomain=!(!a||a[1]===ln[1]&&a[2]===ln[2]&&(a[3]||(a[1]==="http:"?80:443))==(ln[3]||(ln[1]==="http:"?80:443)))),c.data&&c.processData&&typeof c.data!="string"&&(c.data=v.param(c.data,c.traditional)),kn(Sn,c,n,x);if(E===2){return x}f=c.global,c.type=c.type.toUpperCase(),c.hasContent=!vn.test(c.type),f&&v.active++===0&&v.event.trigger("ajaxStart");if(!c.hasContent){c.data&&(c.url+=(gn.test(c.url)?"&":"?")+c.data,delete c.data),r=c.url;if(c.cache===!1){var N=v.now(),C=c.url.replace(bn,"$1_="+N);c.url=C+(C===c.url?(gn.test(c.url)?"&":"?")+"_="+N:"")}}(c.data&&c.hasContent&&c.contentType!==!1||n.contentType)&&x.setRequestHeader("Content-Type",c.contentType),c.ifModified&&(r=r||c.url,v.lastModified[r]&&x.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&x.setRequestHeader("If-None-Match",v.etag[r])),x.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+(c.dataTypes[0]!=="*"?", "+Tn+"; q=0.01":""):c.accepts["*"]);for(l in c.headers){x.setRequestHeader(l,c.headers[l])}if(!c.beforeSend||c.beforeSend.call(h,x,c)!==!1&&E!==2){S="abort";for(l in {success:1,error:1,complete:1}){x[l](c[l])}o=kn(xn,c,n,x);if(!o){T(-1,"No Transport")}else{x.readyState=1,f&&p.trigger("ajaxSend",[x,c]),c.async&&c.timeout>0&&(u=setTimeout(function(){x.abort("timeout")},c.timeout));try{E=1,o.send(b,T)}catch(k){if(!(E<2)){throw k}T(-1,k)}}return x}return x.abort()},active:0,lastModified:{},etag:{}});var Mn=[],_n=/\?/,Dn=/(=)\?(?=&|$)|\?\?/,Pn=v.now();v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Mn.pop()||v.expando+"_"+Pn++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(n,r,i){var s,o,u,a=n.data,f=n.url,l=n.jsonp!==!1,c=l&&Dn.test(f),h=l&&!c&&typeof a=="string"&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Dn.test(a);if(n.dataTypes[0]==="jsonp"||c||h){return s=n.jsonpCallback=v.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,o=e[s],c?n.url=f.replace(Dn,"$1"+s):h?n.data=a.replace(Dn,"$1"+s):l&&(n.url+=(_n.test(f)?"&":"?")+n.jsonp+"="+s),n.converters["script json"]=function(){return u||v.error(s+" was not called"),u[0]},n.dataTypes[0]="json",e[s]=function(){u=arguments},i.always(function(){e[s]=o,n[s]&&(n.jsonpCallback=r.jsonpCallback,Mn.push(s)),u&&v.isFunction(o)&&o(u[0]),u=o=t}),"script"}}),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),v.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=i.head||i.getElementsByTagName("head")[0]||i.documentElement;return{send:function(s,o){n=i.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,i){if(i||!n.readyState||/loaded|complete/.test(n.readyState)){n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=t,i||o(200,"success")}},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var Hn,Bn=e.ActiveXObject?function(){for(var e in Hn){Hn[e](0,1)}}:!1,jn=0;v.ajaxSettings.xhr=e.ActiveXObject?function(){return !this.isLocal&&Fn()||In()}:Fn,function(e){v.extend(v.support,{ajax:!!e,cors:!!e&&"withCredentials" in e})}(v.ajaxSettings.xhr()),v.support.ajax&&v.ajaxTransport(function(n){if(!n.crossDomain||v.support.cors){var r;return{send:function(i,s){var o,u,a=n.xhr();n.username?a.open(n.type,n.url,n.async,n.username,n.password):a.open(n.type,n.url,n.async);if(n.xhrFields){for(u in n.xhrFields){a[u]=n.xhrFields[u]}}n.mimeType&&a.overrideMimeType&&a.overrideMimeType(n.mimeType),!n.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(u in i){a.setRequestHeader(u,i[u])}}catch(f){}a.send(n.hasContent&&n.data||null),r=function(e,i){var u,f,l,c,h;try{if(r&&(i||a.readyState===4)){r=t,o&&(a.onreadystatechange=v.noop,Bn&&delete Hn[o]);if(i){a.readyState!==4&&a.abort()}else{u=a.status,l=a.getAllResponseHeaders(),c={},h=a.responseXML,h&&h.documentElement&&(c.xml=h);try{c.text=a.responseText}catch(p){}try{f=a.statusText}catch(p){f=""}!u&&n.isLocal&&!n.crossDomain?u=c.text?200:404:u===1223&&(u=204)}}}catch(d){i||s(-1,d)}c&&s(u,f,c,l)},n.async?a.readyState===4?setTimeout(r,0):(o=++jn,Bn&&(Hn||(Hn={},v(e).unload(Bn)),Hn[o]=r),a.onreadystatechange=r):r()},abort:function(){r&&r(0,1)}}}});var qn,Rn,Un=/^(?:toggle|show|hide)$/,zn=new RegExp("^(?:([-+])=|)("+m+")([a-z%]*)$","i"),Wn=/queueHooks$/,Xn=[Gn],Vn={"*":[function(e,t){var n,r,i=this.createTween(e,t),s=zn.exec(t),o=i.cur(),u=+o||0,a=1,f=20;if(s){n=+s[2],r=s[3]||(v.cssNumber[e]?"":"px");if(r!=="px"&&u){u=v.css(i.elem,e,!0)||n||1;do{a=a||".5",u/=a,v.style(i.elem,e,u+r)}while(a!==(a=i.cur()/o)&&a!==1&&--f)}i.unit=r,i.start=u,i.end=s[1]?u+(s[1]+1)*n:n}return i}]};v.Animation=v.extend(Kn,{tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;r-1,f={},l={},c,h;a?(l=i.position(),c=l.top,h=l.left):(c=parseFloat(o)||0,h=parseFloat(u)||0),v.isFunction(t)&&(t=t.call(e,n,s)),t.top!=null&&(f.top=t.top-s.top+c),t.left!=null&&(f.left=t.left-s.left+h),"using" in t?t.using.call(e,f):i.css(f)}},v.fn.extend({position:function(){if(!this[0]){return}var e=this[0],t=this.offsetParent(),n=this.offset(),r=er.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(v.css(e,"marginTop"))||0,n.left-=parseFloat(v.css(e,"marginLeft"))||0,r.top+=parseFloat(v.css(t[0],"borderTopWidth"))||0,r.left+=parseFloat(v.css(t[0],"borderLeftWidth"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||i.body;while(e&&!er.test(e.nodeName)&&v.css(e,"position")==="static"){e=e.offsetParent}return e||i.body})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);v.fn[e]=function(i){return v.access(this,function(e,i,s){var o=tr(e);if(s===t){return o?n in o?o[n]:o.document.documentElement[i]:e[i]}o?o.scrollTo(r?v(o).scrollLeft():s,r?s:v(o).scrollTop()):e[i]=s},e,i,arguments.length,null)}}),v.each({Height:"height",Width:"width"},function(e,n){v.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){v.fn[i]=function(i,s){var o=arguments.length&&(r||typeof i!="boolean"),u=r||(i===!0||s===!0?"margin":"border");return v.access(this,function(n,r,i){var s;return v.isWindow(n)?n.document.documentElement["client"+e]:n.nodeType===9?(s=n.documentElement,Math.max(n.body["scroll"+e],s["scroll"+e],n.body["offset"+e],s["offset"+e],s["client"+e])):i===t?v.css(n,r,i,u):v.style(n,r,i,u)},n,o?i:t,o,null)}})}),e.jQuery=e.$=v,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return v})})(window); /*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */ window.matchMedia||(window.matchMedia=function(){var b=(window.styleMedia||window.media);if(!b){var c=document.createElement("style"),a=document.getElementsByTagName("script")[0],d=null;c.type="text/css";c.id="matchmediajs-test";a.parentNode.insertBefore(c,a);d=("getComputedStyle" in window)&&window.getComputedStyle(c,null)||c.currentStyle;b={matchMedium:function(e){var f="@media "+e+"{ #matchmediajs-test { width: 1px; } }";if(c.styleSheet){c.styleSheet.cssText=f}else{c.textContent=f}return d.width==="1px"}}}return function(e){return{matches:b.matchMedium(e||"all"),media:e||"all"}}}()); /*! matchMedia() polyfill addListener/removeListener extension. Author & copyright (c) 2012: Scott Jehl. Dual MIT/BSD license */ (function(){if(window.matchMedia&&window.matchMedia("all").addListener){return false}var e=window.matchMedia,a=e("only all").matches,d=false,f=0,c=[],b=function(g){clearTimeout(f);f=setTimeout(function(){for(var n=0,k=c.length;n2;if(Q==null){Q=[]}if(E&&Q.reduce===E){if(O){P=L.bind(P,O)}return N?Q.reduce(P,M):Q.reduce(P)}H(Q,function(T,R,S){if(!N){M=T;N=true}else{M=P.call(O,M,T,R,S)}});if(!N){throw new TypeError(g)}return M};L.reduceRight=L.foldr=function(S,P,M,O){var N=arguments.length>2;if(S==null){S=[]}if(c&&S.reduceRight===c){if(O){P=L.bind(P,O)}return N?S.reduceRight(P,M):S.reduceRight(P)}var R=S.length;if(R!==+R){var Q=L.keys(S);R=Q.length}H(S,function(V,T,U){T=Q?Q[--R]:--R;if(!N){M=S[T];N=true}else{M=P.call(O,M,S[T],T,U)}});if(!N){throw new TypeError(g)}return M};L.find=L.detect=function(P,O,N){var M;A(P,function(S,Q,R){if(O.call(N,S,Q,R)){M=S;return true}});return M};L.filter=L.select=function(P,O,N){var M=[];if(P==null){return M}if(b&&P.filter===b){return P.filter(O,N)}H(P,function(S,Q,R){if(O.call(N,S,Q,R)){M[M.length]=S}});return M};L.reject=function(O,N,M){return L.filter(O,function(R,P,Q){return !N.call(M,R,P,Q)},M)};L.every=L.all=function(P,O,N){O||(O=L.identity);var M=true;if(P==null){return M}if(B&&P.every===B){return P.every(O,N)}H(P,function(S,Q,R){if(!(M=M&&O.call(N,S,Q,R))){return D}});return !!M};var A=L.some=L.any=function(P,O,N){O||(O=L.identity);var M=false;if(P==null){return M}if(p&&P.some===p){return P.some(O,N)}H(P,function(S,Q,R){if(M||(M=O.call(N,S,Q,R))){return D}});return !!M};L.contains=L.include=function(N,M){if(N==null){return false}if(n&&N.indexOf===n){return N.indexOf(M)!=-1}return A(N,function(O){return O===M})};L.invoke=function(O,P){var M=o.call(arguments,2);var N=L.isFunction(P);return L.map(O,function(Q){return(N?P:Q[P]).apply(Q,M)})};L.pluck=function(N,M){return L.map(N,function(O){return O[M]})};L.where=function(N,M,O){if(L.isEmpty(M)){return O?null:[]}return L[O?"find":"filter"](N,function(Q){for(var P in M){if(M[P]!==Q[P]){return false}}return true})};L.findWhere=function(N,M){return L.where(N,M,true)};L.max=function(P,O,N){if(!O&&L.isArray(P)&&P[0]===+P[0]&&P.length<65535){return Math.max.apply(Math,P)}if(!O&&L.isEmpty(P)){return -Infinity}var M={computed:-Infinity,value:-Infinity};H(P,function(T,Q,S){var R=O?O.call(N,T,Q,S):T;R>=M.computed&&(M={value:T,computed:R})});return M.value};L.min=function(P,O,N){if(!O&&L.isArray(P)&&P[0]===+P[0]&&P.length<65535){return Math.min.apply(Math,P)}if(!O&&L.isEmpty(P)){return Infinity}var M={computed:Infinity,value:Infinity};H(P,function(T,Q,S){var R=O?O.call(N,T,Q,S):T;RQ||R===void 0){return 1}if(R>>1;P.call(O,T[N])=0})})};L.difference=function(N){var M=y.apply(C,o.call(arguments,1));return L.filter(N,function(O){return !L.contains(M,O)})};L.zip=function(){var M=o.call(arguments);var P=L.max(L.pluck(M,"length"));var O=new Array(P);for(var N=0;N=0;O--){N=[M[O].apply(this,N)]}return N[0]}};L.after=function(N,M){if(N<=0){return M()}return function(){if(--N<1){return M.apply(this,arguments)}}};L.keys=e||function(O){if(O!==Object(O)){throw new TypeError("Invalid object")}var N=[];for(var M in O){if(L.has(O,M)){N[N.length]=M}}return N};L.values=function(O){var M=[];for(var N in O){if(L.has(O,N)){M.push(O[N])}}return M};L.pairs=function(O){var N=[];for(var M in O){if(L.has(O,M)){N.push([M,O[M]])}}return N};L.invert=function(O){var M={};for(var N in O){if(L.has(O,N)){M[O[N]]=N}}return M};L.functions=L.methods=function(O){var N=[];for(var M in O){if(L.isFunction(O[M])){N.push(M)}}return N.sort()};L.extend=function(M){H(o.call(arguments,1),function(N){if(N){for(var O in N){M[O]=N[O]}}});return M};L.pick=function(N){var O={};var M=y.apply(C,o.call(arguments,1));H(M,function(P){if(P in N){O[P]=N[P]}});return O};L.omit=function(O){var P={};var N=y.apply(C,o.call(arguments,1));for(var M in O){if(!L.contains(N,M)){P[M]=O[M]}}return P};L.defaults=function(M){H(o.call(arguments,1),function(N){if(N){for(var O in N){if(M[O]==null){M[O]=N[O]}}}});return M};L.clone=function(M){if(!L.isObject(M)){return M}return L.isArray(M)?M.slice():L.extend({},M)};L.tap=function(N,M){M(N);return N};var I=function(T,S,N,O){if(T===S){return T!==0||1/T==1/S}if(T==null||S==null){return T===S}if(T instanceof L){T=T._wrapped}if(S instanceof L){S=S._wrapped}var Q=d.call(T);if(Q!=d.call(S)){return false}switch(Q){case"[object String]":return T==String(S);case"[object Number]":return T!=+T?S!=+S:(T==0?1/T==1/S:T==+S);case"[object Date]":case"[object Boolean]":return +T==+S;case"[object RegExp]":return T.source==S.source&&T.global==S.global&&T.multiline==S.multiline&&T.ignoreCase==S.ignoreCase}if(typeof T!="object"||typeof S!="object"){return false}var M=N.length;while(M--){if(N[M]==T){return O[M]==S}}N.push(T);O.push(S);var V=0,W=true;if(Q=="[object Array]"){V=T.length;W=V==S.length;if(W){while(V--){if(!(W=I(T[V],S[V],N,O))){break}}}}else{var R=T.constructor,P=S.constructor;if(R!==P&&!(L.isFunction(R)&&(R instanceof R)&&L.isFunction(P)&&(P instanceof P))){return false}for(var U in T){if(L.has(T,U)){V++;if(!(W=L.has(S,U)&&I(T[U],S[U],N,O))){break}}}if(W){for(U in S){if(L.has(S,U)&&!(V--)){break}}W=!V}}N.pop();O.pop();return W};L.isEqual=function(N,M){return I(N,M,[],[])};L.isEmpty=function(N){if(N==null){return true}if(L.isArray(N)||L.isString(N)){return N.length===0}for(var M in N){if(L.has(N,M)){return false}}return true};L.isElement=function(M){return !!(M&&M.nodeType===1)};L.isArray=u||function(M){return d.call(M)=="[object Array]"};L.isObject=function(M){return M===Object(M)};H(["Arguments","Function","String","Number","Date","RegExp"],function(M){L["is"+M]=function(N){return d.call(N)=="[object "+M+"]"}});if(!L.isArguments(arguments)){L.isArguments=function(M){return !!(M&&L.has(M,"callee"))}}if(typeof(/./)!=="function"){L.isFunction=function(M){return typeof M==="function"}}L.isFinite=function(M){return isFinite(M)&&!isNaN(parseFloat(M))};L.isNaN=function(M){return L.isNumber(M)&&M!=+M};L.isBoolean=function(M){return M===true||M===false||d.call(M)=="[object Boolean]"};L.isNull=function(M){return M===null};L.isUndefined=function(M){return M===void 0};L.has=function(N,M){return j.call(N,M)};L.noConflict=function(){w._=k;return this};L.identity=function(M){return M};L.times=function(Q,P,O){var M=Array(Q);for(var N=0;N":">",'"':""","'":"'","/":"/"}};m.unescape=L.invert(m.escape);var J={escape:new RegExp("["+L.keys(m.escape).join("")+"]","g"),unescape:new RegExp("("+L.keys(m.unescape).join("|")+")","g")};L.each(["escape","unescape"],function(M){L[M]=function(N){if(N==null){return""}return(""+N).replace(J[M],function(O){return m[M][O]})}});L.result=function(M,O){if(M==null){return null}var N=M[O];return L.isFunction(N)?N.call(M):N};L.mixin=function(M){H(L.functions(M),function(N){var O=L[N]=M[N];L.prototype[N]=function(){var P=[this._wrapped];G.apply(P,arguments);return s.call(this,O.apply(L,P))}})};var z=0;L.uniqueId=function(M){var N=++z+"";return M?M+N:N};L.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var v=/(.)^/;var h={"'":"'","\\":"\\","\r":"r","\n":"n","\t":"t","\u2028":"u2028","\u2029":"u2029"};var i=/\\|'|\r|\n|\t|\u2028|\u2029/g;L.template=function(U,P,O){var N;O=L.defaults({},O,L.templateSettings);var Q=new RegExp([(O.escape||v).source,(O.interpolate||v).source,(O.evaluate||v).source].join("|")+"|$","g");var R=0;var M="__p+='";U.replace(Q,function(W,X,V,Z,Y){M+=U.slice(R,Y).replace(i,function(aa){return"\\"+h[aa]});if(X){M+="'+\n((__t=("+X+"))==null?'':_.escape(__t))+\n'"}if(V){M+="'+\n((__t=("+V+"))==null?'':__t)+\n'"}if(Z){M+="';\n"+Z+"\n__p+='"}R=Y+W.length;return W});M+="';\n";if(!O.variable){M="with(obj||{}){\n"+M+"}\n"}M="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+M+"return __p;\n";try{N=new Function(O.variable||"obj","_",M)}catch(S){S.source=M;throw S}if(P){return N(P,L)}var T=function(V){return N.call(this,V,L)};T.source="function("+(O.variable||"obj")+"){\n"+M+"}";return T};L.chain=function(M){return L(M).chain()};var s=function(M){return this._chain?L(M).chain():M};L.mixin(L);H(["pop","push","reverse","shift","sort","splice","unshift"],function(M){var N=C[M];L.prototype[M]=function(){var O=this._wrapped;N.apply(O,arguments);if((M=="shift"||M=="splice")&&O.length===0){delete O[0]}return s.call(this,O)}});H(["concat","join","slice"],function(M){var N=C[M];L.prototype[M]=function(){return s.call(this,N.apply(this._wrapped,arguments))}});L.extend(L.prototype,{chain:function(){this._chain=true;return this},value:function(){return this._wrapped}});if(typeof define==="function"&&define.amd){define("underscore",function(){return L})}}).call(this);define("bagman",["jquery","module"],function(j,c){var d={container:"body",hook:"module",config:"config",global:false,debug:false},f="",h={},a=[],k=[],e=[],i=0,m={},g={},b=0,l=0;j.extend(d,c.config());f="*[data-"+d.hook+"]";h=j(d.container).find(f);g.onloadDone=false;g.debug=d.debug;g.modules=[];g.instances=[];g.init=function(){j.each(h,function(n,o){if(j.browser.msie===true&&j.browser.version<9){m.instanciate(j(o).data(d.hook),o,j(o).data(d.config))}else{if(m.elementInViewport(o)){a.push(o);o.inViewport=true;m.instanciate(j(o).data(d.hook),o,j(o).data(d.config))}else{k.push(o);o.inViewport=false}}});j(window).load(function(){if(g.debug){console.log("* onLoad ..")}g.onloadDone=true;j.each(k,function(n,o){m.instanciate(j(o).data(d.hook),o,j(o).data(d.config))})});return g};g.getInstance=function(n){var o=j(n).attr("data-instance-id");if(g.instances[o]){return g.instances[o]}else{return null}};g.getInstances=function(q,p){var r="*[data-module]",o=[],n=[];if(p){r='*[data-module="'+p+'"]'}o=j(q).find(r);j.each(o,function(t,u){var s=g.instances[j(u).attr("data-instance-id")];if(s!==undefined){n.push(s)}});return n};g.update=function(){};g.remove=function(n){};m.elementInViewport=function(n){var o=n.getBoundingClientRect();return o.top<(window.innerHeight||document.body.clientHeight)&&o.left<(window.innerWidth||document.body.clientWidth)};m.instanciate=function(o,p,n){b=b+1;var q="helper"+(b),r=[];define(q,[],{module:o,el:p,config:n});r.push(o);r.push(q);require(r,function(t,u){try{var s=g.instances.push(j.extend(false,{},t));s=s-1;g.instances[s].el=j(u.el);g.instances[s].module=u.module;g.instances[s].el.attr("data-instance-id",s);g.instances[s].instanceId=s;g.instances[s].config=u.config;if(g.instances[s].init!==undefined){g.instances[s].init(j(u.el),u.config)}}catch(v){if(g.debug){console.log("module: :"+v.message)}}})};j(function(){g.init();if(d.global===true){g.config=d;window.bagman=g}});return g});define("libs/foresight",["lazyload","foresight-prepare"],function(b){var a=function(H,aw,N,aH,B){H.images=[];H.options=H.options||{};var aC=H.options,d=aC.testConn||true,aa=aC.minKbpsForHighBandwidth||300,Q=aC.speedTestUri||"http://www-static.se-mc.com/speed-test/50K.jpg",p=aC.speedTestKB||50,j=aC.speedTestExpireMinutes||30,ai=aC.hiResClassname||"fs-high-resolution",G=aC.lowResClassname||"fs-standard-resolution",ar=aC.targetDataAttribute||"largeUrl",k="devicePixelRatio",m="devicePixelRatioRounded",y="bandwidth",S="connType",at="connTestResult",aD="connKbps",ap="requestChange",V="defaultSrc",C="highResolutionSrc",ah="browserWidth",am="browserHeight",ab="requestWidth",D="requestHeight",l="width",i="height",ac="widthUnits",L="heightUnits",J="aspectRatio",aF="appliedImageSetItem",E="scale",ax="scaleRounded",Y="uriTemplate",h="uriFind",v="uriReplace",av="srcModification",aA="loading",F="complete",A="sonymobile_foresight",K="auto",o="percent",T="auto",al="pixel",t="display",az="auto",M=true,u=false,ao=/url\((?:([a-zA-Z-_0-9{}\?=&\\/.:\s]+)|([a-zA-Z-_0-9{}\?=&\\/.:\s]+)\|([a-zA-Z-_0-9{}\?=&\\/.:\s]+))\)/g,R=/[^\d]+/,ag,aj,ay=function(){if(ag){return}ag=aA;W();ag=F;ae()},aq=function(aJ,aI){if(N.createEvent){var aK=N.createEvent("Event");aK.initEvent("foresight-"+aJ,M,M);aI.dispatchEvent(aK)}},W=function(){var aI,aJ,aK;for(aI=0;aI1){f(aJ,aJ.imageSetText.split("image-set(")[1])}}},aB=function(aL){if(aL===""||typeof aL===undefined){return}var aJ,aK,aM;var aI=aL.find("img.foresight");for(aJ=0;aJ1){f(aK,aK.imageSetText.split("image-set(")[1])}}},f=function(aI,aM){var aN,aK=aM!==undefined&&aM!==null?aM.split(","):[],aL,aJ=[];for(aN=0;aN-1){aL.weight++;aL[E]=1.5}else{if(aL.text.indexOf(" 2x")>-1){aL[E]=2}else{if(aL.text.indexOf(" 1x")>-1){aL[E]=1}}}if(aL.text.indexOf(" high-bandwidth")>-1){aL[y]="high"}else{if(aL.text.indexOf(" low-bandwidth")>-1){aL[y]="low"}}aJ=ao.exec(aL.text);while(aJ){if(aJ[1]!==null&&aJ[1]!==""){aL[Y]=aJ[1];aL.weight++}else{if(aJ[2]!==null&&aJ[2]!==""){aL[h]=aJ[2];aL[v]=aJ[3];aL.weight++}}aJ=ao.exec(aL.text)}if(aL[E]&&aL[y]){aL.weight+=2}else{if(aL[E]||aL[y]){aL.weight++}}aI.imageSet.push(aL)}aI.imageSet.sort(n)},n=function(aJ,aI){if(aJ.weightaI.weight){return -1}return 0},ak=function(aJ,aK,aI,aL){aL=aJ.getAttribute("data-"+aK);if(aI&&aL!==null){if(!isNaN(aL)){return parseInt(aL,10)}return 0}return aL},ae=function(){if(!(aj===F&&ag===F)){return}var aK,aN=H.images.length,aM,aL,aP,aO,aJ=[],aI;for(aK=0;aK1&&aK[aF][y]==="high"){aI=aK[ah]===undefined?az:Math.round(aK[ah]*aK[aF][E]);aJ=aK[am]===undefined?az:Math.round(aK[am]*aK[aF][E]);H.hiResEnabled=M}else{aI=aK[ah]===undefined?az:aK[ah];aJ=aK[am]===undefined?az:aK[am];H.hiResEnabled=u}if(!aK[ab]||aI>aK[ab]||aK.activeImageSetText!==aK.imageSetText){aK[ab]=aI;aK[D]=aJ;if(aK[C]&&H.hiResEnabled){aK.setAttribute("data-original",aK[C]);aK[av]="src-hi-res"}else{aK.setAttribute("data-original",x(aK))}aK[ap]=M;aK.activeImageSetText=aK.imageSetText}else{aK[ap]=u}},x=function(aI){if(aI[aF][Y]){aI[av]="src-uri-template";return Z(aI)}else{if(aI[aF][h]&&aI[aF][v]){aI[av]="src-find-replace";return an(aI)}}aI[av]="src-default";return aI[V]},q=function(aI){var aL,aJ,aK={};for(aL=0;aL0){aJ.unitType=o}else{aJ.unitType=al;if(aJ[J]&&aJ[J]!==K){if(aJ[L]){aJ[ah]=Math.round(aJ[L]/aJ[J]);aJ[am]=aJ[L]}else{aJ[ah]=aJ[ac]||aI.replace(R,"");aJ[am]=Math.round(aJ[ah]/aJ[J])}}else{aJ[ah]=aJ[ac];aJ[am]=aJ[L]}}}if(aJ.unitType===o||aJ[J]){aJ.computedWidth=au(aJ);aJ[ah]=aJ.computedWidth;if(aJ[J]!==K){aJ[am]=Math.round(aJ[ah]/aJ[J])}else{if(aJ[L]){aJ[am]=Math.round(aJ[L]*(aJ.computedWidth/aJ[ac]))}}if(aJ[am]&&aH.appVersion.indexOf("MSIE")>-1){aJ.style.height=aJ[am]+"px"}}},au=function(aJ){if(aJ.offsetWidth!==0){return aJ.offsetWidth}else{var aL,aK,aI={},aM={position:"absolute",visibility:"hidden",display:"block"};for(aK in aM){aI[aK]=aJ.style[aK];aJ.style[aK]=aM[aK]}aL=aJ.offsetWidth;for(aK in aM){aJ.style[aK]=aI[aK]}return aL}},z=function(aJ,aI,aK){if(!aK){aK=aI}return aJ.currentStyle?aJ.currentStyle[aK]:N.defaultView.getComputedStyle(aJ,null).getPropertyValue(aI)},w,ad=function(aI,aJ){if(!w){w=N.createElement("style");w.setAttribute("type","text/css")}aJ=aI.join("");try{w.innerHTML=aJ}catch(aK){w.styleSheet.cssText=aJ}if(w.parentElement===null){N.getElementsByTagName("head")[0].appendChild(w)}},Z=function(aJ){var aI,aL=["src","protocol","host","port","directory","file","filename","ext","query",ab,D,E,ax],aK=aJ[aF][Y];aJ.uri=aG(aJ[V]);aJ.uri.src=aJ[V];aJ.uri[ab]=aJ[ab];aJ.uri[D]=aJ[D];aJ.uri[E]=aJ[aF][E];aJ.uri[ax]=aJ[aF][ax];for(aI=0;aI1?aK[aK.length-1]:"");return aL},an=function(aI){var aL=aI[aF][h].replace("{browserWidth}",aI[ac]).replace("{browserHeight}",aI[L]);var aK,aJ=aI[V].replace(aL,aI[aF][v]),aM=[ab,D,E,ax];aI[E]=aI[aF][E];aI[ax]=aI[aF][ax];for(aK=0;aK1?aQ:1);H[aD]=((p*1024*8)/aQ)/1024;H[y]=(H[aD]>=aa?"high":"low");r("networkSuccess")};aM.onerror=function(){r("networkError",5)};aM.onabort=function(){r("networkAbort",5)};aO=(new Date()).getTime();aj=aA;if(N.location.protocol==="index.html"){Q=Q.replace("index.html","index.html")}aM.src=Q+"?r="+Math.random();aL=(((p*8)/aa)*1000)+350;setTimeout(function(){r("networkSlow")},aL)},r=function(aL,aJ){if(aj===F){return}aj=F;H[at]=aL;try{if(!aJ){aJ=j}var aI={kbps:H[aD],bw:H[y],exp:(new Date()).getTime()+(aJ*60000)};localStorage.setItem(A,JSON.stringify(aI))}catch(aK){}ae()},O=function(){if(aw.addEventListener){aw.addEventListener("resize",X,u)}else{if(aw.attachEvent){aw.attachEvent("onresize",X)}}},e=0,X=function(){if(e!==aE()){H.reload()}},aE=function(){return N.documentElement.clientWidth||N.body&&N.body.clientWidth||1024},U,P=function(){if(ag!==F||aj!==F){return}W();ae()};H.updateComplete=function(){B.init()};H.resolve=function(aI,aJ){aJ.imageSet=[];f(aJ,aI);q(aJ);s(aJ);aJ.src=x(aJ)};H.reload=function(){aw.clearTimeout(U);U=aw.setTimeout(P,250)};H.ready=function(){if(!N.body){return aw.setTimeout(H.ready,1)}ay()};H.force=function(aJ,aI){if(aJ===""||typeof aJ===undefined){return}if(aI===undefined||aI!==true){aI=false}if(ag===F){ag=aA;aB($(aJ));ae();B.force($(aJ),aI);ag=F}else{setTimeout(function(){H.force($(aJ),aI)},200)}};if(N.readyState===F){setTimeout(H.ready,1)}else{if(N.addEventListener){N.addEventListener("DOMContentLoaded",H.ready,u);aw.addEventListener("load",H.ready,u)}else{if(N.attachEvent){N.attachEvent("onreadystatechange",H.ready);aw.attachEvent("onload",H.ready)}}}H[k]=aw[k]?aw[k]:1;if(aC.forcedPixelRatio){H[k]=aC.forcedPixelRatio}H[m]=Math.round(H[k]);I();O()};var c=new a(window.foresight=window.foresight||{},window,document,navigator,b);return window.foresight});define("cookie",["jquery"],function(a){a.cookie=function(k,g,l){var j=false;if("localStorage" in window){try{window.localStorage.setItem("isStorageAvailable","true");j=true;window.localStorage.removeItem("isStorageAvailable","true")}catch(f){}}if(arguments.length>1&&String(g)!=="[object Object]"){l=a.extend({},l);if(l.maxChunkSize==undefined){l.maxChunkSize=3000}if(l.maxNumberOfCookies==undefined){l.maxNumberOfCookies=20}if(l.useLocalStorage==undefined){l.useLocalStorage=true}if(g===null||g===undefined){if(l.useLocalStorage&&j!=false){localStorage.removeItem(k)}for(var d=0;d1&&String(g)==="[object Object]"){l=g}else{l={}}if(l.maxNumberOfCookies==undefined){l.maxNumberOfCookies=20}if(l.useLocalStorage==undefined){l.useLocalStorage=true}}if(j!=false){var g=localStorage.getItem(k);if(g!=undefined&&g!=null){return(g)}}var g="";for(var d=0;d1&&String(f)!=="[object Object]"){c=a.extend({},c);if(f===null||f===undefined){c.expires=-1}if(typeof c.expires==="number"){var h=c.expires,d=c.expires=new Date();d.setDate(d.getDate()+h)}f=String(f);return(document.cookie=[encodeURIComponent(e),"=",c.raw?f:encodeURIComponent(f),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join(""))}c=f||{};var b,g=c.raw?function(i){return i}:decodeURIComponent;return(b=new RegExp("(?:^|; )"+encodeURIComponent(e)+"=([^;]*)").exec(document.cookie))?g(b[1]):null}});define("foresight-prepare",[],function(){var a=[];a["block-100"]="940";a["block-75"]="620";a["block-66"]="620";a["block-50"]="460";a["block-33"]="300";a["block-25"]="220";$("img.attachment-post-thumbnail").not(".no-foresight").each(function(){function g(j,i){$(i).attr("width",a[j]);var h=Math.round(a[j]/$(i).data("aspect-ratio"));$(i).attr("height",h.toString())}var e="",f;if($(this)!==undefined){e=$(this).closest("div[class^='block-']").attr("class");if(e!==undefined){f=e.split(" ")[0];$(this).addClass(a[f.substring(11)]);g(f)}else{$(this).addClass("attachment-"+a["block-100"]);g("block-100",this)}$(this).removeClass("attachment-post-thumbnail")}});var b=$(".retina-img img").not(".foresight"),c="",d="";$(b).each(function(){$(this).attr("data-original",$(this).data("large-url"));var f=$(this).data("large-width");var e=$(this).data("large-height");c=Math.round(f/2);d=Math.round(e/2);$(this).width(c);if(window.viewportwidth>600){$(this).height(d)}else{$(this).height("auto")}$(this).css("visibility","visible")})});function videoimageclick(c){var a=$(location).attr("href"),b=$("body").data("site-id");if("PLAYING"===c){_gaq.push(["_trackEvent",b+"_Video","initiate_play",a])}}if($(".hero-slider").length>0||$(".block-video").length>0||$(".xplayer").length>0||$(".chromeless-player").length>0||$(".sonyplayer").length>0){if($("img.thumb").length>0){$(document).on("click",".thumb",function(){videoimageclick("PLAYING")})}if($(".videoplayer .preview").length>0){$(document).on("click",".videoplayer",function(){videoimageclick("PLAYING")})}}function choosencolor(){var a=$(".choosecolor img");$(a).on("click",function(d){var b=$(this).prop("alt"),c=$("body").data("site-id"),f=$(".prod-nav h1 a").prop("title");_gaq.push(["_trackEvent",c+"_PHP_Color",b,f])})}jQuery(document).ready(function(a){choosencolor()});function usingmenu(){var b=$("#menu-primary-menu li a"),c=$(".sub-menu li a"),a=$("body").data("site-id");$(b).bind("click",function(d){var f=$(this).prop("href");_gaq.push(["_trackPageview","/"+a+"/virtual/top-nav/"+f])});$(c).bind("click",function(f){var d=$(this).prop("href");_gaq.push(["_trackPageview","/"+a+"/virtual/sub-nav/"+d])})}jQuery(document).ready(function(a){usingmenu()});function buynow(){var c=$(".buy-now"),a=$(".buy-now-pep"),b=$("body").data("site-id");$(c).on("click",function(f){var d=$(this).prop("href");_gaq.push(["_link",d]);_gaq.push(["_trackPageview","/"+b+"/virtual/PHP-buynow-click/"+d]);return false});$(a).on("click",function(f){var d=$(this).prop("href");_gaq.push(["_link",d]);_gaq.push(["_trackPageview","/"+b+"/virtual/PEP-buynow-click/"+d]);return false})}jQuery(document).ready(function(a){buynow()});jQuery(document).ready(function(a){a("a.preregister-link").on("click",function(){var b=a("body").data("site-id");_gaq.push(["_trackEvent",b+"_NotifyMe","Clicked",a(this).data("id")])})});function xperiacare(){var b,a=$("body").data("site-id");$('a[href*="usergudie.sonymobile.com"]').addClass("goto-userguide");$('a[href*="talk.sonymobile.com"]').addClass("goto-talk");$("a.goto-userguide").on("click",function(c){b=$(this).prop("href");_gaq.push(["_link",b]);return false});$("a.goto-talk").on("click",function(c){b=$(this).prop("href");_gaq.push(["_link",b]);return false})}jQuery(document).ready(function(a){if(a("#supportheader").length>0){xperiacare()}});jQuery(document).ready(function(b){var a;if(b(".twitter-share-button").length>0){b.getScript("images/widgets.js",function(){function c(d){if(!d){return}_gaq.push(["_trackSocial","twitter",d.type])}a.events.bind("click",c);a.events.bind("tweet",c);a.events.bind("retweet",c);a.events.bind("favorite",c);a.events.bind("follow",c)})}});$(document).ready(function(){var a;window.fbAsyncInit=function(){a.init({appId:"104230589647735",status:true,cookie:true,xfbml:true});a.Event.subscribe("edge.create",function(b){_gaq.push(["_trackSocial","facebook","like",b])});a.Event.subscribe("edge.remove",function(b){_gaq.push(["_trackSocial","facebook","unlike",b])});a.Event.subscribe("message.send",function(b){_gaq.push(["_trackSocial","facebook","send",b])})}});(function(e){if($(".fb-like").length>0){var c=$("html")[0].lang,b,f="facebook-jssdk",a=e.getElementsByTagName("script")[0];if(c==="ar-AE"){c="ar_AR";c=c.replace("-","_")}if(!c){c="en_GB"}if(e.getElementById(f)){return}b=e.createElement("script");b.id=f;b.async=true;b.src="//connect.facebook.net/"+c+"/all.js";a.parentNode.insertBefore(b,a)}}(document));define("block",[],function(){return});define("sony-util",["jquery","enquire"],function(e,a){var c={};c.getEnvironment=function(){return e("body").data("environment")};c.getEnvironmentPrefix=function(){var h=c.getEnvironment();if(h==="production"){return""}else{return"-"+h}};c.getSiteId=function(){return e("body").attr("data-site-id")};c.supports=function(h){if(h===""){return false}try{return h in window&&window[h]!==null}catch(i){return false}};(function(){var h="",i="";e("select[data-url]").each(function(){var l=e(this),k={};if(!l.find("option:selected").length){l.val(l.find("option:first"))}l.change(function(){l=e(this);k=l.find(":selected");if(k.val()===""){return}h=l.data("url").replace(/\/$/,"");i="/"+k.val().replace(/ /g,"-").replace(/,/g,"");window.location=h+i})});e(document).on("click",".choosecolor",function(){e(".choosecolor.focused").removeClass("focused");e(this).addClass("focused");var k=e(this).find("img"),l=new Image();l.src=this.href;l.alt=k.attr("alt");l.title=k.attr("title");l.onload=function(){var q=e(".mainimage .block-image img");q.hide();q.prop("alt",e(this).prop("alt"));q.prop("title",e(this).prop("title"));q.prop("src",e(this).prop("src")).fadeIn()};if(e(".single-product a.preregister-link").length>1){var m=e(this).data("sales-item-url");if(m!==""){e(".single-product a").prop("href",m)}var p=e(this).data("price-with-currency");if(p!==""){e(".single-product .price").html(p)}}var o=e("img",this).attr("id");window.location.hash=o.replace("-","");var n=window.location.hash;e(".prod-nav li").find("a[href*='/specifications/']").prop("href",function(r,t){var q=t+n;var s=q.substr(0,q.indexOf("#"));return s+n});e(".prod-nav li h1").find("a").prop("href",function(r,t){var q=t+n;var s=q.substr(0,q.indexOf("#"));return s+n});return false});var j=window.location.hash;j=j+"-";if(j.length>1){e(j).click()}}());e(document).ready(function(){if(e("#wp-admin-bar-edit").length>0){require(["text","sony-edit"])}});jQuery.fn.slideFadeToggle=function(h,j,i){return this.animate({opacity:"toggle",height:"toggle"},h,j,i)};var b="(max-width:600px)";var g="(min-width:600px)";var d=e("img.bg-image");var f=d.attr("src");if(window.viewportwidth>600){if(d.length>0){d.parent().css({"background-image":"url("+f+")","background-position":"center top","background-repeat":"no-repeat"})}}a.register(b,{match:function(){if(d.length>0){d.parent().css({"background-image":"none"})}}});a.register(g,{match:function(){if(d.length>0){d.parent().css({"background-image":"url("+f+")","background-position":"center top","background-repeat":"no-repeat"})}}});return c});define("hero",["jquery","libs/foresight","flexslider","bagman","easing","enquire","sonyplayer"],function(f,b,g,a,h,d,e){var c={};c.init=function(n,l){var o,i,k,q=false,j=f(".hero-thumb-nav li").length,p=this;d.register("screen and (max-width:600px)",{match:function(){q=true},unmatch:function(){q=false},});d.register("screen and (orientation: landscape)",{match:function(){},unmatch:function(){},});if(q){f(".sonymobile-hero .block-text h2, .sonymobile-hero .block-text .subdescription, .sonymobile-hero .block-text .availablecolors, .sonymobile-hero .block-text .clear-awards, .sonymobile-hero .block-text .awards, .sonymobile-hero .block-text .single-product").appendTo(f("#mobileHeroInfo"));this.formatHeadline()}if(f(".hero-thumb-nav li.color-li:first-child").length>0){f(".availablecolors").removeClass("hideFocusedSwatch")}f(".hero-thumb-nav li:not(.color-li)").click(function(){f(".availablecolors").addClass("hideFocusedSwatch")});f(".hero-thumb-nav .color-li, .availablecolors .choosecolor").click(function(){f(".availablecolors").removeClass("hideFocusedSwatch")});k=n.find(".hero-slider");if(k.length<1){return null}if(j<=8){f(".hero-thumb-nav").addClass("no-nav")}if(j<=1){f(".hero-thumb-nav").hide()}o=0;i=f(k).find(".slides");if(q){if(l&&l.hasOwnProperty("startAtMobile")&&l.startAtMobile>0&&(l.startAtMobile-1)<=i.length){o=l.startAtMobile-1}}f("#thumb-nav").flexslider({animation:"slide",controlNav:false,animationLoop:false,slideshow:false,itemWidth:65,maxItems:8,itemMargin:2,asNavFor:".hero-slider",move:8});k.flexslider({startAt:o,animation:"fade",easing:"swing",direction:"horizontal",selector:"ul.slides > li",slideshowSpeed:5000,animationSpeed:500,directionNav:true,controlNav:true,manualControls:".flex-control-paging li a",smoothHeight:false,initDelay:0,slideshow:false,pauseOnHover:true,touch:true,sync:"#thumb-nav",start:function(t){var u=f(t.slides[t.currentSlide]),r=a.getInstances(u,"sonyplayer")[0],s;f(".slider-wrapper .wrapper").fadeIn(20);f(".slides").show();if(r!==undefined){if(q){m(r)}}},before:function(v){var w=f(v.slides[v.currentSlide]),s=f(v.slides[v.animatingTo]);if(v.currentSlide!==v.animatingTo){var r=a.getInstances(f(v.slides[v.currentSlide]),"sonyplayer")[0];if(r!==undefined&&r.pause!==undefined){r.pause()}b.force(f(v.slides[v.animatingTo]));var u=a.getInstances(f(v.slides[v.animatingTo]),"sonyplayer")[0],t;if(u!==undefined){if(q){u.initPlayer()}else{u.play()}u.hideOverlay(true);if(q){m(u)}}f(v.slides[v.animatingTo]).find("img").show().css("opacity",0).css("left",50).delay(100).animate({left:0,opacity:1},400,"easeInOutQuint");f(v.slides[v.currentSlide]).find("img").animate({left:-100},500,"easeInOutQuint")}else{return false}}});function m(s){var r=f(window).width()-120;if(r>337){r=337}s.update({width:(r)});s.el.css("margin","0 auto").css("margin-top",Math.floor((190-s.el.height())/2-10))}f(".choosecolor").click(function(){if(!f(".color-thumb").parent().hasClass("flex-active-slide")){f(".color-thumb").click()}if(!f(".color-mobile-nav").parent().hasClass("flex-active")){f(".color-mobile-nav").click()}});f("#thumb-nav ul.slides li").on("click",function(){var s=f("body").data("site-id");var t=f(this).index();var r=f(this).is(".video-li");_gaq.push(["_trackEvent",s+"_PHP-Hero","Carousel_clicked-"+(t+1),r?"video":"image"])});return this};c.formatHeadline=function(){var l=f(this.el).find(".hero-details"),k=l.find("h1").outerHeight(),i=0,j=0;if(k>80&&k<124){l.addClass("two-lines")}if(k>125&&k<=180){l.addClass("three-lines")}if(k>180){l.addClass("four-lines")}i=f(this.el).find(".hero-details").find("h1").outerHeight();j=Math.floor((90-i)/2);l.css("margin-top",0).css("padding-top",0).css("margin-top",j);l.delay(600).animate({opacity:1,duration:200})};return c});define("easing",["jquery"],function(a){a.easing.jswing=a.easing.swing;a.extend(a.easing,{def:"easeOutQuad",swing:function(f,g,e,i,h){return a.easing[a.easing.def](f,g,e,i,h)},easeInQuad:function(f,g,e,i,h){return i*(g/=h)*g+e},easeOutQuad:function(f,g,e,i,h){return -i*(g/=h)*(g-2)+e},easeInOutQuad:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g+e}return -i/2*((--g)*(g-2)-1)+e},easeInCubic:function(f,g,e,i,h){return i*(g/=h)*g*g+e},easeOutCubic:function(f,g,e,i,h){return i*((g=g/h-1)*g*g+1)+e},easeInOutCubic:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g*g+e}return i/2*((g-=2)*g*g+2)+e},easeInQuart:function(f,g,e,i,h){return i*(g/=h)*g*g*g+e},easeOutQuart:function(f,g,e,i,h){return -i*((g=g/h-1)*g*g*g-1)+e},easeInOutQuart:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g*g*g+e}return -i/2*((g-=2)*g*g*g-2)+e},easeInQuint:function(f,g,e,i,h){return i*(g/=h)*g*g*g*g+e},easeOutQuint:function(f,g,e,i,h){return i*((g=g/h-1)*g*g*g*g+1)+e},easeInOutQuint:function(f,g,e,i,h){if((g/=h/2)<1){return i/2*g*g*g*g*g+e}return i/2*((g-=2)*g*g*g*g+2)+e},easeInSine:function(f,g,e,i,h){return -i*Math.cos(g/h*(Math.PI/2))+i+e},easeOutSine:function(f,g,e,i,h){return i*Math.sin(g/h*(Math.PI/2))+e},easeInOutSine:function(f,g,e,i,h){return -i/2*(Math.cos(Math.PI*g/h)-1)+e},easeInExpo:function(f,g,e,i,h){return(g==0)?e:i*Math.pow(2,10*(g/h-1))+e},easeOutExpo:function(f,g,e,i,h){return(g==h)?e+i:i*(-Math.pow(2,-10*g/h)+1)+e},easeInOutExpo:function(f,g,e,i,h){if(g==0){return e}if(g==h){return e+i}if((g/=h/2)<1){return i/2*Math.pow(2,10*(g-1))+e}return i/2*(-Math.pow(2,-10*--g)+2)+e},easeInCirc:function(f,g,e,i,h){return -i*(Math.sqrt(1-(g/=h)*g)-1)+e},easeOutCirc:function(f,g,e,i,h){return i*Math.sqrt(1-(g=g/h-1)*g)+e},easeInOutCirc:function(f,g,e,i,h){if((g/=h/2)<1){return -i/2*(Math.sqrt(1-g*g)-1)+e}return i/2*(Math.sqrt(1-(g-=2)*g)+1)+e},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(gj.failure_limit){return false}}}})}if(i){if(h!==i.failurelimit){i.failure_limit=i.failurelimit;delete i.failurelimit}if(h!==i.effectspeed){i.effect_speed=i.effectspeed;delete i.effectspeed}f.extend(j,i)}l=(j.container===h||j.container===e)?g:f(j.container);if(0===j.event.indexOf("scroll")){l.bind(j.event,function(n){return m()})}this.each(function(){var n=this;var o=f(n);n.loaded=false;o.one("appear",function(){if(!this.loaded){if(j.appear){var p=k.length;j.appear.call(n,p,j)}f("").bind("load",function(){o.hide().attr("src",o.data(j.data_attribute))[j.effect](j.effect_speed);n.loaded=true;var q=f.grep(k,function(s){return !s.loaded});k=f(q);if(j.load){var r=k.length;j.load.call(n,r,j)}}).attr("src",o.data(j.data_attribute))}});if(0!==j.event.indexOf("scroll")){o.bind(j.event,function(p){if(!n.loaded){o.trigger("appear")}})}});g.bind("resize",function(n){m()});if((/iphone|ipod|ipad.*os 5/gi).test(navigator.appVersion)){g.bind("pageshow",function(n){if(n.originalEvent&&n.originalEvent.persisted){k.each(function(){f(this).trigger("appear")})}})}f(d).ready(function(){m()});return this};f.belowthefold=function(j,k){var i;if(k.container===h||k.container===e){i=g.height()+g.scrollTop()}else{i=f(k.container).offset().top+f(k.container).height()}return i<=f(j).offset().top-k.threshold};f.rightoffold=function(j,k){var i;if(k.container===h||k.container===e){i=g.width()+g.scrollLeft()}else{i=f(k.container).offset().left+f(k.container).width()}return i<=f(j).offset().left-k.threshold};f.abovethetop=function(j,k){var i;if(k.container===h||k.container===e){i=g.scrollTop()}else{i=f(k.container).offset().top}return i>=f(j).offset().top+k.threshold+f(j).height()};f.leftofbegin=function(j,k){var i;if(k.container===h||k.container===e){i=g.scrollLeft()}else{i=f(k.container).offset().left}return i>=f(j).offset().left+k.threshold+f(j).width()};f.inviewport=function(i,j){return !f.rightoffold(i,j)&&!f.leftofbegin(i,j)&&!f.belowthefold(i,j)&&!f.abovethetop(i,j)};f.extend(f.expr[":"],{"below-the-fold":function(i){return f.belowthefold(i,{threshold:0})},"above-the-top":function(i){return !f.belowthefold(i,{threshold:0})},"right-of-screen":function(i){return f.rightoffold(i,{threshold:0})},"left-of-screen":function(i){return !f.rightoffold(i,{threshold:0})},"in-viewport":function(i){return f.inviewport(i,{threshold:0})},"above-the-fold":function(i){return !f.belowthefold(i,{threshold:0})},"right-of-fold":function(i){return f.rightoffold(i,{threshold:0})},"left-of-fold":function(i){return !f.rightoffold(i,{threshold:0})}})})(jQuery,window,document);a.register("screen and (max-width:600px)",{match:function(){b.isMobile=true},unmatch:function(){b.isMobile=false}});b.optimizedThereshold=250;b.init=function(){c.fn.dummy=function(d){return};if(c("img.lazy").length){if(b.isMobile){b.optimizedThereshold=200}c("img.lazy").lazyload({threshold:b.optimizedThereshold,failure_limit:5,event:"scroll",effect:"dummy",container:window,data_attribute:"original",timeout_after:20000,skip_invisible:true,appear:null,load:function(d){if(c(this).hasClass("loaded")){c(this).show()}else{if(b.isMobile===true){c(this).stop().show()}else{c(this).stop(true,true).fadeIn(200)}}c(this).removeClass("lazy").addClass("loaded")}})}};b.update=function(){b.init()};b.force=function(d,e){var f=c(d).find("img");c(f).each(function(g,i){if(c(i).hasClass("lazy")&&c(i).not(".loaded")){if(c(i).hasClass("foresight")){c(i).attr("original",c(i).data("src"))}var h=c(i).attr("src",c(i).data("original")).hide().removeAttr("data-original").removeClass("lazy").addClass("loaded").addClass("lazy-forced");if(e===true&&b.isMobile===false){h.stop(true,true).fadeIn(200)}else{h.stop().show()}}})};window.leif=b;return b});define("expandable",["jquery","libs/foresight","bagman","analytics","easing"],function(e,b,a,c){var d={};d.AnimTime=200;d.expandableClose=function(f){var g=e(f);if(g.length===0){return}g.find(".expandable-content").css("display","block").slideUp(d.AnimTime).parent().removeClass("open")};d.expandableOpen=function(g,f){if(g.length===0){return}g.siblings(".expandable.open").find(".expandable-content").css("display","none").css("length",0).parent(".expandable").removeClass("open");g.find(".expandable-content").slideDown(d.AnimTime,function(){b.force(g)}).parent().addClass("open");if(f){d.hashChange(g.attr("id"))}};d.hashChange=function(f){window.location.hash=String(f)};d.hashChangeHandler=function(){var f=window.location.hash;d.expandableOpen(e(document.getElementById(f.slice(1))))};if(window.location.hash){d.hashChangeHandler()}e(window).on("hashchange",d.hashChangeHandler);d.toggleExpandable=function(){var i=this.el;var f=this,h=document.URL,g="";if(i.hasClass("open")){d.expandableClose(i);g="Close-"+window.location.hash.slice(1)}else{d.expandableOpen(i,"changeHashOnClick");g="Expand-"+window.location.hash.slice(1)}c.trackEvent(f,g,h)};d.init=function(f){var g=this;e(f).find(".expandable-header").click(function(){g.toggleExpandable()})};return d});define("carousel",["jquery","libs/foresight","enquire","flexslider","easing"],function(d,a,c){function b(f){var e=d(f.slides[f.animatingTo]).find(".lazy");if(e.length>0){a.force(e);e.on("load",function(){f.animate({height:f.slides.eq(f.animatingTo).height()},f.animationSpeed)})}}return{init:function(k,h){var n,e,f,p=true,g=(d("body").hasClass("rtl"))?-1:1,m=300,l=600,r=2600,j=11000,o=false,i,q=0,t=false,s="";f=k;if(f.length<1){return null}c.register("screen and (max-width:600px)",{match:function(){o=true;p=false},unmatch:function(){o=false}});n=0;e=d(f).find(".slides");if(o){if(h&&h.hasOwnProperty("startAtMobile")&&h.startAtMobile>0&&(h.startAtMobile-1)<=e.length){n=h.startAtMobile-1}}if(!o){window.onload=function(){var u=d(f).find("li.block-slider, li.block-slider img").map(function(){if(d(this)[0].nodeName==="IMG"){return d(this).attr("height")}else{return d(this).height()}}).get();s=Math.max.apply(Math,u);d(f).find("li.block-slider").css("min-height",s)}}f.flexslider({startAt:n,animation:"fade",easing:"easeInOutSine",direction:"horizontal",selector:"ul.slides > li",slideshow:p,slideshowSpeed:j,animationSpeed:l,animationLoop:true,directionNav:true,controlNav:true,initDelay:1000,pauseOnHover:true,smoothHeight:true,touch:true,start:function(u){var w={},v;if(u.currentSlide===undefined){w=d(u).find(".slide-config")}else{w=d(u.slides[u.currentSlide]).find(".slide-config")}v=w.attr("data-background-color");if(!v){v="#ffffff"}w.parents(".slider-wrapper").animate({backgroundColor:v,duration:10});d(".slider-wrapper .wrapper").fadeIn(20);d(".slides").show();i=u;if(o){b(u)}_gaq.push(["_trackEvent","carousel-start",d(this).attr("href")])},before:function(x){if(q){clearTimeout(q);q=0}var z=d(x.slides[x.animatingTo]).find(".slide-config"),y=z.attr("data-background-color"),v=d(x.slides[x.animatingTo]).find(".row > div"),A=d(x.slides[x.animatingTo]).attr("class"),w=A.match(/\bpause-/),u=j;if(w){u=A.substr(A.indexOf("pause-")+6)*1000}if(!y){y="#ffffff"}d(z).parents(".slider-wrapper").animate({backgroundColor:y,duration:10});if(o){b(x)}d(v).each(function(C){var G=d(this),E=d(x.slides[x.currentSlide]).find(".row > div:eq("+C+")"),F=d(x.slides[x.animatingTo]).find(".row > div:eq("+C+")"),B=G.closest(".row").children().length,D=G.closest(".block-image, .block-text").index();E.find(".sonyplayer").removeClass("played");F.stop();if(G.closest(".force-right").length>0){D=B}if(!E.hasClass("fade-only")&&!o){E.delay((D*m)).animate({left:(-40*g)},500,"linear")}if(F.hasClass("fade-only")&&!o){F.show().css("opacity",0).delay(D*m+l+r).delay(100).animate({opacity:1},1000,"easeOutQuint")}else{F.show().css("opacity",0).css("left",(40*g)).delay(D*m+l).delay(100).animate({left:0,opacity:1},600,"easeOutQuint")}});if(o){i.pause()}else{if(!t){i.pause();q=setTimeout(function(){i.flexslider("next")},u)}}},after:function(u){d(u.slides[u.animatingTo]).scroll()}});d(f).find(".flex-control-nav li a").click(function(){t=true});if(!o){d(window).on("load",function(){d(".carousel:not(.started) .flex-control-nav").filter(":in-viewport").each(function(){i.addClass("started");var u=j,w=d(i.slides[0]).attr("class"),v=w.match(/\bpause-/);if(v){u=w.substr(w.indexOf("pause-")+6,2)*1000}q=setTimeout(function(){i.flexslider("next");i.play()},u)})})}else{b(i)}return this}}});define("cart",["cookie","jquery"],function(e,f){f.fn.getCSS=function(g,i){if(document.createStyleSheet){document.createStyleSheet(g)}else{var h=f("").attr({href:g,media:i||"screen",type:"text/css",rel:"stylesheet"});f("head").append(h)}};var a=f("#sony-mobile-global-defines").data("epshop-enabled");var b,c;if(a===true){b=f.cookie("customerSessionGuid");if(b===null||b==="[]"||b===""){f(".cart-checkout-empty").css({display:"block"})}else{c=f("#sony-mobile-global-defines").data("domain");f.fn.getCSS("//"+c+"/wp-content/themes/semc-main/css/cart-e6248e0e31a2ea8631b60a9fa26c3b4f.css");require(["accounting","json2"],function(g){window.accounting=g;require(["epshop"])})}}else{var d=f("#cart_container_bnw").data("site-id");b=f.cookie("bnw_items_"+d);if(b===null||b==="[]"||b===""){f(".cart-checkout-empty").css({display:"block"})}else{c=f("#sony-mobile-global-defines").data("domain");f.fn.getCSS("//"+c+"/wp-content/themes/semc-main/css/cart-e6248e0e31a2ea8631b60a9fa26c3b4f.css");require(["accounting","json2"],function(g){window.accounting=g;require(["eshop"])})}}});define("analytics",["jquery","underscore"],function(f,k){var e={},j=[],h=[],b="",g=0,c=false,d=["sonymobile.com","www-stage.sonymobile.com","www-dev.sonymobile.com","shop.sonymobile.com","api-dev.sonymobile.com","api-demo.sonymobile.com","api-stage.sonymobile.com","api.sonymobile.com",window.location.hostname];e.init=function(m,i){if(typeof i.errorType!=="undefined"){require(["json2"],function(){_gaq.push(["_trackPageview","/"+i.errorType+".html?page="+document.location.pathname+document.location.search+"&from="+document.referrer])})}};e.trackEvent=function(t,p,s){var n="",o="",q="",r="",m=f("body").data("site-id");if(t===undefined){return}n=t.module;if(p===undefined){o=""}else{o=m.toLocaleUpperCase()+"_"+p}q=f(t.el).data("id");if(q===undefined){q=f(t.el).parents(".module").data("id");r=q+" --- "+s}else{if(q===""){r=s}else{r=q+" --- "+s}}var i=["_trackEvent",n,o,r];_gaq.push(i)};function l(i){var m="";if(!i){return false}try{m=i.match(/:\/\/(www\.)?(.[^/:]+)/)[2]}catch(n){m=window.location.hostname}return m}function a(i){var m=l(i);if(i===""||i===undefined||i===null||(-1!==k.indexOf(d,m))){return false}else{return true}}f("a").each(function(i){if(c){f(this).css("border","1px solid blue")}j.push(this);b=f(this).attr("href");if(a(b)){h.push(this);f(this).click(function(){if(c){console.log("------------------------------- start: nya external link tracking -------------------------------")}_gaq.push(["_trackEvent","outbound-article",f(this).attr("href")]);if(c){console.log("------------------------------- end: nya external link tracking -------------------------------")}});if(c){f(this).css("border","1px solid red")}}});if(c){console.log(window.location+" has \ntotal links: "+j.length+" \nexternal links: "+h.length);for(g=0;g0),f=l.animation==="fade",k=l.asNavFor!=="",e={};a.data(d,"flexslider",b);e={init:function(){b.animating=false;b.currentSlide=l.startAt;b.animatingTo=b.currentSlide;b.atEnd=(b.currentSlide===0||b.currentSlide===b.last);b.containerSelector=l.selector.substr(0,l.selector.search(" "));b.slides=a(l.selector,b);b.container=a(b.containerSelector,b);b.count=b.slides.length;b.syncExists=a(l.sync).length>0;if(l.animation==="slide"){l.animation="swing"}b.prop=(h)?"top":"marginLeft";b.args={};b.manualPause=false;b.transitions=!l.video&&!f&&l.useCSS&&(function(){var q=document.createElement("div"),p=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var o in p){if(q.style[p[o]]!==undefined){b.pfx=p[o].replace("Perspective","").toLowerCase();b.prop="-"+b.pfx+"-transform";return true}}return false}());if(l.controlsContainer!==""){b.controlsContainer=a(l.controlsContainer).length>0&&a(l.controlsContainer)}if(l.manualControls!==""){b.manualControls=a(l.manualControls).length>0&&a(l.manualControls)}if(l.randomize){b.slides.sort(function(){return(Math.round(Math.random())-0.5)});b.container.empty().append(b.slides)}b.doMath();if(k){e.asNav.setup()}b.setup("init");if(l.controlNav){e.controlNav.setup()}if(l.directionNav){e.directionNav.setup()}if(l.keyboard&&(a(b.containerSelector).length===1||l.multipleKeyboard)){a(document).bind("keyup",function(p){var o=p.keyCode;if(!b.animating&&(o===39||o===37)){var q=(o===39)?b.getTarget("next"):(o===37)?b.getTarget("prev"):false;b.flexAnimate(q,l.pauseOnAction)}})}if(l.mousewheel){b.bind("mousewheel",function(q,s,p,o){q.preventDefault();var r=(s<0)?b.getTarget("next"):b.getTarget("prev");b.flexAnimate(r,l.pauseOnAction)})}if(l.pausePlay){e.pausePlay.setup()}if(l.slideshow){if(l.pauseOnHover){b.hover(function(){if(!b.manualPlay&&!b.manualPause){b.pause()}},function(){if(!b.manualPause&&!b.manualPlay){b.play()}})}(l.initDelay>0)?setTimeout(b.play,l.initDelay):b.play()}if(i&&l.touch){e.touch()}if(!f||(f&&l.smoothHeight)){a(window).bind("resize focus",e.resize)}setTimeout(function(){l.start(b)},200)},asNav:{setup:function(){b.asNav=true;b.animatingTo=Math.floor(b.currentSlide/b.move);b.currentItem=b.currentSlide;b.slides.removeClass(g+"active-slide").eq(b.currentItem).addClass(g+"active-slide");b.slides.click(function(q){q.preventDefault();var p=a(this),o=p.index();if(!a(l.asNavFor).data("flexslider").animating&&!p.hasClass("active")){b.direction=(b.currentItem');if(b.pagingCount>1){for(var p=0;p':""+o+"";b.controlNavScaffold.append("
  • "+r+"
  • ");o++}}(b.controlsContainer)?a(b.controlsContainer).append(b.controlNavScaffold):b.append(b.controlNavScaffold);e.controlNav.set();e.controlNav.active();b.controlNavScaffold.delegate("a, img",c,function(s){s.preventDefault();var u=a(this),t=b.controlNav.index(u);if(!u.hasClass(g+"active")){b.direction=(t>b.currentSlide)?"next":"prev";b.flexAnimate(t,l.pauseOnAction)}});if(i){b.controlNavScaffold.delegate("a","click touchstart",function(s){s.preventDefault()})}},setupManual:function(){b.controlNav=b.manualControls;e.controlNav.active();b.controlNav.live(c,function(o){o.preventDefault();var q=a(this),p=b.controlNav.index(q);if(!q.hasClass(g+"active")){(p>b.currentSlide)?b.direction="next":b.direction="prev";b.flexAnimate(p,l.pauseOnAction)}});if(i){b.controlNav.live("click touchstart",function(o){o.preventDefault()})}},set:function(){var o=(l.controlNav==="thumbnails")?"img":"a";b.controlNav=a("."+g+"control-nav li "+o,(b.controlsContainer)?b.controlsContainer:b)},active:function(){b.controlNav.removeClass(g+"active").eq(b.animatingTo).addClass(g+"active")},update:function(o,p){if(b.pagingCount>1&&o==="add"){b.controlNavScaffold.append(a("
  • "+b.count+"
  • "))}else{if(b.pagingCount===1){b.controlNavScaffold.find("li").remove()}else{b.controlNav.eq(p).closest("li").remove()}}e.controlNav.set();(b.pagingCount>1&&b.pagingCount!==b.controlNav.length)?b.update(p,o):e.controlNav.active()}},directionNav:{setup:function(){var o=a('");if(b.controlsContainer){a(b.controlsContainer).append(o);b.directionNav=a("."+g+"direction-nav li a",b.controlsContainer)}else{b.append(o);b.directionNav=a("."+g+"direction-nav li a",b)}e.directionNav.update();b.directionNav.bind(c,function(p){p.preventDefault();var q=(a(this).hasClass(g+"next"))?b.getTarget("next"):b.getTarget("prev");b.flexAnimate(q,l.pauseOnAction)});if(i){b.directionNav.bind("click touchstart",function(p){p.preventDefault()})}},update:function(){var o=g+"disabled";if(b.pagingCount===1){b.directionNav.addClass(o)}else{if(!l.animationLoop){if(b.animatingTo===0){b.directionNav.removeClass(o).filter("."+g+"prev").addClass(o)}else{if(b.animatingTo===b.last){b.directionNav.removeClass(o).filter("."+g+"next").addClass(o)}else{b.directionNav.removeClass(o)}}}else{b.directionNav.removeClass(o)}}}},pausePlay:{setup:function(){var o=a('
    ');if(b.controlsContainer){b.controlsContainer.append(o);b.pausePlay=a("."+g+"pauseplay a",b.controlsContainer)}else{b.append(o);b.pausePlay=a("."+g+"pauseplay a",b)}e.pausePlay.update((l.slideshow)?g+"pause":g+"play");b.pausePlay.bind(c,function(p){p.preventDefault();if(a(this).hasClass(g+"pause")){b.manualPause=true;b.manualPlay=false;b.pause()}else{b.manualPause=false;b.manualPlay=true;b.play()}});if(i){b.pausePlay.bind("click touchstart",function(p){p.preventDefault()})}},update:function(o){(o==="play")?b.pausePlay.removeClass(g+"pause").addClass(g+"play").text(l.playText):b.pausePlay.removeClass(g+"play").addClass(g+"pause").text(l.pauseText)}},touch:function(){var t,r,p,u,x,v,s=false;d.addEventListener("touchstart",q,false);function q(y){if(b.animating){y.preventDefault()}else{if(y.touches.length===1){b.pause();u=(h)?b.h:b.w;v=Number(new Date());p=(m&&j&&b.animatingTo===b.last)?0:(m&&j)?b.limit-(((b.itemW+l.itemMargin)*b.move)*b.animatingTo):(m&&b.currentSlide===b.last)?b.limit:(m)?((b.itemW+l.itemMargin)*b.move)*b.currentSlide:(j)?(b.last-b.currentSlide+b.cloneOffset)*u:(b.currentSlide+b.cloneOffset)*u;t=(h)?y.touches[0].pageY:y.touches[0].pageX;r=(h)?y.touches[0].pageX:y.touches[0].pageY;d.addEventListener("touchmove",o,false);d.addEventListener("touchend",w,false)}}}function o(y){x=(h)?t-y.touches[0].pageY:t-y.touches[0].pageX;s=(h)?(Math.abs(x)500){y.preventDefault();if(!f&&b.transitions){if(!l.animationLoop){x=x/((b.currentSlide===0&&x<0||b.currentSlide===b.last&&x>0)?(Math.abs(x)/u+2):1)}b.setProps(p+x,"setTouch")}}}function w(A){d.removeEventListener("touchmove",o,false);if(b.animatingTo===b.currentSlide&&!s&&!(x===null)){var z=(j)?-x:x,y=(z>0)?b.getTarget("next"):b.getTarget("prev");if(b.canAdvance(y)&&(Number(new Date())-v<550&&Math.abs(z)>50||Math.abs(z)>u/2)){b.flexAnimate(y,l.pauseOnAction)}else{if(!f){b.flexAnimate(b.currentSlide,l.pauseOnAction,true)}}}d.removeEventListener("touchend",w,false);t=null;r=null;x=null;p=null}},resize:function(){if(!b.animating&&b.is(":visible")){if(!m){b.doMath()}if(f){e.smoothHeight()}else{if(m){b.slides.width(b.computedW);b.update(b.pagingCount);b.setProps()}else{if(h){b.viewport.height(b.h);b.setProps(b.h,"setTotal")}else{if(l.smoothHeight){e.smoothHeight()}b.newSlides.width(b.computedW);b.setProps(b.computedW,"setTotal")}}}}},smoothHeight:function(o){if(!h||f){var p=(f)?b:b.viewport;(o)?p.animate({height:b.slides.eq(b.animatingTo).height()},o):p.height(b.slides.eq(b.animatingTo).height())}},sync:function(o){var q=a(l.sync).data("flexslider"),p=b.animatingTo;switch(o){case"animate":q.flexAnimate(p,l.pauseOnAction,false,true);break;case"play":if(!q.playing&&!q.asNav){q.play()}break;case"pause":q.pause();break}}};b.flexAnimate=function(w,x,q,s,t){if(k&&b.pagingCount===1){b.direction=(b.currentItemb.w)?l.itemMargin*2:l.itemMargin;o=((b.itemW+u)*b.move)*b.animatingTo;r=(o>b.limit&&b.visible!==1)?b.limit:o}else{if(b.currentSlide===0&&w===b.count-1&&l.animationLoop&&b.direction!=="next"){r=(j)?(b.count+b.cloneOffset)*v:0}else{if(b.currentSlide===b.last&&w===0&&l.animationLoop&&b.direction!=="prev"){r=(j)?0:(b.count+1)*v}else{r=(j)?((b.count-1)-w+b.cloneOffset)*v:(w+b.cloneOffset)*v}}}b.setProps(r,"",l.animationSpeed);if(b.transitions){if(!l.animationLoop||!b.atEnd){b.animating=false;b.currentSlide=b.animatingTo}b.container.unbind("webkitTransitionEnd transitionend");b.container.bind("webkitTransitionEnd transitionend",function(){b.wrapup(v)})}else{b.container.animate(b.args,l.animationSpeed,l.easing,function(){b.wrapup(v)})}}else{if(!i){b.slides.eq(b.currentSlide).fadeOut(l.animationSpeed,l.easing);b.slides.eq(w).fadeIn(l.animationSpeed,l.easing,b.wrapup)}else{b.slides.eq(b.currentSlide).css({opacity:0,zIndex:1});b.slides.eq(w).css({opacity:1,zIndex:2});b.animating=false;b.currentSlide=b.animatingTo}}if(l.smoothHeight){e.smoothHeight(l.animationSpeed)}}};b.wrapup=function(o){if(!f&&!m){if(b.currentSlide===0&&b.animatingTo===b.last&&l.animationLoop){b.setProps(o,"jumpEnd")}else{if(b.currentSlide===b.last&&b.animatingTo===0&&l.animationLoop){b.setProps(o,"jumpStart")}}}b.animating=false;b.currentSlide=b.animatingTo;l.after(b)};b.animateSlides=function(){if(!b.animating){b.flexAnimate(b.getTarget("next"))}};b.pause=function(){clearInterval(b.animatedSlides);b.playing=false;if(l.pausePlay){e.pausePlay.update("play")}if(b.syncExists){e.sync("pause")}};b.play=function(){b.animatedSlides=setInterval(b.animateSlides,l.slideshowSpeed);b.playing=true;if(l.pausePlay){e.pausePlay.update("pause")}if(b.syncExists){e.sync("play")}};b.canAdvance=function(q,o){var p=(k)?b.pagingCount-1:b.last;return(o)?true:(k&&b.currentItem===b.count-1&&q===0&&b.direction==="prev")?true:(k&&b.currentItem===0&&q===b.pagingCount-1&&b.direction!=="next")?false:(q===b.currentSlide&&!k)?false:(l.animationLoop)?true:(b.atEnd&&b.currentSlide===0&&q===p&&b.direction!=="next")?false:(b.atEnd&&b.currentSlide===p&&q===0&&b.direction==="next")?false:true};b.getTarget=function(o){b.direction=o;if(o==="next"){return(b.currentSlide===b.last)?0:b.currentSlide+1}else{return(b.currentSlide===0)?b.last:b.currentSlide-1}};b.setProps=function(r,o,p){var q=(function(){var s=(r)?r:((b.itemW+l.itemMargin)*b.move)*b.animatingTo,t=(function(){if(m){return(o==="setTouch")?r:(j&&b.animatingTo===b.last)?0:(j)?b.limit-(((b.itemW+l.itemMargin)*b.move)*b.animatingTo):(b.animatingTo===b.last)?b.limit:s}else{switch(o){case"setTotal":return(j)?((b.count-1)-b.currentSlide+b.cloneOffset)*r:(b.currentSlide+b.cloneOffset)*r;case"setTouch":return(j)?r:r;case"jumpEnd":return(j)?r:b.count*r;case"jumpStart":return(j)?b.count*r:r;default:return r}}}());return(t*-1)+"px"}());if(b.transitions){q=(h)?"translate3d(0,"+q+",0)":"translate3d("+q+",0,0)";p=(p!==undefined)?(p/1000)+"s":"0s";b.container.css("-"+b.pfx+"-transition-duration",p)}b.args[b.prop]=q;if(b.transitions||p===undefined){b.container.css(b.args)}};b.setup=function(p){if(!f){var q,o;if(p==="init"){b.viewport=a('
    ').css({overflow:"hidden",position:"relative"}).appendTo(b).append(b.container);b.cloneCount=0;b.cloneOffset=0;if(j){o=a.makeArray(b.slides).reverse();b.slides=a(o);b.container.empty().append(b.slides)}}if(l.animationLoop&&!m){b.cloneCount=2;b.cloneOffset=1;if(p!=="init"){b.container.find(".clone").remove()}b.container.append(b.slides.first().clone().addClass("clone")).prepend(b.slides.last().clone().addClass("clone"))}b.newSlides=a(l.selector,b);q=(j)?b.count-1-b.currentSlide+b.cloneOffset:b.currentSlide+b.cloneOffset;if(h&&!m){b.container.height((b.count+b.cloneCount)*200+"%").css("position","absolute").width("100%");setTimeout(function(){b.newSlides.css({display:"block"});b.doMath();b.viewport.height(b.h);b.setProps(q*b.h,"init")},(p==="init")?100:0)}else{b.container.width((b.count+b.cloneCount)*200+"%");b.setProps(q*b.computedW,"init");setTimeout(function(){b.doMath();b.newSlides.css({width:b.computedW,"float":"left",display:"block"});if(l.smoothHeight){e.smoothHeight()}},(p==="init")?100:0)}}else{b.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"});if(p==="init"){if(!i){b.slides.eq(b.currentSlide).fadeIn(l.animationSpeed,l.easing)}else{b.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+l.animationSpeed/1000+"s ease",zIndex:1}).eq(b.currentSlide).css({opacity:1,zIndex:2})}}if(l.smoothHeight){e.smoothHeight()}}if(!m){b.slides.removeClass(g+"active-slide").eq(b.currentSlide).addClass(g+"active-slide")}};b.doMath=function(){var o=b.slides.first(),r=l.itemMargin,p=l.minItems,q=l.maxItems;b.w=b.width();b.h=o.height();b.boxPadding=o.outerWidth()-o.width();if(m){b.itemT=l.itemWidth+r;b.minW=(p)?p*b.itemT:b.w;b.maxW=(q)?q*b.itemT:b.w;b.itemW=(b.minW>b.w)?(b.w-(r*p))/p:(b.maxWb.w)?b.w:l.itemWidth;b.visible=Math.floor(b.w/(b.itemW+r));b.move=(l.move>0&&l.moveb.w)?((b.itemW+(r*2))*b.count)-b.w-r:((b.itemW+r)*b.count)-b.w-r}else{b.itemW=b.w;b.pagingCount=b.count;b.last=b.count-1}b.computedW=b.itemW-b.boxPadding};b.update=function(p,o){b.doMath();if(!m){if(pb.controlNav.length){e.controlNav.update("add")}else{if((o==="remove"&&!m)||b.pagingCountb.last){b.currentSlide-=1;b.animatingTo-=1}e.controlNav.update("remove",b.last)}}}if(l.directionNav){e.directionNav.update()}};b.addSlide=function(o,q){var p=a(o);b.count+=1;b.last=b.count-1;if(h&&j){(q!==undefined)?b.slides.eq(b.count-q).after(p):b.container.prepend(p)}else{(q!==undefined)?b.slides.eq(q).before(p):b.container.append(p)}b.update(q,"add");b.slides=a(l.selector+":not(.clone)",b);b.setup();l.added(b)};b.removeSlide=function(o){var p=(isNaN(o))?b.slides.index(a(o)):o;b.count-=1;b.last=b.count-1;if(isNaN(o)){a(o,b.slides).remove()}else{(h&&j)?b.slides.eq(b.last).remove():b.slides.eq(o).remove()}b.doMath();b.update(p,"remove");b.slides=a(l.selector+":not(.clone)",b);b.setup();l.removed(b)};e.init()};a.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:false,animationLoop:true,smoothHeight:false,startAt:0,slideshow:true,slideshowSpeed:7000,animationSpeed:600,initDelay:0,randomize:false,pauseOnAction:true,pauseOnHover:false,useCSS:true,touch:true,video:false,controlNav:true,directionNav:true,prevText:"Previous",nextText:"Next",keyboard:true,multipleKeyboard:false,mousewheel:false,pausePlay:false,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:0,maxItems:0,move:0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){}};a.fn.flexslider=function(b){if(b===undefined){b={}}if(typeof b==="object"){return this.each(function(){var f=a(this),d=(b.selector)?b.selector:".slides > li",e=f.find(d);if(e.length===1){e.fadeIn(400);if(b.start){b.start(f)}}else{if(f.data("flexslider")===undefined){new a.flexslider(this,b)}}})}else{var c=a(this).data("flexslider");switch(b){case"play":c.play();break;case"pause":c.pause();break;case"next":c.flexAnimate(c.getTarget("next"),true);break;case"prev":case"previous":c.flexAnimate(c.getTarget("prev"),true);break;default:if(typeof b==="number"){c.flexAnimate(b,true)}}}};return a});define("slider",["jquery","flexslider","lazyload","libs/foresight","enquire","easing","bagman"],function(d,e,c,a,b){return{init:function(j,i){var k,m,f,g,h={},l={},n;g=j;if(g.length<1){return null}h={startAt:k,animation:"slide",easing:"swing",direction:"horizontal",selector:"ul.slides > li",slideshowSpeed:6000,slideshow:true,animationSpeed:300,directionNav:false,controlNav:true,smoothHeight:true,initDelay:500,pauseOnHover:true,useCSS:false,start:function(o){var q={},p;a.force(d(j),true);b.register("screen and (max-width:600px)",{match:function(){o.find("div."+d.flexslider.defaults.namespace+"viewport").css("height","auto");o.find(".banner-overlay-wrapper img").css("height","auto")},unmatch:function(){var r=o.find(".banner-overlay-wrapper img").height();o.find(".banner-overlay-wrapper img.wp-post-image").css("height",r+"px")}})},before:function(o){}};h=d.extend(h,i);g.flexslider(h);return this}}});define("responsebox",["jquery","cookie"],function(a){a(function(){jQuery.fn.slideFadeToggle=function(g,i,h){return this.animate({opacity:"toggle",height:"toggle"},g,i,h)};function b(i,h,j){var k=null,g;if(k===null){k=window.open(i,h,j)}else{k.document.location=i}if(!k.opener){k.opener=g}k.focus();return k}function f(g){if(a.cookie("do_survey")===null||g===true){a(".responsebox:first").delay(1000).slideFadeToggle("slow")}a(".responsebox .buttons .yes").click(function(){_gaq.push(["_trackEvent","site-survey-intercept","Yes response"]);a.cookie("do_survey","yes",{expires:180,path:"/"});var h=a(".fullbleed-response").data("surveylink").link;console.log(h);b(h,"sonysurvey","height=900, width=1200, location=no, toolbar=no, menubar=yes, resizeable=yes");a(this).parents(".responsebox").slideFadeToggle("slow")});a(".responsebox .buttons .no").click(function(){_gaq.push(["_trackEvent","site-survey-intercept","No response"]);a.cookie("do_survey","no",{expires:180,path:"/"});a(this).parents(".responsebox").slideFadeToggle("slow")})}function e(){var i=new Date().getTime(),j=180,m=20,h=["account.sonymobile.com","shop.sonymobile.com","software.sonymobile.com"],g=a(".fullbleed-response").data("interceptrate"),l="1000000",k=Math.floor(Math.random()*l);if(k');f.update()}}q.find(n).click(function(){if(!b){r=k.find(".row").outerHeight(true);var v=c.getInstances(h(s),"sonyplayer")[0],u="";v.update();v.hideOverlay(true);u=h(s).outerHeight();k.find(".wrapper").fadeOut(300);h(k).delay(0).animate({height:u},300,"easeOutQuint",function(){s.fadeIn(300,function(){if(v!==undefined){v.play()}})})}return false});j.click(function(){var u=c.getInstances(h(s,"sonyplayer"))[0];if(u.pause!==undefined){u.pause()}s.fadeOut(300,function(){k.animate({height:r},500,"easeOutQuint");k.find(".wrapper").delay(200).fadeIn(300)});return false});if(!b){h(s).appendTo(q)}};return g});define("hotspots",["jquery","libs/foresight","enquire"],function(e,b,c){var d={},a=false;d.init=function(i){var o=i.find(".background-image"),p=o.find("img"),g={width:15,height:20},q=60;function k(r,t){if(r.length>0&&r.get(0).getContext){r.attr({width:g.width,height:g.height});r.css({left:t.left+"px",top:t.top+"px"});var s=r.get(0).getContext("2d");if(s){s.fillStyle="#FFF";s.lineWidth=0;s.beginPath();if(t.left<0){s.moveTo(g.width,0);s.lineTo(g.width,g.height);s.lineTo(0,g.height/2);s.lineTo(g.width,0)}else{s.moveTo(0,0);s.lineTo(0,g.height);s.lineTo(g.width,g.height/2);s.lineTo(0,0)}s.fill();s.closePath()}}}function f(r){if(a){return}r.each(function(){var B=r.find(".indicator"),x={left:0,top:0},s=parseInt(r.outerWidth(),10),A=r.outerHeight(),t=parseInt(r.parent().find(".hotspot-clickable").outerWidth(),10),u=parseInt(p.css("height"),10),z=parseInt(r.parent()[0].style.left,10),w=parseInt(r.parent()[0].style.top,10),v="",y="";if(z<50){v=t/2+g.width-1+"px";r.css({left:v});x.left="-"+g.width}else{v=s+t/2+g.width-6+"px";r.css({left:"-"+v});x.left=s-2}if(w<50||uo.height()){i.css({height:s.height()})}s.fadeIn(10)})}else{o.css({display:""});f(s);s.fadeIn();i.height("")}h();t.addClass("active");t.find(".not-clicked-image").hide();t.find(".clicked-image").show()}function l(){if(a){i.find(".background-image img").css({height:"auto"})}else{var r=parseInt(i.find(".background-image.retina-img img").data("large-height")/2,10)+"px";i.find(".background-image.retina-img img").css({height:r})}if(i.hasClass("show-content")){m()}else{j()}}h();c.register("screen and (max-width:600px)",{match:function(){a=true;l()},unmatch:function(){a=false;l()}});b.force(i.find(".clicked-image"))};return d});define("scrollto",["jquery","easing"],function(a){ /*! * jQuery.ScrollTo * Copyright (c) 2007-2012 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com * Dual licensed under MIT and GPL. * Date: 22/08/2012 * * @projectDescription Easy element scrolling using jQuery. * http://flesler.blogspot.com/2007/10/jqueryscrollto.html * @author Ariel Flesler * @version 1.4.3 * * @id jQuery.scrollTo * @id jQuery.fn.scrollTo * @param {String, Number, DOMElement, jQuery, Object} target Where to scroll the matched elements. * The different options for target are: * - A number position (will be applied to all axes). * - A string position ('44', '100px', '+=90', etc ) will be applied to all axes * - A jQuery/DOM element ( logically, child of the element to scroll ) * - A string selector, that will be relative to the element to scroll ( 'li:eq(2)', etc ) * - A hash { top:x, left:y }, x and y can be any kind of number/string like above. * - A percentage of the container's dimension/s, for example: 50% to go to the middle. * - The string 'max' for go-to-end. * @param {Number, Function} duration The OVERALL length of the animation, this argument can be the settings object instead. * @param {Object,Function} settings Optional set of settings or the onAfter callback. * @option {String} axis Which axis must be scrolled, use 'x', 'y', 'xy' or 'yx'. * @option {Number, Function} duration The OVERALL length of the animation. * @option {String} easing The easing method for the animation. * @option {Boolean} margin If true, the margin of the target element will be deducted from the final position. * @option {Object, Number} offset Add/deduct from the end position. One number for both axes or { top:x, left:y }. * @option {Object, Number} over Add/deduct the height/width multiplied by 'over', can be { top:x, left:y } when using both axes. * @option {Boolean} queue If true, and both axis are given, the 2nd axis will only be animated after the first one ends. * @option {Function} onAfter Function to be called after the scrolling ends. * @option {Function} onAfterFirst If queuing is activated, this function will be called after the first scrolling ends. * @return {jQuery} Returns the same jQuery object, for chaining. * * @desc Scroll to a fixed position * @example $('div').scrollTo( 340 ); * * @desc Scroll relatively to the actual position * @example $('div').scrollTo( '+=340px', { axis:'y' } ); * * @desc Scroll using a selector (relative to the scrolled element) * @example $('div').scrollTo( 'p.paragraph:eq(2)', 500, { easing:'swing', queue:true, axis:'xy' } ); * * @desc Scroll to a DOM element (same for jQuery object) * @example var second_child = document.getElementById('container').firstChild.nextSibling; * $('#container').scrollTo( second_child, { duration:500, axis:'x', onAfter:function(){ * alert('scrolled!!'); * }}); * * @desc Scroll on both axes, to different values * @example $('div').scrollTo( { top: 300, left:'+=200' }, { axis:'xy', offset:-20 } ); */ (function(d){var b=d.scrollTo=function(g,f,e){d(window).scrollTo(g,f,e)};b.defaults={axis:"xy",duration:parseFloat(d.fn.jquery)>=1.3?0:1,limit:true};b.window=function(e){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var f=this,e=!f.nodeName||d.inArray(f.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!e){return f}var g=(f.contentWindow||f).document||f.ownerDocument||f;return/webkit/i.test(navigator.userAgent)||g.compatMode=="BackCompat"?g.body:g.documentElement})};d.fn.scrollTo=function(g,f,e){if(typeof f=="object"){e=f;f=0}if(typeof e=="function"){e={onAfter:e}}if(g=="max"){g=9000000000}e=d.extend({},b.defaults,e);f=f||e.duration;e.queue=e.queue&&e.axis.length>1;if(e.queue){f/=2}e.offset=c(e.offset);e.over=c(e.over);return this._scrollable().each(function(){if(!g){return}var m=this,k=d(m),l=g,j,h={},n=k.is("html,body");switch(typeof l){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(l)){l=c(l);break}l=d(l,this);if(!l.length){return}case"object":if(l.is||l.style){j=(l=d(l)).offset()}}d.each(e.axis.split(""),function(r,s){var t=s=="x"?"Left":"Top",v=t.toLowerCase(),q="scroll"+t,p=m[q],o=b.max(m,s);if(j){h[q]=j[v]+(n?0:p-k.offset()[v]);if(e.margin){h[q]-=parseInt(l.css("margin"+t))||0;h[q]-=parseInt(l.css("border"+t+"Width"))||0}h[q]+=e.offset[v]||0;if(e.over[v]){h[q]+=l[s=="x"?"width":"height"]()*e.over[v]}}else{var u=l[v];h[q]=u.slice&&u.slice(-1)=="%"?parseFloat(u)/100*o:u}if(e.limit&&/^\d+$/.test(h[q])){h[q]=h[q]<=0?0:Math.min(h[q],o)}if(!r&&e.queue){if(p!=h[q]){i(e.onAfterFirst)}delete h[q]}});i(e.onAfter);function i(o){k.animate(h,f,e.easing,o&&function(){o.call(this,g,e)})}}).end()};b.max=function(k,j){var i=j=="x"?"Width":"Height",f="scroll"+i;if(!d(k).is("html,body")){return k[f]-d(k)[i.toLowerCase()]()}var h="client"+i,g=k.ownerDocument.documentElement,e=k.ownerDocument.body;return Math.max(g[f],e[f])-Math.min(g[h],e[h])};function c(e){return typeof e=="object"?e:{top:e,left:e}}})(a)});define("divider",["jquery","analytics","enquire","lazyload"],function(d,b,a){var c={};c.firstTime=true;c.init=function(g){var h=this,i=false,j=true;var e=d("div.wrapper",g),f=function(l){var m=d("div.image-center img, div.image-center .image-bg",l);if(m.size()>0){var n=d(".line-left",l),o=d(".line-right",l),k=function(){var p=(100-Math.round((m.width()*100)/l.width()))/2;p=p-2;n.width(p.toString()+"%");o.width(p.toString()+"%")};if(m.is("img")){m.one("load",k).attr("src",m.data("original")).removeAttr("data-original").addClass("loaded").show()}else{k()}}};a.register("screen and (max-width:600px)",{match:function(){f(e)}})};return c});define("appear",["jquery","lazyload","enquire"],function(f,d,c){var b=false,e=f(".appear-fade-in");function a(){f(".appear-fade-in:not(.animated) img:not(.animated), .appear-move-in:not(.animated)").filter(":in-viewport").each(function(){var k=300,m=f(this),j=m.outerHeight(),n=f(window).height(),g=m.offset().top+j,l=f(window).scrollTop()+n,h,i;if((g-j/2)0){i=h}m.show().css("visibility","visible").addClass("animated").css("opacity",0);if(m.hasClass("appear-move-in")){m.css("left",50)}m.delay(k*i).animate({opacity:1,left:0},700)}});f(".appear-scroll-fade img").filter(":in-viewport").each(function(){var h=300,m=f(this),j=m.outerHeight(),g=f(window).height(),k=m.offset().top,p=k+j/2,o=f(window).scrollTop()+g,n=o-g/2,l=g/2,i=0;if((p>o-g)&&(k0){c.register("screen and (max-width:600px)",{match:function(){b=true}});if(!b){f(window).bind("scroll",function(){a()})}else{f(".appear-fade-in").removeClass("appear-fade-in");f(".appear-move-in").removeClass("appear-move-in");f(".appear-scroll-fade").removeClass("appear-scroll-fade")}f(".appear-fade-in:not(.animated) img:not(.animated), .appear-scroll-fade img, .appear-move-in:not(.animated)").css("visibility","visible").css("opacity",0);a()}});define("social",["jquery","analytics"],function(b){var a={};a.init=function(A){var i=a,j=b(A).find(".share_facebook"),m=b(A).find(".share_twitter"),v=b(A).find(".share_googleplus"),p=b(A).find(".share_pinterest"),z=b(A).find(".share_vkontakt"),s=b(A).find(".share_sinaweibo"),u=b(A).find(".share_tencentweibo"),w=b(A).find(".share_qzone"),t=b("meta[name=description]").attr("content"),g=b("html").attr("lang"),C=g,B=document.title,l=b(location).attr("href"),f="",c="",e="",n="",y="",k="",d="",r="",q="",o="",x="",h="";t=encodeURIComponent(t);C=C.substr(0,2);B=encodeURIComponent(B);l=l.replace("www-dev","www");l=l.replace("www-demo","www");l=l.replace("www-stage","www");l=l.replace("https","http");l=encodeURIComponent(l);f=b(".fast-social").data("selected-image");if(""===f){f=b('meta[property="og:image"]').attr("content")}if(""!==f&&undefined!==f){c="&picture="+f;c=c.replace("-dev","");c=c.replace("-demo","");c=c.replace("-stage","");c=c.replace("https","http");e=true}else{c="";e=false}b(j).click(function(){n="http://www.sonymobile.com/global-en/wp-content/themes/semc-main/close-popup.html";y="https://www.facebook.com/dialog/feed?app_id=104230589647735&link="+l+"&name="+B+"&description="+t+"&display=popup&redirect_uri="+n+c;i.popupwindow(y,"Facebook","580","400");return false});b(m).click(function(){k="https://twitter.com/intent/tweet?lang="+C+"&text="+B+"&url="+l;i.popupwindow(k,"Twitter","550","260");return false});b(v).click(function(){d="https://plus.google.com/share?url="+l+"&hl="+g;i.popupwindow(d,"GooglePlus","600","600");return false});b(z).click(function(){q="http://vkontakte.ru/share.php?url="+l;i.popupwindow(q,"vkontakt","600","400");return false});b(s).click(function(){o="http://service.weibo.com/share/share.php?url="+l+"&title="+B+"&language="+g;i.popupwindow(o,"sinaweibo","600","400");return false});b(w).click(function(){x="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url="+l+"&title="+B+"&pics="+f;i.popupwindow(x,"qzone","600","400");return false});b(u).click(function(){h="http://v.t.qq.com/share/share.php?url="+l+"&title="+B;i.popupwindow(h,"tencentweibo","600","400");return false});if(e){b(p).addClass("show");r="http://pinterest.com/pin/create/button/?url="+l+"&media="+f+"&description="+t;b(p).on("click",function(){i.popupwindow(r,"Pinterest","600","600")})}i.analytics(A)};a.popupwindow=function(d,i,c,e){var g,f;g=(screen.width/2)-(c/2);f=(screen.height/2)-(e/2);return window.open(d,i,"scrollbars=yes, resizable=yes, width="+c+", height="+e+", top="+f+", left="+g+" ")};a.analytics=function(g){var k=b(g).find(".share_facebook"),h=b(g).find(".share_twitter"),c=b(g).find(".share_googleplus"),j=b(g).find(".share_pinterest"),f=b(g).find(".share_sinaweibo"),e=b(g).find(".share_tencentweibo"),i=b(g).find(".share_qzone"),d=b(location).attr("href");b(k).bind("click",function(l){_gaq.push(["_trackSocial","facebook","share",d])});b(h).bind("click",function(l){_gaq.push(["_trackSocial","twitter","tweet",d])});b(c).bind("click",function(l){_gaq.push(["_trackSocial","Google","share",d])});b(j).bind("click",function(l){_gaq.push(["_trackSocial","Pinterest","pinned",d])});b(f).bind("click",function(l){_gaq.push(["_trackSocial","Weibo","share",d])});b(e).bind("click",function(l){_gaq.push(["_trackSocial","Tencent","share",d])});b(i).bind("click",function(l){_gaq.push(["_trackSocial","Qzone","share",d])})};return a});define("peptabs",["jquery","enquire"],function(c,a){var b={};b.init=function(d){a.register("screen and (max-width:600px)",{match:function(){c(".peptabs-wrapper .wrapper").insertAfter(".paptabs-container")},unmatch:function(){c(".paptabs-container").insertAfter(".peptabs-wrapper .wrapper")},})};return b});define("peplist",["jquery"],function(b){var a={};a.init=function(){if(b("html").is(".ie6, .ie7, .ie8, .ie9")){this.el.find("li:nth-child(4n)").after('
  • ')}};return a});define("polyfills",["jquery","enquire","underscore"],function(c,a,b){if(!Array.prototype.map){Array.prototype.map=function(e,d){return b.map(this,e,d)}}if(!Array.prototype.filter){Array.prototype.filter=function(e,d){return b.filter(this,e,d)}}if(!Array.isArray){Array.isArray=function(e){var d;d=e instanceof Array;return d}}});(function(a){if("function"==typeof bootstrap){bootstrap("jade",a)}else{if("object"==typeof exports){module.exports=a()}else{if("function"==typeof define&&define.amd){define("jade",[],a)}else{if("undefined"!=typeof ses){if(!ses.ok()){return}ses.makeJade=a}else{"undefined"!=typeof window?window.jade=a():global.jade=a()}}}}})(function(){var g,a,d,c,b;return(function f(h,m,k){function j(q,n){if(!m[q]){if(!h[q]){var i=typeof require=="function"&&require;if(!n&&i){return i(q,!0)}if(e){return e(q,!0)}throw new Error("Cannot find module '"+q+"'")}var p=m[q]={exports:{}};h[q][0].call(p.exports,function(o){var r=h[q][1][o];return j(r?r:o)},p,p.exports,f,h,m,k)}return m[q].exports}var e=typeof require=="function"&&require;for(var l=0;l * MIT Licensed */ if(!Array.isArray){Array.isArray=function(p){return"[object Array]"==Object.prototype.toString.call(p)}}if(!Object.keys){Object.keys=function(r){var p=[];for(var q in r){if(r.hasOwnProperty(q)){p.push(q)}}return p}}i.merge=function l(q,p){var s=q["class"];var t=p["class"];if(s||t){s=s||[];t=t||[];if(!Array.isArray(s)){s=[s]}if(!Array.isArray(t)){t=[t]}q["class"]=s.concat(t).filter(m)}for(var r in p){if(r!="class"){q[r]=p[r]}}return q};function m(p){return p!=null&&p!==""}function j(p){return Array.isArray(p)?p.map(j).filter(m).join(" "):p}i.attrs=function n(s,p){var q=[],w=s.terse;delete s.terse;var x=Object.keys(s),u=x.length;if(u){q.push("");for(var t=0;t/g,">").replace(/"/g,""")};i.rethrow=function k(u,p,s,w){if(!(u instanceof Error)){throw u}if((typeof window!="undefined"||!p)&&!w){u.message+=" on line "+s;throw u}try{w=w||h("fs").readFileSync(p,"utf8")}catch(v){k(u,null,s)}var r=3,x=w.split("\n"),q=Math.max(s-r,0),t=Math.min(x.length,s+r);var r=x.slice(q,t).map(function(y,z){var A=z+q+1;return(A==s?" > ":" ")+A+"| "+y}).join("\n");u.path=p;u.message=(p||"Jade")+":"+s+"\n"+r+"\n\n"+u.message;throw u}},{fs:2}],2:[function(h,i,e){},{}]},{},[1])(1)});define("supportcookie",["jquery","cookie"],function(e){var d={},c={},a="sonymobile.com",b="http://www.sonymobile.com/";d.init=function(f){c=e(f).find("#sonymobile-support").attr("data-sonymobile-support");if(c!==""&&c!==undefined){a=window.location.hostname;e.cookie("sonymobile_support",c,{path:b,domain:a})}};d.init(e("body"));return d});define("sony-edit",["jquery","jade","templates/sony-edit.jade"],function(d,e,a){if(d("#wp-admin-bar-edit").length>0){var c,b={},g=false,f;f=(function(){var j,h=3,k=document.createElement("div"),i=k.getElementsByTagName("i");while(k.innerHTML="",i[0]){}return h>4?h:j}());b.showing=false;b.init=function(){if(g===false){c=a;g=true;b.setup()}else{b.setup()}};b.toggleEdit=function(){if(d("#wp-admin-bar-edit").length>0){if(b.showing===false){b.showing=true;d(".sony-edit-label").addClass("animated rollIn").show().find("a").attr("target","_blank")}else{b.showing=false;d(".sony-edit-label").removeClass("rollIn").addClass("hinge").find("a").attr("target","_blank")}_gaq.push(["_trackEvent","sony-edit-toggleEdit",window.location])}};b.setup=function(){d("#wp-admin-bar-sony-edit").click(function(){b.toggleEdit()});d("*[data-module], *[data-module-id]").each(function(){var i={};i.mod=d(this).data("module");if(i.mod===undefined){i.mod=d(this).data("module-id")}i.doc="/documentation/wordpress/modules/"+i.mod;i.id=d(this).attr("data-id");i.locationWithoutHash=location.protocol+"//"+location.host+location.pathname;if(i.id===undefined){i.urlId=""}else{i.urlId="#"+i.id}i.edit=d("#wp-admin-bar-edit a").attr("href");i.bug="https://bnwteam.atlassian.net/secure/CreateIssueDetails!init.jspa?pid=10000&issuetype=1&customfield_10028="+i.mod+"&customfield_10025="+i.locationWithoutHash+i.urlId;d(this).append(c(i))});d(".sony-edit-label").hover(function(){d(this).parent().addClass("sony-edit-highlight-element")},function(){d(this).parent().removeClass("sony-edit-highlight-element")});d(".sony-edit-label.sony-edit-label-module").hover(function(){d(this).parent().addClass("sony-edit-highlight-module")},function(){d(this).parent().removeClass("sony-edit-highlight-module")});function h(i){if(i.altKey&&i.keyCode===69){b.toggleEdit()}}if(document.addEventListener!==undefined){document.addEventListener("keyup",h,false)}};if(f>=9||f===undefined){b.init()}}});define("sony-survey",["jquery"],function(g){var b="surveycookie";var d=new Date().getTime();var o={a:0,l:0,p:0,pS:0,pP:0,pSw:0,pAS:0,o:false};var q=[];function e(w){w=h(w);for(var v=0;v=(v.min_time_on_site*1000)}function l(w){var v;v=Math.random()*1000000;return v>=(1000000-w.displays_per_million_requests)}function k(z){var y;var x;var v;var A;if((x=z.locations.length)<1){return true}y=location.pathname;A=false;y=j(y);for(var w=0;w3&&(B[1]==="products"||B[1]==="support")){x=B[3]}if(x!==""){if((w=v.indexOf("#"))>-1){y=v.substring(w,v.length);v=v.substring(0,w)}if(v.indexOf("?")>-1){v=v+"&"}else{v=v+"?"}v=v+"product="+x;if(w>-1){v=v+y}}return v}function a(){if((d-o.l)>3600000){o.a=d;o.p=0;o.pS=0;o.pP=0;o.pSw=0;o.pAS=0}o.l=d;o.p++;t()}function n(){return g("#sony-mobile-global-defines").data("survey-settings")}function f(){var v=c(b);if(v){o=JSON.parse(decodeURIComponent(v))}}function t(){var v={domain:"sonymobile.com",path:"/",expires:60};g("#cookie").html(JSON.stringify(o));m(b,JSON.stringify(o),v)}function c(w){var y=w+"=";var v=document.cookie.split(";");for(var x=0;x');return null}if((a&&this.config.disableMobile!==true)||this.config.overlay===false){if(k.config.overlay===false){k.el.find(".inner").animate({opacity:1,duartion:800})}k.initialized=false;k.config.overlay=false;if(h(k.el).is(":in-viewport")){k.initPlayer();k.position();k.initialized=true}h(window).bind("scroll",function(){if(k.initialized===false){if(h(k.el).is(":in-viewport")){h(window).unbind("scroll",this);k.initialized=true;k.initPlayer();k.position()}}})}h(window).on("resize",function(){k.position()});i={events:{onReady:function(){k.ready=true},onStateChange:function(m){var l=b.getInstances(h("body"),"sonyplayer");if(m.data===YT.PlayerState.PLAYING){k.el.removeClass("loading");k.el.addClass("playing");e.trackEvent(k,"Video_initiate_play",k.config.videoUrl);h(l).each(function(o,n){if(n.player!==undefined){if(n.player!==m.target){n.pause()}}})}if(m.data===YT.PlayerState.ENDED){e.trackEvent(k,"Video_full_video_viewed",k.config.videoUrl)}}}};h.extend(this.config,i);h(this.el).addClass("initialized");f.update(this.el);if(this.config.overlay&&this.config.disableMobile!==true){k.addButtons()}return this};g.initPlayer=function(){var i=this;require(["async!//www.youtube.com/iframe_api!undefined:onYouTubeIframeAPIReady"],function(){var j=i.el.find(".sonyplayer-placeholder").attr("id");i.player=new YT.Player(j,i.config)});return this};g.update=function(i){return this.position(i)};g.position=function(j){var i=j||{};this.config.ratio=Number(((this.config.width/this.config.height)).toFixed(2));if(!a){this.el.find(".overlay-inner").css("margin","0 auto");this.el.find(".overlay-inner").width(this.config.width);this.el.find(".inner").width(this.config.width)}if(i.height!==undefined&&i.width===undefined){i.width=i.height*this.config.ratio;this.el.css("margin","0 auto");this.el.width(i.width)}if(i.height===undefined&&i.width!==undefined){this.el.width(i.width);i.height=Math.round(i.width/this.config.ratio)}if(i.height===undefined&&i.width===undefined){i.width=h(this.el).find(".inner").width();i.height=Math.round(i.width/this.config.ratio)}h(this.el).find(".sonyplayer-placeholder").css("height",i.height);h(this.el).css("height",i.height);h(this.el).find(".inner-inner").css("height",i.height);return this};g.play=function(){var j=this,i={};this.position();if(this.player===undefined){i.onReady=function(l){if(a){j.el.find(".inner").css("opacity",1)}else{j.el.find(".inner").animate({opacity:1,duartion:800})}j.hideOverlay();if(!a){l.target.playVideo()}};h.extend(this.config.events,i);this.initPlayer()}else{try{if(this.player.playVideo!==undefined){this.player.playVideo()}}catch(k){console.log(k)}}this.el.addClass("loading");this.hideOverlay();return this};g.pause=function(){if(this.player!==undefined){try{if(this.player.pauseVideo!==undefined){this.player.pauseVideo()}}catch(i){console.log(i)}this.el.add("playing")}return this};g.stop=g.pause;g.hideOverlay=function(k){var i=".overlay img",j=300,l=500;if(k===true||a===true){j=0;l=0}if(this.config.playerVars.controls==="1"){i=".overlay"}h(this.el).find(".overlay").css("height","0");h(this.el).find(i).delay(j).animate({opacity:0,duration:l});return this};g.addButtons=function(){var i=this,k=h(''),j=h(''),l=h('');h(i.el).find(".overlay-inner").append(k);k.click(function(m){m.preventDefault();i.play()});h(i.el).find(".inner-inner").append(l);if(this.config.playerVars.controls==="0"){h(i.el).find(".overlay-inner").append(j);j.click(function(m){m.preventDefault();i.pause()})}return this};return g});define("cookieconsent",["jquery","cookie"],function(b){var a={};a.init=function(d){var c=b.cookie("sonymobile_consent");if(c===null||c===undefined){c=false}if(c===false){b(d).show()}b(d).find("#cookie-accept").bind("click",function(){var e=true;b.cookie("sonymobile_consent",e,{path:"/",domain:"sonymobile.com",expire:365*10});b(d).hide()})};return a});define("backtotop",["jquery","analytics","bagman"],function(e,c,a){var d={};d.init=function(){var f=this;e(window).scroll(b(function(){if(e(this).scrollTop()>100){e(f.el).fadeIn()}else{e(f.el).fadeOut()}}));e(f.el).click(function(){e("html, body").animate({scrollTop:0},600);var g="Arrow_Click",h="Back-To-Top_Navigation";c.trackEvent(f,g,h);return false})};var b=function(i,f,g){var j;return function h(){var m=this,l=arguments;function k(){if(!g){i.apply(m,l)}j=null}if(j){clearTimeout(j)}else{if(g){i.apply(m,l)}}j=setTimeout(k,f||100)}};return d});window.SITE_COOKIE="bnwsite";(function(){var a="v="+window.document.body.getAttribute("data-build");require.config({baseUrl:"/wp-content/themes/semc-main/js/modules",urlArgs:a,paths:{libs:"../libs",jquery:"../libs/jquery",eshop:"../eshop.cart",epshop:"../ep-shop.cart",text:"../libs/text",json:"../libs/json",async:"../libs/async",bagman:"libs/bagman",underscore:"libs/underscore",enquire:"../libs/enquire",cookie:"../libs/cookie",templates:"../../templates",common:"../common"},config:{bagman:{container:"body",hook:"module",config:"config",global:true,debug:false},text:{useXhr:function(d,e,c,b){return true}},waitSeconds:15}});require(["jquery","sony-util","bagman","analytics","appear","cart","supportcookie","cookieconsent","backtotop","libs/foresight","jade","lazyload","polyfills","sony-survey"])}());