if(typeof (renderStartTime)!="undefined"){Event.observe(window,"load",function(B){var A="http://sense.dailymotion.com/images/vs/tag.gif";var C=new Hash({vs_version:"version",vs_locale:"locale",vs_country:"country",vs_channel:"actionchannel",vs_pagename:"actionpage"});var D=new Hash();D.set("action","timer");D.set("npd",Math.round((new Date()-renderStartTime)/10));if(typeof (vskeys)=="object"){C.each(function(E){if($H(vskeys).get(E.key)!=undefined){D.set(E.value,$H(vskeys).get(E.key))}})}if(typeof (memoryPeakUsage)!="undefined"){D.set("memory_peak_usage",memoryPeakUsage)}if(typeof (memoryUsage)!="undefined"){D.set("memory_usage",memoryUsage)}(new Image()).src=A+"?"+D.toQueryString()})}var vskeys;var vsUrl;var vsRedUrl;var cookieEnabled=(function cookieEnabled(){setCookieWithFormat("cookie_enabled","y",1,"m");if(getCookie("cookie_enabled")=="y"){return true}return false})();function cookieSet(A,B,C){d=new Date();d.setTime(d.getTime()+(C*1000));expiry="; expires="+d.toGMTString();document.cookie=A+"="+B+expiry+"; path=/"}function instrument(C){var B;for(B=0;B<C.length;B++){var A={rank:B,call:function(D){var E=location.href.substring((location.href.lastIndexOf("/"))+1);if(E[0]<"0"||E[0]>"9"){E=0}else{E=parseInt(E)-1}cookieSet("rn",""+E+","+this.rank,60)}};Event.observe(C[B],"click",A.call.bindAsEventListener(A))}}var instrumentActionCounter=new Array();function instrumentAction(elts,action,type,method){if(action=="OSU/Send"){var url=vsRedUrl+"log=1&action="+encodeURIComponent(action);url+="&country="+encodeURIComponent(vskeys["vs_country"]);url+="&locale="+encodeURIComponent(vskeys["vs_locale"]);new Ajax.Request(url,{method:"get"});return }var i;for(i=0;i<elts.length;i++){if(elts[i].is_vs_obs){return }var spa=encodeURIComponent(vskeys["vs_spa"]);if(typeof thefilter_enabled!="undefined"&&thefilter_enabled&&typeof thefilter_recommandation_enabled!="undefined"&&thefilter_recommandation_enabled){if(action.indexOf("related/related")!=-1){spa="thefilter"}}var url=vsRedUrl+"log=1&action="+encodeURIComponent(action);if(type=="video"){url+="&video="+encodeURIComponent(vskeys["vs_video"]);url+="&videotitle="+encodeURIComponent(vskeys["vs_videotitle"]);url+="&user="+encodeURIComponent(vskeys["vs_user"]);url+="&usertype="+encodeURIComponent(vskeys["vs_usertype"]);url+="&version="+encodeURIComponent(vskeys["vs_version"]);url+="&actionpage="+encodeURIComponent(vskeys["vs_pagename"]);if(typeof spa!="undefined"&&spa!="undefined"){url+="&spa="+spa}if(action.indexOf("related")==0){if(!instrumentActionCounter[action]){instrumentActionCounter[action]=0}instrumentActionCounter[action]++;url+="&spb="+instrumentActionCounter[action]}}if(type=="list"){url+="&experience="+encodeURIComponent(vskeys["vs_experience"]);url+="&actionpage="+encodeURIComponent(vskeys["vs_pagename"]);var page="0";if("vs_page" in vskeys){page=vskeys["vs_page"]}url+="&rank="+encodeURIComponent(page+","+i);url+="&version="+encodeURIComponent(vskeys["vs_version"]);url+="&actionchannel="+encodeURIComponent(vskeys["vs_channel"])}if(!cookieEnabled){url+="&Cookies=no"}var observer={elt:elts[i],url:url,call:function(event){if(this.elt.nodeName=="A"&&!this.elt.hasClassName("ajax")&&!this.elt.getAttribute("name")=="ajax"&&this.elt.href.indexOf("javascript")==-1&&this.elt.href.indexOf("#")!=0){event.stop()}var request=new Ajax.Request(this.url,{method:"get",onComplete:function(transport){if(200==transport.status){}var time_out=0;if(typeof method!="undefined"){time_out=300;eval(method)(this.elt)}if(this.elt.nodeName=="A"&&!this.elt.hasClassName("ajax")&&!this.elt.getAttribute("name")=="ajax"&&this.elt.href.indexOf("javascript")==-1&&this.elt.href.indexOf("#")!=0){setTimeout(function(){document.location=this.elt.href}.bind(this),time_out)}}.bindAsEventListener(this)})}};Event.observe(elts[i],"click",observer.call.bindAsEventListener(observer));elts[i].is_vs_obs=true}}function vsStat(){var G=vskeys;var K=screen;var F=document;var J=false;if(F.referrer){G["vs_dr"]=F.referrer}G["vs_dh"]=location.href;G["vs_cb"]=new Date().getTime();G["vs_screen"]=screen.width+"-"+screen.height;for(cKey in G){if(cKey=="vs_pagename"&&G[cKey].substr(0,15)=="player/internal"){J=true;if(typeof (deconcept)=="object"){var A=deconcept.SWFObjectUtil.getPlayerVersion();var B="W";if(navigator.appVersion.indexOf("Win")!=-1){B="W"}else{if(navigator.appVersion.indexOf("Mac")!=-1){B="M"}else{B="U"}}G["vs_fv"]=B+A.major+"."+A.minor+"."+A.rev+".0";G["vs_fvs"]="old";if(A.major>=8){G["vs_fvs"]="on2"}if((A.major==9&&A.rev>=115)||A.major>=10){G["vs_fvs"]="h264"}}break}}if(J){var E="";if($("tabs")&&$("tabs").select("a.context_tab_selected").length){$("tabs").select("a.context_tab_selected").first().classNames().each(function(L){if(L.startsWith("tab_")){E=L.gsub(/tab_/,"")}})}else{E="related"}G["vs_spd"]=E}var I=vsUrl;var D=true;for(cKey in G){if(!D){I+="&"}I+=cKey.substr(3)+"="+encodeURIComponent(G[cKey]);D=false}if(!cookieEnabled){if(!D){I+="&"}I+="Cookies=no"}var C=F.createElement("img");C.src=I;C.id="vstag";var H=F.getElementById("vstag");H.parentNode.insertBefore(C,H.nextSibling)}function vsInstrument(){Event.observe(window,"load",function(){instrument($$("div#videos_list div.videoitem_list a.preview"));instrument($$("div#videos_list div.videoitem_list a.video_titletitle"));instrument($$("div.right_boxes div.videoitem_list a.preview"));instrument($$("div.right_boxes div.videoitem_list a.video_title"));instrumentAction($$("div#mc_close"),"ad/close","all");instrumentAction($$("a.dmpi_video_tools_addbookmark"),"video/bookmark_toggle","video");instrumentAction($$("a.add_playlist"),"video/playlist_add","video");instrumentAction($$("a.add_to_group"),"video/group_add","video");instrumentAction($$("a.name_share"),"video/share","video");instrumentAction($$("a#tools_twitter_link"),"video/share/twitter","video");instrumentAction($$("a#tools_facebook_link"),"video/share/facebook","video");instrumentAction($$("a#tools_skype_link"),"video/share/skype","video");instrumentAction($$("a#tools_more_link"),"video/share/more","video");instrumentAction($$("a.send_feedback"),"video/feedback","video");instrumentAction($$("div.prevnext_prev a"),"video/prev","video");instrumentAction($$("div.prevnext_next a"),"video/next","video");instrumentAction($$("div.dm_button a"),"video/channel_add","video");instrumentAction($$("form.dmpi_familyfilter a.creative_content"),"ff/creative_content","list");instrumentAction($$("div.dm_widget_videocontext div#tabs a.tab_featured"),"tabs/featured","video");instrumentAction($$("div.dm_widget_videocontext div#tabs a.tab_related"),"tabs/related","video");instrumentAction($$("div.dm_widget_videocontext div#tabs a.tab_channel"),"tabs/channel","video");instrumentAction($$("div.dm_widget_videocontext div#tabs a.tab_group"),"tabs/group","video");instrumentAction($$("div.dm_widget_videocontext div#tabs a.tab_playlist"),"tabs/playlist","video");instrumentAction($$("div.dm_widget_videocontext div#tabs a.tab_member"),"tabs/member","video");instrumentAction($$("div.dm_widget_videocontext div#tabs a.tab_video"),"tabs/video","video");instrumentAction($$("body.dm_page_html_video div#related a.link_featured"),"tabs/featured","video");instrumentAction($$("body.dm_page_html_video div#related a.link_related"),"tabs/related","video");instrumentAction($$("body.dm_page_html_video div#related a.link_mychannel"),"tabs/channel","video");instrumentAction($$("body.dm_page_html_video div#related a.link_group"),"tabs/group","video");instrumentAction($$("body.dm_page_html_video div#related a.link_playlist"),"tabs/playlist","video");instrumentAction($$("body.dm_page_html_video div#related a.link_member"),"tabs/member","video");instrumentAction($$("div.big_box_kids div#navigation_list_item_0"),"kids/navigation_list_item_0","all");instrumentAction($$("div.big_box_kids div#navigation_list_item_1"),"kids/navigation_list_item_1","all");instrumentAction($$("div.big_box_kids div#navigation_list_item_2"),"kids/navigation_list_item_2","all");instrumentAction($$("div.big_box_kids div#navigation_list_item_3"),"kids/navigation_list_item_3","all");instrumentAction($$("div.big_box_kids div#navigation_list_item_4"),"kids/navigation_list_item_4","all");instrumentAction($$("div.big_box_kids div#navigation_list_item_5"),"kids/navigation_list_item_5","all");instrumentAction($$("div.big_box_kids div#navigation_list_item_6"),"kids/navigation_list_item_6","all");instrumentAction($$("div.big_box_kids div#navigation_list_item_7"),"kids/navigation_list_item_7","all");instrumentAction($$("div.big_box_kids div#navigation_list_item_8"),"kids/navigation_list_item_8","all");instrumentAction($$("div.big_box_kids div#navigation_list_item_9"),"kids/navigation_list_item_9","all");instrumentAction($$("div.big_box_kids div#navigation_list_item_10"),"kids/navigation_list_item_10","all");instrumentAction($$("div.big_box_kids #navigation_controls_play"),"kids/navigation_controls_play","all");instrumentAction($$("div.big_box_kids #navigation_controls_play.paused"),"kids/navigation_controls_play","all");instrumentAction($$("div.big_box_kids #navigation_controls_forward"),"kids/navigation_controls_forward","all");instrumentAction($$("div.big_box_kids #navigation_controls_reload"),"kids/navigation_controls_reload","all");instrumentAction($$("div.big_box_kids #navigation_next_link"),"kids/navigation_next_link","all");instrumentAction($$("div.big_box_kids #navigation_previous_link"),"kids/navigaton_previous_link","all");instrumentAction($$("div.big_box_kids a.logo"),"kids/logo","all");instrumentAction($$("div.big_box_kids #header div.dmpi_slotlists_home_link1 div a.dmco_simplelink"),"kids/3-6","all");instrumentAction($$("div.big_box_kids #header div.dmpi_slotlists_home_link2 div a.dmco_simplelink"),"kids/7","all");instrumentAction($$("div.big_box_kids div.dmpi_playlist_preview a.preview_link, div.big_box_kids div.dmpi_video_preview a.preview_link"),"kids/playlist","all");instrumentAction($$("div.big_box_kids ul#menu_kids.dmco_menu.header_main_menu li a.logo_kids_link"),"kids/link_DM_to_DMKids","all");instrumentAction($$("input#login_form_login_submit.dmco_form_input"),"openId/login_Normal","all");instrumentAction($$("body.dm_page_html_login div.other a.openid_login_link"),"openId/link_to_openId","all");instrumentAction($$("input#login_openid_form_login_openid.dmco_form_input"),"openId/login_OpenID","all")})}if(typeof (vskeys)!="undefined"&&$$("img#vstag").length==0){vsStat();vsInstrument();vsContextInstrument=function(){instrumentAction($$("div#contexts div.tab_list_featured a.preview, #featured_box_tab a.preview_link"),"related/featured/preview","video");instrumentAction($$("div#contexts div.tab_list_featured a.video_title, #featured_box_tab a.video_title"),"related/featured/title","video");instrumentAction($$("div#contexts div.tab_list_related a.preview"),"related/related/preview","video","DM_Widget_VideoContext.theFilterClickTracking");instrumentAction($$("#related_list_box #list_related a.preview_link"),"related/related/preview","video","DM_Widget_PageItem_Video_Related.theFilterClickTracking");instrumentAction($$("div#contexts div.tab_list_related a.video_title"),"related/related/title","video","DM_Widget_VideoContext.theFilterClickTracking");instrumentAction($$("#related_list_box #list_related a.video_title"),"related/related/title","video","DM_Widget_PageItem_Video_Related.theFilterClickTracking");instrumentAction($$("div#contexts div.tab_list_channel a.preview, #related_list_box #list_mychannel a.preview_link"),"related/channel/preview","video");instrumentAction($$("div#contexts div.tab_list_channel a.video_title, #related_list_box #list_mychannel a.video_title"),"related/channel/title","video");instrumentAction($$("div#contexts div.tab_list_group a.group_icon"),"related/group/preview","video");instrumentAction($$("div#contexts div.tab_list_group a.group_name"),"related/group/title","video");instrumentAction($$("div#contexts div.tab_list_playlist div.playlist_preview a, #related_list_box #list_playlist div.dmpi_playlist_preview a.playlist_preview_link"),"related/playlist/preview","video");instrumentAction($$("div#contexts div.tab_list_playlist a.playlist_name, #related_list_box #list_playlist a.dmpi_playlist_title"),"related/playlist/title","video");instrumentAction($$("div#contexts div.tab_list_member a.preview, #related_list_box #list_member a.preview_link"),"related/member/preview","video");instrumentAction($$("div#contexts div.tab_list_member a.video_title, #related_list_box #list_member a.video_title"),"related/member/title","video");instrumentAction($$("div#contexts div.tab_list_video a.preview"),"related/video/preview","video");instrumentAction($$("div#contexts div.tab_list_video a.video_title"),"related/video/title","video");instrumentAction($$("div#contexts a.all_videos_related, #related_list_box div#list_related a.all_videos"),"related/all","video")};vsContextInstrument()}function vsSimpleCall(B){if(B.indexOf("/lang/")>0){B=B.substr(B.indexOf("/lang/")+6,2)}else{B="All"}var A=vsRedUrl+"log=1&action=selectcomment/"+B;A+="&Video="+encodeURIComponent(vskeys["vs_video"]);A+="&Videotitle="+encodeURIComponent(vskeys["vs_videotitle"]);A+="&user="+encodeURIComponent(vskeys["vs_user"]);A+="&usertype="+encodeURIComponent(vskeys["vs_usertype"]);A+="&version="+encodeURIComponent(vskeys["vs_version"]);A+="&actionpage="+encodeURIComponent(vskeys["vs_pagename"]);A+="&spa="+encodeURIComponent(vskeys["vs_spa"]);if(!cookieEnabled){A+="&Cookies=no"}new Ajax.Request(A)}