document.documentElement.className+=" js";if(is_ie6){document.documentElement.setAttribute("xmlns:v","urn:schemas-microsoft-com:vml")}var moviLib={lang:undefined,acceptedLanguage:["fr","en"],baseURL:document.baseURI||document.getElementsByTagName("BASE")[0].href,binding:function(a,b){return function(){return b.apply(a,arguments)}},register:function(a){a()},getLanguageFromUrl:function(){if(unescape(window.location.search.substr(1)).indexOf("&")!=-1){var b=unescape(window.location.search.substr(1)).split("&");$_GET=new Array();for(var c=0;c<b.length;c++){$_GET[b[c].substring(0,b[c].indexOf("="))]=b[c].substr(b[c].indexOf("=")+1)}return $_GET.lang||"fr"}else{var b=unescape(window.location.href.substr(this.baseURL.length)).split("/");if(jQuery.inArray(b[0],this.acceptedLanguage)!=-1){return this.acceptedLanguage[jQuery.inArray(b[0],this.acceptedLanguage)]}else{return"fr"}}},extractUrlParameters:function(a){var b=a.split("?");return b[1]},checkKeyOnInput:function(b){var a=b.target;if(a.nodeName&&(a.nodeName=="INPUT"||a.nodeName=="TEXTAREA")){return true}else{return false}},newWindowsForLink:function(f,e,d,c,b,a){if(jQuery("a."+f).length==0){return}jQuery("a."+f).live("click",function(g){if(((!jQuery.browser.msie||(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)>=8))&&g.button==0)||(jQuery.browser.msie&&g.button==1)){g.preventDefault();moviLib.nouvelleFenetre(this.href,this.target,e,d,c,b,a)}});return},nouvelleFenetre:function(b,c,a,d,f,g,h){var i="";if(!h&&!g){var h=Math.floor((jQuery(window).height()-f)/2);var g=Math.floor((jQuery(window).width()-d)/2)}if(a=="console"){i="resizable=yes,scrollbars=yes,status=yes,height="+f+",width="+d+",left="+g+",top="+h}if(a=="withMenu"){i="resizable=yes,scrollbars=yes,menubar=yes,status=yes,height="+f+",width="+d+",left="+g+",top="+h}if(a=="withTool"){i="resizable=yes,scrollbars=yes,status=yes,toolbar=yes,height="+f+",width="+d}if(a=="image"){i="resizable=yes,scrollbars=yes,status=yes,toolbar=yes,width="+d}var e=window.open(b,jQuery.removeSpace(c),i);e.focus()},retFalse:function(){return false}};(function(a){a.extend({isObject:function(b){return(b instanceof Object||b.constructor==Object)},removeSpace:function(b){return unescape(b).split(/\s/g).join("")},enleveAccent:function(f){var e="";var d=f.length;for(var c=0;c<d;c++){var b=f.charAt(c);if((b=="à")||(b=="â")){b="a"}else{if(b=="ç"){b="c"}else{if((b=="é")||(b=="è")||(b=="ê")||(b=="ë")){b="e"}else{if((b=="ï")||(b=="î")){b="i"}else{if((b=="ö")||(b=="ô")){b="o"}else{if((b=="ü")||(b=="ù")||(b=="û")){b="u"}else{if(b==" "){b=""}}}}}}}e+=b}return e},stripslashes:function(b){return(b+"").replace("/\0/g","0").replace("/(.)/g","$1")},str_pad:function(f,g,e,d){var c=f;for(var b=f.length;b<g;b++){d=d||"STR_PAD_LEFT";if(d=="STR_PAD_LEFT"){c=e+c}if(d=="STR_PAD_RIGHT"){c=c+e}}return c},array_fill:function(b,d,f){var e,c={};if(!isNaN(b)&&!isNaN(d)){for(e=0;e<d;e++){c[(e+b)]=f}}return c},keys:function(d){var b=[];for(var c in d){b.push(c)}return b},values:function(d){var b=[];for(var c in d){b.push(d[c])}return b}})})(jQuery);(function(a){a.extend(a.expr[":"],{data:function(f,g,d){var h=a(f).get(0),c;if(!d[3]){for(var b in h){if((/jQuery\d+/).test(b)){return true}}}else{c=d[3].split("=");if(c[1]){if((/^\/.+\/([mig]+)?$/).test(c[1])){return(new RegExp(c[1].substr(1,c[1].lastIndexOf("/")-1),c[1].substr(c[1].lastIndexOf("/")+1))).test(a(f).data(c[0]))}else{return a(f).data(c[0])==c[1]}}else{if(a(f).data(c[0])){return true}else{a(f).removeData(c[0]);return false}}}return false}})})(jQuery);if(jQuery){(function(){jQuery.extend(jQuery.fn,{rightClick:function(a){jQuery(this).each(function(){jQuery(this).mousedown(function(c){var b=c;jQuery(this).mouseup(function(){jQuery(this).unbind("mouseup");if(b.button==2){a.call(jQuery(this),b);return false}else{return true}})});jQuery(this)[0].oncontextmenu=function(){return false}});return jQuery(this)},rightMouseDown:function(a){jQuery(this).each(function(){jQuery(this).mousedown(function(b){if(b.button==2){a.call(jQuery(this),b);return false}else{return true}});jQuery(this)[0].oncontextmenu=function(){return false}});return jQuery(this)},rightMouseUp:function(a){jQuery(this).each(function(){jQuery(this).mouseup(function(b){if(b.button==2){a.call(jQuery(this),b);return false}else{return true}});jQuery(this)[0].oncontextmenu=function(){return false}});return jQuery(this)},noContext:function(){jQuery(this).each(function(){jQuery(this)[0].oncontextmenu=function(){return false}});return jQuery(this)}})})(jQuery)}function preLoadPanel(a){jQuery("#page").append(jQuery('<div id="'+a+'"><img src="./images/ld.gif" alt="" style="border:none;"/></div>'));return function(){if(jQuery("#carte").length==0){return}var d=jQuery("#rechercheiti").clone();jQuery("#rechercheiti").remove();d.attr("id","rechercheiti").addClass(moviLib.getLanguageFromUrl());oCart.oInterface.oHTML.append(d);d.addClass("active");var b=d.width();var c=d.height();d.css({left:parseInt(oCart.oMask.css("left"))+Math.floor(parseInt(oCart.oMask.width())/2)-Math.floor(b/2),top:parseInt(oCart.oMask.css("top"))+Math.floor(parseInt(oCart.oMask.height())/2)-Math.floor(c/2)})}}jQuery(function(){jQuery("table not(.nozebra) tr").hover(function(){jQuery(this).addClass("rowover")},function(){jQuery(this).removeClass("rowover")});jQuery("table not(.nozebra) tr:even").addClass("rowimp");jQuery("table not(.nozebra) tr:odd").addClass("rowpai")});jQuery(function(){moviLib.newWindowsForLink("newwindow","withMenu",650,400)});jQuery(function(){moviLib.newWindowsForLink("externe")});jQuery(function(){if(typeof jQuery.datepicker=="undefined"){return}jQuery.datepicker.setDefaults(jQuery.extend({defaultDate:null,showOn:"button",minDate:new Date,maxDate:new Date(2010,07-1,12),buttonImage:"./images/calendar.gif",buttonImageOnly:true},jQuery.datepicker.regional.fr));jQuery("#dateField").datepicker(jQuery.datepicker.regional[moviLib.getLanguageFromUrl()])});