var videoFeed=function(){var _={},position,trackStr,img_animated,img_stoped,show_cta=false;_.getVideo=function(divid,param,img,img_static,trk,has_cta){img_animated=img;img_stoped=img_static;position=divid;trackStr=trk;var guid=param;JQ("#"+divid).append('<img src="'+img+'" alt="" style="cursor: pointer;" onClick=\'tracking.trackClick({pageName: track_site+"'+trackStr+'",prop18:"home", eVar12:"tout",eVar13:track_site+"'+trackStr+"\"});'  />");JQ("#"+divid).click(function(){JQ("#"+divid).find("img").attr("src",img_static);position=divid;img_animated=img;img_stoped=img_static;trackStr=trk;if(has_cta==null){show_cta=false}else{show_cta=has_cta}_.addVideo(guid)})};_.addVideo=function(guid){var current_locale=JQ("body").attr("class");JQ("#overlay_simplified").show();console.log(guid);VC.create_player({container_id:"player_temp",videoId:guid,"@videoId":guid,width:"910",height:"510",labels:"//admin.nikevideo.nike.com/static/video_player/xml/translate/2.0/"+current_locale+"_Labels.xml",locale:current_locale,autoStart:"true",isVid:"true",isUI:"true",wmode:"transparent",videoSmoothing:"true",dynamicStreaming:"true"});JQ("#videoplayer").append('<a href="javascript:;" title="Close" id="close_video">X</a>');if(show_cta){var ctahtml='<div class="vid_cta">';ctahtml+='		<img id="cta_left" width="41" height="30" style="float: left;" src="/nikeplus/us/v2/en_US/images/redesign_2011/login/bg_left_corner.png">';ctahtml+='			<div id="cta_inner_content">';ctahtml+='				<a href="'+cta_url+'">'+cta_copy+"</a>";ctahtml+="			</div>";ctahtml+='		<img id="cta_right" width="11" height="30" style="float: left;" src="/nikeplus/us/v2/en_US/images/redesign_2011/login/bg_right_corner.png">';ctahtml+="</div>";JQ("#videoplayer").append(ctahtml)}JQ("a#close_video").click(function(e){e.preventDefault();_.closeVideo("player_temp")})};_.closeVideo=function(player){VC.bc_video_stop();brightcove.removeExperience(player);JQ("#"+position).find("img").attr("src",img_animated);JQ("a#close_video").remove();JQ("#overlay_simplified").hide();JQ("#videoplayer").html('<div id="player_temp"></div>')};var trackClick=function(d,t){var tObj={pageName:track_site+">home"+d,prop18:"home"};if(!!t){tObj.eVar12="tout"}nikeplus.tracking.click(tObj)};return _}();
