$(document).ready(function(){$(".infoPlayer .embeded input").length&&$(".infoPlayer .embeded input").focus(function(){$(this).select()});$(".block-video-listeVideo").length&&$("div.qtip").hover(function(){$(this).children().show();$("#container").offset().left>$(".qtipExpand",this).offset().left?($(".qtipExpand",this).addClass("right"),$(".arrowLeftTips_png",this).addClass("arrowRightTips_png").removeClass("arrowLeftTips_png")):$(".qtipExpand",this).addClass("left")},function(){var a=$(".qtipExpand", this),c=setTimeout(function(){a.hide()},50);$(".qtipExpand",this).mouseenter(function(){clearTimeout(c)});$(".qtipExpand",this).mouseleave(function(){a.hide()})});$(".block-video-tableVideo").length&&($(".block-video-tableVideo table .video a").live("mouseenter",function(){$(this).parents("tr").find("td").css("text-decoration","underline")}),$(".block-video-tableVideo table .video a").live("mouseleave",function(){$(this).parents("tr").find("td").css("text-decoration","none")}),$(".block-video-tableVideo table").tablesorter({sortList:[[2, 1]],dateFormat:"uk",widgets:["zebra"]}),$(".block-video-tableVideo table .tip").length&&($(".block-video-tableVideo table .video a").live("mouseenter",function(){$(this).parents("tr").find(".tip").show()}),$(".block-video-tableVideo table .video a").live("mouseleave",function(){$(this).parents("tr").find(".tip").hide()})));$("#rechercherVideo input:text").defaultValue("Ex : Vid\u00e9o test Mass Effect 2");$("#rechercherVideo form").submit(function(){if(""==$("#rechercherVideo input:text").val()|| "Ex : Vid\u00e9o test Mass Effect 2"==$("#rechercherVideo input:text").val())return window.location=$("#defaultVideo").val(),!1});$(".infoPlayer .ticker").length&&$.ajax({url:"/ajax.php?action=slideComments",type:"POST",data:{id:$(".infoPlayer .ticker").attr("id").replace("ticker",""),type:"fiche videotv"},dataType:"json",success:function(a){if(0==a.length)$(".infoPlayer .ticker").next(".interligne").remove(),$(".infoPlayer .ticker").remove();else{0==$(".infoPlayer .ticker ul").length&&$(".infoPlayer .ticker").append("