$(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("
");
var c=1;$.each(a,function(a,b){0"+b.nom_membre+' >
'+b.contenu+""),c++)});setInterval(function(){$(".infoPlayer .ticker ul li:visible").fadeOut("slow",function(){0==$(this).next("li").length?$(".infoPlayer .ticker ul li:first").fadeIn("slow"):$(this).next().fadeIn("slow")})},1E4)}}});
$("#linkDescriptionComplete").click(function(){$(".descriptionComplete").goTo()});var d=window.location.href.split("#view:");d[1]&&$.ajax({url:"/include/ajax/videoUrlView.php",type:"POST",data:{id:d[1]},success:function(a){window.location.replace(a)}});$("#update_video").live("click",function(){$.ajax({type:"POST",url:"/ajax.php?action=moderation_video_internaute",data:{id:$("#id").val(),titre:$("#titre").val(),id_type:$("#id_type").val(),shortdescription:$("#shortdescription").val(),longdescription:$("#longdescription").val(),
hide_video:$("#hide_video").is(":checked")},success:function(a){document.getElementById("edit_video_modo").innerHTML=a}})});$(".playlistVideo").click(function(){idVideo=$(this).attr("rel");currentIdVideo=$(".block-video-headerVideo .playlist li.active a").attr("rel");if(currentIdVideo==idVideo)return!1;$(this).closest("li").siblings().removeClass("active");$(this).closest("li").addClass("active");if(0maxOffset&&(maxOffset=325),$(window).scrollTop()1){arr=arr.concat(checkCellColSpan(table,headerArr,row++));}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell);}}}return arr;};function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true;};return false;}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true;};return false;}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i');$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($('').css('width',$(this).width()));});$(table).prepend(colgroup);};}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;ib)?1:0));};function sortTextDesc(a,b){return((ba)?1:0));};function sortNumeric(a,b){return a-b;};function sortNumericDesc(a,b){return b-a;};function getCachedSortType(parsers,i){return parsers[i].type;};this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies)return;var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){$this.trigger("sortStart");var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){var $cell=$(this);var i=this.column;this.order=this.count++%2;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j0){$this.trigger("sorton",[config.sortList]);}applyWidget(this);});};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i