JQ(document).ready(function(){JQ.ajax({type:"GET",async:false,url:"/nikeplus/"+site_data.settings.platypus_region+"/v2/"+site_data.settings.platypus_lang_locale+"/xml/static/index.xml",dataType:"xml",success:function(xml){var json=xmlToJson(xml);window.configjson=json.config;window.configtrans=window.configjson.page.settings.trans;getIndexTrans()}})});homepageMethodStatic=function(){if(window.configjson.page.vkontakte_like_btn){JQ("#main_social").append('<div style="left: 16px;position: relative; top: 31px;" id="vk_like"></div>')}if(window.p1clickable){JQ("#brand-left").css("cursor","pointer");JQ("#brand-left").click(function(){tracking.trackClick({pageName:track_site+window.tracking_string,prop18:"home"});window.location=window.no_cta_url})}JQ(".twitterShare").click(function(e){var copy=JQ("#p1tweetbox textarea").val();var url="https://twitter.com/intent/tweet?text="+encodeURIComponent(copy);window.open(url,"_blank","toolbar=0,status=0,width=500,height=300")});JQ("a.launches_gallery").bind("click",launchGalleryUsingNikePlayer);JQ("div.overlay_gallery_thumb a.thumb_gallery").bind("click",thumbClickSubtitlePlayer);if(JQ("#gearup_area").hasClass("alt")){var social_links=JQ("#social_links");social_links.css("z-index","100");social_links.css("bottom","65px");social_links.css("background-color","#FFF");JQ("#editorial").css("bottom","53px");JQ("#social_links #icons").css("top","35px")}month_date();JQ("#brand-left").hover(function(){JQ("#p1-rollover-content").show()},function(){JQ("#p1-rollover-content").hide()});JQ("#rollover-sub-container").hover(function(){JQ(".sub").show();JQ(".expandable").hide()},function(){JQ(".sub").hide();JQ(".expandable").show()});var cufondisabled=window.configjson.page.cufondisabled;if(!cufondisabled){JQ("a.p1-cta").hover(function(){if(JQ(this).attr("data-color")!=undefined){var c=JQ(this).attr("data-color")}else{var c="#2E4853"}Cufon("a.p1-cta",{hover:true});Cufon(JQ(this),{color:"#FFF",fontFamily:"Futura"});JQ(this).css("background-color",c);JQ(this).css("color","#FFF")},function(){if(JQ(this).attr("data-color")!=undefined){var c=JQ(this).attr("data-color")}else{var c="#2E4853"}Cufon("a.p1-cta",{hover:true});Cufon(JQ(this),{color:c,fontFamily:"Futura"});JQ(this).css("color",c);JQ(this).css("background-color","#FFF")})}JQ("#p3-container").mouseover(function(){JQ("#p3-rollover").show()});JQ("#p3-container").mouseout(function(){JQ("#p3-rollover").hide()});JQ("#social_links #icons a").hover(function(){var img=JQ(this).find("img"),src=JQ(this).find("img").attr("src"),hoverSrc=src.replace(".gif","_hover.gif");img.attr("src",hoverSrc)},function(){var img=JQ(this).find("img"),src=JQ(this).find("img").attr("src"),hoverSrc=src.replace("_hover.gif",".gif");img.attr("src",hoverSrc)})};carouselConfigStatic=function(){if(!JQ.browser.msie){JQ("#carousel").cycle({fx:"fade",timeout:3000,speed:1000,pager:"#nav-items"});JQ("#carousel-container").mouseover(function(){if(JQ("html").hasClass("night")==false){JQ("#carousel").cycle("pause")}}).mouseout(function(){if(JQ("html").hasClass("night")==false){JQ("#carousel").cycle("resume")}});JQ("#carousel .item").hover(function(){JQ(".item .item-on").show()},function(){JQ(".item .item-on").hide()});var num=((JQ("#carousel-container").width())*0.5)-((JQ("#carousel-nav").width())*0.5);JQ("#carousel-nav").css("right",(num-25));if(JQ("#carousel .item").length==1){JQ("#carousel-nav").remove()}JQ("#carousel-fader").click(function(){var current=JQ(".activeSlide").html()-1;JQ("#carousel .item").each(function(index){if(index==current){JQ(this).click()}})})}else{JQ("#carousel").cycle({fx:"none",timeout:7000,speed:1,pager:"#nav-items"});JQ("#carousel-container").mouseover(function(){JQ("#carousel").cycle("pause")});JQ("#carousel-container").mouseout(function(){JQ("#carousel").cycle("resume")});JQ("#carousel .item").hover(function(){JQ(".item .item-on").show()},function(){JQ(".item .item-on").hide()});var num=((JQ("#carousel-container").width())*0.5)-((JQ("#carousel-nav").width())*0.5);JQ("#carousel-nav").css("right",(num-25));if(JQ("#carousel .item").length==1){JQ("#carousel-nav").remove()}JQ("#carousel-fader").click(function(){var current=JQ(".activeSlide").html()-1;JQ("#carousel .item").each(function(index){if(index==current){JQ(this).click()}})})}};delquote=function(str){return(str=str.replace(/["']{1}/gi,""))};prepOverlay=function(){JQ("#overlay").css({height:"100%",width:"100%"}).appendTo("body")};getIndexTrans=function(){JQ.ajax({type:"GET",async:false,url:"/nikeplus/"+site_data.settings.platypus_region+"/v2/"+site_data.settings.platypus_lang_locale+"/xml/translations/redesign_2011.xml",dataType:"xml",success:function(xml){var json=xmlToJson(xml);window.transjson=json.trans;generatePageContent()}})};getTrans=function(str){var itemobj=window.configtrans[str];var itemtext="";if(itemobj){itemtext=itemobj["#text"]}if(itemtext==""){itemobj=window.transjson[str];if(itemobj){if(itemobj["#cdata-section"]){itemtext=itemobj["#cdata-section"]}}}return itemtext};xmlToJson=function(xml){var attr,child,attrs=xml.attributes,children=xml.childNodes,key=xml.nodeType,obj={},i=-1;if(key==1&&attrs.length){obj[key="@attributes"]={};while(attr=attrs.item(++i)){obj[key][attr.nodeName]=attr.nodeValue}i=-1}else{if(key==3||key==4){obj=xml.nodeValue}}while(child=children.item(++i)){key=child.nodeName;if(obj.hasOwnProperty(key)){if(obj.toString.call(obj[key])!="[object Array]"){obj[key]=[obj[key]]}obj[key].push(xmlToJson(child))}else{obj[key]=xmlToJson(child)}}return obj};generatePageContent=function(){JQ("body").append('<div id="overlay_simplified" style="display: none;"><div id="videoplayer"><div id="player_temp"></div></div></div>');if(JQ("#overlay").length!=0){prepOverlay()}var cufondisabled=window.configjson.page.cufondisabled;if(cufondisabled==false){Cufon(".futura",{fontFamily:"Futura"})}var bcVidGallery=window.configjson.page.bcVideoGallery;if(bcVidGallery){var vidgalleryhtml="<div id='overlay_gallery_video_container'>";vidgalleryhtml+="<a href='#' id='overlay_gallery_close'> </a>";vidgalleryhtml+="<div id='overlay_gallery'>";vidgalleryhtml+="<table width='0' border='0' cellspacing='0' cellpadding='0'   style='vertical-align:top;' align='left'>";vidgalleryhtml+="<tr style='vertical-align:top;' align='left'>";for(i=0;i<bcVidGallery.bcVideo.length;i++){var tout=bcVidGallery.bcVideo[i];vidgalleryhtml+=" <td width='107' height='62' style='vertical-align:top;' align='left'>	";vidgalleryhtml+="	<div class='overlay_gallery_thumb' id='"+tout["@attributes"].id+"'>";vidgalleryhtml+="		<a href='#' id='anchor_"+tout["@attributes"].id+"' class='thumb_gallery'>";vidgalleryhtml+="		<img src='"+tout["@attributes"].thumb+"' width='107' height='62' alt='' />";vidgalleryhtml+="	</a>";vidgalleryhtml+="	</div>";vidgalleryhtml+="</td>";vidgalleryhtml+="<td width='5'>";vidgalleryhtml+="	<img src='/nikeplus/os/global/images/free/brightcove_thumbs/transparent.gif'  width='5' alt='line' title='line' />";vidgalleryhtml+="</td>"}vidgalleryhtml+="</tr>";vidgalleryhtml+="</table>";vidgalleryhtml+="</div>";vidgalleryhtml+="<div class='overlay_gallery_hi' id='overlay_gallery_hi'>";vidgalleryhtml+="<img src='/nikeplus/os/global/images/free/brightcove_thumbs/hi.png' alt='' />";vidgalleryhtml+="</div>";vidgalleryhtml+="<div id='brightcove_container'>";vidgalleryhtml+="<div id='get_flash'><a href='http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash'><img src='/nikeos/global/image/no_flash.jpg' border='0' class='' /></a></div>";vidgalleryhtml+="</div> ";vidgalleryhtml+="</div>";JQ("#overlay").html(vidgalleryhtml)}var loginjson=window.configjson.page.login;var loginhtml="<div id='nike_login' style='right:"+loginjson["@attributes"].x+"px; cursor:pointer;' onclick='loginModule.loginClick()'>";loginhtml+="<img id='login_left' width='41' height='30' alt='login' src='/nikeplus/us/v2/en_US/images/redesign_2011/login/bg_left_corner.png'/>";loginhtml+="<div id='login_inner_content'>";var logintext=loginjson["#text"];if(!logintext){logintext=loginjson["#cdata-section"]}loginhtml+="<a href='#' id='loginbutton'>"+logintext+"</a>";loginhtml+="</div>";loginhtml+="<img id='login_right' width='11' height='30'  alt='login' src='/nikeplus/us/v2/en_US/images/redesign_2011/login/bg_right_corner.png'/>";loginhtml+="</div>";var brandjson=window.configjson.page.brand_message;var brandhtml="";brandhtml+="<div id='brand_msg'>";if(brandjson.tweetbox){brandhtml+="<div id='p1tweetbox' style='top:"+brandjson.tweetbox["@attributes"].y+"; left:"+brandjson.tweetbox["@attributes"].x+";'>";if(brandjson.tweetbox["@attributes"].size[0]){brandhtml+="<h1 class='futura' style='font-size:"+brandjson.tweetbox.title["@attributes"].size+"' >"+getTrans(brandjson.tweetbox.title["#text"])+"</h1>"}else{brandhtml+="<h1 class='futura' >"+getTrans(brandjson.tweetbox.title["#text"])+"</h1>"}brandhtml+="<div class='wrapper'>";brandhtml+="<div class='tweetcontent'>";brandhtml+="<textarea maxlength='140'>"+brandjson.tweetbox.copy["#text"]+"</textarea>";brandhtml+="</div>";brandhtml+="</div>";brandhtml+="<img src='/nikeplus/us/v2/en_US/images/redesign_2011/p1tweetbox_slant.png' />";brandhtml+="<p class=' twitterShare futura' >"+getTrans(brandjson.tweetbox.send["#text"])+"</p>";brandhtml+="</div>"}brandhtml+="<div id='brand-left' style='background:url(\""+brandjson.hero_block.image_main["#text"]+"\") no-repeat 0 0'>";if(brandjson.hero_block.video){brandhtml+="<div id='"+brandjson.hero_block.video["@attributes"].id+"' style='position:absolute; z-index:20; cursor:pointer; padding-bottom: 20px; top:"+brandjson.hero_block.video["@attributes"].y+"px; left:"+brandjson.hero_block.video["@attributes"].x+"px;'></div>";brandhtml+="<div id='videotitle' class='futura' style='left:"+brandjson.hero_block.video["@attributes"].x+"px;'>"+getTrans(brandjson.hero_block.video["@attributes"].title)+"</div>"}if(brandjson.hero_block.no_rollover_cta){brandhtml+="<a href='"+brandjson.hero_block.no_rollover_cta["#text"]+"' class='p1-cta normal futura' data-color='"+brandjson.hero_block.no_rollover_cta["@attributes"].color+"' onclick=\"tracking.trackClick({pageName:track_site+'"+brandjson.hero_block.no_rollover_cta["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\" style=' color:"+brandjson.hero_block.no_rollover_cta["@attributes"].color+"; background-color:"+brandjson.hero_block.no_rollover_cta["@attributes"].bgcolor+"; position:absolute; left:"+brandjson.hero_block.no_rollover_cta["@attributes"].x+"px; top:"+brandjson.hero_block.no_rollover_cta["@attributes"].y+"px;'>"+getTrans(brandjson.hero_block.no_rollover_cta["@attributes"].copy)+"</a>"}if(brandjson.hero_block.image_hi){brandhtml+="<div id='p1-rollover-content' style='display:none; background:url(\""+brandjson.hero_block.image_hi["#text"]+"\") no-repeat 0 0;'>";brandhtml+="<p class='futura' id='p1-title' style='position:relative; top:"+brandjson.hero_block.title["@attributes"].y+"px; left:"+brandjson.hero_block.title["@attributes"].x+"px; color:"+brandjson.hero_block.title["@attributes"].textColor+";'>"+getTrans(brandjson.hero_block.title["#text"])+"</p>";brandhtml+="<p class='futura' id='p1-subtitle' style='position:absolute; top:"+brandjson.hero_block.subtitle["@attributes"].y+"px; left:"+brandjson.hero_block.subtitle["@attributes"].x+"px; color:"+brandjson.hero_block.subtitle["@attributes"].textColor+";'>"+getTrans(brandjson.hero_block.subtitle["#text"])+"</p>";if(brandjson.hero_block.facebook){brandhtml+="<div id='p1-facebook' style='top:"+brandjson.hero_block.facebook["@attributes"].y+"px; left:"+brandjson.hero_block.facebook["@attributes"].x+"px; position: absolute;'>";brandhtml+="<div id='fb-root'></div>";brandhtml+="<script src='http://connect.facebook.net/"+window.configjson.page.settings.facebook_locale["#text"]+"/all.js#appId=180207902035159&amp;xfbml=1'><\/script>";brandhtml+="<fb:like href='"+brandjson.hero_block.facebook["@attributes"].url+"' send='false' width='450' show_faces='false' font=''></fb:like>";brandhtml+="</div>	"}if(brandjson.hero_block.ctas){var ctaObj=brandjson.hero_block.ctas.cta;if(!ctaObj.length){var p1cta=ctaObj;if(p1cta["@attributes"].type=="normal"){brandhtml+="<a href='"+p1cta["@attributes"].url+"' class='p1-cta normal futura'  onClick=\"tracking.trackClick({pageName:track_site+'"+p1cta["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\" style='position:absolute; left:"+p1cta["@attributes"].x+"px; top:"+p1cta["@attributes"].y+"px;'>"+getTrans(p1cta.copy["#text"])+"</a>"}else{if(p1cta["@attributes"].type=="expandable"){brandhtml+="<div id='rollover-sub-container' style='position:absolute; left:"+p1cta["@attributes"].x+"px; top:"+p1cta["@attributes"].y+"px;'>";brandhtml+="<div class='expandable futura'> <a href='#' class='p1-cta'>"+getTrans(p1cta.copy["#text"])+"</a> </div>";var subctaObj=p1cta.subctas.cta;if(!subctaObj.length){var p1subcta=subctaObj;brandhtml+="<a href='"+p1subcta.url["#text"]+"' onClick=\"tracking.trackClick({pageName:track_site+'"+p1subcta["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\" class='p1-cta sub futura' style='display:none;'>"+getTrans(p1subcta.copy["#text"])+"</a>"}else{for(j=0;j<subctaObj.length;j++){var p1subcta=subctaObj[j];brandhtml+="<a href='"+p1subcta.url["#text"]+"' onClick=\"tracking.trackClick({pageName:track_site+'"+p1subcta["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\" class='p1-cta sub futura' style='display:none;'>"+getTrans(p1subcta.copy["#text"])+"</a>"}}brandhtml+="</div>"}}}else{for(i=0;i<ctaObj.length;i++){var p1cta=ctaObj[i];if(p1cta["@attributes"].type=="normal"){brandhtml+="<a href='"+p1cta["@attributes"].url+"' class='p1-cta normal futura'  onClick=\"tracking.trackClick({pageName:track_site+'"+p1cta["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\" style='position:absolute; left:"+p1cta["@attributes"].x+"px; top:"+p1cta["@attributes"].y+"px;'>"+getTrans(p1cta.copy["#text"])+"</a>"}else{if(p1cta["@attributes"].type=="expandable"){brandhtml+="<div id='rollover-sub-container' style='position:absolute; left:"+p1cta["@attributes"].x+"px; top:"+p1cta["@attributes"].y+"px;'>";brandhtml+="<div class='expandable futura'> <a href='#' class='p1-cta'>"+getTrans(p1cta.copy["#text"])+"</a> </div>";var subctaObj=p1cta.subctas.cta;if(!subctaObj.length){var p1subcta=subctaObj}else{for(j=0;j<subctaObj.length;j++){var p1subcta=subctaObj[j];brandhtml+="<a href='"+p1subcta.url["#text"]+"' onClick=\"tracking.trackClick({pageName:track_site+'"+p1cta["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\" class='p1-cta sub futura' style='display:none;'>"+getTrans(p1subcta.copy["#text"])+"</a>"}}brandhtml+="</div>"}}}}}brandhtml+="</div>"}if(brandjson.hero_block.no_cta_url){window.p1clickable=true;if(brandjson.hero_block.no_cta_url["#text"]){window.no_cta_url=brandjson.hero_block.no_cta_url["#text"]}else{window.no_cta_url=brandjson.hero_block.no_cta_url["#cdata-section"]}window.tracking_string=brandjson.hero_block.no_cta_url["@attributes"].trackStr}else{window.p1clickable=false}brandhtml+="</div>";brandhtml+="<div id='brand-right'>";brandhtml+="<div id='carousel-container'>";brandhtml+="<div id='carousel' style='position: absolute; width:300px; height: 294px; overflow: hidden;'>";var carouselObj=brandjson.carousel_block;if(!carouselObj.carousel_item.length){var item=carouselObj.carousel_item;var itemtrack="\"tracking.trackClick({pageName:track_site+'"+item["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'}); window.location='"+item.url["#text"]+"';\"";brandhtml+="<div id='"+item["@attributes"].id+"_item' style='position: relative;' class='item' onClick="+itemtrack+">";brandhtml+="<div class='item-off' style='position: absolute; width:300px; height:300px; background:url(\""+item.image_main["#text"]+"\") no-repeat 0 0;'>";brandhtml+="<p class='futura' id='"+item["@attributes"].id+"_title' style='top:"+item.title["@attributes"].y+"px; left:"+item.title["@attributes"].x+"px; color:"+item.title["@attributes"].textColor+";'>"+getTrans(item.title["#text"])+"</p>";brandhtml+="</div>";brandhtml+="<div class='item-on' style='display:none; position: absolute; width:300px; height:300px;  background:url(\""+item.image_hi["#text"]+"\") no-repeat 0 0;'>";brandhtml+="<p class='futura roll_title' id='"+item["@attributes"].id+"_rollovertitle'  style='top:"+item.rollover_title["@attributes"].y+"px; left:"+item.rollover_title["@attributes"].x+"px; color:"+item.rollover_title["@attributes"].textColor+";'>"+getTrans(item.rollover_title["#text"])+"</p>";brandhtml+="<p class='futura roll_sub' id='"+item["@attributes"].id+"_rolloversub'  style='top:"+item.rollover_subtitle["@attributes"].y+"px; left:"+item.rollover_subtitle["@attributes"].x+"px; color:"+item.rollover_subtitle["@attributes"].textColor+";'>"+getTrans(item.rollover_subtitle["#text"])+"</p>";brandhtml+="</div>";brandhtml+="</div>"}else{for(i=0;i<carouselObj.carousel_item.length;i++){var item=carouselObj.carousel_item[i];console.log(i+"_ITEM "+item);console.log("item id "+item["@attributes"].id);brandhtml+="<div id='"+item["@attributes"].id+"_item' style='position: relative;' class='item' onClick=\"tracking.trackClick({pageName:track_site+'"+item["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'}); window.location='"+item.url["#text"]+"';\">";brandhtml+="<div class='item-off' style='position: absolute; width:300px; height:300px; background:url(\""+item.image_main["#text"]+"\") no-repeat 0 0;'>";brandhtml+="<p class='futura' id='"+item["@attributes"].id+"_title' style='top:"+item.title["@attributes"].y+"px; left:"+item.title["@attributes"].x+"px; color:"+item.title["@attributes"].textColor+";'>"+getTrans(item.title["#text"])+"</p>";brandhtml+="</div>";brandhtml+="<div class='item-on' style='display:none; position: absolute; width:300px; height:300px;  background:url(\""+item.image_hi["#text"]+"\") no-repeat 0 0;'>";brandhtml+="<p class='futura roll_title' id='"+item["@attributes"].id+"_rollovertitle'  style='top:"+item.rollover_title["@attributes"].y+"px; left:"+item.rollover_title["@attributes"].x+"px; color:"+item.rollover_title["@attributes"].textColor+";'>"+getTrans(item.rollover_title["#text"])+"</p>";brandhtml+="<p class='futura roll_sub' id='"+item["@attributes"].id+"_rolloversub'  style='top:"+item.rollover_subtitle["@attributes"].y+"px; left:"+item.rollover_subtitle["@attributes"].x+"px; color:"+item.rollover_subtitle["@attributes"].textColor+";'>"+getTrans(item.rollover_subtitle["#text"])+"</p>";brandhtml+="</div>";brandhtml+="</div>"}}brandhtml+="</div>";brandhtml+="<div id='carousel-nav'>";brandhtml+="<div id='nav-items'></div>";brandhtml+="</div>";if(brandjson.tout_block){brandhtml+="<div id='p3-container' onclick=\"tracking.trackClick({pageName:track_site+'"+brandjson.tout_block["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'}); window.location='"+brandjson.tout_block.url["#text"]+"';\">";brandhtml+="<div id='p3-main' style='position:absolute;height:300px;width:300px;background:url(\""+brandjson.tout_block.image_main["#text"]+"\") no-repeat 0 0;'>";brandhtml+="<div id='p3-content-main' style='left:150px; top:210px; color:#FFF;'>";brandhtml+="<p class='futura' style='position:absolute; display:block; left:"+brandjson.tout_block.title["@attributes"].x+"px; top:"+brandjson.tout_block.title["@attributes"].y+"px; color:"+brandjson.tout_block.title["@attributes"].textColor+";'>"+getTrans(brandjson.tout_block.title["#text"])+"</p>";brandhtml+="</div>";brandhtml+="</div>";brandhtml+="<div id='p3-rollover' style='position:absolute;height:300px;width:300px; display:none; background:url(\""+brandjson.tout_block.image_hi["#text"]+"\") no-repeat 0 0;'>";brandhtml+="<div id='p3-content-rollover'>";brandhtml+="<p class='futura' style='position:absolute; left:"+brandjson.tout_block.rollover_title["@attributes"].x+"px; top:"+brandjson.tout_block.rollover_title["@attributes"].y+"px; color:"+brandjson.tout_block.rollover_title["@attributes"].textColor+";'>"+getTrans(brandjson.tout_block.rollover_title["#text"])+"</p>";brandhtml+="<p class='futura run' style='position:absolute; left:"+brandjson.tout_block.rollover_subtitle["@attributes"].x+"px; top:"+brandjson.tout_block.rollover_subtitle["@attributes"].y+"px; color:"+brandjson.tout_block.rollover_subtitle["@attributes"].textColor+";'>"+getTrans(brandjson.tout_block.rollover_subtitle["#text"])+"</p>";brandhtml+="</div>";brandhtml+="</div>";brandhtml+="</div>"}if(brandjson.video_item){if(brandjson.video_item.cta){var cta_url=brandjson.video_item.cta["#text"];var cta_copy=getTrans(brandjson.video_item.cta["@attributes"].copy)}brandhtml+="<div id='p3-video'>";brandhtml+="<a href='#' class='launches_gallery' data-media-id='v1' id='"+brandjson.video_item["@attributes"].param+"' onClick=\"tracking.trackClick({pageName:track_site+'"+brandjson.video_item["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\">";brandhtml+="<img alt='' src='"+brandjson.video_item.image["#text"]+"'> ";brandhtml+="</a>";brandhtml+="</div>"}brandhtml+="</div>";brandhtml+="</div>";brandhtml+="</div>";var secondaryjson=window.configjson.page.secondary_message;var secondaryhtml="";if(secondaryjson){var ctaObj=secondaryjson.ctas;secondaryhtml+="<div id='gearup_area' style='background:url(\""+secondaryjson.image_main["#text"]+"\") no-repeat 0 0'>";secondaryhtml+="<div class='inner-content'>";secondaryhtml+="<p class='futura headline' style='position: absolute; top: "+secondaryjson.title["@attributes"].y+"px; left: "+secondaryjson.title["@attributes"].x+"px; color:"+secondaryjson.title["@attributes"].textColor+"'>"+getTrans(secondaryjson.title["#text"])+"</p>";secondaryhtml+="<p class='futura sub-text' style='position: absolute; left: "+secondaryjson.subtitle["@attributes"].x+"px; top: "+secondaryjson.subtitle["@attributes"].y+"px; color:"+secondaryjson.subtitle["@attributes"].textColor+";'>"+getTrans(secondaryjson.subtitle["#text"])+"</p>";if(!ctaObj.cta.length){var cta_item=ctaObj.cta;secondaryhtml+="<a class='futura' style='position: absolute; left: "+cta_item["@attributes"].x+"px; width: 115px; color: "+cta_item["@attributes"].textColor+"; background-color: "+cta_item["@attributes"].bgcolor+"; top: "+cta_item["@attributes"].y+"px;' href='"+cta_item["@attributes"].url+"' onClick=\"tracking.trackClick({pageName:track_site+'"+cta_item["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\">"+getTrans(cta_item.copy["#text"])+"</a>"}else{for(i=0;i<ctaObj.cta.length;i++){var cta_item=ctaObj.cta[i];secondaryhtml+="<a class='futura' style='position: absolute; left: "+cta_item["@attributes"].x+"px; width: 115px; color: "+cta_item["@attributes"].textColor+"; background-color: "+cta_item["@attributes"].bgcolor+"; top: "+cta_item["@attributes"].y+"px;' href='"+cta_item["@attributes"].url+"' onClick=\"tracking.trackClick({pageName:track_site+'"+cta_item["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\">"+getTrans(cta_item.copy["#text"])+"</a>"}}secondaryhtml+="</div>";secondaryhtml+="</div>"}else{secondaryhtml+="<div id='gearup_area' class='alt'></div>"}var socialjson=window.configjson.page.socialTout_block;var ctaObj=socialjson.ctas;var socialhtml="";socialhtml+="<div id='social_links'>";socialhtml+="<div id='date_area'>";socialhtml+="<p class='month'>month</p>";socialhtml+="</div>";socialhtml+="<div id='main_social'>";socialhtml+="<h3 class='futura'>"+getTrans(socialjson.title["#text"])+"</h3>";if(window.configjson.page.facebooklike_disabled){}else{socialhtml+="<div id='fb_content'>";socialhtml+="<div id='fb-root'></div>";socialhtml+="<script src='http://connect.facebook.net/"+window.configjson.page.settings.facebook_locale["#text"]+"/all.js#appId=180207902035159&amp;xfbml=1'><\/script>";socialhtml+="<fb:like href='"+socialjson.ctas.cta[0]["@attributes"].url+"' send='false' width='450' show_faces='false' font=''></fb:like>";socialhtml+="</div>"}socialhtml+="</div>";socialhtml+="<div id='icons'>";if(!ctaObj.cta.length){var social_cta=ctaObj.cta;socialhtml+="<a id='socail_"+social_cta["@attributes"].id+"' onClick=\"tracking.trackClick({pageName:track_site+'"+social_cta["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\" href='"+social_cta["@attributes"].url+"' target='_blank'><img src='"+social_cta.icon["#text"]+"' alt='"+social_cta["@attributes"].id+"'/></a>"}else{for(i=0;i<ctaObj.cta.length;i++){var social_cta=ctaObj.cta[i];socialhtml+="<a id='socail_"+social_cta["@attributes"].id+"' onClick=\"tracking.trackClick({pageName:track_site+'"+social_cta["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\" href='"+social_cta["@attributes"].url+"' target='_blank'><img src='"+social_cta.icon["#text"]+"' alt='"+social_cta["@attributes"].id+"'/></a>"}}socialhtml+="</div>";socialhtml+="</div>";var editorialjson=window.configjson.page.editorial;var editorialhtml="";editorialhtml+="<div id='hidden_data_module' style='display:none'></div>";editorialhtml+="<div id='editorial'>";editorialhtml+="<div id='editorial-left'>";editorialhtml+="<div id='1a' class='block type-1'></div>";editorialhtml+="<div id='1b' class='block type-1'></div>";editorialhtml+="<div id='3a' class='block type-3'></div>";editorialhtml+="<div id='3b' class='block type-3'></div>";editorialhtml+="</div>";editorialhtml+="<div id='editorial-right'>";editorialhtml+="<div id='2a' class='block type-2'></div>";editorialhtml+="<div id='2b' class='block type-2'></div>";editorialhtml+="</div>";editorialhtml+="<div id='editorial-overlay'></div>";editorialhtml+="</div>";var additionalhtml="";if(site_data.settings.platypus_lang_locale=="en_US"||site_data.settings.platypus_lang_locale=="en_CA"){additionalhtml+="<div id='thirdpartytracking' style='display:none;'>";additionalhtml+="<img height='1' width='1' src='http://view.atdmt.com/action/FY12_APR_ColdWeatherRUN_LP'/>";additionalhtml+="</div>"}additionalhtml+="<div id='loginmodule' class='loginmodule' style='visibility:hidden;'></div>";var contenthtml=loginhtml+brandhtml+secondaryhtml+socialhtml+editorialhtml+additionalhtml;JQ("#content_container").append(contenthtml);JQ(function(){var m=new Date();var month=new Array();month[0]=getTrans("month_0");month[1]=getTrans("month_1");month[2]=getTrans("month_2");month[3]=getTrans("month_3");month[4]=getTrans("month_4");month[5]=getTrans("month_5");month[6]=getTrans("month_6");month[7]=getTrans("month_7");month[8]=getTrans("month_8");month[9]=getTrans("month_9");month[10]=getTrans("month_10");month[11]=getTrans("month_11");var trans_month=month[m.getMonth()];JQ("#date_area p.month").html(trans_month)});for(i=0;i<editorialjson.editorial_item.length;i++){var editorialitem=editorialjson.editorial_item[i];if(editorialitem.module.length){for(j=0;j<editorialitem.module.length;j++){var emodule=editorialitem.module[j];if(emodule["@attributes"].type=="blog"||emodule["@attributes"].type=="blog_news"||emodule["@attributes"].type=="blog_events"||emodule["@attributes"].type=="blog_training"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"' class='editorial_icon blog' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_iconcopy' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy blog'>"+getTrans("header_"+emodule["@attributes"].type)+"</p>");var slug=new blogFeed();slug.setUpblogFeed(editorialitem["@attributes"].pos,emodule["@attributes"].param,getTrans("readMore"))})}else{if(emodule["@attributes"].type=="challenge"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"_icon' class='editorial_icon challenge' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_iconcopy' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy'>"+getTrans("header_"+emodule["@attributes"].type)+"</p>");getChallenge(editorialitem["@attributes"].pos,emodule["@attributes"].param,getTrans("joinNow"),getTrans("numChallengers"))})}else{if(emodule["@attributes"].type=="facebook"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"_icon' class='editorial_icon facebook' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_iconcopy' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy'>"+getTrans("header_"+emodule["@attributes"].type)+"</p>");setUpFBFeed(editorialitem["@attributes"].pos,emodule["@attributes"].param,emodule["@attributes"].size)})}else{if(emodule["@attributes"].type=="twitter"||emodule["@attributes"].type=="twitter_athlete"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"_icon' class='editorial_icon twitter' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_iconcopy' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy'>"+getTrans("header_"+emodule["@attributes"].type)+"</p>");getTweets(editorialitem["@attributes"].pos,emodule["@attributes"].size,emodule["@attributes"].param)})}else{if(emodule["@attributes"].type=="youtubevideo"){JQ(function(){var str="<div class='youtubevideo'>";str+="<iframe width='"+emodule["@attributes"].width+"' height='"+emodule["@attributes"].height+"' src='"+emodule.src["#text"]+"?rel=0' frameborder='0' allowfullscreen></iframe>";str+="</div>";JQ("#"+editorialitem["@attributes"].pos).append(str)})}else{if(emodule["@attributes"].type=="instagram"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"_icon' class='editorial_icon twitter' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_iconcopy' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy'>"+getTrans("header_"+emodule["@attributes"].type)+"</p>");getInstagram(editorialitem["@attributes"].pos,emodule["@attributes"].size,emodule["@attributes"].param,emodule["@attributes"].tag,emodule["@attributes"].desc)})}else{if(emodule["@attributes"].type=="video"){JQ(function(){videoFeed.getVideo(editorialitem["@attributes"].pos,emodule["@attributes"].param,emodule.image["#text"],emodule.image_static["#text"],emodule["@attributes"].trackStr)})}else{if(emodule["@attributes"].type=="video_gallery"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<a href='#' class='launches_gallery' data-media-id='v2' id='"+emodule["@attributes"].param+"' onClick=\"tracking.trackClick({pageName:track_site+'"+emodule["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\"> <img alt='' src='"+emodule.image["#text"]+"'> </a>");JQ("a.launches_gallery").bind("click",launchGalleryUsingNikePlayer)})}else{if(emodule["@attributes"].type=="tout"&&emodule["@attributes"].param=="challenge_default"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"_icon' class='editorial_icon challenge' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_iconcopy' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy'>"+getTrans(emodule.title["#text"])+"</p>");JQ("#"+editorialitem["@attributes"].pos).append("<div class='tout'><a href='"+emodule.link["#text"]+"'><img src='"+emodule.image["#text"]+"' onClick=\"tracking.trackClick({pageName:track_site+'"+emodule.cta_copy["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\" width='300' height='268'/></a>");JQ("#"+editorialitem["@attributes"].pos).append("<p class='title futura'>"+getTrans(emodule.title["#text"])+"</p>");JQ("#"+editorialitem["@attributes"].pos).append("<p class='content'>"+getTrans(emodule.copy["#text"])+"</p>");JQ("#"+editorialitem["@attributes"].pos).append("<a class='cta' href='"+emodule.link["#text"]+"' onClick=\"tracking.trackClick({pageName:track_site+'"+emodule.cta_copy["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\">"+getTrans(emodule.cta_copy["#text"])+"</a></div>")})}else{JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div class='tout'><a onClick=\"tracking.trackClick({pageName:track_site+'"+emodule["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\" href='"+emodule.link["#text"]+"'><img src='"+emodule.image["#text"]+"'/></a></div>")})}}}}}}}}}}}else{var emodule=editorialitem.module;if(emodule["@attributes"].type=="blog"||emodule["@attributes"].type=="blog_news"||emodule["@attributes"].type=="blog_events"||emodule["@attributes"].type=="blog_training"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"' class='editorial_icon blog' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_iconcopy' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy blog'>"+getTrans("header_"+emodule["@attributes"].type)+"</p>");var slug=new blogFeed();slug.setUpblogFeed(editorialitem["@attributes"].pos,emodule["@attributes"].param,getTrans("readMore"))})}else{if(emodule["@attributes"].type=="challenge"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"_icon' class='editorial_icon challenge' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_iconcopy' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy'>"+getTrans("header_"+emodule["@attributes"].type)+"</p>");getChallenge(editorialitem["@attributes"].pos,emodule["@attributes"].param,getTrans("joinNow"),getTrans("numChallengers"))})}else{if(emodule["@attributes"].type=="facebook"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"_icon' class='editorial_icon facebook' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_iconcopy' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy'>"+getTrans("header_"+emodule["@attributes"].type)+"</p>");setUpFBFeed(editorialitem["@attributes"].pos,emodule["@attributes"].param,emodule["@attributes"].size)})}else{if(emodule["@attributes"].type=="twitter"||emodule["@attributes"].type=="twitter_athlete"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"_icon' class='editorial_icon twitter' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_iconcopy' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy'>"+getTrans("header_"+emodule["@attributes"].type)+"</p>");getTweets(editorialitem["@attributes"].pos,emodule["@attributes"].size,emodule["@attributes"].param)})}else{if(emodule["@attributes"].type=="youtubevideo"){JQ(function(){var str="<div class='youtubevideo'>";str+="<iframe width='"+emodule["@attributes"].width+"' height='"+emodule["@attributes"].height+"' src='"+emodule.src["#text"]+"?rel=0' frameborder='0' allowfullscreen></iframe>";str+="</div>";JQ("#"+editorialitem["@attributes"].pos).append(str)})}else{if(emodule["@attributes"].type=="instagram"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"_icon' class='editorial_icon twitter' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_iconcopy' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy'>"+getTrans("header_"+emodule["@attributes"].type)+"</p>");getInstagram(editorialitem["@attributes"].pos,emodule["@attributes"].size,emodule["@attributes"].param,emodule["@attributes"].tag,emodule["@attributes"].desc)})}else{if(emodule["@attributes"].type=="video"){JQ(function(){videoFeed.getVideo(editorialitem["@attributes"].pos,emodule["@attributes"].param,emodule.image["#text"],emodule.image_static["#text"],emodule["@attributes"].trackStr)})}else{if(emodule["@attributes"].type=="video_gallery"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<a href='#' class='launches_gallery' data-media-id='v2' id='"+emodule["@attributes"].param+"' onClick=\"tracking.trackClick({pageName:track_site+'"+emodule["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\"> <img alt='' src='"+emodule.image["#text"]+"'> </a>");JQ("a.launches_gallery").bind("click",launchGalleryUsingNikePlayer)})}else{if(emodule["@attributes"].type=="tout"&&emodule["@attributes"].param=="challenge_default"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"_icon' class='editorial_icon challenge' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_iconcopy' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy'>"+getTrans(emodule.title["#text"])+"</p>");JQ("#"+editorialitem["@attributes"].pos).append("<div class='tout'><a href='"+emodule.link["#text"]+"'><img src='"+emodule.image["#text"]+"' onClick=\"tracking.trackClick({pageName:track_site+'"+emodule.cta_copy["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\" width='300' height='268'/></a><p class='title futura'>"+getTrans(emodule.title["#text"])+"</p><p class='content'>"+getTrans(emodule.copy["#text"])+"</p><a class='cta' href='"+emodule.link["#text"]+"' onClick=\"tracking.trackClick({pageName:track_site+'"+emodule.cta_copy["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\">"+getTrans(emodule.cta_copy["#text"])+"</a></div>")})}else{JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div class='tout'><a onClick=\"tracking.trackClick({pageName:track_site+'"+emodule["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\" href='"+emodule.link["#text"]+"'><img src='"+emodule.image["#text"]+"'/></a></div>")})}}}}}}}}}}for(j=0;j<editorialitem.module.length;j++){var emodule=editorialitem.module[j];if(emodule["@attributes"].type=="blog"||emodule["@attributes"].type=="blog_news"||emodule["@attributes"].type=="blog_events"||emodule["@attributes"].type=="blog_training"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"' class='editorial_icon blog' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_iconcopy' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy blog'>"+getTrans("header_"+emodule["@attributes"].type)+"</p>");var slug=new blogFeed();slug.setUpblogFeed(editorialitem["@attributes"].pos,emodule["@attributes"].param,getTrans("readMore"))})}else{if(emodule["@attributes"].type=="challenge"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"_icon' class='editorial_icon challenge' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_iconcopy' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy'>"+getTrans("header_"+emodule["@attributes"].type)+"</p>");getChallenge(editorialitem["@attributes"].pos,emodule["@attributes"].param,getTrans("joinNow"),getTrans("numChallengers"))})}else{if(emodule["@attributes"].type=="facebook"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"_icon' class='editorial_icon facebook' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_iconcopy' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy'>"+getTrans("header_"+emodule["@attributes"].type)+"</p>");setUpFBFeed(editorialitem["@attributes"].pos,emodule["@attributes"].param,emodule["@attributes"].size)})}else{if(emodule["@attributes"].type=="twitter"||emodule["@attributes"].type=="twitter_athlete"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"_icon' class='editorial_icon twitter' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_iconcopy' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy'>"+getTrans("header_"+emodule["@attributes"].type)+"</p>");getTweets(editorialitem["@attributes"].pos,emodule["@attributes"].size,emodule["@attributes"].param)})}else{if(emodule["@attributes"].type=="youtubevideo"){JQ(function(){var str="<div class='youtubevideo'>";str+="<iframe width='"+emodule["@attributes"].width+"' height='"+emodule["@attributes"].height+"' src='"+emodule.src["#text"]+"?rel=0' frameborder='0' allowfullscreen></iframe>";str+="</div>";JQ("#"+editorialitem["@attributes"].pos).append(str)})}else{if(emodule["@attributes"].type=="instagram"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"_icon' class='editorial_icon twitter' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_"+getTrans("header_"+emodule["@attributes"].type)+"' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy'>"+getTrans("header_"+emodule["@attributes"].type)+"</p>");getInstagram(editorialitem["@attributes"].pos,emodule["@attributes"].size,emodule["@attributes"].param,emodule["@attributes"].tag,emodule["@attributes"].desc)})}else{if(emodule["@attributes"].type=="video"){JQ(function(){videoFeed.getVideo(editorialitem["@attributes"].pos,emodule["@attributes"].param,emodule.image["#text"],emodule.image_static["#text"],emodule["@attributes"].trackStr)})}else{if(emodule["@attributes"].type=="video_gallery"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<a href='#' class='launches_gallery' data-media-id='v2' id='"+emodule["@attributes"].param+"' onClick=\"tracking.trackClick({pageName:track_site+'"+emodule["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\"> <img alt='' src='"+emodule.image["#text"]+"'> </a>");JQ("a.launches_gallery").bind("click",launchGalleryUsingNikePlayer)})}else{if(emodule["@attributes"].type=="tout"&&emodule["@attributes"].param=="challenge_default"){JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div id='"+editorialitem["@attributes"].pos+"_icon' class='editorial_icon challenge' onmouseover='editorialRollover(this, \""+editorialitem["@attributes"].pos+"\");' onmouseout='editorialRollout(this, \""+editorialitem["@attributes"].pos+"\");'></div>");JQ("#"+editorialitem["@attributes"].pos).append("<p id='"+editorialitem["@attributes"].pos+"_iconcopy' style=\"opacity:0;filter: alpha(opacity = 0);\" class='futura iconcopy'>"+getTrans(emodule.title["#text"])+"</p>");JQ("#"+editorialitem["@attributes"].pos).append("<div class='tout'><a href='"+emodule.link["#text"]+"'><img src='"+emodule.image["#text"]+"' onClick=\"tracking.trackClick({pageName:track_site+'"+emodule.cta_copy["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});' width='300' height='268'/></a><p class='title futura'>"+getTrans(emodule.title["#text"])+"</p><p class='content'>"+getTrans(emodule.copy["#text"])+"</p><a class='cta' href='"+emodule.link["#text"]+"' onClick=\"tracking.trackClick({pageName:track_site+'"+emodule.cta_copy["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\">"+getTrans(emodule.cta_copy["#text"])+"</a></div>")})}else{JQ(function(){JQ("#"+editorialitem["@attributes"].pos).append("<div class='tout'><a onClick=\"tracking.trackClick({pageName:track_site+'"+emodule["@attributes"].trackStr+"',prop18:'home', eVar12:'tout'});\" href='"+emodule.link["#text"]+"'><img src='"+emodule.image["#text"]+"'/></a></div>")})}}}}}}}}}}}if(brandjson.hero_block.video){JQ(function(){videoFeed.getVideo(brandjson.hero_block.video["@attributes"].id,brandjson.hero_block.video["@attributes"].guid,brandjson.hero_block.video["#text"],brandjson.hero_block.video["@attributes"].trackStr);var top=Number(brandjson.hero_block.video["@attributes"].y)+105;JQ("#brand_msg #brand-left #videotitle").css("top",top+"px")})}homepageMethodStatic();carouselConfigStatic();JQ("#shadow-container").css("height",JQ("#shadow-container").height()+40);JQ("#brand_msg #brand-right #p3-container").css("margin-left",0);JQ("#social_links #icons a").css("margin-left",4)};
