function DoubleScrollDynamique(h,b,d,i,e,f,a){var c={};if(f!=null&&f){var c=$(h).scrollable({api:true,keyboard:false,item:b,size:e,vertical:true})}else{var c=$(h).scrollable({api:true,keyboard:false,item:b,size:e})}var g=$(d).scrollable({api:true,keyboard:false,item:i,clickable:false,size:1});$(".nextPage").click(function(){var l=c.getPageIndex();var k=c.getConf().size;if(l){var j=parseInt(l*k);var n=j+k;var m=c.getItems();m.each(function(p){if(typeof(p)!="undefined"&&p>=j&&p<n){var q=$(this).find("img").attr("title");var o=q.split("||");if(o&&o.length==2){if(o[0]&&o[0].length){$(this).find("img").attr("src",o[0]);$(this).find("img").attr("title",o[1])}}}})}});$(".prevPage").click(function(){var l=c.getPageIndex();var k=c.getConf().size;if(l){var j=parseInt(l*k);var n=j+k;var m=c.getItems();m.each(function(p){if(p>=j&&p<n){var q=$(this).find("img").attr("title");var o=q.split("||");if(o&&o.length==2){if(o[0]&&o[0].length){$(this).find("img").attr("src",o[0]);$(this).find("img").attr("title",o[1])}}}})}});$(b).click(function(){var j=c.getClickIndex();var l=c.getVisibleItems();l.each(function(n){var o=$(this).find("img").attr("title");var m=o.split("||");if(m&&m.length==2){if(m[0]&&m[0].length){$(this).find("img").attr("src",m[0]);$(this).find("img").attr("title",m[1])}}});g.onBeforeSeek(function(m){if(a!=null&&a){$(a).animate({top:-60},0).add($(d).css("opacity",0))}else{$(d).css("opacity",0)}});g.onSeek(function(m){m.preventDefault();m.stopImmediatePropagation();if(a!=null&&a){$(d).fadeTo(150,1).add($(a).animate({top:0},250))}else{$(d).fadeTo("medium",1)}});g.seekTo(j);var k=g.getVisibleItems();k.each(function(n){var o=$(this).find("img").attr("title");var m=o.split("||");if(m&&m.length==2){if(m[0]&&m[0].length){$(this).find("img").attr("src",m[0]);$(this).find("img").attr("title",m[1])}}})})}function ScrollDynamique(d,c,a){var e;if(a!=null&&a){e=a}else{e=5}var b=$(d).scrollable({clickable:false,api:true,keyboard:false,item:c,size:e});$(".nextPage").click(function(){var h=b.getPageIndex();var g=b.getConf().size;if(h){var f=parseInt(h*g);var j=f+g;var i=b.getItems();i.each(function(l){if(l>=f&&l<j){var m=$(this).find("img").attr("title");var k=m.split("||");if(k&&k.length==2){if(k[0]&&k[0].length){$(this).find("img").attr("src",k[0]);$(this).find("img").attr("title",k[1])}}}})}});$(c).click(function(){var f=b.getClickIndex();var g=b.getVisibleItems();g.each(function(i){var j=$(this).find("img").attr("title");var h=j.split("||");if(h&&h.length==2){if(h[0]&&h[0].length){$(this).find("img").attr("src",h[0]);$(this).find("img").attr("title",h[1])}}})})}function MoveToScrollPage(f,i,a){$(f).scrollable().setPage(i);var d=$(f).scrollable();var e=i;var g=a;if(e){var c=parseInt(e*g);var h=c+g;var b=d.getItems();b.each(function(k){if(k>=c&&k<h){var l=$(this).find("img").attr("title");var j=l.split("||");if(j&&j.length==2){if(j[0]&&j[0].length){$(this).find("img").attr("src",j[0]);$(this).find("img").attr("title",j[1])}}}})}}function processSearch(c,a,b){if(a){top.document.location.href=a}else{c.KEYWORDS.value=b;c.submit()}}function validationFormMC(a,b){if(a.KEYWORDS.value!=""&&(b==undefined||b!=undefined&&b!=a.KEYWORDS.value)){a.action="/Findall";return true}else{alert("Veuillez saisir un terme pour votre recherche");a.KEYWORDS.value="";a.KEYWORDS.focus()}return false}function putInputValue(a){var b=$(a).text();$("#cityName").val(b);$(".ac_results").css("display","none")}function setFormAction(){var a="";var b="";if(jQuery("#films").val()!=0){b=jQuery("#films").val()}if(b!=""){a+="/"+b;jQuery("#selectFilm").attr("action","/Film"+a)}return true}function isPhoneNumber(a){var b=new RegExp(/^06[0-9]{8}/gi);if(b.test(a)){return true}return false}function clearText(a){if(a.defaultValue==a.value){a.value=""}}function getCookieVal(b){var a=document.cookie.indexOf(";",b);if(a==-1){a=document.cookie.length}return unescape(document.cookie.substring(b,a))}function LireCookie(c){var b=c+"=";var f=b.length;var a=document.cookie.length;var e=0;while(e<a){var d=e+f;if(document.cookie.substring(e,d)==b){return getCookieVal(d)}e=document.cookie.indexOf(" ",e)+1;if(e==0){break}}return null}function PopupCentrerBis(d,b,c,a){if(c===""){c=a}var f=(screen.height-c)/2;var e=(screen.width-a)/2;window.open(d,"","top="+f+",left="+e+",width="+a+",height="+c+","+b)}function showHide(){if(document.getElementById("shhide").style.display=="none"){jQuery("#tl").removeClass("navRightClosed");jQuery("#tl").addClass("navRightOp");jQuery("#shhide").show()}else{jQuery("#tl").removeClass("navRightOp");jQuery("#tl").addClass("navRightClosed");jQuery("#shhide").hide()}}function showHd(){jQuery("#hd").toggle()}function habillagePage(b,a,f,j,c,e,i,k){if(i==null){i="#000000"}if(k==null){k=600}if(a!=null&&a){var d=false;d={backgroundImage:"url("+a+")",backgroundRepeat:"no-repeat","background-position":"50% -86px","background-color":""+i+""};if(j!=null&&j){var h=$("#header").height();var g={height:(h+j)+"px"};$(b).css(g)}if(c!=null&&c){$(b).click(function(){if(e!=null&&e){window.open(c,"cinefil")}else{document.location.href=c}});$(b).css("cursor","pointer")}$("body").css(d);if(f!=null&&f){if(f<1){$(".logoCinefil").css("opacity",f)}}else{$(".logoCinefil").remove()}$(window).resize(function(){habillageBordureCliquable(b,c,e,k,false)});$(window).trigger("resize")}}function habillageBordureCliquable(a,d,e,m,l){var f=$(a).outerWidth();var i=$(a).offset();var c=$(window).width();if(l!=null&&l){var h={width:"0px",height:"0px",position:"absolute",top:""+i.top+"px",left:"0px"};var j={cursor:"pointer",width:""+(c-f)+"px",height:""+m+"px",position:"absolute","z-index":"100",top:""+i.top+"px",left:""+(i.left+f)+"px"}}else{var h={cursor:"pointer",width:""+i.left+"px",height:""+m+"px",position:"absolute","z-index":"100",top:""+i.top+"px",left:"0px"};var j={cursor:"pointer",width:""+i.left+"px",height:""+m+"px",position:"absolute","z-index":"100",top:""+i.top+"px",left:""+(i.left+f)+"px"}}var g=$("#HabillageGauche");if(!g.length>0){$("body").append('<div id="HabillageGauche"></div>');$("body").append('<div id="HabillageDroite"></div>');if(d!=null&&d){$("#HabillageGauche, #HabillageDroite").click(function(){if(e!=null&&e){window.open(d,"cinefil")}else{document.location.href=d}})}var b=$(".logoCinefil").outerHeight();$(".logoCinefil").wrap('<div id="logoCinefilFF13" class="logoCinefil"></div>').removeClass("logoCinefil").css({"margin-left":"15px","margin-bottom":"10px"});var k={cursor:"pointer","background-color":"#000000",width:""+f+"px",height:""+b+"px","text-align":"left"};$("#logoCinefilFF13").css(k)}$("#HabillageGauche").css(h);$("#HabillageDroite").css(j)}function Compter(b,a,c){contenu=b.value;tailleCourante=contenu.length;if(tailleCourante>c){contenu=contenu.substring(0,c);b.value=contenu}a.value=c-tailleCourante;if(a.value==-1){a.value=0}};