var JQ=jQuery.noConflict();if(!window.NIKEOS){var NIKEOS={}}if(location.host.match(/inside-staging/i)||location.host.match(/(env\d*)-brand/i)||location.host.match(/(ecn\d*)-www/i)){NIKEOS.site_mode="staging"}else{if(location.host.match(/nike\.com/i)){NIKEOS.site_mode="prod"}else{if(location.host.match(/^[^\.]*$/i)){NIKEOS.site_mode="localhost"}else{NIKEOS.site_mode="dev"}}}NIKEOS.protocol=(location.protocol=="https:")?"https://":"http://";NIKEOS.currentURL=escape(location.href);NIKEOS.BASE={localhost:NIKEOS.protocol+location.host,dev:NIKEOS.protocol+(NIKEOS.siteHost||"nike-dev4.ny.rga.com"),staging:NIKEOS.protocol+(NIKEOS.siteHost||"ecn1-www.nike.com"),prod:NIKEOS.protocol+"www.nike.com"};NIKEOS.setDev=function(a){NIKEOS.BASE.dev=NIKEOS.protocol+a};if(!console){var console={};console.log=function(){}}NIKEOS.log=function(){if(NIKEOS.site_mode!="prod"){console.log.apply(console,arguments)}};NIKEOS.preload=function(a,e){if(typeof a=="string"){a=[a]}var d=JQ(".hidden_content")[0]||JQ('<div class="hidden_content" />').css("display","none").appendTo("body");var b=JQ("<img />").appendTo(d);function c(){if(a[0]){b.attr("src",a.shift())}else{b.remove();if(e){e()}}}b.bind("load",c);c()};NIKEOS.hover=NIKEOS.hover||"_on";NIKEOS.swap_class=NIKEOS.swap_class||"swap_img";jQuery.fn.rollover=function(a){var b=[];this.filter("img").each(function(){var d=this.src;var c=d.replace(/\.(\w+)$/,"_on.$1");b.push(c);JQ(this).hover(function(){this.src=c},function(){this.src=d})});NIKEOS.preload(b);return this};JQ(window).load(function(){JQ("."+NIKEOS.swap_class+" img, img."+NIKEOS.swap_class).rollover(NIKEOS.hover)});NIKEOS.getParams=function(g){var e=document.location.search.slice(1);if(!e){return null}var a={};var c=e.split("&");for(var d=0,b=c.length;d<b;d++){var f=c[d].split("=");a[f[0]]=decodeURIComponent(f[1])||""}return g?a[g]:a};NIKEOS.getParam=NIKEOS.getParams;JQ.extend(true,NIKEOS,{PATHS:{video_player:"/nikeos/global/modules/video/v1/",lockup:"/nikeos/global/modules/nav/",nav:"/nikeos/global/modules/nav/",enablement:"/nikeos/global/modules/enablement/"},VIDEO_PLAYER:{versions:{"v1.1":"swf/video_player_v1_1.swf","v1.2":"swf/video_player_v1_2.swf",v2:"swf/video_player_v2_0.swf",Prototype_Commerce:"swf/video_player_prototype_com.swf","tracking.20090106":"swf/video_player_v2_0_b.swf",latest:"swf/video_player_v2_0.swf"},vars:{currentUrl:NIKEOS.currentURL}},LOCKUP:{versions:{v1:"v1/swf/nav-module-top.swf","v1.2":"v1/swf/nav-module-top-1-2.swf","tracking.20090106":"v1/swf/nav-module-top-1-2_b.swf",latest:"v1/swf/nav-module-top-1-2.swf"}},NAV:{versions:{v1:"v1/swf/nav-module-menu.swf","v1.1":"v1/swf/nav-module-menu-1-1.swf","v1.2":"v1/swf/nav-module-menu-1-2.swf","tracking.20090106":"v1/swf/nav-module-menu-1-2_b.swf",latest:"v1/swf/nav-module-menu-1-2.swf"},vars:{fontPath:NIKEOS.BASE[NIKEOS.site_mode]+"/nikeos/global/modules/nav/v1/font/fontlibrary.swf",currentUrl:NIKEOS.currentURL}},ENABLEMENT:{versions:{v1:"v1/swf/enablement-module.swf","tracking.20090106":"v1/swf/enablement-module_b.swf",latest:"v1/swf/enablement-module.swf"},vars:{fontPath:NIKEOS.BASE[NIKEOS.site_mode]+"/nikeos/global/modules/nav/v1/font/fontlibrary.swf",currentUrl:NIKEOS.currentURL}}});jQuery.fn.extend({insertSWF:function(a){a.element_id=this.attr("id");NIKEOS.insertSWF(a)}});NIKEOS.insertSWF=function(j){j=JQ.extend(true,{element_id:"featured",type:"",version:"latest",src:"",parentCSS:true,flash:"9",width:"100%",height:"100%",queries:"",params:{quality:"best",scale:"noscale",menu:"false",wmode:"transparent",allowScriptAccess:"always"},vars:{}},j);var c=JQ("#"+j.element_id);function a(k){return(typeof k=="string"&&k.match(/(%|px)$/))?k:k+"px"}if(j.type!="enablement"||j.parentCSS==false){c.css({width:a(j.width),height:a(j.height)})}if(typeof j.version!="string"){j.version="v"+j.version}if(!j.src){j.src=NIKEOS.BASE[NIKEOS.site_mode]+NIKEOS.PATHS[j.type]+NIKEOS[j.type.toUpperCase()].versions[j.version]}if(window.tracking&&!j.external){j.vars.trackerObject=tracking.flash(nav_tracker_obj)}var b=new SWFObject(j.src,j.element_id+"_swf",j.width,j.height,j.flash);if(j.queries){var e=new RegExp("^"+j.queries+"(.+)");var d=NIKEOS.getParams()||{};JQ.each(["vars","params"],function(m,l){for(var k in j[l]){if(typeof j[l][k]!="string"){continue}var n=j[l][k].match(e);if(n){j[l][k]=d[n[1]]||""}}})}for(param in j.params){b.addParam(param,j.params[param])}if(j.type=="video_player"){b.addParam("allowFullScreen","true")}else{if(j.type=="nav"||j.type=="lockup"){b.addParam("salign","tl");j.vars=JQ.extend(true,NIKEOS.NAV.vars,j.vars)}else{if(j.type=="enablement"){b.addParam("salign","br");j.vars=JQ.extend(true,NIKEOS.ENABLEMENT.vars,j.vars)}}}var h="";for(var f in j.vars){b.addVariable(f,j.vars[f])}NIKEOS.log(j);var g=b.write(j.element_id);if(j.type=="enablement"){c.parent().css("position","relative");c.find("object, embed").css({position:"absolute",bottom:0,right:0})}return g};NIKEOS.triggerScroll=function(){window.scrollBy(0,2);window.scrollBy(0,-2)};NIKEOS.stringify=function(a){return escape(JSON.stringify(a))};NIKEOS.extendNatives=function(){var b={String:String,Number:Number,Array:Array,Function:Function,RegExp:RegExp,Date:Date};for(var a in b){b[a].$family={name:a.toLowerCase()};b[a].extend=function(c){for(var d in c){if(typeof c[d]=="function"){if(!this.prototype[d]){this.prototype[d]=c[d];this.genericize(d)}else{NIKEOS.log("The method %s was not added to %s because it already exists",d,$type(this))}}}return this};b[a].genericize=function(c){if(!this[c]){this[c]=function(){var d=Array.prototype.slice.call(arguments);return this.prototype[c].apply(d.shift(),d)}}return this}}(function(d,c){for(var e=c.length;e--;e){d.genericize(c[e])}return arguments.callee})(Array,["pop","push","reverse","shift","sort","splice","unshift","concat","join","slice","toString","valueOf","indexOf","lastIndexOf"])(String,["charAt","charCodeAt","concat","indexOf","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","valueOf"]);String.extend({trim:function(){return this.replace(/^\s+|\s+$/g,"")},clean:function(){return this.replace(/\s+/g," ").trim()},toInt:function(c){return parseInt(this,c||10)},toFloat:function(){return parseFloat(this)},test:function(c,d){return((typeof c=="string")?new RegExp(c,d):c).test(this)},contains:function(c,d){return(d)?(d+this+d).indexOf(d+c+d)>-1:this.indexOf(c)>-1},toCSS:function(){return this.test(/(%|px)$/)?this:this+"px"},toPercent:function(){return this.toFloat().toPercent()},stripTags:function(){return this.replace(/<[^>]+>/gi,"")},capitalize:function(){return this.replace(/\b[a-z]/g,function(c){return c.toUpperCase()})}});Number.extend({toCSS:function(){return this.round()+"px"},limit:function(d,c){return Math.min(c,Math.max(d,this))},round:function(c){c=Math.pow(10,c||0);return Math.round(this*c)/c},toFloat:function(){return parseFloat(this)},toInt:function(c){return parseInt(this,c||10)},toPercent:function(){return(this*100).round()}});Array.extend({indexOf:function(e,f){var c=this.length;for(var d=(f<0)?Math.max(0,c+f):f||0;d<c;d++){if(this[d]===e){return d}}return -1},contains:function(c,d){return this.indexOf(c,d)!=-1},getLast:function(){return(this.length)?this[this.length-1]:null},getRandom:function(){return(this.length)?this[$random(0,this.length-1)]:null},shuffle:function(){for(var d,c,e=this.length;e;d=parseInt(Math.random()*e,10),c=this[--e],this[e]=this[d],this[d]=c){}return this},empty:function(){this.length=0;return this},extend:function(e){for(var d=0,c=e.length;d<c;d++){this.push(e[d])}return this},filter:function(f,g){var e=[];for(var d=0,c=this.length;d<c;d++){if(f.call(g,this[d],d,this)){e.push(this[d])}}return e},each:function(e,f){for(var d=0,c=this.length;d<c;d++){e.call(f,this[d],d,this)}return this},map:function(f,g){var e=[];for(var d=0,c=this.length;d<c;d++){e[d]=f.call(g,this[d],d,this)}return e},erase:function(d){for(var c=this.length;c--;c){if(this[c]===d){this.splice(c,1)}}return this},flatten:function(){var f=[];for(var d=0,c=this.length;d<c;d++){var e=$type(this[d]);if(!e){continue}f=f.concat((e=="array"||e=="collection"||e=="arguments")?Array.flatten(this[d]):this[d])}return f}});Function.extend({create:function(d){var c=this;d=d||{};return function(f){var e=d.arguments;e=(e!=undefined)?$splat(e):Array.slice(arguments,0);var g=function(){return c.apply(d.bind||null,e)};if(d.delay){return setTimeout(g,d.delay)}if(d.periodical){return setInterval(g,d.periodical)}if(d.attempt){return $try(g)}return g()}},pass:function(c,d){return this.create({arguments:c,bind:d})},attempt:function(c,d){return this.create({arguments:c,bind:d,attempt:true})()},bind:function(d,c){return this.create({bind:d,arguments:c})},delay:function(d,e,c){return this.create({delay:d,bind:e,arguments:c})()},periodical:function(c,e,d){return this.create({periodical:c,bind:e,arguments:d})()},run:function(c,d){return this.apply(d,$splat(c))}});(function(d){var c={};d.each(function(e){if(!Number[e]){c[e]=function(){return Math[e].apply(null,[this].concat($A(arguments)))}}});Number.extend(c)})(["abs","acos","asin","atan","atan2","ceil","cos","exp","floor","log","max","min","pow","sin","sqrt","tan"])};function articleShare(c,d,f,e){var b=/\?/;var a="%3f";d=d.replace(b,a);switch(c){case"digg":postPopUp("http://digg.com/remote-submit?phase=2&url="+d,"digg","toolbar=0,status=0,height=450,width=650,scrollbars=yes,resizable=yes");break;case"delicious":postPopUp("http://del.icio.us/post?url="+d+"&title="+f,"delicious","toolbar=0,status=0,height=450,width=650,scrollbars=yes,resizable=yes");break;case"facebook":postPopUp("http://www.facebook.com/sharer.php?u="+d+"&t="+f,"facebook","toolbar=0,status=0,height=436,width=646,scrollbars=yes,resizable=yes");break;case"stumble":postPopUp("http://www.stumbleupon.com/submit?url="+d+"&title="+f,"stumble","toolbar=0,status=0,height=450,width=770,scrollbars=yes,resizable=yes");break;case"newsvine":postPopUp("http://www.newsvine.com/_tools/seed&save?u="+d+"&h="+f,"newsvine","toolbar=0,status=0,height=500,width=1000,scrollbars=yes,resizable=yes");break}}function postPopUp(b,a,d){var c=window.open(b,a,d)}if(!window.EventBridge){var EventBridge=new function(){if(!document.getElementById){return}var b="external";this.setChannel=function(d){b=d};this.getChannel=function(){return b};var c="normal";this.setMode=function(d){c=d};this.getMode=function(){return c};this.getFlash=function(d){if(navigator.appName.indexOf("Microsoft")!=-1){return window[d]}else{return document[d]}};var a={};this.listeners=a;this.dispatchEvent=function(e){var m="dispatchEvent ";this.debug(m+"TYPE : "+e.type+" DATA : "+e.data);var h=e.type;if(!a[h]){return}for(var g in a[h]){for(var f=0,d=a[h][g].length;f<d;f++){var n=a[h][g][f].target;var k=a[h][g][f].func;if(typeof n[k]=="function"){n[k](e)}}}};this.addListener=function(d,g,e){a[d]=a[d]||{};a[d][g]=a[d][g]||[];var f="addListener : ";this.debug(f+"TYPE : "+d+" - TARGET : "+g+" FUNCTION : "+e);a[d][g].push({target:this.getFlash(g)||g,func:e})};this.registerListener=this.addListener;this.removeListener=function(g,k,h){var j="removeListener ";this.debug(j+"TYPE : "+g+" - TARGET : "+k+" FUNCTION : "+h);var e=this.getFlash(k)||k;for(var f=0,d=a[g][k].length;f<d;f++){if(a[g][k][f].target.id==k&&a[g][k][f].func==h){a[g][k].splice(f,1)}}};this.hasListener=function(g,m,j){var e=this.getFlash(m)||m;if(j){for(var f=0,d=a[g][m].length;f<d;f++){var k=a[g][m][f];if((k.target.id==e.id||k.target==m)&&k.func==j){this.debug("hasListener TYPE : "+g+" TARGET : "+m+" FUNCTION : "+j);return true}}this.debug("hasListener false");return false}else{var h=!!a[g][m];this.debug("hasListener : "+h);return h}};this.removeAllListeners=function(){a={}};this.removeAllListenersForType=function(d){a[d]={}};this.debug=function(d){if(document.eventbridge_debug_form&&c=="debug"){document.eventbridge_debug_form.eventbridge_debug_txt.value+=(d+"\n")}}}}var navListener=new Object();navListener.defaultSearchText=" ";navListener.nullSearchText="";navListener.openURL=function(a){var b="_self";if(a.data.target!=""){b=a.data.target}window.open(a.data.href,b)};navListener.searchFocus=function(a){navListener.navInput=document.getElementById("nav_input");setTimeout("navListener.navInput.focus()",25);setTimeout("setCaretTo(navListener.navInput, 1000)")};navListener.searchOpen=function(a){navListener.navInput=document.getElementById("nav_input");navListener.navForm=document.getElementById("nav_input_form");navListener.navForm.style.visibility="visible";navListener.navInput.style.visibility="visible";setTimeout("navListener.navInput.value = navListener.defaultSearchText",25);setTimeout("navListener.navInput.select()",25);setTimeout("navListener.navInput.value = navListener.nullSearchText",26);setTimeout("setCaretTo(navListener.navInput, 1000)",27)};navListener.searchClose=function(a){setTimeout("navListener.navInput.value = navListener.nullSearchText",2);setTimeout("navListener.navInput.blur()",3);setTimeout("navListener.navInput.style.visibility='hidden'",4)};function search(){EventBridge.dispatchEvent({type:"moduleCall",data:encodeURIComponent(document.getElementById("nav_input").value)})}EventBridge.addListener("url",navListener,"openURL");EventBridge.addListener("search",navListener,"openURL");EventBridge.addListener("searchopen",navListener,"searchOpen");EventBridge.addListener("searchclose",navListener,"searchClose");EventBridge.addListener("searchfocus",navListener,"searchFocus");EventBridge.addListener("callsearch",navListener,"callSearch");EventBridge.addListener("lockup",navListener,"lockupActive");EventBridge.addListener("nav",navListener,"navActive");navListener.flashTest=function(a){alert("flash working")};navListener.lockupActive=function(a){EventBridge.dispatchEvent({type:"navCall",data:"close"})};navListener.navActive=function(a){EventBridge.dispatchEvent({type:"lockupCall",data:"close"})};navListener.flashAlert=function(a){alert(a.data)};navListener.callSearch=function(a){if(document.getElementById("nav_input").value!=""){search()}};function setCaretTo(b,c){if(b.createTextRange){var a=b.createTextRange();a.move("character",c);a.select()}else{if(b.selectionStart){b.focus();b.setSelectionRange(c,c)}}}EventBridge.addListener("updateNavProfile",navListener,"updateNavProfile");EventBridge.addListener("logoutCookies",navListener,"logoutCookies");EventBridge.addListener("logoutSocial",navListener,"logoutSocial");var navProfileObj;var navProfileCalled=false;function setNavProfile(a){navListener.navProfileObj=a;navListener.navProfileCalled=true;EventBridge.dispatchEvent({type:"setNavProfile",data:a})}navListener.updateNavProfile=function(a){if((navProfileCalled==false)&&(navProfileObj!=undefined)){setNavProfile(navListener.navProfileObj)}};navListener.logoutCookies=function(a){NIKEOS.ME.clearSocialCookies();if(typeof nikeplus!="undefined"){nikeplus.user.logout()}};navListener.logoutSocial=function(b){if(typeof(NIKEOS.AC)=="undefined"){NIKEOS.AC=new AjaxController({})}NIKEOS.ME.clearSocialCookies();var d="/services/profileService";if(typeof(NIKEOS.YP=="object")){d=NIKEOS.YP.profileService}var a={url:d,method:"POST",post_data:"action=logout"};var c=function(e){location.reload(true)};NIKEOS.AC.request(a,c)};function innerXHTML(b,e){if(typeof b=="string"){b=document.getElementById(b)}var d="";var f="";var j="";var h=b.nodeName.toLowerCase();var g=(b.nodeName.match(/area|base|basefont|br|col|frame|hr|img|input|isindex|link|meta|param/i))?true:false;d="<"+h;for(var c=0;c<b.attributes.length;c++){if(b.attributes[c].specified&&b.attributes[c].value!="null"){d+=" "+b.attributes[c].name.toLowerCase()+'="'+b.attributes[c].value+'"'}}d+=(g)?" />":">";if(!g){for(var c=0;c<b.childNodes.length;c++){var a=b.childNodes[c];if(a.nodeType==3){f+=a.data}else{if(a.nodeType==1){f+=innerXHTML(b.childNodes[c],false)}else{f+=" "}}}j="</"+h+">"}return(typeof(e)=="undefined"||e==true)?encodeURIComponent(d+f+j):d+f+j}var enablementListener={};var http_request;enablementListener.fileSave=function(a){window.open(a.data.url,"_self")};enablementListener.blogPrint=function(a){window.open(a.data.url,"_blank")};enablementListener.blogShare=function(a){articleShare(a.data.sn,a.data.url,a.data.title,a.data.title)};enablementListener.blogEmail=function(d){http_request=null;if(window.XMLHttpRequest){http_request=new XMLHttpRequest();if(http_request.overrideMimeType){http_request.overrideMimeType("text/html")}}else{if(window.ActiveXObject){try{http_request=new ActiveXObject("Msxml2.XMLHTTP")}catch(f){try{http_request=new ActiveXObject("Microsoft.XMLHTTP")}catch(f){}}}}if(http_request!=null){var c="?recipient="+d.data.to+"&sender="+d.data.from+"&message="+d.data.message+"&language="+d.data.language+"&country="+d.data.country+"&link="+d.data.link+"&title="+d.data.title+"&brandName="+d.data.brandName;var b="http://cs.ny.rga.com/reboot/sendmailProxy.jsp";var a=b+c;http_request.onreadystatechange=alertContents;http_request.open("GET",a,true);http_request.send(null)}else{alert("Cannot create XMLHTTP instance");return false}};function alertContents(){if(xmlhttp.readyState==4){if(xmlhttp.status==200){}}else{alert("Problem retrieving XML data")}}EventBridge.addListener("blogprint",enablementListener,"blogPrint");EventBridge.addListener("blogshare",enablementListener,"blogShare");EventBridge.addListener("blogemail",enablementListener,"blogEmail");EventBridge.addListener("filesave",enablementListener,"fileSave");function Q(){this.qsArray=window.location.search.substring(1).split("&");this.qsObject={};this.init=function(){for(var a=0;a<this.qsArray.length;a++){if((this.qsArray[a].indexOf("=")==-1)||this.qsArray[a].indexOf("=")==this.qsArray[a].length+1){this.qsObject[this.qsArray[a]]=""}else{this.qsObject[this.qsArray[a].split("=")[0]]=this.qsArray[a].split("=")[1]}}};this.getParam=function(a){return this.qsObject[name]};this.modifyParam=function(a,b){this.qsObject[a]=b};this.removeParam=function(a){delete this.qsObject[a]};this.getQueryString=function(){var a="?";for(i in this.qsObject){if(this.qsObject[i]!=null){a+=(i+"="+this.qsObject[i]+"&")}}return a.substring(0,a.length-1)};this.makeLink=function(a,b){if(b){this.qsObject.page=b}return(a+this.getQueryString())}}function createSmartLinks(){JQ("a.smart").each(function(){var b=JQ(this).attr("href");var d=new Q();d.init();var a=new Q();a.qsArray=b.split("?")[1].split("&");a.init();var c=b.split("?")[0];var e=a.getParam("page");for(i in a.qsObject){d.modifyParam(i,a.qsObject[i])}JQ(this).attr({href:d.makeLink(c,e)})})}if(!NIKEOS.ME){NIKEOS.ME={}}NIKEOS.ME.setCookie=function(c){var d="";var a=0;for(i in c){if(a!=0){d+="&"}else{a++}d+=i+"="+c[i]}NIKEOS.ME.data=c;var b=new Date();b.setTime(b.getTime()+(5*60*1000));JQ.cookie("me.nike.com",Base64.encode(d),{path:"/",expires:b})};NIKEOS.ME.getCookie=function(){if(JQ.cookie("me.nike.com")){var d=Base64.decode(JQ.cookie("me.nike.com"));var a=d.split("&");var c={};for(var b=0;b<a.length;b++){c[a[b].split("=")[0]]=a[b].split("=")[1]}return c}else{return false}};NIKEOS.ME.addToCookie=function(f){if(JQ.cookie("me.nike.com")){var e=Base64.decode(JQ.cookie("me.nike.com"));var a=e.split("&");var d={};for(var c=0;c<a.length;c++){d[a[c].split("=")[0]]=a[c].split("=")[1]}for(var b in f){d[b]=f[b]}NIKEOS.ME.setCookie(d);return d}else{NIKEOS.ME.setCookie(f)}};NIKEOS.ME.removeFromCookie=function(b){if(JQ.cookie("me.nike.com")){var f=Base64.decode(JQ.cookie("me.nike.com"));var a=f.split("&");var e={};for(var d=0;d<a.length;d++){e[a[d].split("=")[0]]=a[d].split("=")[1]}for(var c=0;c<b.length;c++){delete e[b[c]]}NIKEOS.ME.setCookie(e);return e}else{return false}};NIKEOS.ME.clearSocialCookies=function(){if(JQ.cookie){JQ.cookie("me.nike.com",null,{path:"/"});JQ.cookie("st.nike.com",null,{path:"/"})}else{NIKEOS.log("JQ.cookie not available")}};NIKEOS.ME.verifyCookie=function(){if(JQ.cookie){if(JQ.cookie("me.nike.com")&&JQ.cookie("id.nike.com")){var b=Base64.decode(JQ.cookie("id.nike.com")).split(":")[0];var a=NIKEOS.ME.getCookie().id;if(b!=a){NIKEOS.ME.clearSocialCookies();return false}else{return true}}return false}NIKEOS.log("JQ.cookie not available")};NIKEOS.ME.setMessageCount=function(){if(JQ.cookie){if(JQ.cookie("me.nike.com")){var a=NIKEOS.ME.getCookie().messageCount;if(typeof(a)!="undefined"){setNavProfile({messageCount:a})}}}};NIKEOS.AjaxController=function(b){var a=this;a.setup=JQ.extend(true,{f4a:{swf_src:"http://www.nike.com/nikeos/global/swf/f4a/f4a.swf",js_src:"http://www.nike.com/nikeos/global/js/f4a_js.js",div_id:"f4a_nikeflashcontent"}},b);a.metadata={ready:false,queue:[]};a.init=function(){var c=document.createElement("script");c.src=a.setup.f4a.js_src;c.onload=f;c.onreadystatechange=function(){if(c.readyState=="loaded"||c.readyState=="complete"){f()}};var d=document.createElement("div");d.id=a.setup.f4a.div_id;d.style.height="1px";d.style.width="1px";d.style.marginTop="-1px";d.style.marginLeft="-1px";d.style.backgroundColor="transparent";var e=window.setInterval(function(){if(!document.body){}else{document.body.appendChild(d);document.body.appendChild(c);window.clearInterval(e)}},50);function f(){var g=window.setInterval(function(){if(!f4a_js_flash){}else{f4a=new f4a_js_flash({id:"f4a_nike",swfname:"f4a.swf",swfuri:a.setup.f4a.swf_src});f4a.createSwfObject(function(){a.metadata.ready=true;a.unloadQueue()});window.clearInterval(g)}},50)}};a.request=function(e,c){if(a.metadata.ready==true){a.fire(e,c)}else{var d=[e,c];a.metadata.queue.push(d)}};a.fire=function(d,c){this.url=d.url||"";this.method=d.method||"POST";this.data=d.post_data||{};this.contenttype=d.contenttype||null;var c=c||function(){return};this.req={url:this.url,meth:this.method,contenttype:this.contenttype,data:this.data,onready:function(e){c(e)}};f4a.open(this.req)};a.unloadQueue=function(){if(a.metadata.queue[0]){for(var c=0;c<a.metadata.queue.length;c++){a.fire(a.metadata.queue[c][0],a.metadata.queue[c][1])}}};a.test=function(){console.log("testing");var d={};d.url="/services/profileService?action=getprofile";d.method="POST";d.post_data="test=12";var c=function(e){alert(e)};a.request(d,c)};a.init()};var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(c){var a="";var k,h,f,j,g,e,d;var b=0;c=Base64._utf8_encode(c);while(b<c.length){k=c.charCodeAt(b++);h=c.charCodeAt(b++);f=c.charCodeAt(b++);j=k>>2;g=((k&3)<<4)|(h>>4);e=((h&15)<<2)|(f>>6);d=f&63;if(isNaN(h)){e=d=64}else{if(isNaN(f)){d=64}}a=a+this._keyStr.charAt(j)+this._keyStr.charAt(g)+this._keyStr.charAt(e)+this._keyStr.charAt(d)}return a},decode:function(c){var a="";var k,h,f;var j,g,e,d;var b=0;c=c.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(b<c.length){j=this._keyStr.indexOf(c.charAt(b++));g=this._keyStr.indexOf(c.charAt(b++));e=this._keyStr.indexOf(c.charAt(b++));d=this._keyStr.indexOf(c.charAt(b++));k=(j<<2)|(g>>4);h=((g&15)<<4)|(e>>2);f=((e&3)<<6)|d;a=a+String.fromCharCode(k);if(e!=64){a=a+String.fromCharCode(h)}if(d!=64){a=a+String.fromCharCode(f)}}a=Base64._utf8_decode(a);return a},_utf8_encode:function(b){b=b.replace(/\r\n/g,"\n");var a="";for(var e=0;e<b.length;e++){var d=b.charCodeAt(e);if(d<128){a+=String.fromCharCode(d)}else{if((d>127)&&(d<2048)){a+=String.fromCharCode((d>>6)|192);a+=String.fromCharCode((d&63)|128)}else{a+=String.fromCharCode((d>>12)|224);a+=String.fromCharCode(((d>>6)&63)|128);a+=String.fromCharCode((d&63)|128)}}}return a},_utf8_decode:function(a){var b="";var d=0;var e=c1=c2=0;while(d<a.length){e=a.charCodeAt(d);if(e<128){b+=String.fromCharCode(e);d++}else{if((e>191)&&(e<224)){c2=a.charCodeAt(d+1);b+=String.fromCharCode(((e&31)<<6)|(c2&63));d+=2}else{c2=a.charCodeAt(d+1);c3=a.charCodeAt(d+2);b+=String.fromCharCode(((e&15)<<12)|((c2&63)<<6)|(c3&63));d+=3}}}return b}};function $A(c){if(c.item){var d=[];for(var b=0,a=c.length;b<a;b++){d[b]=c[b]}return d}return Array.prototype.slice.call(c)}function $chk(a){return !!(a||a===0)}function $clear(a){clearTimeout(a);clearInterval(a);return null}function $defined(a){return(a!=undefined)}function $empty(){}function $arguments(a){return function(){return arguments[a]}}function $lambda(a){return(typeof a=="function")?a:function(){return a}}function $extend(c,a){for(var b in (a||{})){c[b]=a[b]}return c}function $unlink(c){var b;switch($type(c)){case"object":b={};for(var e in c){b[e]=$unlink(c[e])}break;case"hash":b=$unlink(c.getClean());break;case"array":b=[];for(var d=0,a=c.length;d<a;d++){b[d]=$unlink(c[d])}break;default:return c}return b}function $merge(){var e={};for(var d=0,a=arguments.length;d<a;d++){var b=arguments[d];if($type(b)!="object"){continue}for(var c in b){var g=b[c],f=e[c];e[c]=(f&&$type(g)=="object"&&$type(f)=="object")?$merge(f,g):$unlink(g)}}return e}function $pick(){for(var b=0,a=arguments.length;b<a;b++){if(arguments[b]!=undefined){return arguments[b]}}return null}function $random(b,a){return Math.floor(Math.random()*(a-b+1)+b)}function $splat(b){var a=$type(b);return(a)?((a!="array"&&a!="arguments")?[b]:b):[]}var $time=Date.now||function(){return new Date().getTime()};function $try(){for(var b=0,a=arguments.length;b<a;b++){try{return arguments[b]()}catch(c){}}return null}function $type(a){if(a==undefined){return false}if(a.nodeName){switch(a.nodeType){case 1:return"element";case 3:return(/\S/).test(a.nodeValue)?"textnode":"whitespace"}}else{if(typeof a.length=="number"){if(a.callee){return"arguments"}else{if(a.item){return"collection"}}}}return typeof a};