$(document).ready(function(){$.dpText={TEXT_PREV_YEAR:_("Annee precedente"),TEXT_PREV_MONTH:_("Mois precedent"),TEXT_NEXT_YEAR:_("Annee suivante"),TEXT_NEXT_MONTH:_("Mois suivant"),TEXT_CLOSE:_("Fermer"),TEXT_CHOOSE_DATE:_("")};if(!Array.indexOf){Array.prototype.indexOf=function(A){for(i=0;i<this.length;i++){if(this[i]==A){return i}}return -1}}});function stringFilter(D){var B="1234567890";var A="";for(var C=0;C<D.length;C++){var E=D.charAt(C);if(B.indexOf(E)!=-1){A+=E}}return A}function swapClass(C,B){var A=C.attr("class");C.attr("class",B.attr("class"));B.attr("class",A)}function onglet_actif(A){if(A=="#titre_onglet2"){$("#addfilmform").css("display","block");$("#catalogue_table").css("display","none");$("#catalogue_links").css("display","none");swapClass($("#onglet_cat_1"),$("#onglet_cat_2"));swapClass($("#titre_onglet1"),$("#titre_onglet2"));$("#bas_tab_film").hide()}}function film_form_toggler(){$("#titre_onglet2").click(function(A){if($("#onglet_cat_1").hasClass("color_films")){$("#addfilmform").css("display","block");$("#catalogue_table").css("display","none");$("#catalogue_links").css("display","none");swapClass($("#onglet_cat_1"),$("#onglet_cat_2"));swapClass($("#titre_onglet1"),$("#titre_onglet2"));$("#bas_tab_film").hide()}return false});$("#titre_onglet1").click(function(A){if($("#onglet_cat_2").hasClass("color_films")){$("#addfilmform").css("display","none");$("#catalogue_table").css("display","block");$("#catalogue_links").css("display","block");swapClass($("#onglet_cat_1"),$("#onglet_cat_2"));swapClass($("#titre_onglet1"),$("#titre_onglet2"));$("#bas_tab_film").show()}return false});return false}function GeneratePopUp(D,C,B,E){if($("#pop_up").length===0){$('<div id="pop_up" />').appendTo($("body"));$('<div id="popup_block" />').appendTo($("#pop_up"));$('<div id="popuptext" />').appendTo($("#popup_block"));$('<a class="taille13b" />').html(C).appendTo($("#popuptext"));if(D=="confirm"){$('<div id="popupbutton" />').appendTo($("#popup_block"));$('<input id="cancel" type="button" style="float: right;" class="border_38" value="'+_("Annuler")+'" />').appendTo($("#popupbutton")).click(function(){$("#pop_up").remove();return false});$('<input id="confirm" type="button" style="float: left;" class="border_38" value="'+B+'" />').appendTo($("#popupbutton")).click(function(){window.location=E;return false})}else{$('<div id="single_popup_button" />').appendTo($("#popup_block"));var A=$('<input type="button" class="border_38" value="'+B+'" >');if(D=="redirect"){A.appendTo($("#single_popup_button")).click(function(){window.location=E;return false})}else{A.appendTo($("#single_popup_button")).click(function(){$("#pop_up").remove();return false})}}}}function SwapImage(B,A){MM_swapImage(B,"","/static/new_images/"+A)}function SwapButtonImg(A,C,B){A.hover(function(){SwapImage($(this).attr("id"),C)},function(){MM_swapImgRestore()});A.mousedown(function(){SwapImage($(this).attr("id"),B)})}function MM_swapImgRestore(){var C,A,B=document.MM_sr;for(C=0;B&&C<B.length&&(A=B[C])&&A.oSrc;C++){A.src=A.oSrc}}function MM_preloadImages(){var D=document;if(D.images){if(!D.MM_p){D.MM_p=new Array()}var C,B=D.MM_p.length,A=MM_preloadImages.arguments;for(C=0;C<A.length;C++){if(A[C].indexOf("#")!=0){D.MM_p[B]=new Image;D.MM_p[B++].src=A[C]}}}}function MM_findObj(E,D){var C,B,A;if(!D){D=document}if((C=E.indexOf("?"))>0&&parent.frames.length){D=parent.frames[E.substring(C+1)].document;E=E.substring(0,C)}if(!(A=D[E])&&D.all){A=D.all[E]}for(B=0;!A&&B<D.forms.length;B++){A=D.forms[B][E]}for(B=0;!A&&D.layers&&B<D.layers.length;B++){A=MM_findObj(E,D.layers[B].document)}if(!A&&D.getElementById){A=D.getElementById(E)}return A}function MM_swapImage(){var D,C=0,A,B=MM_swapImage.arguments;document.MM_sr=new Array;for(D=0;D<(B.length-2);D+=3){if((A=MM_findObj(B[D]))!=null){document.MM_sr[C++]=A;if(!A.oSrc){A.oSrc=A.src}A.src=B[D+2]}}}Date.dayNames=[_("dimanche"),_("lundi"),_("mardi"),_("mercredi"),_("jeudi"),_("vendredi"),_("samedi")];Date.abbrDayNames=[_("dim."),_("lun."),_("mar."),_("mer."),_("jeu."),_("ven."),_("sam.")];Date.monthNames=[_("janvier"),_("fevrier"),_("mars"),_("avril"),_("mai"),_("juin"),_("juillet"),_("aout"),_("septembre"),_("octobre"),_("novembre"),_("decembre")];Date.abbrMonthNames=[_("janv."),_("fevr."),_("mars"),_("avr."),_("mai"),_("juin"),_("juil."),_("aout"),_("sept."),_("oct."),_("nov."),_("dec.")];Date.firstDayOfWeek=1;Date.format="dd/mm/yyyy";Date.fullYearStart="20";(function(){function B(C,D){if(!Date.prototype[C]){Date.prototype[C]=D}}B("isLeapYear",function(){var C=this.getFullYear();return(C%4==0&&C%100!=0)||C%400==0});B("isWeekend",function(){return this.getDay()==0||this.getDay()==6});B("isWeekDay",function(){return !this.isWeekend()});B("getDaysInMonth",function(){return[31,(this.isLeapYear()?29:28),31,30,31,30,31,31,30,31,30,31][this.getMonth()]});B("getDayName",function(C){return C?Date.abbrDayNames[this.getDay()]:Date.dayNames[this.getDay()]});B("getMonthName",function(C){return C?Date.abbrMonthNames[this.getMonth()]:Date.monthNames[this.getMonth()]});B("getDayOfYear",function(){var C=new Date("1/1/"+this.getFullYear());return Math.floor((this.getTime()-C.getTime())/86400000)});B("getWeekOfYear",function(){return Math.ceil(this.getDayOfYear()/7)});B("setDayOfYear",function(C){this.setMonth(0);this.setDate(C);return this});B("addYears",function(C){this.setFullYear(this.getFullYear()+C);return this});B("addMonths",function(D){var C=this.getDate();this.setMonth(this.getMonth()+D);if(C>this.getDate()){this.addDays(-this.getDate())}return this});B("addDays",function(C){this.setDate(this.getDate()+C);return this});B("addHours",function(C){this.setHours(this.getHours()+C);return this});B("addMinutes",function(C){this.setMinutes(this.getMinutes()+C);return this});B("addSeconds",function(C){this.setSeconds(this.getSeconds()+C);return this});B("zeroTime",function(){this.setMilliseconds(0);this.setSeconds(0);this.setMinutes(0);this.setHours(0);return this});B("asString",function(){var C=Date.format;return C.split("yyyy").join(this.getFullYear()).split("yy").join((this.getFullYear()+"").substring(2)).split("mmm").join(this.getMonthName(true)).split("mm").join(A(this.getMonth()+1)).split("dd").join(A(this.getDate()))});Date.fromString=function(E){var F=Date.format;var H=new Date("01/01/1977");var I=F.indexOf("yyyy");if(I>-1){H.setFullYear(Number(E.substr(I,4)))}else{H.setFullYear(Number(Date.fullYearStart+E.substr(F.indexOf("yy"),2)))}var C=F.indexOf("mmm");if(C>-1){var G=E.substr(C,3);for(var D=0;D<Date.abbrMonthNames.length;D++){if(Date.abbrMonthNames[D]==G){break}}H.setMonth(D)}else{H.setMonth(Number(E.substr(F.indexOf("mm"),2))-1)}H.setDate(Number(E.substr(F.indexOf("dd"),2)));if(isNaN(H.getTime())){return false}return H};var A=function(C){var D="0"+C;return D.substring(D.length-2)}})();