var editFilmsMode=false;
var editActorsMode=false;
var isCurrentUser=false;
Event.observe(window,"load",function(){if($("carousel_week_extraits")){var c="/layout/set/empty/content/view/ajax_in_theaters";
new Ajax.Request(c,{onSuccess:function(g){$("carousel_week_extraits").update(g.responseText);
var f=new UI.Carousel("carousel_week_extraits");
$("carousel_week_extraits").firstDescendant().className="previous_button previous_button_disabled";
$("carousel_week_extraits").hide();
$("carousel_week_extraits").style.position="relative"
}})
}if($("carousel_news_home")){selectedNews=0;
newsSlideShowOn=1;
newsSlideShow=function(){if(newsSlideShowOn){selectedNews=(selectedNews+1)%8;
showNewsImage(selectedNews)
}setTimeout("newsSlideShow()",10000)
};
showNewsImage=function(f){selectedNews=f;
if($("carnews_img_"+f).style.zIndex<50){$("carnews_img_"+f).style.opacity=0;
$$(".carousel-news-image").each(function(g){if(g.style.zIndex==50){g.style.zIndex=40
}else{g.style.zIndex=g.style.zIndex-2
}});
$("carnews_img_"+f).style.zIndex=50;
new Effect.Tween($("carnews_img_"+f),0,1,{duration:0.6},function(g){$("carnews_img_"+f).style.opacity=g
});
$$(".carnews-button-selected").each(function(g){g.className="carnews-button"
});
$("carnews_button_"+f).className="carnews-button-selected"
}};
showNewsDesc=function(){newsSlideShowOn=0;
Effect.Queues.get("carnews_desc_queue_"+selectedNews).invoke("cancel");
new Effect.Tween($("carnews_desc_"+selectedNews),(function(){margin=$("carnews_desc_"+selectedNews).style.marginTop;
return parseInt(margin.substring(0,3));
return 250
})(),215,{duration:0.5,queue:{position:"end",scope:"carnews_desc_queue_"+selectedNews}},function(f){$("carnews_desc_"+selectedNews).style.marginTop=f+"px"
})
};
hideNewsDesc=function(){Effect.Queues.get("carnews_desc_queue_"+selectedNews).invoke("cancel");
new Effect.Tween($("carnews_desc_"+selectedNews),(function(){margin=$("carnews_desc_"+selectedNews).style.marginTop;
return parseInt(margin.substring(0,3));
return 215
})(),250,{duration:0.5,queue:{position:"end",scope:"carnews_desc_queue_"+selectedNews}},function(f){$("carnews_desc_"+selectedNews).style.marginTop=f+"px"
});
setTimeout("newsSlideShowOn = 1",1000)
};
redirectToNews=function(){window.location.href=$("carnews_desc_"+selectedNews).readAttribute("href")
};
setTimeout("newsSlideShow()",10000)
}if($("quiz_slideshow")){quizSlideShow=function(f){$("quiz_img_"+f).style.opacity=0;
$$(".quiz-img-slideshow").each(function(g){if(g.style.zIndex==50){g.style.zIndex=40
}else{g.style.zIndex=g.style.zIndex-2
}});
$("quiz_img_"+f).style.zIndex=50;
new Effect.Tween($("quiz_img_"+f),0,1,{duration:1},function(g){$("quiz_img_"+f).style.opacity=g
});
setTimeout("quizSlideShow("+(f+1)%7+")",4000)
};
setTimeout("quizSlideShow(1)",4000)
}if($("rating_list_home")){var c="/layout/set/empty/content/view/ajax_rating";
new Ajax.Request(c,{onSuccess:function(f){$("rating_list_home").update(f.responseText);
updateRateUser();
$$(".movie-wish-container").each(function(g){getWish(g.readAttribute("node_id"))
})
}})
}if($("activity_home")){var c="/layout/set/empty/content/view/ajax_activity";
new Ajax.Request(c,{onSuccess:function(f){$("activity_home").update(f.responseText)
}})
}if($("concours_logged_in")){concoursLoggedIn()
}if($("questionnaire_end")){new Ajax.Request("/vodkaster/questionnaire_end",{onSuccess:function(f){$("questionnaire_end_loader").hide();
$("questionnaire_end").update(f.responseText);
$("questionnaire_end").show();
new Effect.Opacity("questionnaire_end",{from:0,to:1,duration:2});
updateRateUser();
$$(".bookmark_button").each(function(k){var h=k.readAttribute("id").sub("selection_","").sub("bookmark_","");
var g=k.hasClassName("large")?"bookmark_large":(k.hasClassName("quiz")?"bookmark_quiz":"bookmark");
var j="/layout/set/empty/content/view/attribute/"+h+"/(type)/"+g;
new Ajax.Request(j,{onSuccess:function(o){k.update(o.responseText);
var m=k.down("img").identify();
var l=$(m);
var n=l.readAttribute("src");
if(l.hasClassName("selected")){l.writeAttribute("src",n.sub(".png","_on.png"))
}else{l.observe("mouseover",function(){this.writeAttribute("src",n.sub(".png","_hover.png"))
});
l.observe("mouseout",function(){this.writeAttribute("src",n.sub("_on.png",".png"))
});
l.observe("click",function(){addBookmark(h,m)
})
}}})
});
$$(".hoverButton").each(function(g){var h=g.readAttribute("src");
g.observe("mouseover",function(){this.writeAttribute("src",h.sub(".png","_hover.png"))
});
g.observe("mouseout",function(){this.writeAttribute("src",h.sub("_on.png",".png"))
})
});
$$(".watch-rating-div").each(function(g){var h=g.childElements();
g.observe("mouseover",function(){h[0].hide();
h[1].show()
});
g.observe("mouseout",function(){h[0].show();
h[1].hide()
})
})
}})
}if($("javascript_redirect")){c=$("javascript_redirect").readAttribute("url");
document.location.href=c
}$$(".wiki-link").each(function(f){c=f.readAttribute("url");
label=f.readAttribute("label");
if(c&&label){f.insert('<a href="'+c+'" target="_blank">'+label+"</a>")
}});
if($("top_quiz")){fetchQuizTop()
}$$(".ezcca-extrait_nom").each(function(f){f.value="";
f.select()
});
if($("newSearchBox")){$("newSearchBox").focus()
}if($("fans_film")){fetchFansFilm()
}if($("playlist_extrait")){fetchPlaylistsExtrait()
}$$(".fans_extrait").each(function(f){b=f.readAttribute("limit");
node_id=f.readAttribute("id").split(" ").first().split("_").first();
display=f.readAttribute("display");
fetchFansExtrait(node_id,b,display)
});
$$(".fans_artiste").each(function(f){b=f.readAttribute("limit");
node_id=f.readAttribute("id").split(" ").first().split("_").first();
display=f.readAttribute("display");
if(display!=0){display=1
}fetchFansArtiste(node_id,b,display)
});
$$(".fans_artiste_full").each(function(f){fansArtisteShow();
fetchFansArtisteFull(0)
});
$$(".fans_film_full").each(function(f){fansFilmShow();
fetchFansFilmFull(0)
});
$$(".moviemix_bookmark_button").each(function(g){var h=g.readAttribute("id").sub("bookmark_","");
var f="/layout/set/empty/content/view/attribute/"+h;
new Ajax.Request(f,{onSuccess:function(m){g.update(m.responseText);
var k=g.down("img").identify();
var j=$(k);
var l=j.readAttribute("src");
if(j.hasClassName("selected")){j.writeAttribute("src",l.sub(".png","_ok.png"))
}else{j.observe("mouseover",function(){this.writeAttribute("src",l.sub(".png","_hover.png"))
});
j.observe("mouseout",function(){this.writeAttribute("src",l.sub("_on.png",".png"))
});
j.observe("click",function(){addMoviemixBookmark(h,k)
})
}}})
});
$$(".moviemix_votes").each(function(g){var h=g.readAttribute("id").sub("moviemix_","");
var f="/vodkaster/moviemix/nb_vote/"+h;
new Ajax.Request(f,{onSuccess:function(j){g.update(j.responseText)
}})
});
if($("permalink")){$("permalink").observe("click",function(f){$("permalink").select()
})
}if($("moviemix_redirect")){newMovieMix()
}if($("top_moviemix")){fetchMovieMixTop()
}$$(".artiste-bookmark-button").each(function(g){var f=g.readAttribute("id").sub("bookmark_","");
refreshBookmarkButton(g,f)
});
$$(".user-bookmark-button").each(function(g){var f=g.readAttribute("id").sub("bookmark_","");
refreshBookmarkButton(g,f)
});
if($("first_view_extrait_top")){suscribeToNotification();
if(navigator.appName!="Microsoft Internet Explorer"){shareExtract(1)
}}if($("UserEmail")){$("UserEmail").focus()
}$$(".menu").each(function(f){var g=f.readAttribute("src");
if(f.hasClassName("selected")){f.writeAttribute("src",g.sub(".png","_on.png"))
}else{f.observe("mouseover",function(){this.writeAttribute("src",g.sub(".png","_hover.png"))
});
f.observe("mouseout",function(){this.writeAttribute("src",g.sub("_on.png",".png"))
})
}});
$$(".hoverButton").each(function(f){var g=f.readAttribute("src");
f.observe("mouseover",function(){this.writeAttribute("src",g.sub(".png","_hover.png"))
});
f.observe("mouseout",function(){this.writeAttribute("src",g.sub("_on.png",".png"))
})
});
$$(".bookmark_button").each(function(j){var g=j.readAttribute("id").sub("selection_","").sub("bookmark_","");
var f=j.hasClassName("large")?"bookmark_large":(j.hasClassName("quiz")?"bookmark_quiz":"bookmark");
var h="/layout/set/empty/content/view/attribute/"+g+"/(type)/"+f;
new Ajax.Request(h,{onSuccess:function(n){j.update(n.responseText);
var l=j.down("img").identify();
var k=$(l);
var m=k.readAttribute("src");
if(k.hasClassName("selected")){k.writeAttribute("src",m.sub(".png","_on.png"))
}else{k.observe("mouseover",function(){this.writeAttribute("src",m.sub(".png","_hover.png"))
});
k.observe("mouseout",function(){this.writeAttribute("src",m.sub("_on.png",".png"))
});
k.observe("click",function(){addBookmark(g,l)
})
}}})
});
if(is_logged_in==true){updateRateUser();
$$(".movie-wish-container").each(function(f){getWish(f.readAttribute("node_id"))
})
}if(is_logged_in==true){$$(".editButton").each(function(f){f.show()
})
}if($("actors_list")){}if($("playlists_list")){fetchPlaylists(0)
}if($("bookmark_list")){fetchBookmarks(0)
}if($("favorite_movies_list")){fetchFavoriteMovies(0)
}if($("recommended_movies_list")){fetchRecommendedMovies(0)
}if($("wish_list")){fetchWishList(0)
}if($("favorite_artists_list")){refreshUserBookmarks("favorite_artists_list",0)
}if($("following_list")){refreshUserBookmarks("following_list",0)
}if($("followers_list")){refreshUserFollowers(0)
}if($("playlist_list")){fetchPlaylist(0)
}if($("showings_list_full")){fetchShowingsList("full")
}if($("showings_list_block")){fetchShowingsList("block")
}if($("dvd_list")){fetchDVDList()
}if($("vod_list")){fetchVODList()
}if($("vod_list_full")){fetchVODListFull()
}if($("notifications_list")){var b=$("notifications_list").readAttribute("limit");
var c="/vodkaster/children/2/notification/"+isCurrentUser+"/false/related/"+b+"/0/published,false/false/false";
new Ajax.PeriodicalUpdater("notifications_list",c,{method:"get",frequency:20,decay:2})
}if($("comments_list")){paginateList("comments_list")
}if($("retro_comments_list")){paginateList("retro_comments_list")
}if($("movie_links_header")){countExtraitsList()
}$$(".playlist_form").each(function(f){f.observe("click",function(g){g.stop();
Lightview.show({href:"/layout/set/empty/content/view/user/"+contentNodeID,rel:"ajax",options:{autosize:true,closeButton:false,ajax:{parameters:$("newPlaylist").serialize(true),method:"post",onComplete:function(h){$("ajaxSubmit").observe("click",submitAjaxCreate);
$$(".hoverButton").each(function(j){var k=j.readAttribute("src");
j.observe("mouseover",function(){this.writeAttribute("src",k.sub(".png","_hover.png"))
});
j.observe("mouseout",function(){this.writeAttribute("src",k.sub("_on.png",".png"))
})
})
},onFailure:function(h){showLogin()
}}}})
})
});
$$(".comment_button").each(function(f){f.observe("click",function(m){$("message_error").hide();
var h=f.readAttribute("class").split(" ").last().split("_").last();
var j=f.readAttribute("class").split(" ").last().split("_").first();
var g="comment";
var l=$F("message_"+h).replace(/^\s\s*/,"").replace(/\s\s*$/,"");
suscribeToNotification();
if(l!=""){var k="/vodkaster/create/"+g+"/"+h;
new Ajax.Request(k,{method:"post",parameters:{message:l},onSuccess:function(n){if(j=="article"){fetchRetroComments(0)
}else{fetchComments(0)
}$("message_"+h).clear()
},onFailure:function(n){$("message_error").update(n.responseText).show()
}})
}})
});
$$(".remove_playlist").each(function(f){f.observe("click",function(h){var g="/vodkaster/delete_playlist/"+contentNodeID;
new Ajax.Request(g,{onSuccess:function(j){fetchPlaylists(0)
},onFailure:function(){}})
})
});
if($("create_playlist")){$("create_playlist").observe("click",function(f){f.stop();
Lightview.show({href:"/layout/set/empty/content/action",rel:"ajax",options:{autosize:true,closeButton:false,ajax:{parameters:$("newPlaylist").serialize(true),method:"post",onComplete:function(g){$("ajaxSubmit").observe("click",submitAjaxCreate)
}}}})
})
}if($("create_bug")){$("create_bug").observe("click",function(f){f.stop();
if(window.contentNodeID==undefined){contentNodeID=$("create_bug").readAttribute("node_id")
}if(is_logged_in==true){Lightview.show({href:"/layout/set/empty/content/view/full/16959816/(node_id)/"+contentNodeID,rel:"ajax",options:{autosize:true,closeButton:false,ajax:{onComplete:function(g){$("ajaxSubmit").observe("click",submitAjaxCollect)
}}}})
}else{showLogin()
}})
}if($("taste")){new UI.Carousel("taste",{direction:"horizontal"})
}if($("percent-view")){updateRatingRatio()
}if($("compatibility-percent-view")){var d=$("compatibility-percent-view");
var e=d.readAttribute("current");
var a=d.readAttribute("user");
getCompatibility(e,a)
}if($("edit_actors")){$("edit_actors").observe("click",function(){editActorsMode=true;
this.toggleClassName("on");
$("actors_form").toggle();
fetchDefaultActorsList();
$$(".remove_actor").each(function(f){f.toggle()
})
});
$("actors_search_cancel").observe("click",function(){$("actors_search").clear();
fetchDefaultActorsList()
})
}if($("edit_films")){$("edit_films").observe("click",function(){editFilmsMode=true;
this.toggleClassName("on");
$("films_form").toggle();
fetchDefaultFilmsList();
$$(".remove_film").each(function(f){f.toggle()
})
});
$("films_search_cancel").observe("click",function(){$("films_search").clear();
fetchDefaultFilmsList()
})
}if($("edit_keywords")!=undefined){$("edit_keywords").observe("click",function(){this.toggleClassName("on");
var f=$("keyword_list").getStyle("display");
if(f=="none"){$("keyword_list").show();
$("keyword_form").hide();
$$(".ezkeyword").each(function(g){if(g.getStyle("display")!="none"){validateTag(g.identify(),0,1)
}});
if($("expand_keywords")!=undefined){$("expand_keywords").show()
}}else{if($("expand_keywords")!=undefined){reduceKeyWords();
$("expand_keywords").hide()
}$("keyword_list").hide();
$("keyword_form").show()
}})
}if($("actors_search")){$("actors_search").observe("focus",function(){$("actors_search").clear()
});
new Ajax.Autocompleter("actors_search","actors_form_list","/vodkaster/search",{paramName:"value",afterUpdateElement:function(g,f){updateAttributeRelated("actors",f.readAttribute("id").split("_").last(),"add")
},indicator:"actors_form_loader",frequency:0.6,minChars:3,parameters:"&classIdentifiers[]=artiste&attributeIdentifiers[]=nom&attributeIdentifiers[]=prenom&view=ajax&prefix=actorformlist&list_id=actors_scrollable&list_class=scrollable",onShow:function(f,g){g.writeAttribute({position:false});
g.show();
formatActorsActionFormList()
},onHide:function(){return false
}})
}if($("films_search")){$("films_search").observe("focus",function(){$("films_search").clear()
});
new Ajax.Autocompleter("films_search","films_form_list","/vodkaster/search",{paramName:"value",afterUpdateElement:function(g,f){updateAttributeRelated("films",f.readAttribute("id").split("_").last(),"add")
},indicator:"films_form_loader",frequency:0.6,minChars:3,parameters:"&children=false&classIdentifiers[]=film&attributeIdentifiers[]=titre&view=ajax&prefix=filmformlist&list_id=films_scrollable&list_class=scrollable",onShow:function(f,g){g.writeAttribute({position:false});
g.show()
},onHide:function(){return false
}})
}if($("add_extrait")){$("add_extrait").observe("click",function(){fetchExtraitsList();
$("add_extrait").toggleClassName("on");
$("extraits_form").toggle();
toggleTab(2,2,false,false)
});
$("extraits_search").observe("focus",function(){$("extraits_search").clear();
makeScrollbar("extraits_scrollable","extraits_scrollbar","extraits_scrollbar_track","extraits_scrollbar_handle")
});
new Ajax.Autocompleter("extraits_search","extraits_search_list","/vodkaster/search",{paramName:"value",afterUpdateElement:function(g,f){updateAttributeRelated("extraits",f.readAttribute("id").split("_").last(),"add")
},indicator:"extraits_form_loader",frequency:0.6,minChars:3,parameters:"&classIdentifiers[]=film&attributeIdentifiers[]=titre&prefix=extraitformlist&list_id=extraits_scrollable&list_class=scrollable",onShow:function(f,g){g.writeAttribute({position:false});
g.show()
},onHide:function(){return false
}})
}if($("editNom")&&is_logged_in==true){new Ajax.InPlaceEditor("editNom","/vodkaster/edit",{okControl:false,okText:okText,cancelText:cancelText,savingText:savingText,clickToEditText:clickToEditText,submitOnBlur:true,cancelControl:false,highlightcolor:"#EAF3FF",highlightendcolor:"#D9D9D9",callback:function(f,g){return"value="+encodeURIComponent(g)+"&contentObjectID="+contentObjectID+"&language="+language+"&attributeIdentifier=nom"
}})
}if($("editTitre")&&is_logged_in==true){new Ajax.InPlaceEditor("editTitre","/vodkaster/edit",{okControl:false,okText:okText,cancelText:cancelText,savingText:savingText,clickToEditText:clickToEditText,submitOnBlur:true,cancelControl:false,highlightcolor:"#EAF3FF",highlightendcolor:"#D9D9D9",callback:function(f,g){return"value="+encodeURIComponent(g)+"&contentObjectID="+contentObjectID+"&language="+language+"&attributeIdentifier=titre"
}})
}if($("editContexte")&&is_logged_in==true){new Ajax.InPlaceEditor("editContexte","/vodkaster/edit",{rows:2,okControl:"link",okText:okText,cancelText:cancelText,savingText:savingText,clickToEditText:clickToEditText,highlightcolor:"#EAF3FF",highlightendcolor:"#FFFFFF",callback:function(f,g){return"value="+encodeURIComponent(g)+"&contentObjectID="+contentObjectID+"&language="+language+"&attributeIdentifier=contexte"
}})
}if($("editTitle")&&is_logged_in==true){new Ajax.InPlaceEditor("editTitle","/vodkaster/edit",{okControl:false,okText:okText,cancelText:cancelText,savingText:savingText,clickToEditText:clickToEditText,submitOnBlur:true,cancelControl:false,highlightcolor:"#EAF3FF",highlightendcolor:"#D9D9D9",callback:function(f,g){return"value="+encodeURIComponent(g)+"&contentObjectID="+contentObjectID+"&language="+language+"&attributeIdentifier=title"
}})
}if($("editPlaylistNom")){new Ajax.InPlaceEditor("editPlaylistNom","/vodkaster/edit",{okControl:false,formClassName:"playlisteditor-form",okText:okText,cancelText:cancelText,savingText:savingText,clickToEditText:clickToEditText,submitOnBlur:true,cancelControl:false,highlightcolor:"#dedede",callback:function(f,g){return"value="+encodeURIComponent(g)+"&contentObjectID="+contentObjectID+"&language="+language+"&attributeIdentifier=nom"
}})
}if($("editPlaylistDescription")){new Ajax.InPlaceEditor("editPlaylistDescription","/vodkaster/edit",{rows:2,formClassName:"playlisteditor-form",okControl:"link",okText:okText,cancelText:cancelText,savingText:savingText,highlightcolor:"",clickToEditText:clickToEditText,callback:function(f,g){return"value="+encodeURIComponent(g)+"&contentObjectID="+contentObjectID+"&language="+language+"&attributeIdentifier=description"
}})
}$$("#buttonYouTube").each(function(f){f.observe("click",function(g){onAddYouTube()
})
});
$$("#boxYouTube").each(function(f){f.observe("keypress",function(g){if(g.keyCode==Event.KEY_RETURN){onAddYouTube()
}})
});
$$(".select_question").each(function(f){f.observe("change",function(){$$(".ezkeyword").each(function(l){var k=l.getStyle("display");
if(k!="none"){validateTag(l.identify(),0,0)
}l.hide()
});
var h=$F(f);
$(h).show();
var j=$(h+"_current");
j.focus();
if(j.createTextRange){var g=j.createTextRange();
g.collapse(true);
g.moveStart("character",(j.value.length));
g.select()
}})
});
$$("#keyword_form textarea").each(function(f){f.observe("keypress",function(g){if(g.keyCode==Event.KEY_RETURN){validateTag($(f.identify()).up(".ezkeyword").identify(),1,0)
}})
});
$$(".next_keyword").each(function(f){f.observe("click",function(){$$(".ezkeyword").each(function(h){var g=h.getStyle("display");
if(g!="none"){currentQuestionId=h.identify()
}});
validateTag(currentQuestionId,1,0)
})
});
$$(".buttonInfo").each(function(f){f.observe("click",function(h){var g=$("tabButtonShare").firstDescendant().readAttribute("src");
if(g.endsWith("hover.png")){$("tabShare").hide();
$("tabInfo").show();
$("tabButtonShare").firstDescendant().writeAttribute("src",g.sub("_hover.png",".png"));
var j=$("tabButtonInfo").firstDescendant().readAttribute("src");
$("tabButtonInfo").firstDescendant().writeAttribute("src",j.sub(".png","_hover.png"))
}reduceKeyWords()
})
});
$$(".buttonShare").each(function(f){f.observe("click",function(h){var j=$("tabButtonInfo").firstDescendant().readAttribute("src");
if(j.endsWith("hover.png")){$("tabInfo").hide();
$("tabShare").show();
$("tabButtonInfo").firstDescendant().writeAttribute("src",j.sub("_hover.png",".png"));
var g=$("tabButtonShare").firstDescendant().readAttribute("src");
$("tabButtonShare").firstDescendant().writeAttribute("src",g.sub(".png","_hover.png"))
}reduceKeyWords()
})
});
if($("facebookShareExtrait")){$("facebookShareExtrait").observe("click",function(h){var g=this.getAttribute("current_url");
var f=this.getAttribute("current_title");
fb_url="http://www.facebook.com/sharer.php?u="+encodeURIComponent(g)+"&t="+encodeURIComponent(f);
window.open(fb_url,"sharer","toolbar=0,status=0,width=626,height=436");
return
})
}if($("facebookShareBillet")){$("facebookShareBillet").observe("click",function(h){var g=this.getAttribute("current_url");
var f=this.getAttribute("current_title");
fb_url="http://www.facebook.com/sharer.php?u="+encodeURIComponent(g)+"&t="+encodeURIComponent(f);
window.open(fb_url,"sharer","toolbar=0,status=0,width=626,height=436");
return
})
}if($("twitterShareExtrait")){$("twitterShareExtrait").observe("click",function(j){var f=this.getAttribute("movie");
var g=this.getAttribute("url");
var k=this.getAttribute("extrait");
var h=k+" extrait de "+f+" : "+g;
var l="http://twitter.com/home/?status="+encodeURIComponent(h);
window.open(l);
return
})
}if($("twitterShareBillet")){$("twitterShareBillet").observe("click",function(f){var g=this.getAttribute("tweet");
var h="http://twitter.com/home/?status="+encodeURIComponent(g);
window.open(h);
return
})
}if($("emailShareExtrait")){$("emailShareExtrait").observe("click",function(h){var g=this.getAttribute("current_url");
var f=this.getAttribute("current_title");
em_url="mailto://?subject="+encodeURIComponent(f)+"&body="+encodeURIComponent(g);
window.open(em_url);
return
})
}$$(".quiz_top_5").each(function(f){var g=f.readAttribute("id").sub("quiz_","");
showQuizRanking(g,"none")
})
});
function validateTag(d,e,c){if($(d+"_current").disabled==true){if(e){nextQuestion(d)
}return
}var b=$F(d+"_current").replace(/\r|\n|\r\n/g,"");
var a=$F(d+"_previous");
if(b!=a){$(d+"_previous").value=b;
$(d+"_current").value=savingText;
$(d+"_current").setStyle({color:"#AAAAAA"});
$(d+"_current").disabled=true;
new Ajax.Request("/vodkaster/edit",{parameters:{contentObjectID:contentObjectID,language:language,attributeIdentifier:d,value:b},onSuccess:function(f){onTagValidated(d);
if(c){loadKeywords()
}}})
}else{if(c){loadKeywords()
}}if(e){nextQuestion(d)
}}function onTagValidated(c){var b=$F(c+"_current").replace(/\r|\n|\r\n/g,"");
var a=$F(c+"_previous");
$(c+"_current").value=a;
$(c+"_current").setStyle({color:"#008089"});
$(c+"_current").disabled=false
}function nextQuestion(c){$$(".ezkeyword").invoke("hide");
var b;
if($(c).next(".ezkeyword")){b=$(c).next(".ezkeyword").identify()
}else{b="question_0"
}$(b).show();
$("select_test").value=b;
var d=$(b+"_current");
d.focus();
if(d.createTextRange){var a=d.createTextRange();
a.collapse(true);
a.moveStart("character",(d.value.length));
a.select()
}}function loadKeywords(){var a="/layout/set/empty/content/view/attribute/"+contentNodeID+"/(type)/keywords";
new Ajax.Request(a,{onComplete:function(b){$("keyword_list").update(b.responseText)
}})
}function onAddYouTube(){$("add_error").hide();
$("buttonYouTube").hide();
$("loaderYouTube").show();
var b=$("contentNodeID").getValue();
var a=$("contentObjectID").getValue();
var c=$("boxYouTube").getValue();
url="/vodkaster/add_external_movie";
new Ajax.Request(url,{encoding:"UTF-8",parameters:{contentObjectID:a,contentNodeID:b,VideoUrl:c},onSuccess:function(f){$("add_error").hide();
var d=f.getHeader("Message");
var e=f.getHeader("Redirection");
window.location.replace(e)
},onFailure:function(e){var d=e.getHeader("Error");
$("add_error").show();
$("add_error").update(d);
$("loaderYouTube").hide();
$("buttonYouTube").show()
}})
}function updateRatingRatio(){var c=$("percent-view");
var a=parseInt(c.innerHTML.sub("%",""));
var b="/layout/set/empty/content/view/attribute/"+contentNodeID;
new Ajax.Request(b,{onSuccess:function(f){var e=f.responseText;
if(e){var d=Math.abs(e-a)*0.04;
new Effect.Tween("percent-view",a,e,{duration:d},function(g){this.update(g.round()+"%")
})
}}})
}function fetchActorsList(){if(contentClassIdentifier=="extrait"||contentClassIdentifier=="screenshot"){attributeIdentifier="interpretes"
}else{attributeIdentifier="artistes"
}new Ajax.Request("/vodkaster/related",{parameters:{contentObjectID:contentObjectID,classIdentifier:contentClassIdentifier,prefix:"actorlist",attributeIdentifier:attributeIdentifier},onLoading:function(){new Effect.Opacity("actors_list",{from:1,to:0.2,duration:0.2})
},onSuccess:function(a){$("actors_loader").hide();
new Effect.Opacity("actors_list",{from:0.2,to:1,duration:0.2});
$("actors_list").update(a.responseText);
makeSortable();
if(editActorsMode){$$(".remove_actor").each(function(b){b.show()
})
}}})
}function fetchDefaultActorsList(){new Ajax.Request("/vodkaster/related",{parameters:{contentObjectID:parentContentObjectID,classIdentifier:"film",attributeIdentifier:"casting",prefix:"actorformlist",list_id:"actors_scrollable",list_class:"scrollable",view:"ajax"},onLoading:function(){$("actors_form_loader").show()
},onSuccess:function(a){$("actors_form_loader").hide();
$("actors_form_list").show();
$("actors_form_list").update(a.responseText);
makeScrollbar("actors_scrollable","actors_scrollbar","actors_scrollbar_track","actors_scrollbar_handle");
formatActorsActionFormList()
}})
}function formatActorsActionFormList(){$$("#actors_form_list > ul > li").each(function(a){a.observe("click",function(){updateAttributeRelated("actors",this.readAttribute("id").split("_").last(),"add")
})
});
$$("#actors_list > ul > li").each(function(a){var b=a.readAttribute("id").sub("actorlist_","actorformlist_");
$(b).remove()
})
}function fetchFilmsList(){new Ajax.Request("/vodkaster/related",{parameters:{contentObjectID:contentObjectID,classIdentifier:contentClassIdentifier,prefix:"filmlist",attributeIdentifier:"films"},onLoading:function(){new Effect.Opacity("films_list",{from:1,to:0.2,duration:0.2})
},onSuccess:function(a){$("films_loader").hide();
new Effect.Opacity("films_list",{from:0.2,to:1,duration:0.2});
$("films_list").update(a.responseText);
if(editFilmsMode){$$(".remove_film").each(function(b){b.show()
})
}}})
}function fetchDefaultFilmsList(){new Ajax.Request("/vodkaster/related",{parameters:{contentObjectID:parentContentObjectID,classIdentifier:"film",attributeIdentifier:"casting",prefix:"filmformlist",list_id:"films_scrollable",list_class:"scrollable",view:"ajax"},onLoading:function(){$("films_form_loader").show()
},onSuccess:function(a){$("films_form_loader").hide();
$("films_form_list").show();
$("films_form_list").update(a.responseText);
makeScrollbar("films_scrollable","films_scrollbar","films_scrollbar_track","films_scrollbar_handle")
}})
}function makeScrollbar(d,e,b,c){var a=new Control.Slider(c,b,{axis:"vertical",onSlide:function(f){scrollVertical(f,$(d),a)
},onChange:function(f){scrollVertical(f,$(d),a)
}});
if($(d).scrollHeight<=$(d).offsetHeight){}}function scrollVertical(c,a,b){a.scrollTop=Math.round(c/b.maximum*(a.scrollHeight-a.offsetHeight))
}function fetchNotificationsList(){var a=15;
var c=0;
var b="/vodkaster/children/2/notification/"+isCurrentUser+"/false/related/"+a+"/"+c+"/published,false/false/false";
new Ajax.Request(b,{onLoading:function(){},onSuccess:function(d){$("notifications_loader").hide();
$("notifications_buttons").show();
$("notifications_list").show();
$("notifications_list").update(d.responseText)
}})
}function fetchComments(c){var a=$("comments_list").readAttribute("class").split("_").last();
var b="/vodkaster/children/"+contentMainNodeID+"/comment/"+isCurrentUser+"/comment/ajax/"+a+"/"+c+"/published,true/false";
new Ajax.Request(b,{onLoading:function(){new Effect.Opacity("comments_list",{from:1,to:0.2,duration:0.2})
},onSuccess:function(d){$("comments_loader").hide();
new Effect.Opacity("comments_list",{from:0.2,to:1,duration:0.2});
$("comments_list").update(d.responseText);
paginateList("comments_list")
}})
}function fetchAmazonList(){var a=$("amazon_list").readAttribute("title");
var b="/vodkaster/amazon/"+a;
new Ajax.Request(b,{onLoading:function(){new Effect.Opacity("amazon_list",{from:1,to:0.2,duration:0.2})
},onSuccess:function(c){$("amazon_loader").hide();
new Effect.Opacity("amazon_list",{from:0.2,to:1,duration:0.2});
$("amazon_list").update(c.responseText)
}})
}function fetchShowingsList(b){var d=$("showings_list_"+b).readAttribute("node_id");
var a=$("showings_list_"+b).readAttribute("class_identifier");
var c="/vodkaster/showings/"+b+"/"+a+"/"+d;
new Ajax.Request(c,{onLoading:function(){new Effect.Opacity("showings_list_"+b,{from:1,to:0.2,duration:0.2})
},onSuccess:function(e){$("showings_list_"+b).update(e.responseText);
getWish(d);
new Effect.Opacity("showings_list_"+b,{from:0.2,to:1,duration:0.8})
}})
}function fetchDVDList(){var a=$("dvd_list").readAttribute("contentobject_id");
var b="/vodkaster/dvd/"+a;
new Ajax.Request(b,{onLoading:function(){new Effect.Opacity("dvd_list",{from:1,to:0.2,duration:0.2})
},onSuccess:function(c){if(c.getHeader("count")>0){$("get_more_loader").hide();
$("dvd_list").update(c.responseText);
$$(".hoverButton").each(function(d){var e=d.readAttribute("src");
d.observe("mouseover",function(){this.writeAttribute("src",e.sub(".png","_hover.png"))
});
d.observe("mouseout",function(){this.writeAttribute("src",e.sub("_on.png",".png"))
})
})
}else{if($("dvd_vod_no_results").innerHTML==1){$("get_more_loader").hide();
$("dvd_list").update(c.responseText)
}else{$("dvd_vod_no_results").update(1)
}}new Effect.Opacity("dvd_list",{from:0.2,to:1,duration:0.8})
}})
}function fetchFnacButton(b){var a=b.readAttribute("contentobject_id");
var c="/vodkaster/dvd/"+a+"/button";
new Ajax.Request(c,{onSuccess:function(d){if(d.getHeader("count")>0){b.update(d.responseText)
}}})
}function fetchVODList(){var b=$("vod_list").readAttribute("node_id");
var a="/vodkaster/vod/block/"+b;
new Ajax.Request(a,{onLoading:function(){new Effect.Opacity("vod_list",{from:1,to:0.2,duration:0.2})
},onSuccess:function(c){if(c.getHeader("count")>0){$("get_more_loader").hide();
$("vod_list").update(c.responseText)
}else{if($("dvd_vod_no_results").innerHTML==1){$("get_more_loader").hide();
$("vod_list").update(c.responseText)
}else{$("dvd_vod_no_results").update(1)
}}new Effect.Opacity("vod_list",{from:0.2,to:1,duration:0.8})
}})
}function fetchVODListFull(){var b=$("vod_list_full").readAttribute("node_id");
var a="/vodkaster/vod/full/"+b;
new Ajax.Request(a,{onLoading:function(){new Effect.Opacity("vod_list_full",{from:1,to:0.2,duration:0.2})
},onSuccess:function(c){$("vod_list_full").update(c.responseText);
new Effect.Opacity("vod_list_full",{from:0.2,to:1,duration:0.8})
}})
}function updateAttributeRelated(a,f,d){var b=new Array();
if(a=="actors"){var e="#actors_list"
}else{if(a=="films"){var e="#films_list"
}else{var e="#extraits_list"
}}$$(e+" > ul > li").each(function(g){if(g.readAttribute("id")){b[b.length]=g.readAttribute("id").split("_").last()
}});
if(f!=""){if(d=="add"){b[b.length]=f
}else{if(d=="remove"){b=b.without(f)
}}}var c=b.uniq().join("-");
if(a=="actors"){if(contentClassIdentifier=="extrait"||contentClassIdentifier=="screenshot"){attributeIdentifier="interpretes"
}else{attributeIdentifier="artistes"
}new Ajax.Request("/vodkaster/edit",{parameters:{contentObjectID:contentObjectID,language:language,attributeIdentifier:attributeIdentifier,value:c},onSuccess:function(g){fetchActorsList()
}})
}else{if(a=="films"){new Ajax.Request("/vodkaster/edit",{parameters:{contentObjectID:contentObjectID,language:language,attributeIdentifier:"films",value:c},onSuccess:function(g){fetchFilmsList()
}})
}else{if(a=="extraits"){new Ajax.Request("/vodkaster/edit",{parameters:{contentObjectID:contentObjectID,language:language,attributeIdentifier:"liens_cinephiles",value:c},onSuccess:function(g){fetchExtraitsList()
}})
}}}}function makeSortable(){var a=$$("#actors_list > ul").first().identify();
Sortable.create(a,{onUpdate:function(){updateAttricuteRelated("actors",false,false)
}})
}function fetchExtraitsList(){$("extraits_loader").show();
new Ajax.Request("/vodkaster/related",{parameters:{contentObjectID:contentObjectID,classIdentifier:"extrait",prefix:"extraitlist",includeReverseRelated:true,attributeIdentifier:"liens_cinephiles"},onLoading:function(){new Effect.Opacity("extraits_list",{from:1,to:0.2,duration:0.2})
},onSuccess:function(a){$("extraits_loader").hide();
new Effect.Opacity("extraits_list",{from:0.2,to:1,duration:0.2});
$("extraits_list").update(a.responseText)
}})
}function countExtraitsList(){new Ajax.Request("/vodkaster/related",{parameters:{contentObjectID:contentObjectID,classIdentifier:"extrait",prefix:"extraitlist",includeReverseRelated:true,attributeIdentifier:"liens_cinephiles",countMovieLinks:true},onSuccess:function(d){var c=d.getHeader("count_movie_links");
var a=$("movie_links_header").innerHTML;
var b=a+" ("+c+")";
$("movie_links_header").innerHTML=b
}})
}function addToPlaylist(a){var c=$F($("addtoplaylist_"+a).identify());
if(c!=""){if(c=="create"){event.stop();
Lightview.show({href:"/layout/set/empty/content/action",rel:"ajax",options:{autosize:true,closeButton:false,ajax:{parameters:$("newPlaylist").serialize(true),method:"post",onComplete:function(d){$("ajaxSubmit").observe("click",submitAjaxCreate)
}}}})
}else{var b="/vodkaster/addlocation/"+a+"/"+c;
new Ajax.Request(b,{onSuccess:function(){if($("playlist_extrait")){fetchPlaylistsExtrait()
}if($("playlists_list")){fetchPlaylists(0)
}if($("bookmark_list")){fetchBookmarks(0)
}Lightview.hide();
if($("warning")){warn("Extrait ajout&eacute; a la playlist.")
}},onFailure:function(){if($("warning")){warn("Cet extrait existe d&eacute;j&agrave; dans cette playlist.")
}}})
}}}function addMoviemixBookmark(b,c){var a="/vodkaster/bookmark_add/"+b;
new Ajax.Request(a,{onSuccess:function(){var d=$(c).readAttribute("src");
if(d.search("_hover.png")==-1){$(c).writeAttribute("src",d.sub(".png","_ok.png"))
}else{$(c).writeAttribute("src",d.sub("_hover.png","_ok.png"))
}$(c).stopObserving();
a="/vodkaster/moviemix/nb_vote/"+b;
new Ajax.Request(a,{onSuccess:function(e){$("moviemix_"+b).update(e.responseText)
}})
},onFailure:function(d){showLogin()
}})
}function addBookmark(b,c){var a="/vodkaster/bookmark_add/"+b;
new Ajax.Request(a,{onSuccess:function(){var f=$(c).readAttribute("src");
if(f.search("_hover.png")==-1){$(c).writeAttribute("src",f.sub(".png","_on.png"))
}else{$(c).writeAttribute("src",f.sub("_hover.png","_on.png"))
}$(c).stopObserving();
var d=$(b+"_fans_extrait").readAttribute("limit");
var e=$(b+"_fans_extrait").readAttribute("id").split(" ").first().split("_").first();
if($("collapse_"+b)){var f=$("collapse_"+b).getAttribute("src");
$("collapse_"+b).writeAttribute("src",f.sub("right_on.png","bottom_off.png"))
}fetchFansExtrait(e,d,"refresh")
},onFailure:function(d){showLogin()
}})
}function removeBookmark(a){Lightview.show({href:"#confirm",options:{width:300,height:90,topclose:false,closeButton:false}});
$("accept").observe("click",function(c){Lightview.hide();
var b="/vodkaster/bookmark_delete/"+a;
new Ajax.Request(b,{onSuccess:function(d){fetchBookmarks(0);
warn("L'extrait a &eacute;t&eacute; supprim&eacute;e de votre vodkath&egrave;que")
}})
});
$("cancel").observe("click",function(b){Lightview.hide()
})
}function fetchBookmarks(d){var c=contentObjectID;
var a=$("bookmark_list").readAttribute("class").split(" ").last().split("_").last();
var b="/vodkaster/bookmark/"+c+"/"+isCurrentUser+"/bookmark/"+a+"/"+d;
new Ajax.Request(b,{onLoading:function(){new Effect.Opacity("bookmark_list",{from:1,to:0.2,duration:0.2})
},onSuccess:function(e){$("bookmark_loader").hide();
new Effect.Opacity("bookmark_list",{from:0.2,to:1,duration:0.2});
$("bookmark_list").update(e.responseText);
$$(".hoverButton").each(function(f){var g=f.readAttribute("src");
f.observe("mouseover",function(){this.writeAttribute("src",g.sub(".png","_hover.png"))
});
f.observe("mouseout",function(){this.writeAttribute("src",g.sub("_on.png",".png"))
})
});
paginateList("bookmark_list");
$$(".playlist_form").each(function(f){var g=f.readAttribute("class").split(" ").first().split("_").last();
f.observe("click",function(h){h.stop();
Lightview.show({href:"/layout/set/empty/content/view/user/"+g,rel:"ajax",options:{autosize:true,closeButton:false,ajax:{parameters:$("newPlaylist").serialize(true),method:"post",onComplete:function(j){$("ajaxSubmit").observe("click",submitAjaxCreate);
$$(".hoverButton").each(function(k){var l=k.readAttribute("src");
k.observe("mouseover",function(){this.writeAttribute("src",l.sub(".png","_hover.png"))
});
k.observe("mouseout",function(){this.writeAttribute("src",l.sub("_on.png",".png"))
})
})
},onFailure:function(j){showLogin()
}}}})
})
})
}})
}function fetchFavoriteMovies(e){var c=contentObjectID;
var a=$("favorite_movies_list").readAttribute("limit");
var d=$("favorite_movies_list").readAttribute("rating");
var b="/vodkaster/favorite_movies/"+c+"/"+isCurrentUser+"/favorite_movies/"+a+"/"+e+"/"+d;
new Ajax.Request(b,{onLoading:function(){new Effect.Opacity("favorite_movies_list",{from:1,to:0.2,duration:0.2})
},onSuccess:function(f){$("favorite_movies_loader").hide();
new Effect.Opacity("favorite_movies_list",{from:0.2,to:1,duration:0.2});
$("favorite_movies_list").update(f.responseText);
$$(".hoverButton").each(function(g){var h=g.readAttribute("src");
g.observe("mouseover",function(){this.writeAttribute("src",h.sub(".png","_hover.png"))
});
g.observe("mouseout",function(){this.writeAttribute("src",h.sub("_on.png",".png"))
})
});
updateRateUser();
paginateList("favorite_movies_list");
$$(".playlist_form").each(function(g){var h=g.readAttribute("class").split(" ").first().split("_").last();
g.observe("click",function(j){j.stop();
Lightview.show({href:"/layout/set/empty/content/view/user/"+h,rel:"ajax",options:{autosize:true,closeButton:false,ajax:{parameters:$("newPlaylist").serialize(true),method:"post",onComplete:function(k){$("ajaxSubmit").observe("click",submitAjaxCreate);
$$(".hoverButton").each(function(l){var m=l.readAttribute("src");
l.observe("mouseover",function(){this.writeAttribute("src",m.sub(".png","_hover.png"))
});
l.observe("mouseout",function(){this.writeAttribute("src",m.sub("_on.png",".png"))
})
})
},onFailure:function(k){showLogin()
}}}})
})
})
}})
}function fetchRecommendedMovies(d){var c=contentObjectID;
var a=$("recommended_movies_list").readAttribute("class").split(" ").last().split("_").last();
var b="/vodkaster/recommended_movies/"+c+"/"+isCurrentUser+"/recommended_movies/"+a+"/"+d;
new Ajax.Request(b,{onLoading:function(){new Effect.Opacity("recommended_movies_list",{from:1,to:0.2,duration:0.2})
},onSuccess:function(e){$("recommended_movies_loader").hide();
new Effect.Opacity("recommended_movies_list",{from:0.2,to:1,duration:0.2});
$("recommended_movies_list").update(e.responseText);
$$(".hoverButton").each(function(f){var g=f.readAttribute("src");
f.observe("mouseover",function(){this.writeAttribute("src",g.sub(".png","_hover.png"))
});
f.observe("mouseout",function(){this.writeAttribute("src",g.sub("_on.png",".png"))
})
});
updateRateUser();
paginateList("recommended_movies_list");
$$(".movie-wish-container").each(function(f){getWish(f)
})
}})
}function fetchWishList(e){var d=contentObjectID;
var b=$("wish_list").readAttribute("class").split(" ").last().split("_").last();
var a=$("wish_list").readAttribute("view");
var c="/vodkaster/wish_list/"+d+"/"+isCurrentUser+"/"+a+"/"+b+"/"+e;
new Ajax.Request(c,{onLoading:function(){new Effect.Opacity("wish_list",{from:1,to:0.2,duration:0.2})
},onSuccess:function(f){$("wish_list_loader").hide();
new Effect.Opacity("wish_list",{from:0.2,to:1,duration:0.2});
$("wish_list").update(f.responseText);
$$(".hoverButton").each(function(g){var h=g.readAttribute("src");
g.observe("mouseover",function(){this.writeAttribute("src",h.sub(".png","_hover.png"))
});
g.observe("mouseout",function(){this.writeAttribute("src",h.sub("_on.png",".png"))
})
});
paginateList("wish_list");
$$(".fnac-button").each(function(g){fetchFnacButton(g)
})
}})
}function getWish(b){var a="/layout/set/empty/content/view/attribute/"+b+"/(type)/wish";
new Ajax.Request(a,{onSuccess:function(c){$$(".movie-wish-container").each(function(f){if(b==f.readAttribute("node_id")){f.update(c.responseText);
var e=f.childElements();
var g=e[0];
var d=e[1];
g.stopObserving("click");
g.observe("click",function(){var h=0;
if(g.readAttribute("class").split(" ").last()!="selected"){h=1
}changeWish(b,h,f)
});
d.stopObserving("click");
d.observe("click",function(){var h=0;
if(d.readAttribute("class").split(" ").last()!="selected"){h=2
}changeWish(b,h,f)
})
}})
}})
}function changeWish(c,b,a,d){url="/vodkaster/change_wish/"+c+"/"+b;
new Ajax.Request(url,{onSuccess:function(e){if($("wish_list")){fetchWishList(d)
}else{getWish(c)
}}})
}function refreshUserBookmarks(b,d){var a=$(b).readAttribute("limit");
var c="/vodkaster/user_bookmarks_list/"+contentObjectID+"/"+isCurrentUser+"/"+b+"/"+a+"/"+d;
new Ajax.Request(c,{onLoading:function(){new Effect.Opacity(b,{from:1,to:0.2,duration:0.2})
},onSuccess:function(e){$("list_loader").hide();
new Effect.Opacity(b,{from:0.2,to:1,duration:0.2});
$(b).update(e.responseText);
paginateList(b)
}})
}function refreshBookmarkButton(a,c){var b="/layout/set/empty/content/view/attribute/"+c+"/(type)/bookmark";
new Ajax.Request(b,{onSuccess:function(d){a.update(d.responseText)
}})
}function addBookmarkOnArtist(b,c){if(!c){c=0
}var a="/vodkaster/bookmark_add/"+b;
new Ajax.Request(a,{onSuccess:function(){refreshBookmarkOnArtist(b,c)
},onFailure:function(d){showLogin()
}})
}function removeBookmarkOnArtist(b,c,d){if(!d){d=0
}var a="/vodkaster/bookmark_delete/"+b;
new Ajax.Request(a,{onSuccess:function(e){refreshBookmarkOnArtist(c,d)
},onFailure:function(e){showLogin()
}})
}function refreshBookmarkOnArtist(a,b){$$(".artiste-bookmark-button").each(function(c){var d=c.readAttribute("id").sub("bookmark_","");
if(a==d){refreshBookmarkButton(c,a)
}});
if($("fans_artiste_full")){fetchFansArtisteFull(b)
}$$(".fans_artiste").each(function(c){limit=c.readAttribute("limit");
node_id=c.readAttribute("id").split(" ").first().split("_").first();
display=c.readAttribute("display");
if(display!=0){display=1
}fetchFansArtiste(node_id,limit,display)
});
if($("favorite_artists_list")){refreshUserBookmarks("favorite_artists_list",b)
}}function addBookmarkOnUser(b,c){if(!c){c=0
}var a="/vodkaster/bookmark_add/"+b;
new Ajax.Request(a,{onSuccess:function(){refreshBookmarkOnUser(b,c)
},onFailure:function(d){showLogin()
}})
}function removeBookmarkOnUser(b,c,d){if(!d){d=0
}var a="/vodkaster/bookmark_delete/"+b;
new Ajax.Request(a,{onSuccess:function(e){refreshBookmarkOnUser(c,d)
},onFailure:function(e){showLogin()
}})
}function refreshBookmarkOnUser(a,b){$$(".user-bookmark-button").each(function(c){var d=c.readAttribute("id").sub("bookmark_","");
if(a==d){refreshBookmarkButton(c,a)
}});
if($("followers_list")){refreshUserFollowers(b)
}if($("fans_film_full")){fetchFansFilmFull(b)
}if($("fans_artiste_full")){fetchFansArtisteFull(b)
}if(($("following_list"))&&(a!=contentNodeID)){refreshUserBookmarks("following_list",b)
}}function refreshUserFollowers(c){var a=$("followers_list").readAttribute("limit");
var b="/vodkaster/user_followers_full/"+contentNodeID+"/"+a+"/"+c;
new Ajax.Request(b,{parameters:{contentNodeID:contentNodeID},method:"post",onLoading:function(){new Effect.Opacity("followers_list",{from:1,to:0.2,duration:0.2})
},onSuccess:function(d){$("followers_list").update(d.responseText);
$("list_loader").hide();
new Effect.Opacity("followers_list",{from:0.2,to:1,duration:0.2});
paginateList("followers_list")
}})
}function paginateList(a){$(a).select("a.pagination_link").each(function(b){var c=b.readAttribute("class").split(" ").last().split("_").last();
b.observe("click",function(d){switch(a){case"comments_list":fetchComments(c);
break;
case"retro_comments_list":fetchRetroComments(c);
break;
case"playlist_list":fetchPlaylist(c);
break;
case"playlists_list":fetchPlaylists(c);
break;
case"bookmark_list":fetchBookmarks(c);
break;
case"favorite_movies_list":fetchFavoriteMovies(c);
break;
case"recommended_movies_list":fetchRecommendedMovies(c);
break;
case"wish_list":fetchWishList(c);
break;
case"favorite_artists_list":case"following_list":refreshUserBookmarks(a,c);
break;
case"followers_list":refreshUserFollowers(c);
break;
case"fans_film_full":fetchFansFilmFull(c);
break;
case"fans_artiste_full":fetchFansArtisteFull(c);
break;
default:break
}})
})
}function getCompatibility(e,b){var d=$("compatibility-percent-view");
var a=0;
var c="/vodkaster/get_compatibility/"+e+"/"+b;
new Ajax.Request(c,{onSuccess:function(k){var h=k.responseText;
var j=-191;
if(h){var f=j*(1-h/100);
var g=Math.abs(h-a)*0.04;
new Effect.Tween("compatibility-percent-view",a,h,{duration:g},function(l){this.update(l.round()+"%")
});
new Effect.Tween("compatibility-bar",j,f,{duration:g},function(l){this.update("<div class='colorbar' style='left:"+l.round()+"px;'></div>")
})
}}})
}on_facebook_login_login=function(){url="/authentification/facebook?fb_action=login&fb_sig_session_key="+FB.Facebook.apiClient.get_session().session_key+"&fb_sig_user="+FB.Connect.get_loggedInUser();
new Ajax.Request(url,{onLoading:function(){},onSuccess:function(a){fb_infos=a.responseText;
switch(fb_infos){case"notlegitimate":alert("Connexion error : bad id");
break;
case"false":break;
case"true":Lightview.hide();
setTimeout("window.location.reload()",100);
break;
case"notregistered":createAccount();
break;
default:alert(fb_infos);
break
}}})
};
on_facebook_login_register=function(){$("facebook_connect_register_connected").show();
$("register_user_login").value="....";
$("label_register_password").hide();
$("element_register_password").hide();
$("label_register_password_confirm").hide();
$("element_register_password_confirm").hide();
$("div_already_on_vodkaster").show();
fb_load();
url="/authentification/facebook?fb_action=get_info&fb_sig_session_key="+FB.Facebook.apiClient.get_session().session_key+"&fb_sig_user="+FB.Connect.get_loggedInUser();
new Ajax.Request(url,{onLoading:function(){},onSuccess:function(a){fb_infos=a.responseXML.documentElement;
first_name=fb_infos.getElementsByTagName("first_name")[0].textContent||"";
last_name=fb_infos.getElementsByTagName("last_name")[0].textContent||"";
email=fb_infos.getElementsByTagName("email")[0].textContent||"";
username=fb_infos.getElementsByTagName("username")[0].textContent||"";
suggested_username=username!=""?username:first_name.toLowerCase()+"."+last_name.toLowerCase();
suggested_email=email.split("@")[1]!="proxymail.facebook.com"?email:"";
fb_sig_user=FB.Connect.get_loggedInUser();
suggested_password=Math.floor(Math.random()*100000000);
$("register_user_login").value=suggested_username;
$("register_user_email").value=suggested_email;
$("register_user_fbuid").value=fb_sig_user;
$("element_register_password").value=suggested_password;
$("element_register_password_confirm").value=suggested_password
}})
};
on_facebook_login_associate=function(){url="/authentification/facebook?fb_action=associate&fb_sig_session_key="+FB.Facebook.apiClient.get_session().session_key+"&fb_sig_user="+FB.Connect.get_loggedInUser();
new Ajax.Request(url,{onLoading:function(){},onSuccess:function(a){fb_infos=a.responseText;
switch(fb_infos){case"notlegitimate":alert("Connexion error : bad id");
break;
case"false":break;
case"true":Lightview.hide();
setTimeout("window.location.reload()",100);
break;
case"alreadyassociated":alert("Ce compte Facebook est d�j� associ� � un compte Vodkaster");
break;
default:alert(fb_infos);
break
}}})
};
function showLogin(a){a=a||{};
Lightview.show({href:"/authentification/login",rel:"ajax",options:{width:a.andassociate?215:485,height:a.andassociate?177:241,topclose:true,closeButton:true,ajax:{method:"get",evalScripts:true,onComplete:function(){submitLogin(a);
$$(".hoverButton").each(function(b){var c=b.readAttribute("src");
b.observe("mouseover",function(){this.writeAttribute("src",c.sub(".png","_hover.png"))
});
b.observe("mouseout",function(){this.writeAttribute("src",c.sub("_on.png",".png"))
})
});
document.observe("lightview:opened",function(b){$("user_name").focus()
});
$("create").observe("click",function(b){createAccount()
})
},onFailed:function(){showLogin(a)
}}}})
}function createAccount(){Lightview.show({href:"/authentification/register",rel:"ajax",options:{height:300,width:578,topclose:true,closeButton:true,ajax:{method:"post",evalScripts:true,onComplete:function(){submitAccount();
$$(".hoverButton").each(function(a){var b=a.readAttribute("src");
a.observe("mouseover",function(){this.writeAttribute("src",b.sub(".png","_hover.png"))
});
a.observe("mouseout",function(){this.writeAttribute("src",b.sub("_on.png",".png"))
})
})
}}}})
}function submitAccount(){$("submit").observe("click",function(a){a.stop();
Lightview.show({href:"/authentification/register",rel:"ajax",options:{height:300,width:578,topclose:true,closeButton:true,ajax:{evalScripts:true,parameters:Form.serialize("ajaxRegisterForm"),onComplete:function(){submitAccount()
},onFailure:function(){},onSuccess:function(){if($("concours_not_logged_in")){concoursNotLoggedIn()
}else{setTimeout("window.location.reload()",100)
}}}}})
});
$("cancel").observe("click",function(a){Lightview.hide()
})
}function submitLogin(a){a=a||{};
$$(".hoverButton").each(function(b){var c=b.readAttribute("src");
b.observe("mouseover",function(){this.writeAttribute("src",c.sub(".png","_hover.png"))
});
b.observe("mouseout",function(){this.writeAttribute("src",c.sub("_on.png",".png"))
})
});
lightViewSubmitLogin=function(b){if(b.type=="click"||b.keyCode==Event.KEY_RETURN){$("sign_in").hide();
b.stop();
Lightview.show({href:"/authentification/login",rel:"ajax",options:{width:485,height:220,topclose:true,closeButton:true,ajax:{evalScripts:true,parameters:Form.serialize("ajaxLoginForm"),onComplete:function(){submitLogin(a)
},onFailure:function(){},onSuccess:function(d){Lightview.hide();
if(a.andassociate==true){on_facebook_login_associate()
}else{if($("concours_not_logged_in")){concoursNotLoggedIn()
}else{var c=d.getHeader("Hostname-Redirection");
if(c){window.location.href=c
}else{window.location.reload()
}}}}}}})
}return false
};
$("user_name").observe("keypress",lightViewSubmitLogin);
$("password").observe("keypress",lightViewSubmitLogin);
$("sign_in").observe("click",lightViewSubmitLogin)
}function rate(a){new Ajax.Request(a,{onSuccess:function(e){if($("percent-view")){updateRatingRatio()
}var b=e.getHeader("New-Rate");
var c=e.getHeader("Attribute-ID");
var d=e.getHeader("Node-ID");
if(b==0){d=$("rating_"+c).up().readAttribute("id").sub("note_","");
updateRateByRateId(c)
}$$(".movie-wish-container").each(function(f){getWish(d)
});
return true
},onFailure:function(b){showLogin()
}})
}function fetchPlaylist(d){var c=$("playlist_list").readAttribute("class").split(" ").first().split("_").last();
var a=$("playlist_list").readAttribute("class").split(" ").last().split("_").last();
var b="/vodkaster/children/"+c+"/extrait/"+isCurrentUser+"/playlist/ajax_playlist/"+a+"/"+d;
new Ajax.Request(b,{onLoading:function(){new Effect.Opacity("playlist_list",{from:1,to:0.2,duration:0.2})
},onSuccess:function(e){$("playlist_loader").hide();
new Effect.Opacity("playlist_list",{from:0.2,to:1,duration:0.2});
$("playlist_list").update(e.responseText);
if(isCurrentUser){makePlaylistSortable(c)
}paginateList("playlist_list")
},evalScripts:true})
}function fetchPlaylists(d){var c=$("playlists_list").readAttribute("class").split(" ").first().split("_").last();
var a=$("playlists_list").readAttribute("class").split(" ").last().split("_").last();
var b="/vodkaster/children/"+c+"/playlist/"+isCurrentUser+"/playlists/ajax/"+a+"/"+d+"/priority,true/false";
new Ajax.Request(b,{onLoading:function(){new Effect.Opacity("playlists_list",{from:1,to:0.2,duration:0.2})
},onSuccess:function(e){$("playlists_loader").hide();
new Effect.Opacity("playlists_list",{from:0.2,to:1,duration:0.2});
$("playlists_list").update(e.responseText);
paginateList("playlists_list");
if(isCurrentUser){makePlaylistsSortable(c)
}}})
}function makePlaylistSortable(b){var a=$$("#playlist_list > ul").first().identify();
Sortable.create(a,{onUpdate:function(){updatePlaylistPriorities(b)
}})
}function makePlaylistsSortable(b){var a=$$("#playlists_list > ul").first().identify();
Sortable.create(a,{onUpdate:function(c){updatePlaylistsPriorities(b)
}})
}function updatePlaylistsPriorities(c){var b="";
var a="/vodkaster/updatepriorities/"+c;
$$("#playlists_list > ul > li > div.content-view-ajax").each(function(d){b=b+","+d.readAttribute("id").split("_").last()
});
b=b.substring(1);
new Ajax.Request(a,{parameters:{priorityIDArray:b},method:"post",onSuccess:function(d){fetchPlaylists(0)
}})
}function updatePlaylistPriorities(c){var b="";
var a="/vodkaster/updatepriorities/"+c;
$$("#playlist_list > ul > li > div.content-view-ajax").each(function(d){b=b+","+d.readAttribute("id").split("_").last()
});
b=b.substring(1);
new Ajax.Request(a,{parameters:{priorityIDArray:b},method:"post",onSuccess:function(d){fetchPlaylist(0)
}})
}function removePlaylist(a){Lightview.show({href:"#confirm",options:{width:300,height:90,topclose:false,closeButton:false}});
$("accept").observe("click",function(c){Lightview.hide();
var b="/vodkaster/delete_playlist/"+a;
new Ajax.Request(b,{onSuccess:function(d){fetchPlaylists(0);
warn("La playlist a bien &eacute;t&eacute;e supprim&eacute;e.")
}})
});
$("cancel").observe("click",function(b){Lightview.hide()
})
}function removePlaylistFull(a){Lightview.show({href:"#confirm",options:{width:300,height:90,topclose:false,closeButton:false}});
$("accept").observe("click",function(c){Lightview.hide();
var b="/vodkaster/delete_playlist/"+a;
new Ajax.Request(b,{onSuccess:function(d){warn("La playlist a bien &eacute;t&eacute;e supprim&eacute;e.");
document.location.href=$$("li.currenttab").first().select("a").first().readAttribute("href")
}})
});
$("cancel").observe("click",function(b){Lightview.hide()
})
}function removeFromPlaylist(a){Lightview.show({href:"#confirm",options:{width:300,height:90,topclose:false,closeButton:false}});
$("accept").observe("click",function(c){Lightview.hide();
var b="/vodkaster/delete_location/"+a;
new Ajax.Request(b,{onSuccess:function(d){fetchPlaylist(0);
fetchPlaylists(0);
warn("L'extrait a &eacute;t&eacute; supprim&eacute; de la playlist.")
}})
});
$("cancel").observe("click",function(b){Lightview.hide()
})
}function warn(a){$("warning").update(a);
new Effect.Appear("warning",{duration:0.3,queue:{scope:"warningscope"}});
new Effect.Fade("warning",{duration:0.3,delay:4,queue:{position:"end",scope:"warningscope"}})
}function submitAjaxCollect(a){a.stop();
Lightview.show({href:"/layout/set/empty/content/action",rel:"ajax",options:{autosize:true,closeButton:false,ajax:{parameters:$("ajaxForm").serialize(true),method:"post",onComplete:function(b){$("ajaxSubmit").observe("click",submitAjaxCollect)
}}}})
}function submitAjaxCreate(b){var a=$("ajaxForm").readAttribute("action");
Lightview.show({href:a,rel:"ajax",options:{autosize:true,closeButton:false,ajax:{parameters:$("ajaxForm").serialize(true),method:"post",onComplete:function(c){$("ajaxSubmit").observe("click",submitAjaxCreate)
},onSuccess:function(){fetchPlaylists(0);
if($("bookmark_list")){fetchBookmarks(0)
}Lightview.hide()
}}}})
}function shareExtract(d){var c=$F("current_url");
var b=$("twitter").getAttribute("extrait");
if(d){var a=450;
if($("do_not_display_checkbox")){$("do_not_display_checkbox").checked=false
}}else{if($("first_view_extrait_top")){$("first_view_extrait_top").hide();
$("second_view_extrait_top").show()
}if($("first_view_extrait_bottom")){$("first_view_extrait_bottom").hide()
}var a=265
}if(!getCookie("__show_again_message")||!d){Lightview.show({href:"#social_share",options:{width:385,height:a,topclose:true,closeButton:true,scrolling:false}})
}else{return
}$("current_url").observe("click",function(e){this.select()
});
$("twitter").observe("click",function(h){var e=this.getAttribute("movie");
var f=this.getAttribute("url");
var j=this.getAttribute("extrait");
var g=j+" extrait de "+e+" : "+f;
var k="http://twitter.com/home/?status="+encodeURIComponent(g);
window.open(k);
Lightview.hide();
return
});
$("facebook").observe("click",function(e){Lightview.hide();
fb_url="http://www.facebook.com/sharer.php?u="+encodeURIComponent(c)+"&t="+encodeURIComponent(b);
window.open(fb_url,"sharer","toolbar=0,status=0,width=626,height=436");
return
});
$("email").observe("click",function(e){Lightview.hide();
em_url="mailto://?subject="+encodeURIComponent(b)+"&body="+encodeURIComponent(c);
window.open(em_url);
return
})
}function closeFirstTimePublish(){if($("do_not_display_checkbox").checked){setCookie("__show_again_message","true",1209600)
}Lightview.hide()
}function setCookie(b,d,a){var c=new Date();
c.setTime(c.getTime()+(a*1000));
document.cookie=b+"="+escape(d)+";path=/"+((a==null)?"":";expires="+c.toGMTString())
}function getCookie(a){if(document.cookie.length>0){c_start=document.cookie.indexOf(a+"=");
if(c_start!=-1){c_start=c_start+a.length+1;
c_end=document.cookie.indexOf(";",c_start);
if(c_end==-1){c_end=document.cookie.length
}return unescape(document.cookie.substring(c_start,c_end))
}}return""
}function onVodkasterPlayerComplete(a){$$("#related_playlist > li.highlight").each(function(d){var c="http://"+window.location.hostname;
if(d.next(0)){var b=c+d.next(0).select("a").first().readAttribute("href")
}else{var b=c+$("return_playlist").readAttribute("href")
}document.location.href=b
})
}function updatePlayCount(){var a="/vodkaster/play_count/"+contentMainNodeID;
new Ajax.Request(a)
}function suscribeToNotification(){var a="/vodkaster/notification/"+contentNodeID;
new Ajax.Request(a,{parameters:{ActionAddToNotification:true,ContentNodeID:contentNodeID}})
}function fetchPlaylistsExtrait(){var a="/vodkaster/playlist_extrait/"+contentObjectID;
new Ajax.Request(a,{parameters:{contentObjectID:contentObjectID},method:"post",onSuccess:function(c){$("playlist-extrait_loader").hide();
$("playlist_extrait").update(c.responseText);
var b=c.responseText;
if(b.search("no_result")==-1){$("bloc_extrait_playlist").show()
}},onFailure:function(){}})
}function fetchFansFilm(b){var a="/vodkaster/fans_film/"+contentObjectID;
new Ajax.Request(a,{parameters:{contentObjectID:contentObjectID},method:"post",onSuccess:function(e){$("fans_film_loader").hide();
$("fans_film").update(e.responseText);
var c=e.responseText;
if(c.search("no_result")==-1){fansFilmShow();
if($("nb_fans")){var d=e.getHeader("nb_fans");
if(d==1){$("nb_fans").update("<span>1</span> fan")
}else{$("nb_fans").update("<span>"+d+"</span> fans")
}$("nb_fans").show()
}}else{fansFilmHide();
$("nb_fans").hide()
}},onFailure:function(){}})
}function fetchFansExtrait(c,a,d){var b="/vodkaster/fans_extrait/"+c+"/"+a;
if(d=="no_ajax"){$("fans_extrait_loader_"+c).hide();
new Ajax.Request(b,{parameters:{contentObjectID:c,limit:a},method:"post",onSuccess:function(g){var f=g.responseText;
$(c+"_fans_extrait").update(g.responseText);
if(f.search("no_result")==-1){new Effect.BlindDown("bloc_fans_extrait_"+c);
$("list_fans_"+c).show()
}else{$("bloc_fans_extrait"+c).hide()
}},onFailure:function(){}})
}else{if(d=="show_ajax"){var e=$("collapse_"+c).getAttribute("src");
$("collapse_"+c).writeAttribute("src",e.sub("right_on.png","bottom_off.png"));
new Ajax.Request(b,{parameters:{contentObjectID:c,limit:a},method:"post",onSuccess:function(g){var f=g.responseText;
$(c+"_fans_extrait").update(f);
$(c+"_fans_extrait").writeAttribute("display","hide_ajax");
$("show_users_"+c).writeAttribute("onclick","fetchFansExtrait("+c+","+a+',"hide_ajax");');
if(f.search("no_result")==-1){$("list_fans_"+c).show();
new Effect.BlindDown("button_close_fans_"+c);
new Effect.BlindDown("bloc_fans_extrait_"+c)
}else{$("bloc_fans_extrait"+c).hide()
}},onFailure:function(){}})
}else{if(d=="hide_ajax"){$(c+"_fans_extrait").writeAttribute("display","show_ajax");
$("show_users_"+c).writeAttribute("onclick","fetchFansExtrait("+c+","+a+',"show_ajax");');
if($("bloc_fans_extrait_"+c)){var e=$("collapse_"+c).getAttribute("src");
$("collapse_"+c).writeAttribute("src",e.sub("bottom_off.png","right_on.png"));
new Effect.BlindUp("bloc_fans_extrait_"+c)
}}else{if(d=="refresh"){if($("show_users_"+c)){$(c+"_fans_extrait").writeAttribute("display","hide_ajax");
$("show_users_"+c).writeAttribute("onclick","fetchFansExtrait("+c+","+a+',"hide_ajax");')
}new Ajax.Request(b,{parameters:{contentObjectID:c,limit:a},method:"post",onSuccess:function(g){$("fans_extrait_loader_"+c).hide();
var f=g.responseText;
$(c+"_fans_extrait").update(f);
if($("button_close_fans_"+c)){$("button_close_fans_"+c).show()
}$("list_fans_"+c).show();
$("bloc_fans_extrait_"+c).show()
},onFailure:function(){}})
}}}}}function fetchFansArtiste(c,a,d){if(d==1){var b="/vodkaster/fans_artiste/"+c+"/"+a;
if($("fans_artiste_loader_"+c)){$("fans_artiste_loader_"+c).hide()
}new Ajax.Request(b,{parameters:{contentNodeID:c,limit:a},method:"post",onSuccess:function(f){var e=f.responseText;
$(c+"_fans_artiste").update(f.responseText);
if(e.search("no_result")==-1){fansArtisteShow()
}else{fansArtisteHide()
}},onFailure:function(){}})
}else{var b="/vodkaster/fans_artiste/"+c+"/"+a;
new Ajax.Request(b,{parameters:{contentNodeID:c,limit:a},method:"post",onSuccess:function(f){var e=f.responseText;
if(e.search("no_result")==-1){fansArtisteShow()
}else{fansArtisteHide()
}},onFailure:function(){}})
}}function fetchFansArtisteFull(c){var a=$("fans_artiste_full").readAttribute("limit");
var b="/vodkaster/fans_artiste_full/"+contentNodeID+"/"+a+"/"+c;
new Ajax.Request(b,{parameters:{contentNodeID:contentNodeID},method:"post",onLoading:function(){new Effect.Opacity("fans_artiste_full",{from:1,to:0.2,duration:0.2})
},onSuccess:function(f){var e=f.responseText;
$("fans_artiste_full").update(f.responseText);
$("fans_artiste_loader").hide();
new Effect.Opacity("fans_artiste_full",{from:0.2,to:1,duration:0.2});
var d=f.getHeader("Total-Count");
if(d>0){paginateList("fans_artiste_full")
}else{document.location.href=$("main_artist_page").readAttribute("href")
}}})
}function fetchFansFilmFull(c){var a=$("fans_film_full").readAttribute("limit");
var b="/vodkaster/fans_film_full/"+contentObjectID+"/"+a+"/"+c;
new Ajax.Request(b,{parameters:{contentNodeID:contentNodeID},method:"post",onLoading:function(){new Effect.Opacity("fans_film_full",{from:1,to:0.2,duration:0.2})
},onSuccess:function(f){var e=f.responseText;
$("fans_film_full").update(f.responseText);
$("fans_film_loader").hide();
new Effect.Opacity("fans_film_full",{from:0.2,to:1,duration:0.2});
var d=f.getHeader("Total-Count");
if(d>0){paginateList("fans_film_full")
}else{document.location.href=$("main_film_page").readAttribute("href")
}}})
}function newMovieMix(){var a="/vodkaster/moviemix/new";
new Ajax.Request(a,{method:"post",onSuccess:function(b){document.location.href=b.responseText
}})
}function movieMixShareOnFacebook(){var a=$("facebook_share").getAttribute("current_url");
fb_url="http://www.facebook.com/sharer.php?u="+encodeURIComponent(a);
window.open(fb_url,"sharer","toolbar=0,status=0,width=626,height=436")
}function movieMixShareOnTwitter(){var b=$("twitter_share").getAttribute("current_url");
var a=$("twitter_share").getAttribute("moviemix_title");
var c="#moviemix "+a+" : "+b;
var d="http://twitter.com/home/?status="+encodeURIComponent(c);
window.open(d);
return
}function fetchMovieMixTop(){var a="/vodkaster/moviemix/top";
new Ajax.Request(a,{onSuccess:function(b){$("top_moviemix").update(b.responseText)
},onFailure:function(){}})
}function updateRateByRateId(b){id=$("rating_"+b).up().readAttribute("id");
id=id.sub("note_","");
var a="/layout/set/empty/content/view/attribute/"+id;
new Ajax.Request(a,{onSuccess:function(c){$("rating_"+b).up().update(c.responseText)
},onFailure:function(){}})
}function updateRateUser(){$$(".note").each(function(c){c.observe("click",function(d){if($("fans_film")){fetchFansFilm()
}$$(".fans_film_full").each(function(e){console.log("hey");
fetchFansFilmFull(0)
})
});
var a=c.readAttribute("id");
a=a.sub("note_","");
var b="/layout/set/empty/content/view/attribute/"+a;
new Ajax.Request(b,{onSuccess:function(d){c.update(d.responseText)
}})
})
}function imgHover(b,a){$$(".img_hover").each(function(c){c.hide()
});
$(b+"_"+a+"_hover").show()
}function imgOut(b,a){$(b+"_"+a+"_hover").hide()
}function fetchRetroComments(d){var b=$("retro_comments_list").readAttribute("class").split("_").last();
var a=$("retro_comments_list").readAttribute("node_id");
var c="/vodkaster/children/"+a+"/comment/"+isCurrentUser+"/comment/ajax/"+b+"/"+d+"/published,true/false";
new Ajax.Request(c,{onLoading:function(){new Effect.Opacity("retro_comments_list",{from:1,to:0.2,duration:0.2})
},onSuccess:function(e){$("comments_loader").hide();
new Effect.Opacity("retro_comments_list",{from:0.2,to:1,duration:0.2});
$("retro_comments_list").update(e.responseText);
paginateList("retro_comments_list")
}})
}function retroShareOnFacebook(){var a=$("facebook_share").getAttribute("current_url");
fb_url="http://www.facebook.com/sharer.php?u="+encodeURIComponent(a);
window.open(fb_url,"sharer","toolbar=0,status=0,width=626,height=436")
}function retroShareOnTwitter(){var a=$("twitter_share").getAttribute("short_url");
var b=$("twitter_share").getAttribute("message")+" "+a;
tw_url="http://twitter.com/home/?status="+encodeURIComponent(b);
window.open(tw_url)
}function femmesShareOnFacebook(){var a=$("facebook_share").getAttribute("current_url");
fb_url="http://www.facebook.com/sharer.php?u="+encodeURIComponent(a);
window.open(fb_url,"sharer","toolbar=0,status=0,width=626,height=436")
}function femmesShareOnTwitter(){var a=$("twitter_share").getAttribute("short_url");
var b=$("twitter_share").getAttribute("message")+" "+a+" #journeedelafemme";
tw_url="http://twitter.com/home/?status="+encodeURIComponent(b);
window.open(tw_url)
}function fetchQuizTop(){var c=$("top_quiz").readAttribute("quiz_id");
var a=$("top_quiz").readAttribute("limit");
var b="/quiz/leaderboard/"+c+"/"+a;
new Ajax.Request(b,{onSuccess:function(d){$("top_quiz").update(d.responseText)
}})
}function openFacettingComboBox(a){document.body.onclick=function(){};
closeAllFacettingComboBoxes();
a.parentNode.className="facettingComboBox facettingComboBoxOpen";
a.className="selected openedCB";
a.onclick=function(){closeFacettingComboBox(a)
};
a.onmouseout=function(){onClickOutComboBox(a)
}
}function closeFacettingComboBox(a){document.body.onclick=function(){};
a.parentNode.className="facettingComboBox";
a.className="selected";
a.onclick=function(){openFacettingComboBox(a)
}
}function closeAllFacettingComboBoxes(){$$(".openedCB").each(function(a){closeFacettingComboBox(a)
})
}function onClickOutComboBox(a){document.body.onclick=function(){closeFacettingComboBox(a)
}
}function concoursNotLoggedIn(){var a="/quiz/storescore/0";
new Ajax.Request(a,{onSuccess:function(b){setTimeout("window.location.reload()",100)
}})
}function concoursLoggedIn(){url="/quiz/storescore/1/"+$("concours_logged_in").readAttribute("user_id");
new Ajax.Request(url,{onSuccess:function(a){if(a.responseText){fetchQuizTop()
}}})
}function showQuizRanking(c,a){var b="/layout/set/empty/content/view/line/"+c+"/(date_offset)/"+a;
new Ajax.Request(b,{onSuccess:function(d){$("quiz_"+c).update(d.responseText);
$$(".hoverButton").each(function(e){var f=e.readAttribute("src");
e.observe("mouseover",function(){this.writeAttribute("src",f.sub(".png","_hover.png"))
});
e.observe("mouseout",function(){this.writeAttribute("src",f.sub("_on.png",".png"))
})
})
}})
}function expandKeyWords(){$("tabKeywords").writeAttribute("style","width:720px;");
$("tabInfo").hide();
$("tabShare").hide();
$("expand_keywords").hide();
$("reduce_keywords").show()
}function reduceKeyWords(){if($("expand_keywords")!=undefined){$("tabKeywords").writeAttribute("style","width:300px;");
var a=$("tabButtonShare").firstDescendant().readAttribute("src");
if($("tabButtonShare").firstDescendant().readAttribute("src").endsWith("hover.png")){$("tabShare").show()
}else{$("tabInfo").show()
}if($("keyword_list").getStyle("display")!="none"){$("expand_keywords").show()
}$("reduce_keywords").hide()
}}function showPlaylistPlayer(a){if(openNodeID!=0){hidePlaylistPlayer(openNodeID)
}$("playlist_vignette_"+a).down(".background").down().hide();
$("playlist_vignette_"+a).down(".background").down(".play-button").hide();
$("playlist_vignette_"+a).down(".rule").hide();
new Effect.Tween($("playlist_description_"+a),0,288,{duration:0.8,afterFinish:function(){new Effect.Tween($("playlist_description_"+a),120,0,{duration:0.5},function(b){$("playlist_description_"+a).style.marginLeft=b+"px"
});
new Effect.Tween($("playlist_vignette_"+a).down(".background"),84,278,{duration:0.5,afterFinish:function(){$("playlist_player_"+a).show();
$("playlist_vignette_"+a).hide();
$("playlist_minimize_"+a).show()
}},function(b){$("playlist_vignette_"+a).down(".background").style.height=b+"px";
$("playlist_vignette_"+a).down(".background").style.width=(1.7986*b)+"px"
})
}},function(b){$("playlist_description_"+a).style.marginTop=b+"px"
});
openNodeID=a
}function hidePlaylistPlayer(a){if($("playlist_player_"+a)){$("playlist_player_"+a).hide();
$("playlist_vignette_"+a).show();
$("playlist_minimize_"+a).hide();
new Effect.Tween($("playlist_description_"+a),0,120,{duration:0.5},function(b){$("playlist_description_"+a).style.marginLeft=b+"px"
});
new Effect.Tween($("playlist_vignette_"+a).down(".background"),278,84,{duration:0.5,afterFinish:function(){$("playlist_vignette_"+a).down(".background").down().show();
$("playlist_vignette_"+a).down(".background").down(".play-button").show();
$("playlist_vignette_"+a).down(".rule").show();
new Effect.Tween($("playlist_description_"+a),288,0,{duration:0.8},function(b){$("playlist_description_"+a).style.marginTop=b+"px"
})
}},function(b){$("playlist_vignette_"+a).down(".background").style.height=b+"px";
$("playlist_vignette_"+a).down(".background").style.width=(1.3095*b)+"px"
})
}openNodeID=0
}function fansFilmShow(){var a=$("tab_fans_film");
if(a){var b="/fans/"+a.readAttribute("name")+"/"+a.readAttribute("node_id");
if($("bt_view_all_fans")){$("bt_view_all_fans").writeAttribute("href",b)
}if($("nb_fans")){$("nb_fans").writeAttribute("href",b)
}a.down("a").writeAttribute("href",b);
a.show()
}if($("bloc_fans_film")){$("bloc_fans_film").show()
}}function fansFilmHide(){var a=$("tab_fans_film");
if(a){a.down("a").writeAttribute("href","");
a.hide()
}if($("bloc_fans_film")){$("bloc_fans_film").hide()
}if($("bt_view_all_fans")){$("bt_view_all_fans").writeAttribute("href","")
}if($("nb_fans")){$("nb_fans").writeAttribute("href","")
}}function fansArtisteShow(){var a=$("tab_fans_artiste");
if(a){var b="/fans/"+a.readAttribute("name")+"/"+contentNodeID;
a.down("a").writeAttribute("href",b);
a.show()
}if($("bloc_fans_artiste_"+contentNodeID)){$("bloc_fans_artiste_"+contentNodeID).show()
}if($("list_fans_"+contentNodeID)){$("list_fans_"+contentNodeID).show()
}}function fansArtisteHide(){var a=$("tab_fans_artiste");
if(a){$("bt_view_all_fans").writeAttribute("href","");
a.down("a").writeAttribute("href","");
a.hide()
}if($("bloc_fans_artiste_"+contentNodeID)){$("bloc_fans_artiste_"+contentNodeID).hide()
}if($("list_fans_"+contentNodeID)){$("list_fans_"+contentNodeID).hide()
}}function showTimecodeLightview(a,b){Lightview.show({href:"/vodkaster/set_timecode/form/"+a,rel:"ajax",options:{width:220,height:130,topclose:true,closeButton:true,ajax:{method:"get",evalScripts:true,onComplete:function(){$("h_tin").focus();
$("s_tin").observe("keyup",function(c){var d=parseInt($("h_tin").value)*3600+parseInt($("m_tin").value)*60+parseInt($("s_tin").value)+b;
$("h_tout").value=Math.floor(d/(3600));
$("m_tout").value=Math.floor((d%3600)/60);
$("s_tout").value=d%60
})
}}}})
}function showConcours(a){Lightview.show({href:"/vodkaster/concours/show/"+contentNodeID+"/"+encodeURIComponent(a),rel:"ajax",options:{width:500,height:400,topclose:true,closeButton:true,ajax:{method:"get",evalScripts:true,onComplete:function(){}}}})
}toggleStyle=function(a,c,b){a.className=(a.className==c||a.className=="")?b:c
};
function toggleClass(a,c){var a,c;
var e=(navigator.appName.indexOf("Microsoft")==-1)?"class":"className";
for(i=0;
i<c;
i++){var b=document.getElementById("tab-"+i);
var d=document.getElementById("ct-"+i);
if(i==a){b.setAttribute(e,"current");
d.setAttribute(e,"show")
}else{b.removeAttribute(e);
d.setAttribute(e,"hide")
}}}function toggleDisp(){for(var a=0;
a<arguments.length;
a++){var b=$(arguments[a]);
b.style.display=(b.style.display=="none")?"block":"none"
}}function toggleTab(g,d,j,b){var a=(navigator.appName.indexOf("Microsoft")==-1)?"class":"className";
if($("tabContent"+g).style.display=="none"){for(var e=1;
e<=d;
e++){if((j==null)||(j!=e)){var l="tabHeader"+e;
var f=$(l);
if(!f){var f=$("tabHeaderActive");
f.id=l
}var m="tabContent"+e;
var k=$(m);
if(k.style.display!="none"){if(b||typeof b=="undefined"){Effect.toggle(m,"blind",{duration:0.5,queue:{scope:"menus",limit:2}});
f.removeAttribute(a)
}else{toggleDisp(m);
f.removeAttribute(a)
}}}}var f=$("tabHeader"+g);
if(f){f.id="tabHeaderActive"
}f.blur();
var k=$("tabContent"+g);
if(b||typeof b=="undefined"){Effect.toggle("tabContent"+g,"blind",{duration:0.5,queue:{scope:"menus",position:"end",limit:2}});
f.setAttribute(a,"currenttab")
}else{toggleDisp("tabContent"+g);
f.setAttribute(a,"currenttab")
}}}var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;
var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;
if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;
if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");
AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);
AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);
AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0
}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;
try{y=new ActiveXObject(p+".7")
}catch(t){try{y=new ActiveXObject(p+".6");
AC=[6,0,21];
y.AllowScriptAccess="always"
}catch(t){if(AC[0]==6){AB=true
}}if(!AB){try{y=new ActiveXObject(p)
}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");
if(x){x=x.split(" ")[1].split(",");
AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]
}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);
/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/
return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}
}();
var L=function(){if(!h.w3cdom){return
}f(H);
if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");
J=C("__ie_ondomload");
if(J){I(J,"onreadystatechange",S)
}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()
}},10)
}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)
}R(E)
}();
function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);
E()
}}function E(){if(e){return
}if(h.ie&&h.win){var v=a("span");
try{var u=K.getElementsByTagName("body")[0].appendChild(v);
u.parentNode.removeChild(u)
}catch(w){return
}}e=true;
if(Z){clearInterval(Z);
Z=null
}var q=o.length;
for(var r=0;
r<q;
r++){o[r]()
}}function f(q){if(e){q()
}else{o[o.length]=q
}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)
}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)
}else{if(typeof j.attachEvent!=b){I(j,"onload",r)
}else{if(typeof j.onload=="function"){var q=j.onload;
j.onload=function(){q();
r()
}
}else{j.onload=r
}}}}}function H(){var t=N.length;
for(var q=0;
q<t;
q++){var u=N[q].id;
if(h.pv[0]>0){var r=C(u);
if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";
N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";
if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)
}W(u,true)
}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])
}else{O(r)
}}}}else{W(u,true)
}}}function Y(t){var q=t.getElementsByTagName(Q)[0];
if(q){var w=a("embed"),y=q.attributes;
if(y){var v=y.length;
for(var u=0;
u<v;
u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)
}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)
}}}var x=q.childNodes;
if(x){var z=x.length;
for(var r=0;
r<z;
r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))
}}}t.parentNode.replaceChild(w,t)
}}function k(w){A=true;
var u=C(w.id);
if(u){if(w.altContentId){var y=C(w.altContentId);
if(y){M=y;
l=w.altContentId
}}else{M=G(u)
}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"
}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"
}K.title=K.title.slice(0,47)+" - Flash Player Installation";
var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;
if(h.ie&&h.win&&u.readyState!=4){var t=a("div");
x+="SWFObjectNew";
t.setAttribute("id",x);
u.parentNode.insertBefore(t,u);
u.style.display="none";
var v=function(){u.parentNode.removeChild(u)
};
I(j,"onload",v)
}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)
}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");
t.parentNode.insertBefore(r,t);
r.parentNode.replaceChild(G(t),r);
t.style.display="none";
var q=function(){t.parentNode.removeChild(t)
};
I(j,"onload",q)
}else{t.parentNode.replaceChild(G(t),t)
}}function G(v){var u=a("div");
if(h.win&&h.ie){u.innerHTML=v.innerHTML
}else{var r=v.getElementsByTagName(Q)[0];
if(r){var w=r.childNodes;
if(w){var q=w.length;
for(var t=0;
t<q;
t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))
}}}}}return u
}function U(AG,AE,t){var q,v=C(t);
if(v){if(typeof AG.id==b){AG.id=t
}if(h.ie&&h.win){var AF="";
for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]
}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'
}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'
}}}}}var AD="";
for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'
}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";
i[i.length]=AG.id;
q=C(AG.id)
}else{if(h.webkit&&h.webkit<312){var AC=a("embed");
AC.setAttribute("type",P);
for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])
}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])
}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])
}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])
}}}v.parentNode.replaceChild(AC,v);
q=AC
}else{var u=a(Q);
u.setAttribute("type",P);
for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])
}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])
}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])
}}v.parentNode.replaceChild(u,v);
q=u
}}}return q
}function F(t,q,r){var u=a("param");
u.setAttribute("name",q);
u.setAttribute("value",r);
t.appendChild(u)
}function X(r){var q=C(r);
if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)
}else{j.attachEvent("onload",function(){B(r)
})
}}else{q.parentNode.removeChild(q)
}}}function B(t){var r=C(t);
if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null
}}r.parentNode.removeChild(r)
}}function C(t){var q=null;
try{q=K.getElementById(t)
}catch(r){}return q
}function a(q){return K.createElement(q)
}function I(t,q,r){t.attachEvent(q,r);
d[d.length]=[t,q,r]
}function c(t){var r=h.pv,q=t.split(".");
q[0]=parseInt(q[0],10);
q[1]=parseInt(q[1],10)||0;
q[2]=parseInt(q[2],10)||0;
return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false
}function V(v,r){if(h.ie&&h.mac){return
}var u=K.getElementsByTagName("head")[0],t=a("style");
t.setAttribute("type","text/css");
t.setAttribute("media","screen");
if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))
}u.appendChild(t);
if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];
if(typeof q.addRule==Q){q.addRule(v,r)
}}}function W(t,q){var r=q?"visible":"hidden";
if(e&&C(t)){C(t).style.visibility=r
}else{V("#"+t,"visibility:"+r)
}}function g(s){var r=/[\\\"<>\.;]/;
var q=r.exec(s)!=null;
return q?encodeURIComponent(s):s
}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;
for(var v=0;
v<w;
v++){d[v][0].detachEvent(d[v][1],d[v][2])
}var t=i.length;
for(var u=0;
u<t;
u++){X(i[u])
}for(var r in h){h[r]=null
}h=null;
for(var q in swfobject){swfobject[q]=null
}swfobject=null
})
}}();
return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return
}var r={};
r.id=u;
r.swfVersion=q;
r.expressInstall=t?t:false;
N[N.length]=r;
W(u,false)
},getObjectById:function(v){var q=null;
if(h.w3cdom){var t=C(v);
if(t){var u=t.getElementsByTagName(Q)[0];
if(!u||(u&&typeof t.SetVariable!=b)){q=t
}else{if(typeof u.SetVariable!=b){q=u
}}}}return q
},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return
}AB+="";
AD+="";
if(c(q)){W(AE,false);
var AA={};
if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]
}}}AA.data=x;
AA.width=AB;
AA.height=AD;
var y={};
if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]
}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]
}else{y.flashvars=t+"="+r[t]
}}}}f(function(){U(AA,y,AE);
if(AA.id==AE){W(AE,true)
}})
}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;
W(AE,false);
f(function(){var AF={};
AF.id=AF.altContentId=AE;
AF.width=AB;
AF.height=AD;
AF.expressInstall=w;
k(AF)
})
}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}
},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)
}else{return undefined
}},removeSWF:function(q){if(h.w3cdom){X(q)
}},createCSS:function(r,q){if(h.w3cdom){V(r,q)
}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;
if(v==null){return g(u)
}if(u){var t=u.substring(1).split("&");
for(var r=0;
r<t.length;
r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))
}}}return""
},expressInstallCallback:function(){if(A&&M){var q=C(m);
if(q){q.parentNode.replaceChild(M,q);
if(l){W(l,true);
if(h.ie&&h.win){M.style.display="block"
}}M=null;
l=null;
A=false
}}}}
}();
