createElement("script");r.type="text/javascript",r.src=e,r.readyState?r.onreadystatechange=function(){if(r.readyState==="loaded"||r.readyState==="complete")r.onreadystatechange=null,n()}:r.onload=function(){n()},t.getElementsByTagName("head")[0].appendChild(r)}function g(){if(a("sn-login")===null||a("sn-login")===undefined)return;I();var e=a("sony-mobile-global-defines").getAttribute("data-account-services-cookie");e==""&&(e="connect.returning-user"),y(e)?(m(C(),w),b()):T()}function y(e){return t.cookie.indexOf(" "+e+"=")===-1?!1:!0}function b(){history.replaceState&&history.replaceState(null,t.title,d())}function w(){var e=connectServerSSO.getNameOfUser();u("sn-login"),u("sn-signup"),s("bnw-nav-name",e),S("sn-name"),S("sn-logout"),l("bnw-nav-logout",function(e){return E(),!1})}function E(){var t=A()+"/logout/"+L();return t.indexOf("?")>=0?t+="&":t+="?",t+="callback_url="+d(),T(),e.location=t,!1}function S(e){var t="display: inline-block";x()&&(t="display: inline-block; zoom: 1; *display: inline;"),a(e).style.cssText=t}function x(e){e||(e=navigator.appVersion);var t=new RegExp("(MSIE) (.)"),n=t.exec(e);return n&&n[2]==="7"}function T(){u("sn-name"),u("sn-logout"),s("bnw-nav-name",""),S("sn-login"),S("sn-signup")}function N(){return A()+"/connectserver_widget.js"}function C(){return A()+"/connectserver_sso.js"}function k(){return encodeURIComponent(d())}function L(){var t=e.bnw_supernav_app_id;if(!t){var n='Please set the global variable bnw_supernav_app_id="ACCOUNT_APP_ID" before including the supernav';return alert(n),"MISSING_GLOBAL_VARIABLE_bnw_supernav_app_id"}return t}function A(){return D("data-connect-server")||"http://connect.sonymobile.com"}function O(){return D("data-account-server")||"http://account.sonymobile.com"}function M(){return D("data-cc")||"US"}function _(){return D("data-lc")||"en"}function D(e){var t=a("bnw-super-nav-list");return t&&t.getAttribute(e)?t.getAttribute(e):null}function P(){return!0}function H(){var e=N()+"?"+"appid="+L()+"&"+"cc="+M()+"&"+"lc="+_()+"&"+"brand_color="+"bnw"+"&"+"enable_sso="+P()+"&"+"connected_url="+k()+"&"+"canceled_url="+k()+"&"+"error_url="+k()+"&";return e}function B(e){var t=O()+"/"+e+"?"+"cc="+M()+"&"+"lc="+_();return t}function j(e){var t=A()+"/"+e;return t}function F(t){if(e.connectServerWidget)return t();m(H(),t)}function I(){l("bnw-nav-login",function(t){return F(function(){e.connectServerWidget.start()}),!1}),c("bnw-nav-sign-up",B("signup")),c("bnw-nav-profile",B("profile")),c("bnw-nav-login",j("login")),c("bnw-nav-logout",j("logout"))}var n=!1,r=3e3;g()}(window,document);var debounce=function(e,t,n){var r;return function(){function u(){n||e.apply(s,o),r=null}var s=this,o=arguments;r?clearTimeout(r):n&&e.apply(s,o),r=setTimeout(u,t||100)}},viewportwidth;set_viewportwidth();var appVersion=navigator.appVersion,regexp=new RegExp("MSIE [7-8]."),isIE8=regexp.test(appVersion),is_mobile=!1,is_mf_page=document.getElementById("page-wrap-outer"),mobile_breakpoint=is_mf_page?768:600;viewportwidth<mobile_breakpoint&&!isIE8&&(setTimeout(hideURLbar,0),is_mobile=!0);var resizeHandler=debounce(function(){var e;set_viewportwidth(),viewportwidth<=mobile_breakpoint&&is_mobile===!1&&(is_mobile=!0,e=document.getElementById("menu-primary-menu"),e.style.display="none"),viewportwidth>mobile_breakpoint&&is_mobile===!0&&(is_mobile=!1,e=document.getElementById("menu-primary-menu"),e.style.display="block")},50,!1);isIE8?window.attachEvent("onresize",resizeHandler):(window.addEventListener("resize",resizeHandler),window.addEventListener("load",mobile_menu,!1)),define("supernav",function(e){return function(){var t,n;return t||e.supernav}}(this)),define("bagman",["jquery","module"],function(e,t){"use strict";var n={container:"body",hook:"module",config:"config",global:!1,debug:!1,alwaysInstantiate:!1},r="",i={},s=[],o=[],u=[],a=0,f={},l={},c=0,h=0;return e.extend(n,t.config()),r="*[data-"+n.hook+"]",i=e(n.container).find(r),l.onloadDone=!1,l.debug=n.debug,l.modules=[],l.instances=[],f.isOldIE=function(){var e=navigator.appVersion,t=new RegExp("(MSIE) (.)"),n=t.exec(e)||!1;return n&&n[2]<="8"},l.init=function(){var t=f.isOldIE();return e.each(i,function(r,i){t||n.alwaysInstantiate?f.instanciate(e(i).data(n.hook),i,e(i).data(n.config)):f.elementInViewport(i)?(s.push(i),i.inViewport=!0,f.instanciate(e(i).data(n.hook),i,e(i).data(n.config))):(o.push(i),i.inViewport=!1)}),e(window).load(function(){l.debug&&console.log("* onLoad .."),l.onloadDone=!0,e.each(o,function(t,r){f.instanciate(e(r).data(n.hook),r,e(r).data(n.config))})}),l},l.getInstance=function(t){var n=e(t).attr("data-instance-id");return l.instances[n]?l.instances[n]:null},l.getInstances=function(t,n){var r="*[data-module]",i=[],s=[];return n&&(r='*[data-module="'+n+'"]'),i=e(t).find(r),e.each(i,function(t,n){var r=l.instances[e(n).attr("data-instance-id")];r!==undefined&&s.push(r)}),s},l.update=function(){},l.remove=function(e){},f.elementInViewport=function(e){var t=e.getBoundingClientRect();return t.top<(window.innerHeight||document.body.clientHeight)&&t.left<(window.innerWidth||document.body.clientWidth)},f.instanciate=function(t,n,r){c+=1;var i="helper"+c,s=[];define(i,[],{module:t,el:n,config:r}),s.push(t),s.push(i),require(s,function(t,n){try{var r=l.instances.push(e.extend(!1,{},t));r-=1,l.instances[r].el=e(n.el),l.instances[r].module=n.module,l.instances[r].el.attr("data-instance-id",r),l.instances[r].instanceId=r,l.instances[r].config=n.config,l.instances[r].init!==undefined&&l.instances[r].init(e(n.el),n.config)}catch(i){l.debug&&console.log("module: :"+i.message)}})},e(function(){l.init(),n.global===!0&&(l.config=n,window.bagman=l)}),l}),define("text",["module"],function(e){"use strict";var t,n,r,i,s=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],o=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,u=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,a=typeof location!="undefined"&&location.href,f=a&&location.protocol&&location.protocol.replace(/\:/,""),l=a&&location.hostname,c=a&&(location.port||undefined),h=[],p=e.config&&e.config()||{};t={version:"2.0.6",strip:function(e){if(e){e=e.replace(o,"");var t=e.match(u);t&&(e=t[1])}else e="";return e},jsEscape:function(e){return e.
Back to home |
File page
Subscribe |
Register |
Login
| N