Index: tensions/cl_conflit/js/Affiche_script - Copie (2).js
===================================================================
--- /extensions/cl_conflit/js/Affiche_script - Copie (2).js	(revision 7880)
+++ 	(revision )
@@ -1,1064 +1,0 @@
-/*
-var thumbnail= '{$thumbnail}';
-var theme = '{$theme}';
-var version = '{$version}';
-var scaled_width = '{$SCALED_WIDTH}'; // valeur par defaut
-var scaled_height = '{$SCALED_HEIGHT}'; // valeur par defaut
-var img_width = '{$IMG_WIDTH }'; 
-var img_height = '{ $IMG_HEIGHT }';$picture['current']['height']
-
-var marge_basse = '{ $MARGE_BASSE }';
-var echelle_max = '{ $ECHELLE_MAX }';
-var mini_width = '{ $MINI_WIDTH   }';
-var mini_height = '{ $MINI_HEIGHT   }';
-
-var webmaster_width = '{$webmaster_width   }';
-var webmaster_height = '{ $webmaster_height   }';
-var admin_width = '{ $admin_width   }';
-var admin_height = '{ $admin_height   }';
-var generic_width = '{ $generic_width   }';
-var generic_height = '{ $generic_height   }';
-var guest_width = '{ $guest_width   }';
-var guest_height = '{$guest_height}';
-var normal_width = '{$normal_width}';
-var normal_height = '{$normal_height}';
-var user_status = '{$user_status}';
-var user_status = '{$user_status}';
-var check_auto_w = '{$check_auto_w}';
-var check_desc_v = '{$check_desc_v}';
-*/
-
-
-var img_top = "0";
-var cl_visible = true;
-
-  function Toggle_bp()
- { 
- cl_visible = !cl_visible ;
-   if (cl_visible) src=src1 ;
-  else src=src2 ;
-     if (cl_visible)  src_info=src3 ;
-  else src_info=src4 ;
-  
-        jQuery('#bp_cla').attr('alt',src_info);
-        jQuery('#bp_cla').attr('title', src_info);
-
-        jQuery('#bp_img_cla').get(0).src=src ;
-        jQuery('#bp_img_cla').attr('alt',src_info);
-        jQuery('#bp_img_cla').attr('title',src_info);
-        jQuery('#bp_cla').attr('Stitle', src_info);
-        jQuery('#bp_cla').attr('Stip'," ");
-        old_w = 0;
-        jQuery(window).resize();
-    }
-    //=========================================================
-    var old_w = 0;
-     function wait_Timer() {
-         old_w = 0
-         jQuery(window).resize();
-           info_pamoorama_outter = jQuery("#pamoorama_outter").info();
-           if (info_pamoorama_outter.width == 0)
-                setTimeout("wait_Timer()", 100);
-
-       }
-
-      
-
- function cl_Timer() {
- //   if (!jQuery.browser.msie) { jQuery(function () { alert(jQuery.browser.version); }); }
-     if (jQuery.browser.msie && parseInt(jQuery.browser.version) < 8)
-         alert(jQuery.browser.version);
-     panoramaContainer = jQuery(".panorama-container");
-     n = document.scripts[6];//12--14affiche_script ;
-     t = n.src;
-
-     currentPosition = 0 - parseInt(jQuery(panoramaContainer).css('margin-left'));
-     if ( currentPosition == NaN) return;
-     
-
-     if (currentPosition > 1000) 
-     jQuery(panoramaContainer).css('margin-left',"0px")
-     setTimeout("cl_Timer()", 500);
- }
- function onPropertyChange(e) {
-     var el = e.srcElement;
-     var new_class=el.className ;
-     ID = el.id;
-     Prop = e.propertyName.split(".");
-     Property = Prop[1];
-     if (Property == "display") {
-         Valeur = parseInt(el.currentStyle[Property]);
-         if (Valeur=="block"){
-
- 
-         }
-     }
-     return;
- }     
-
-/* ready
-*
-*
-*/
-     //============================================================
-        /*
-        *
-        */
- function Info_entete(Parent) {
-
-     var Info_the_page = jQuery("#the_page").info();
-     var Zone_Affichage = jQuery("#theImage").info();
-     var info_theHeader = jQuery("#theHeader").info();
-     var info_imageToolBar = jQuery("#imageToolBar").info();
-     var Bandeau;
-
-     if (Zone_Affichage.position =="absolute") {
-         Bandeau = Zone_Affichage.top -
-                              (Info_the_page.top +
-                              Get_Val_int(Info_the_page.borderwidth.top) +
-                              Get_Val_int(Zone_Affichage.borderwidth.top));
-
-         Bandeau = Zone_Affichage.top;
-
-     } else {
-        Bandeau = Zone_Affichage.top +
-                                Get_Val_int(info_imageToolBar.margin.bottom) +
-                                 Get_Val_int(info_imageToolBar.margin.top) +
-                              Info_the_page.top +
-                              Get_Val_int(Info_the_page.borderwidth.top) +
-                              Get_Val_int(Zone_Affichage.borderwidth.top);
-     }
-
-     if (Info_the_page.top == 0) 
-      if (theme.match(RegExp('lazuli','g')))
-             Bandeau += info_imageToolBar.bottom;
-         else
-             Bandeau = info_imageToolBar.bottom +
-                              Get_Val_int(Info_the_page.borderwidth.top) +
-                              Get_Val_int(Zone_Affichage.borderwidth.top);
-             var Bandeau_t = Info_the_page.top +
-                                      Get_Val_int(Info_the_page.borderwidth.top) +
-                                      Get_Val_int(Zone_Affichage.borderwidth.top) 
-                                      ;
-          
-             return { marge_top: Bandeau_t, img_top: Bandeau };
-
-                }
-  var rapport = -1;
-        /* Récupère les informations sur la description.
-        *
-        */
-        function Info_description(Parent) {
-          
-
-            // jQuery("#theImage br").remove();
-            // jQuery("#theImage br").css("lineHeight", "2px");
-            var inter_ligne = Get_Val_int(jQuery("#" + Parent + " p").css("lineHeight"));
-            var info_description = jQuery("#" + Parent + " ").info();
-            jQuery("#" + Parent).css({ marginLeft: "auto", marginRight: "auto" });
-        
-           var info_container = jQuery("#theImgContainer").info();
-           jQuery("#theImgContainer").css("margin", "auto");
-      
-
-           jQuery("#" + Parent + " p:not(:contains(' ')) ").remove();
-
-           jQuery("#" + Parent).css({ border: "solid 15px yellow" });
-           jQuery("#" + Parent + " p:not(:contains(' ')) ").css("backgroundColor", "red");
-           jQuery("#" + Parent + " table:contains('claude')").css("backgroundColor", "green");
-
-           var Description = jQuery("#" + Parent + " >*");
-            jQuery(Description).each(
-
-             function (i) {
-                
-
-                 t = jQuery(this).text();
-                 t = jQuery.trim(t);
-                 pr = jQuery(this).parent().get(0).id;
-                 n = this.nodeName;
-                 infos = jQuery(this).info();
-
-                 if (t == "") {
-                     if (this.nodeName == "IMG") {
-                         info_description.top = infos.bottom - Get_Val_int(infos.margin.top) + inter_ligne;
-                         info_description.bottom = infos.bottom + Get_Val_int(infos.margin.bottom);
-                     }
-                     else if (this.nodeName == "P" || this.nodeName == "BR") {
-                         jQuery(this).remove();
-                     } else {
-                            jQuery(this).css("border", "solid 3px GREEN");
-                         info_description.top = infos.bottom - Get_Val_int(infos.margin.top);
-                         info_description.bottom = infos.bottom + Get_Val_int(infos.margin.bottom);
-                     }
-                 } else {
-                     if (this.nodeName == "TABLE") {
-                         jQuery(this).css("border", "solid 10px transparent");
-                         info_description.bottom = infos.bottom + Get_Val_int(infos.margin.bottom);
-                     } else {
-                         jQuery(this).css("border", "solid 2px transparent");
-                         info_description.bottom = infos.bottom + Get_Val_int(infos.margin.bottom);
-                     }
-                 }
-
-
-
-
-             });
-          
-
-             info_licencetag = jQuery(".licencetag").info();
-             if (info_licencetag.bottom > info_description.bottom) {
-                 jQuery(".licencetag").css("border", "solid 2px blue");
-                 info_description.bottom = info_licencetag.bottom  ;
-                  
-             }
-
-            if (info_description.top < 1)
-                info_description.top = info_description.bottom;
-
-
-            var Info_the_page = jQuery("#the_page").info();
-            var Bandeau_t = Info_entete(Parent);
-
-            if (info_description.bottom < info_description.top)
-                info_description.bottom = info_description.top = 1;
-
-            info_description.top += Bandeau_t.marge_top ;
-            info_description.bottom += Info_the_page.top;
-
-            info_theImg = jQuery("#" + Parent).info();
-            info_description.bottom += Get_Val_int(info_theImg.borderwidth.bottom);
-            info_description.bottom += Get_Val_int(info_theImg.borderwidth.top);
-
-info_description.height = info_description.bottom - info_description.top ;
-
-            if (check_desc_v != 'checked="checked"') {
-                info_description.height = 0;
-            }
-
-            return info_description;
-
-        }
-        /*
-        * Get_val_int
-        * params: element,valeur maxi
-        * return: valeur entiere
-        */
-        function Get_Val_int(myObj, Maxi_val, Mini_val) {
-            var val = 0;
-            var reg1 = new RegExp("%", "g")
-            Maxi_val = parseInt(Maxi_val || "0");
-          
-            /*
-            - numérique suivie de px ou % ou pt ou em, 
-            - thin, bordure mince, 
-            - medium, bordure moyenne (valeur par défaut), 
-            - thick, bordure épaisse, 
-            - inherit, hérite de son parent (css2).
-            */
-
-            if (!myObj) {
-                return Maxi_val;
-            }
-
-            if (typeof (myObj) == "string") {
-                if (myObj == "none") return Maxi_val;
-                if (myObj == "auto") return Maxi_val;
-                if (Mini_val) {
-                    if (parseInt(myObj) < parseInt(Mini_val)) return Maxi_val;
-                }
-
-                switch (myObj) {
-                    case 'thin':
-                        return 1;
-                        break;
-                    case 'medium':
-                        return 2;
-                        break;
-                    case 'thick':
-                        return 4;
-                        break;
-                    case 'inherit':
-
-
-                        break;
-
-                    default:
-
-
-                        break;
-                }
-
-
-
-
-
-
-                if (myObj.match(reg1)) val = myObj * Maxi_val / 100;
-                val = parseInt(myObj);
-
-            } else
-                val = parseInt(myObj);
-
-
-            if (typeof (val) == "NaN") return Maxi_val;
-            return val;
-        }
-
-        /*
-        *
-        */
-        jQuery("#pamoorama_iner").bind('resize', function () {
-            wait_Timer();
-        })
-        //============================================================//==
-        jQuery("#pamoorama_outter").bind('resize', function () {
-            wait_Timer();
-        })
-
-
-
-        //============================================================
-        jQuery("#iGMapsIcon").bind('resize', function () {
-            jQuery().recentrage_widget();
-        })
-
-
-        jQuery(document).ready(
-       function (jQuery) {
-           /* jQuery */
-           var img_init = { height: img_height, width: img_width };  // taille initiale
-           var img_defaut = { height: scaled_height, width: scaled_width };
-           var img_reelle = { height: img_height, width: img_width };
-           var img_finale = { height: 0, width: 0 };
-           var zone_affichage = { height: 0, width: 0 };
-
-           //============================================================
-
-           var Info_the_page = jQuery("#the_page").info();
-           var Zone_Affichage = jQuery("#theImage").info();
-
-
-
-           var Bandeau_bas = Info_description("theImage");
-           var Bandeau = Info_entete("theImage").img_top;
-
-           var init_taille_thumblink = { height: 0, width: 0 };
-           if (init_taille_thumblink.height == 0)
-               init_taille_thumblink = {
-                   height: jQuery(".thumbLink").height(),
-                   width: jQuery(".thumbLink").width()
-               };
-           //===================================================================	
-
-           var old_h = 0;
-           var rapport = -1;
-
-
-           /*
-           * window .resize
-           */
-           jQuery(window).resize(function (event, ui) {
-               if (typeof (event) == 'undefined') return;
-               if (!cl_visible) return;
-
-
-               //==========================================================================
-               var winwidth = jQuery(window).width();
-               var winheight = jQuery(window).height();
-               if (old_w == winwidth && old_h == winheight) return;
-
-
-               if (old_w != winwidth)
-               { old_w = winwidth; }
-               else
-               { if (old_h != winheight) old_h = winheight; }
-               //===============  Information cadre ======
-               var img_reelle = { height: img_height, width: img_width };
-
-               var Cadre = jQuery("#theImage").get(0);
-               var info_the_page = jQuery("#the_page").info();
-
-               //=============================================================================
-               var info_HeaderBar = jQuery("#imageHeaderBar").info();
-               var info_imageInfoBar = jQuery("#imageInfoBar").info();
-               var info_content = jQuery("#content").info();
-               var info_ToolBar = jQuery("#imageToolBar").info();
-
-               var info_titrePage = jQuery("#titrePage").info();
-               var zone_affichage = jQuery("#theImage").info();
-
-
-               var Type_Img = "";
-               //====== détection du type d'images ======
-               if (jQuery("#charlie").length > 0) {
-                   Type_Img = "charlie";
-               } else if (jQuery("#pamoorama").length) {
-                   Type_Img = "pamoorama";
-               } else if (jQuery("#theImage embed").length > 0) {
-                   Type_Img = "embed";
-               } else if (jQuery("#map").length) {
-                   Type_Img = "map";
-               } else if (jQuery("#Panorama").length) {
-                   Type_Img = "panorama";
-               } else if (jQuery(Cadre).find("img").length > 0) {
-                   Type_Img = "img";
-               } else if (jQuery("img").length > 0) {
-                   Type_Img = "img_autre";
-                   return;
-               } else {
-                   return;
-               }
-
-
-
-               var info_Cadre = jQuery(Cadre).info();
-
-
-               if (info_Cadre.position != "static") {
-                   /* Si LLGBO met le cadre en relative  */
-                   if (theme.match(RegExp("gally", "g"))) {
-                       //--- passage absolute ==> static ===/
-                       jQuery(Cadre).css("position", "static");
-                       info_Cadre = jQuery(Cadre).info();
-
-                   }
-               }
-
-               jQuery("#imageToolBar").css("position", "relative");
-               jQuery("#imageHeaderBar").css("position", "relative");
-               jQuery("#imageToolBar").css("top", 0 + "px");
-               jQuery("#imageHeaderBar").css("top", "0px");
-
-
-               var marge_right = 0;
-               var marge_left = 0;
-               if (info_content.width > 100) {
-                   marge_right = Get_Val_int(info_imageInfoBar.margin.left) + Get_Val_int(info_imageInfoBar.margin.right);
-                   winwidth = info_content.width;
-                   marge_right = info_imageInfoBar.width + marge_right;
-               }
-               else
-                   winwidth = info_ToolBar.width - 2;
-
-               winwidth -= Get_Val_int(info_Cadre.borderwidth.right);
-               winwidth -= Get_Val_int(info_Cadre.borderwidth.left);
-
-               //  var marge_top = info_ToolBar.top + info_ToolBar.height;
-
-               //======================================================================
-               info_theHeader = jQuery("#theHeader").info();
-               //  var marge_top =info_theHeader.bottom + info_HeaderBar.height+ info_ToolBar.height; //145
-               var marge_top = info_HeaderBar.bottom + info_ToolBar.height; //145
-               if (Type_Img == "pamoorama") {
-                   var info_pamoorama = jQuery("#pamoorama").info();
-                   var info_pamoorama_outter = jQuery("#pamoorama_outter").info();
-                   var info_pamoorama_inner = jQuery("#pamoorama_inner").info();
-                   var info_pamoorama_footer = jQuery("#pamoorama_footer").info();
-                   TheImg = jQuery("#pamoorama");
-
-                   /*
-                   pamoorama_outter
-                   pamoorama_inner
-                   pamoorama_footer
-                   pamoorama_caption
-                   pamoorama_thumb
-                   pamoorama_frame
-                   */
-               } else {
-                   //==== récupère Img la plus grande  =====
-                   if (jQuery("#theImg")) IMG = "#theImg";
-                   else IMG = Cadre;
-
-                   TheImg2 = Get_Img_Maxi(IMG + " img");
-                   //=================================================================
-                   if (TheImg2 == null) {
-                       if (jQuery(Cadre).find("img").length > 0) {
-                           IMG = Cadre;
-                           TheImg = Get_Img_Maxi("#theImage img");
-                       }
-                   } else {
-                       TheImg = TheImg2  //luciano ?
-
-                   }
-               }
-               //=================================================================
-
-
-               switch (Type_Img) {
-                   case "map":
-                       var info_image = jQuery("#map").info();
-
-                       var info_map = jQuery("#mapPicture").info();
-
-                       marge_left = info_map.width;
-                       jQuery("#map").css("left", marge_left);
-
-                       var TheImg = jQuery("#map").get(0);
-                       info_image = jQuery("#map").info();
-
-
-                       pos_page = jQuery("#the_page").info();
-                       ;
-
-                       break
-
-
-                   case "panorama":
-
-                       var w00 = 0;
-                       jQuery("#Panorama img").each(function (i) {
-                           w0 = this.width;
-                           if (w0 > w00) {
-                               TheImg = this;
-                               n = TheImg.nameProp;
-                               w00 = w0;
-                           }
-                       });
-
-                       pos_image = jQuery(TheImg).info();
-                       pos_page = jQuery("#the_page").info();
-
-                       break
-                   case "img":
-
-                       if (!TheImg) return;
-                       pos_image = jQuery(TheImg).info();
-                       pos_page = jQuery("#the_page").info();
-
-
-                       break
-                   case "img_autre":
-                       if (!TheImg) return;
-                       pos_image = jQuery(TheImg).position();
-                       pos_page = jQuery("#the_page").position();
-
-
-                       break
-                   case "embed":
-                       //
-
-                       TheImg = jQuery(Cadre).find("embed");
-
-                       pos_image = jQuery(Cadre).position();
-                       pos_page = jQuery("#the_page").position();
-                       if (this.rapport < 0) {
-                           img_height = parseInt(jQuery(TheImg).outerHeight());
-                           img_width = parseInt(jQuery(TheImg).outerWidth());
-
-                           img_reelle.height = img_height;
-                           img_reelle.width = img_width;
-
-                       }
-
-                       break
-                   case "charlie":
-
-                       TheImg = jQuery('#charlie object').get(0);
-                       pos_image = jQuery(Cadre).position();
-                       pos_page = jQuery("#the_page").position();
-                       if (this.rapport < 0) {
-                           img_height = parseInt(TheImg.height);
-                           img_width = parseInt(TheImg.width);
-
-                           img_reelle.height = parseInt(TheImg.height);
-                           img_reelle.width = parseInt(TheImg.width);
-                       }
-
-                       break
-                   case "pamoorama":
-                       //=========================================================
-                       var Images = jQuery("#pamoorama img");
-                       var Image = jQuery("#pamoorama").find("img");
-
-                       pos_image = jQuery("#pamoorama").info();
-                       pos_page = jQuery("#the_page").info();
-                       break
-
-
-               }
-
-               //=============== Vérification taille minimale  autorizée ======================
-               var miniWidth = Get_Val_int(jQuery(TheImg).css("min-width"), this.mini_width);
-               var miniHeight = Get_Val_int(jQuery(TheImg).css("min-height"), this.mini_height);
-                 mini_width = parseInt(miniWidth);
-                 mini_height = parseInt(miniHeight);
-
-               var maxWidth = Get_Val_int(jQuery(TheImg).css("max-width"), winwidth,"0");
-               var maxHeight = Get_Val_int(jQuery(TheImg).css("max-height"), winheight, "0");
-
-
-
-               img_reelle.width = parseInt(img_reelle.width);
-
-
-               if (img_reelle.width < mini_width) return;
-
-               img_reelle.height = parseInt(img_reelle.height);
-               if (img_reelle.height < parseInt(mini_height)) return;
-               //==================================================================================   
-               if (this.rapport < 0) {
-                   var img_init = {};
-                   img_init.height = parseInt(img_height);
-                   img_init.width = parseInt(img_width);
-
-                   this.rapport = img_width / img_height;
-
-                   if (Type_Img != "map")
-                       this.rapport = (img_init.width / img_init.height);
-                   else
-                       this.rapport = 0;
-
-               }
-
-
-               //=============== Zone d'affichage ============================
-
-               borderW = Get_Val_int(zone_affichage.borderwidth.left, 2);
-               borderW += Get_Val_int(zone_affichage.borderwidth.right, 2);
-
-
-               zone_affichage.width = winwidth - borderW;
-               zone_affichage.height = winheight - marge_top;
-
-               var widthmin = zone_affichage.width; 
-
-
-               //==================================================================================
-               jQuery("#theImage #theImg IMG").css("marginTop", "0px")
-
-               var h =0;
-               if (theme.match(RegExp("sobre", "g"))) {
-                   h += 0; //??
-               } else if (theme.match(RegExp("Pure", "g"))) {
-                   h += 0; //??
-               } else if (theme.match(RegExp("luciano", "g"))) {
-                   h += 0; //??
-               } else if (theme.match(RegExp("simple", "g"))) {
-                   h += 0; //??
-               } else if (theme.match(RegExp("gally", "g"))) {
-                   h += 0; //??
-
-               }
-               //================ Licence  ========================
-               var Licence = jQuery(".licencetag");
-               if (Licence.length > 0) {
-                   jQuery(".licencetag").css("padding", "0px");
-
-               }
-               //====================================================
-               info_img = jQuery(TheImg).info();
-
-
-               //=========================================================================
-               img_top = Bandeau;
-               //============ Padding image ? ===============
-
-               img_padding_top = Get_Val_int(info_img.padding.top);
-               img_padding_top += Get_Val_int(info_img.padding.bottom);
-               img_padding_top += Get_Val_int(info_img.borderwidth.top);
-               img_padding_top += Get_Val_int(info_img.borderwidth.bottom);
-
-               margin_top = Get_Val_int(info_Cadre.margin.top);
-               padding_top = Get_Val_int(info_Cadre.padding.top);
-               padding_top += Get_Val_int(info_Cadre.padding.bottom);
-
-               Marge_Basse = parseInt(marge_basse || 0); // hors bandeau
-               //==========================================================================
-               h = 0;
-               zone_affichage.height = winheight - Bandeau - Marge_Basse - h - margin_top - padding_top;
-               var Image_height = zone_affichage.height - Bandeau_bas.height - img_padding_top;
-               var Delta = zone_affichage.height - Image_height;
-
-               //=============================================================
-               var height_user = eval(user_status + "_height");
-
-
-               var reg1 = new RegExp("%", "g");
-               if (height_user.match(reg1))
-                   Image_height = Image_height * parseInt(height_user) / 100;
-               else
-                   Image_height = parseInt(height_user);
-
-               //============================================================
-               echelle_max = parseFloat(echelle_max, '3');
-               var echelle = parseFloat(Image_height / img_reelle.height, 3);
-
-               if (echelle > echelle_max) { echelle = echelle_max; }
-               Image_height = parseInt(img_reelle.height * echelle);
-
-               var Image_width;
-               if (this.rapport > 0)
-                   Image_width = parseInt(Image_height * this.rapport);
-
-               else if (Type_Img == "map") {
-                   Image_width = zone_affichage.width - marge_left - marge_right;
-
-                   if (theme.match(RegExp("gally", "g"))) {
-                       //  Image_height -= "30";
-                   }
-
-               } else {
-                   Image_width = zone_affichage.width;
-               }
-
-               //===============================================================
-               align_auto = "center";
-               if (jQuery("#theImg").css("textAlign"))
-                   align_auto = jQuery("#theImg").css("textAlign");
-
-              
-
-               if (check_auto_w == 'checked="checked"') {
-                   // if (Type_Img != "pamoorama" && Type_Img != "panorama" ) {
-                   //==== largeur à atteindre ===
-                   var width_user = eval(user_status + "_width");
-                   // Largeur maximale en fonction du statut
-                   if (width_user.match(reg1))
-                   // pourcentage
-                       widthmin = maxWidth * parseInt(width_user) / 100;
-                   else
-                       widthmin = parseInt(width_user);
-
-                   if (Image_width > widthmin) {
-                       //   Image_width largeur à atteindre 
-                       //  Calcul du rapport d'agrandissement 
-                       var echelle_w = parseFloat(widthmin / img_reelle.width, 3);
-                       if (echelle_w > echelle_max) { echelle_w = echelle_max; }
-                       Image_width = parseInt(img_reelle.width * echelle_w);
-                       if (this.rapport > 0)
-                           Image_height = parseInt(Image_width / this.rapport);
-                   }
-
-
-
-               }
-
-
-               // }
-
-               //   zone_affichage.height = Image_height + Delta + info_pamoorama_footer.height;
-
-               zoom = echelle;
-
-               //  zone_affichage.height *= zoom;
-               //  zone_affichage.width *= zoom;
-               //=============LLGBO2 ===========================
-               marges = 0;
-               t1 = { top: 0 };
-               if (jQuery("#gbo") && jQuery("#gbo div:first").length > 0) {
-                   llgboframe = jQuery("#gbo div:first");
-                   marges = jQuery(llgboframe).outerWidth() - jQuery("#gbo div:last").outerWidth();
-
-                   m1 = jQuery(llgboframe).outerHeight();
-                   t1 = jQuery(llgboframe).position();
-
-
-                   if (TheImg.src) {
-                       marge_top = t1.top - img_top;
-                       Image_height -= marge_top;
-                       Image_width = Image_height * this.rapport;
-                       if ((winwidth) < Image_width) {
-                           _width = maxWidth;
-                       } else {
-                           _width = Image_width;
-                       }
-
-
-                       jQuery("#gbo").outerWidth(_width);
-                       jQuery("#gbo").outerHeight(Image_height);
-                       jQuery("#gbo").css("width", (_width) + "px");
-                       jQuery("#gbo").css("height", (Image_height) + "px");
-
-                       Image_height -= marges;
-                       Image_width -= marges;
-
-                   } else {
-
-                       jQuery("#gbo").width(zone_affichage.width - marges);
-                       jQuery("#gbo").height(Image_height + marges)
-                       jQuery("#gbo").css("width", zone_affichage.width - marges + "px");
-                       jQuery("#gbo").css("height", Image_height - marges + "px")
-
-                   }
-
-
-
-                   if (jQuery("area").length > 0) {
-                       jQuery("area").each(function (i) {
-
-                           obj1 = this.rel;
-                           obj2 = this.coords;
-                           if (obj1 == "up")
-                               this.coords = (Image_width / 3) + "," + 0 + "," + (Image_width * 2 / 3) + "," + Image_height;
-                           else if (obj1 == "prev")
-                               this.coords = 0 + "," + 0 + "," + (Image_width / 3) + "," + Image_height;
-                           else if (obj1 == "next")
-                               this.coords = (Image_width * 2) / 3 + "," + 0 + "," + (Image_width * 3 / 3) + "," + Image_height;
-
-                       });
-
-
-
-
-
-
-                   }
-
-
-               }
-
-               //=========================================================
-               //     jQuery(Cadre).css("position", "relative");
-
-               jQuery(Cadre).css("top", "0px");
-               jQuery("#standard").css("top", 0 + "px");
-               jQuery("#comments").css("top", 0 + "px");
-
-
-               //jQuery("#copyright").css("top", 0 + "px");
-
-
-               jQuery("#linkNext").height(Image_height);
-               jQuery("#linkPrev").height(Image_height);
-               //================ Zone affichage =========================
-               //  Image_height, Image_width = valeur a atteindre.
-               if (theme.match(RegExp("luciano", "g"))) {
-                   zone_affichage.height -= Bandeau_bas;
-               }
-
-               // jQuery(Cadre).height(zone_affichage.height);
-               //  jQuery(Cadre).height(mb-zone_affichage.top);
-               jQuery(Cadre).width(zone_affichage.width);
-               //==============================================================
-
-               img_finale.height = Image_height;
-               img_finale.width = Image_width;
-               //==============================================================
-
-               if (typeof (gmaps) != "undefined") {
-                   Gmap_ = gmaps.maps[0];
-                   if (Gmap_.sizeMode == 'A') {
-                       jQuery("#iGMapsIcon").css({ width: old_w * 0.8 + "px", height: old_h * 0.8 + "px" });
-
-                   }
-               }
-               //==============================================================
-               if (Type_Img == "charlie") {
-                   t1 = jQuery("#charlie").position();
-                   /**/
-                   pdf = 2 * parseInt(jQuery(".none_2").css("paddingRight"));
-                   jQuery("#charlie").css({
-                       width: Image_width + pdf,
-                       height: Image_height,
-                       margin: "auto"
-                   });
-
-
-                   jQuery("#player").css("width", Image_width + 100 + "px");
-                   jQuery("#player").css("height", Image_height);
-
-                   jQuery("#embedplayer").css("width", Image_width);
-                   jQuery("#embedplayer").css("height", Image_height);
-
-
-                   jQuery("object").width(Image_width);
-                   jQuery("object").height(Image_height);
-               } else if (Type_Img == "panorama") {
-
-                   //      jQuery(TheImg).panorama2(img_finale.height, img_finale.width);
-                   jQuery(TheImg).height(img_finale.height);
-                   jQuery(TheImg).width(img_finale.width);
-                   jQuery("#Panorama div").height(Image_height);
-                   //  class=simple_panorama
-
-                   jQuery(".panorama-viewport").css("left", "2px");
-                   jQuery(".panorama-viewport").css("width", "auto");
-                   //   setTimeout("cl_Timer()", 500);
-
-               } else if (Type_Img == "pamoorama") {
-                   return;
-                   marge_left += 0;
-                   new_width = zone_affichage.width - marge_right - marge_left;
-                   jQuery("#pamoorama").css({ margin: 0 + "px",
-                       left: marge_left + "px",
-                       height: Image_height + info_pamoorama_footer.height + "px",
-                       width: new_width + "px"
-                   });
-
-                   jQuery("#pamoorama").width(new_width);
-
-
-                   jQuery("#pamoorama_outter").css({
-                       left: marge_left + "px",
-                       height: Image_height + "px",
-                       width: (new_width) + "px"
-                   });
-                   jQuery("#pamoorama_outter").width(new_width);
-
-
-                   jQuery("#pamoorama_footer").width((zone_affichage.width - marge_right - marge_left));
-                   jQuery("#pamoorama_footer").css('width', (zone_affichage.width - marge_right - marge_left) + "px");
-                   zoom = Image_height / img_height;
-                   info_pamoorama_outter = jQuery("#pamoorama_outter").info();
-
-                   h_frame = jQuery("#pamoorama").width();
-                   if (old_w == jQuery(window).width() && old_h == jQuery(window).height()) {
-
-                       /*   if (info_pamoorama_outter.width == 0)
-                       setTimeout("wait_Timer()", 100);
-                       */
-                       //     jQuery(TheImg).css("zoom", zoom);
-                   }
-
-
-               } else if (TheImg.src) {
-                   //--- background ?? ---
-                   jQuery(TheImg).height(img_finale.height);
-                   jQuery(TheImg).width(img_finale.width);
-                   jQuery(TheImg).css("height", img_finale.height + "px");
-                   jQuery(TheImg).css("width", img_finale.width + "px");
-
-               } else {
-                   //===map ? ===
-                   jQuery(TheImg).height(img_finale.height);
-                   jQuery(TheImg).width(img_finale.width);
-                   jQuery(TheImg).css("height", img_finale.height + "px");
-                   jQuery(TheImg).css("width", img_finale.width + "px");
-               }
-
-
-               try {
-                   if (theme.match(RegExp("gally", "g"))) {
-
-                       jQuery("#navThumbNext").height(init_taille_thumblink.height * 2);
-                       jQuery("#navThumbPrev").height(init_taille_thumblink.height * 2);
-
-                       jQuery(".thumbLink").css("height", init_taille_thumblink.height + "px");
-                       jQuery(".thumbLink").css("width", init_taille_thumblink.width + "px");
-
-                       jQuery(Cadre).height(zone_affichage.height);
-
-                   } else {
-
-                       jQuery("#imageToolBar").css("position", "static");
-                   }
-               } catch (e) {
-
-               }
-               //  
-               if (!pos) pos = jQuery("#copyright").position();
-               if (pos != jQuery("#copyright").position())
-                   pos = jQuery("#copyright").position();
-               if (pos.top > 100) jQuery("#the_page").height(pos.top);
-
-               if (old_w == jQuery(window).width() && old_h == jQuery(window).height()) return;
-               jQuery(window).resize();
-               return;
-
-               /*
-               * recherche la plus grande image (hauteur ou largeur)
-               */
-               function Get_Img_Maxi(myobj) {
-                   var w00 = 0;
-                   var TheImg = null;
-                   jQuery(myobj).each(function (i) {
-                       w0 = img_reelle.width;
-                       h0 = img_reelle.height;
-                       if (h0 > w0) w0 = h0;
-                       if (w0 > w00) {
-                           if (!this.src.match(RegExp(".png", "g")))
-                               if (!this.src.match(RegExp(thumbnail, "g"))) {
-                                   TheImg = this;
-                                   w00 = w0;
-                               }
-
-                       }
-                   });
-                   return TheImg;
-               }
-           });
-           var pos;
-           //===================================================================	  
-           jQuery(window).resize();
-
-
-       } // function
-);                                                                                                                                                                                                                                                                                                           // ready
-    /*
-*
-*/
-    jQuery.extend(jQuery.expr[':'], {
-        // Nom du sélecteur personnalisé
-        Description: function (a) {
-            n = jQuery(a).info();
-            return a;
-
-        }
-    });
-
-    /* Extension
-    * absolutize:
-    * relativize:
-    */
-//=========================================================
-    jQuery.fn.extend({
-        recentrage_widget: function () {
-            jQuery('html,body').stop().scrollTop(0);
-            jQuery('html,body').stop().scrollLeft(0);
-            jQuery(".ui-widget-overlay").css("opacity", "0.75");
-
-            l1 = (jQuery(window).width() - (jQuery(".gmapsPopup").width()))/2;
-            h1 = (jQuery(window).height() - (jQuery(".gmapsPopup").height()))/2;
- 
-            jQuery(".gmapsPopup").css("left", l1 + "px");
-            jQuery(".gmapsPopup").css("top", h1 + "px");
-
-        },
-        //-------------------------------------------------------
-        absolutize: function (element) {
-            element = jQuery(element).get(0);
-            if (element.getStyle('position') == 'absolute') return;
-            // Position.prepare(); // To be done manually by Scripty when it needs it.
-
-            var offsets = element.positionedOffset();
-            var top = offsets[1];
-            var left = offsets[0];
-            var width = element.clientWidth;
-            var height = element.clientHeight;
-
-            element._originalLeft = left - parseFloat(element.style.left || 0);
-            element._originalTop = top - parseFloat(element.style.top || 0);
-            element._originalWidth = element.style.width;
-            element._originalHeight = element.style.height;
-
-            element.style.position = 'absolute';
-            element.style.top = top + 'px';
-            element.style.left = left + 'px';
-            element.style.width = width + 'px';
-            element.style.height = height + 'px';
-            return element;
-        },
-
-        relativize: function (element) {
-            element = jQuery(element).get(0); ;
-            if (jQuery(element).css('position') == 'relative') return;
-            // Position.prepare(); // To be done manually by Scripty when it needs it.
-            element._originalLeft = parseFloat(element.style.left || 0);
-            element._originalTop = parseFloat(element.style.top || 0);
-            element._originalWidth = element.style.width;
-            element._originalHeight = element.style.height;
-
-            element.style.position = 'relative';
-            var top = parseFloat(element.style.top || 0) - (element._originalTop || 0);
-            var left = parseFloat(element.style.left || 0) - (element._originalLeft || 0);
-
-            element.style.top = top + 'px';
-            element.style.left = left + 'px';
-            //  element.style.height = element._originalHeight;
-            // element.style.width  = element._originalWidth;
-            return element;
-        }
-        //=========================================================
-    });          // fin extend
Index: tensions/cl_conflit/js/Affiche_script - Copie.js
===================================================================
--- /extensions/cl_conflit/js/Affiche_script - Copie.js	(revision 7880)
+++ 	(revision )
@@ -1,1064 +1,0 @@
-/*
-var thumbnail= '{$thumbnail}';
-var theme = '{$theme}';
-var version = '{$version}';
-var scaled_width = '{$SCALED_WIDTH}'; // valeur par defaut
-var scaled_height = '{$SCALED_HEIGHT}'; // valeur par defaut
-var img_width = '{$IMG_WIDTH }'; 
-var img_height = '{ $IMG_HEIGHT }';$picture['current']['height']
-
-var marge_basse = '{ $MARGE_BASSE }';
-var echelle_max = '{ $ECHELLE_MAX }';
-var mini_width = '{ $MINI_WIDTH   }';
-var mini_height = '{ $MINI_HEIGHT   }';
-
-var webmaster_width = '{$webmaster_width   }';
-var webmaster_height = '{ $webmaster_height   }';
-var admin_width = '{ $admin_width   }';
-var admin_height = '{ $admin_height   }';
-var generic_width = '{ $generic_width   }';
-var generic_height = '{ $generic_height   }';
-var guest_width = '{ $guest_width   }';
-var guest_height = '{$guest_height}';
-var normal_width = '{$normal_width}';
-var normal_height = '{$normal_height}';
-var user_status = '{$user_status}';
-var user_status = '{$user_status}';
-var check_auto_w = '{$check_auto_w}';
-var check_desc_v = '{$check_desc_v}';
-*/
-
-
-var img_top = "0";
-var cl_visible = true;
-
-  function Toggle_bp()
- { 
- cl_visible = !cl_visible ;
-   if (cl_visible) src=src1 ;
-  else src=src2 ;
-     if (cl_visible)  src_info=src3 ;
-  else src_info=src4 ;
-  
-        jQuery('#bp_cla').attr('alt',src_info);
-        jQuery('#bp_cla').attr('title', src_info);
-
-        jQuery('#bp_img_cla').get(0).src=src ;
-        jQuery('#bp_img_cla').attr('alt',src_info);
-        jQuery('#bp_img_cla').attr('title',src_info);
-        jQuery('#bp_cla').attr('Stitle', src_info);
-        jQuery('#bp_cla').attr('Stip'," ");
-        old_w = 0;
-        jQuery(window).resize();
-    }
-    //=========================================================
-    var old_w = 0;
-     function wait_Timer() {
-         old_w = 0
-         jQuery(window).resize();
-           info_pamoorama_outter = jQuery("#pamoorama_outter").info();
-           if (info_pamoorama_outter.width == 0)
-                setTimeout("wait_Timer()", 100);
-
-       }
-
-      
-
- function cl_Timer() {
- //   if (!jQuery.browser.msie) { jQuery(function () { alert(jQuery.browser.version); }); }
-     if (jQuery.browser.msie && parseInt(jQuery.browser.version) < 8)
-         alert(jQuery.browser.version);
-     panoramaContainer = jQuery(".panorama-container");
-     n = document.scripts[6];//12--14affiche_script ;
-     t = n.src;
-
-     currentPosition = 0 - parseInt(jQuery(panoramaContainer).css('margin-left'));
-     if ( currentPosition == NaN) return;
-     
-
-     if (currentPosition > 1000) 
-     jQuery(panoramaContainer).css('margin-left',"0px")
-     setTimeout("cl_Timer()", 500);
- }
- function onPropertyChange(e) {
-     var el = e.srcElement;
-     var new_class=el.className ;
-     ID = el.id;
-     Prop = e.propertyName.split(".");
-     Property = Prop[1];
-     if (Property == "display") {
-         Valeur = parseInt(el.currentStyle[Property]);
-         if (Valeur=="block"){
-
- 
-         }
-     }
-     return;
- }     
-
-/* ready
-*
-*
-*/
-     //============================================================
-        /*
-        *
-        */
- function Info_entete(Parent) {
-
-     var Info_the_page = jQuery("#the_page").info();
-     var Zone_Affichage = jQuery("#theImage").info();
-     var info_theHeader = jQuery("#theHeader").info();
-     // image top gallycuise :165
-     var info_imageToolBar = jQuery("#imageToolBar").info();
-
-     if (Zone_Affichage.position =="absolute") {
-         var Bandeau = Zone_Affichage.top -
-                              (Info_the_page.top +
-                              Get_Val_int(Info_the_page.borderwidth.top) +
-                              Get_Val_int(Zone_Affichage.borderwidth.top));
-
-         Bandeau = Zone_Affichage.top;
-     } else {
-         var Bandeau = Zone_Affichage.top +
-                                Get_Val_int(info_imageToolBar.margin.bottom) +
-                                 Get_Val_int(info_imageToolBar.margin.top) +
-                              Info_the_page.top +
-                              Get_Val_int(Info_the_page.borderwidth.top) +
-                              Get_Val_int(Zone_Affichage.borderwidth.top);
-     }
-
-     if (Info_the_page.top == 0) 
-      if (theme.match(RegExp('lazuli','g')))
-             Bandeau += info_imageToolBar.bottom;
-         else
-             Bandeau = info_imageToolBar.bottom +
-                              Get_Val_int(Info_the_page.borderwidth.top) +
-                              Get_Val_int(Zone_Affichage.borderwidth.top);
-             var Bandeau_t = Info_the_page.top +
-                                      Get_Val_int(Info_the_page.borderwidth.top) +
-                                      Get_Val_int(Zone_Affichage.borderwidth.top) 
-                                      ;
-          
-             return { marge_top: Bandeau_t, img_top: Bandeau };
-
-                }
-
-        /* Récupère les informations sur la description.
-        *
-        */
-        function Info_description(Parent) {
-
-            // jQuery("#theImage br").remove();
-            // jQuery("#theImage br").css("lineHeight", "2px");
-            var inter_ligne = Get_Val_int(jQuery("#" + Parent + " p").css("lineHeight"));
-            var info_description = jQuery("#" + Parent + " ").info();
-            jQuery("#" + Parent).css({ marginLeft: "auto", marginRight: "auto" });
-        
-           var info_container = jQuery("#theImgContainer").info();
-           jQuery("#theImgContainer").css("margin", "auto");
-      
-
-           jQuery("#" + Parent + " p:not(:contains(' ')) ").remove();
-
-           jQuery("#" + Parent).css({ border: "solid 15px yellow" });
-           jQuery("#" + Parent + " p:not(:contains(' ')) ").css("backgroundColor", "red");
-           jQuery("#" + Parent + " table:contains('claude')").css("backgroundColor", "green");
-
-           var Description = jQuery("#" + Parent + " >*");
-            jQuery(Description).each(
-
-             function (i) {
-                
-
-                 t = jQuery(this).text();
-                 t = jQuery.trim(t);
-                 pr = jQuery(this).parent().get(0).id;
-                 n = this.nodeName;
-                 infos = jQuery(this).info();
-
-                 if (t == "") {
-                     if (this.nodeName == "IMG") {
-                         info_description.top = infos.bottom - Get_Val_int(infos.margin.top) + inter_ligne;
-                         info_description.bottom = infos.bottom + Get_Val_int(infos.margin.bottom);
-                     }
-                     else if (this.nodeName == "P" || this.nodeName == "BR") {
-                         jQuery(this).remove();
-                     } else {
-                            jQuery(this).css("border", "solid 3px GREEN");
-                         info_description.top = infos.bottom - Get_Val_int(infos.margin.top);
-                         info_description.bottom = infos.bottom + Get_Val_int(infos.margin.bottom);
-                     }
-                 } else {
-                     if (this.nodeName == "TABLE") {
-                         jQuery(this).css("border", "solid 10px transparent");
-                         info_description.bottom = infos.bottom + Get_Val_int(infos.margin.bottom);
-                     } else {
-                         jQuery(this).css("border", "solid 2px transparent");
-                         info_description.bottom = infos.bottom + Get_Val_int(infos.margin.bottom);
-                     }
-                 }
-
-
-
-
-             });
-          
-
-             info_licencetag = jQuery(".licencetag").info();
-             if (info_licencetag.bottom > info_description.bottom) {
-                 jQuery(".licencetag").css("border", "solid 2px blue");
-                 info_description.bottom = info_licencetag.bottom  ;
-                  
-             }
-
-            if (info_description.top < 1)
-                info_description.top = info_description.bottom;
-
-
-            var Info_the_page = jQuery("#the_page").info();
-            var Bandeau_t = Info_entete(Parent);
-
-            if (info_description.bottom < info_description.top)
-                info_description.bottom = info_description.top = 1;
-
-            info_description.top += Bandeau_t.marge_top ;
-            info_description.bottom += Info_the_page.top;
-
-            info_theImg = jQuery("#" + Parent).info();
-            info_description.bottom += Get_Val_int(info_theImg.borderwidth.bottom);
-            info_description.bottom += Get_Val_int(info_theImg.borderwidth.top);
-
-info_description.height = info_description.bottom - info_description.top ;
-
-            if (check_desc_v != 'checked="checked"') {
-                info_description.height = 0;
-            }
-
-            return info_description;
-
-        }
-        /*
-        * Get_val_int
-        * params: element,valeur maxi
-        * return: valeur entiere
-        */
-        function Get_Val_int(myObj, Maxi_val, Obj) {
-            var val = 0;
-            var reg1 = new RegExp("%", "g")
-            Maxi_val = parseInt(Maxi_val || "0");
-
-            /*
-            - numérique suivie de px ou % ou pt ou em, 
-            - thin, bordure mince, 
-            - medium, bordure moyenne (valeur par défaut), 
-            - thick, bordure épaisse, 
-            - inherit, hérite de son parent (css2).
-            */
-
-            if (!myObj) {
-                return Maxi_val;
-            }
-            if (typeof (myObj) == "string") {
-                switch (myObj) {
-                    case 'thin':
-                        return 1;
-                        break;
-                    case 'medium':
-                        return 2;
-                        break;
-                    case 'thick':
-                        return 4;
-                        break;
-                    case 'inherit':
-
-
-                        break;
-
-                    default:
-
-
-                        break;
-                }
-
-
-
-                if (myObj == "none") return Maxi_val;
-                if (myObj == "auto") return Maxi_val;
-
-                if (myObj.match(reg1)) val = myObj * Maxi_val / 100;
-                val = parseInt(myObj);
-
-            } else
-                val = parseInt(myObj);
-
-
-            if (typeof (val) == "NaN") return Maxi_val;
-            return val;
-        }
-
-        /*
-        *
-        */
-        jQuery("#pamoorama_iner").bind('resize', function () {
-            wait_Timer();
-        })
-        //============================================================//==
-        jQuery("#pamoorama_outter").bind('resize', function () {
-            wait_Timer();
-        })
-
-
-
-        //============================================================
-        jQuery("#iGMapsIcon").bind('resize', function () {
-            jQuery().recentrage_widget();
-        })
-
-
-        jQuery(document).ready(
-       function (jQuery) {
-           /* jQuery */
-           var img_init = { height: img_height, width: img_width };  // taille initiale
-           var img_defaut = { height: scaled_height, width: scaled_width };
-           var img_reelle = { height: img_height, width: img_width };
-           var img_finale = { height: 0, width: 0 };
-           var zone_affichage = { height: 0, width: 0 };
-
-           //============================================================
-
-           var Info_the_page = jQuery("#the_page").info();
-           var Zone_Affichage = jQuery("#theImage").info();
-
-          
-
-           var Bandeau_bas = Info_description("theImage");
-           var Bandeau = Info_entete("theImage").img_top;
-
-           var init_taille_thumblink = { height: 0, width: 0 };
-           if (init_taille_thumblink.height == 0)
-               init_taille_thumblink = {
-                   height: jQuery(".thumbLink").height(),
-                   width: jQuery(".thumbLink").width()
-               };
-           //===================================================================	
-
-           var old_h = 0;
-           var rapport = -1;
-
-
-           /*
-           * window .resize
-           */
-           jQuery(window).resize(function (event, ui) {
-               if (typeof (event) == 'undefined') return;
-               if (!cl_visible) return;
-
-               //==========================================================================
-               var winwidth = jQuery(window).width();
-               var winheight = jQuery(window).height();
-               if (old_w == winwidth && old_h == winheight) return;
- 
-               /*
-               * recherche la plus grande image (hauteur ou largeur)
-               */
-
-
-               function Get_Img_Maxi(myobj) {
-                   var w00 = 0;
-                   var TheImg = null;
-                   jQuery(myobj).each(function (i) {
-                       w0 = img_reelle.width;
-                       h0 = img_reelle.height;
-                       if (h0 > w0) w0 = h0;
-                       if (w0 > w00) {
-                           if (!this.src.match(RegExp(".png", "g")))
-                               if (!this.src.match(RegExp(thumbnail, "g"))) {
-                                   TheImg = this;
-                                   w00 = w0;
-                               }
-
-                       }
-                   });
-                   return TheImg;
-               }
-
-               if (old_w != winwidth)
-               { old_w = winwidth; }
-               else
-               { if (old_h != winheight) old_h = winheight; }
-               //===========================================================================
-
-
-               Cadre = jQuery("#theImage").get(0);
-
-               //===============  Information cadre ======
-               var info_the_page = jQuery("#the_page").info();
-
-               //=============================================================================
-               var info_HeaderBar = jQuery("#imageHeaderBar").info();
-               var info_imageInfoBar = jQuery("#imageInfoBar").info();
-               var info_content = jQuery("#content").info();
-               var info_ToolBar = jQuery("#imageToolBar").info();
-
-               var info_titrePage = jQuery("#titrePage").info();
-
-               var info_the_page = jQuery("#the_page").info();
-               var zone_affichage = jQuery("#theImage").info();
-
-
-               var Type_Img = "";
-               //====== détection du type d'images ======
-               if (jQuery("#charlie").length > 0) {
-                   Type_Img = "charlie";
-               } else if (jQuery("#pamoorama").length) {
-                   Type_Img = "pamoorama";
-               } else if (jQuery("#theImage embed").length > 0) {
-                   Type_Img = "embed";
-               } else if (jQuery("#map").length) {
-                   Type_Img = "map";
-               } else if (jQuery("#Panorama").length) {
-                   Type_Img = "panorama";
-               } else if (jQuery(Cadre).find("img").length > 0) {
-                   Type_Img = "img";
-               } else if (jQuery("img").length > 0) {
-                   Type_Img = "img_autre";
-                   return;
-               } else {
-                   return;
-               }
-
-
-
-               var info_Cadre = jQuery(Cadre).info();
-
-
-               if (info_Cadre.position != "static") {
-                   /* Si LLGBO met le cadre en relative  */
-                   if (theme.match(RegExp("gally", "g"))) {
-                       //--- passage absolute ==> static ===/
-                       jQuery(Cadre).css("position", "static");
-                       info_Cadre = jQuery(Cadre).info();
-
-                   }
-               }
-
-               jQuery("#imageToolBar").css("position", "relative");
-               jQuery("#imageHeaderBar").css("position", "relative");
-               jQuery("#imageToolBar").css("top", 0 + "px");
-               jQuery("#imageHeaderBar").css("top", "0px");
-
-
-               var marge_right = 0;
-               var marge_left =  0;
-               if (info_content.width > 100) {
-                   marge_right = Get_Val_int(info_imageInfoBar.margin.left) + Get_Val_int(info_imageInfoBar.margin.right);
-                   winwidth = info_content.width;
-                   marge_right = info_imageInfoBar.width + marge_right;
-               }
-               else
-                   winwidth = info_ToolBar.width - 2;
-
-               winwidth -= Get_Val_int(info_Cadre.borderwidth.right);
-               winwidth -= Get_Val_int(info_Cadre.borderwidth.left);
-
-               //  var marge_top = info_ToolBar.top + info_ToolBar.height;
-
-               //======================================================================
-               info_theHeader = jQuery("#theHeader").info();
-               //  var marge_top =info_theHeader.bottom + info_HeaderBar.height+ info_ToolBar.height; //145
-               var marge_top = info_HeaderBar.bottom + info_ToolBar.height; //145
-               if (Type_Img == "pamoorama") {
-                   var info_pamoorama = jQuery("#pamoorama").info();
-                   var info_pamoorama_outter = jQuery("#pamoorama_outter").info();
-                   var info_pamoorama_inner = jQuery("#pamoorama_inner").info();
-                   var info_pamoorama_footer = jQuery("#pamoorama_footer").info();
-                   TheImg = jQuery("#pamoorama");
-
-                   /*
-                   pamoorama_outter
-                   pamoorama_inner
-                   pamoorama_footer
-                   pamoorama_caption
-                   pamoorama_thumb
-                   pamoorama_frame
-                   */
-               } else {
-                   //==== récupère Img la plus grande  =====
-                   if (jQuery("#theImg")) IMG = "#theImg";
-                   else IMG = Cadre;
-
-                   TheImg2 = Get_Img_Maxi(IMG + " img");
-                   //=================================================================
-                   if (TheImg2 == null) {
-                       if (jQuery(Cadre).find("img").length > 0) {
-                           IMG = Cadre;
-                           TheImg = Get_Img_Maxi("#theImage img");
-                       }
-                   } else {
-                       TheImg = TheImg2  //luciano ?
-
-                   }
-               }
-               //=================================================================
-
-
-               switch (Type_Img) {
-                   case "map":
-                       var info_image = jQuery("#map").info();
-
-                       var info_map = jQuery("#mapPicture").info();
-
-                       marge_left = info_map.width;
-                       jQuery("#map").css("left", marge_left);
-
-                       var TheImg = jQuery("#map").get(0);
-                       info_image = jQuery("#map").info();
-
-
-                       pos_page = jQuery("#the_page").info();
-                       ;
-
-                       break
-
-
-                   case "panorama":
-
-                       var w00 = 0;
-                       jQuery("#Panorama img").each(function (i) {
-                           w0 = this.width;
-                           if (w0 > w00) {
-                               TheImg = this;
-                               n = TheImg.nameProp;
-                               w00 = w0;
-                           }
-                       });
-
-                       pos_image = jQuery(TheImg).info();
-                       pos_page = jQuery("#the_page").info();
-
-                       break
-                   case "img":
-
-                       if (!TheImg) return;
-                       pos_image = jQuery(TheImg).info();
-                       pos_page = jQuery("#the_page").info();
-
-
-                       break
-                   case "img_autre":
-                       if (!TheImg) return;
-                       pos_image = jQuery(TheImg).position();
-                       pos_page = jQuery("#the_page").position();
-
-
-                       break
-                   case "embed":
-                       //
-
-                       TheImg = jQuery(Cadre).find("embed");
-
-                       pos_image = jQuery(Cadre).position();
-                       pos_page = jQuery("#the_page").position();
-                       if (rapport < 0) {
-                           img_height = parseInt(jQuery(TheImg).outerHeight());
-                           img_width = parseInt(jQuery(TheImg).outerWidth());
-
-                           img_reelle.height = img_height;
-                           img_reelle.width = img_width;
-
-                       }
-
-                       break
-                   case "charlie":
-
-                       TheImg = jQuery('#charlie object').get(0);
-                       pos_image = jQuery(Cadre).position();
-                       pos_page = jQuery("#the_page").position();
-                       if (rapport < 0) {
-                           img_height = parseInt(TheImg.height);
-                           img_width = parseInt(TheImg.width);
-
-                           img_reelle.height = parseInt(TheImg.height);
-                           img_reelle.width = parseInt(TheImg.width);
-                       }
-
-                       break
-                   case "pamoorama":
-                       //=========================================================
-                       var Images = jQuery("#pamoorama img");
-                       var Image = jQuery("#pamoorama").find("img");
-
-                       pos_image = jQuery("#pamoorama").info();
-                       pos_page = jQuery("#the_page").info();
-                       break
-
-
-               }
-
-               //=============== Vérification taille minimale  autorizée ======================
-               miniWidth = Get_Val_int(jQuery(TheImg).css("min-width"), mini_width);
-               miniHeight = Get_Val_int(jQuery(TheImg).css("min-height"), mini_height);
-
-
-               maxWidth = Get_Val_int(jQuery(TheImg).css("max-width"), winwidth);
-               maxHeight = Get_Val_int(jQuery(TheImg).css("max-height"), winheight);
-
-               mini_width = parseInt(miniWidth);
-               mini_height = parseInt(miniHeight);
-
-               img_reelle.width = parseInt(img_reelle.width);
-
-
-               if (img_reelle.width < mini_width) return;
-
-               img_reelle.height = parseInt(img_reelle.height);
-               if (img_reelle.height < parseInt(mini_height)) return;
-               //==================================================================================   
-               if (rapport < 0) {
-
-                   img_init.height = parseInt(img_height);
-                   img_init.width = parseInt(img_width);
-
-                   rapport = img_width / img_height;
-
-                   if (Type_Img != "map")
-                       rapport = (img_init.width / img_init.height);
-                   else
-                       rapport = 0;
-
-               }
-
-
-               //=============== Zone d'affichage ============================
-
-               borderW = Get_Val_int(zone_affichage.borderwidth.left, 2);
-               borderW += Get_Val_int(zone_affichage.borderwidth.right, 2);
-
-
-               zone_affichage.width = winwidth - borderW;
-               zone_affichage.height = winheight - marge_top;
-
-
-
-               //===========================================================================  
-               var sel0 = { top: 0 };
-
-
-
-
-
-               //==================================================================================
-               jQuery("#theImage #theImg IMG").css("marginTop", "0px")
-
-               var h = 15;
-               if (theme.match(RegExp("sobre", "g"))) {
-                   h += 0; //??
-               } else if (theme.match(RegExp("Pure", "g"))) {
-                   h += 0; //??
-               } else if (theme.match(RegExp("luciano", "g"))) {
-                   h += 0; //??
-               } else if (theme.match(RegExp("simple", "g"))) {
-                   h += 0; //??
-               } else if (theme.match(RegExp("gally", "g"))) {
-                   h += 0; //??
-
-               }
-               //================ Licence  ========================
-               var Licence = jQuery(".licencetag");
-               if (Licence.length > 0) {
-                   jQuery(".licencetag").css("padding", "0px");
-
-               }
-               //====================================================
-               info_img = jQuery(TheImg).info();
-
-
-               //=========================================================================
-               img_top = Bandeau;
-               //============ Padding image ? ===============
-
-               img_padding_top = Get_Val_int(info_img.padding.top);
-               img_padding_top += Get_Val_int(info_img.padding.bottom);
-               img_padding_top += Get_Val_int(info_img.borderwidth.top);
-               img_padding_top += Get_Val_int(info_img.borderwidth.bottom);
-
-               margin_top = Get_Val_int(info_Cadre.margin.top);
-               padding_top = Get_Val_int(info_Cadre.padding.top);
-               padding_top += Get_Val_int(info_Cadre.padding.bottom);
-
-               Marge_Basse = parseInt(marge_basse || 0); // hors bandeau
-               //==========================================================================
-               h = 0;
-               zone_affichage.height = winheight - Bandeau - Marge_Basse - h - margin_top - padding_top;
-               var Image_height = zone_affichage.height - Bandeau_bas.height - img_padding_top;
-               var Delta = zone_affichage.height - Image_height;
-
-               //=============================================================
-               var height_user = eval(user_status + "_height");
-
-
-               var reg1 = new RegExp("%", "g");
-               if (height_user.match(reg1))
-                   Image_height = Image_height * parseInt(height_user) / 100;
-               else
-                   Image_height = parseInt(height_user);
-
-               //============================================================
-               echelle_max = parseFloat(echelle_max, '3');
-               var echelle = parseFloat(Image_height / img_reelle.height, 3);
-
-               if (echelle > echelle_max) { echelle = echelle_max; }
-               Image_height = parseInt(img_reelle.height * echelle);
-
-               var Image_width;
-               if (rapport > 0)
-                   Image_width = parseInt(Image_height * rapport);
-
-               else if (Type_Img == "map") {
-                   Image_width = zone_affichage.width - marge_left - marge_right;
-
-                   if (theme.match(RegExp("gally", "g"))) {
-                       //  Image_height -= "30";
-                   }
-
-               } else {
-                   Image_width = zone_affichage.width;
-               }
-
-               //===============================================================
-               align_auto = "center";
-               if (jQuery("#theImg").css("textAlign"))
-                   align_auto = jQuery("#theImg").css("textAlign");
-
-               if (check_auto_w == 'checked="checked"') {
-                   // if (Type_Img != "pamoorama" && Type_Img != "panorama" ) {
-                   //==== largeur à atteindre ===
-                   var width_user = eval(user_status + "_width");
-                   // Largeur maximale en fonction du statut
-                   if (width_user.match(reg1))
-                   // pourcentage
-                       widthmin = maxWidth * parseInt(width_user) / 100;
-                   else
-                       widthmin = parseInt(width_user);
-
-                   if (Image_width > widthmin) {
-                       //   Image_width largeur à atteindre 
-                       //  Calcul du rapport d'agrandissement 
-                       var echelle_w = parseFloat(widthmin / img_reelle.width, 3);
-                       if (echelle_w > echelle_max) { echelle_w = echelle_max; }
-                       Image_width = parseInt(img_reelle.width * echelle_w);
-                       if (rapport > 0)
-                           Image_height = parseInt(Image_width / rapport);
-                   }
-
-
-
-               }
-
-
-               // }
-
-               //   zone_affichage.height = Image_height + Delta + info_pamoorama_footer.height;
-
-               zoom = echelle;
-
-               //  zone_affichage.height *= zoom;
-               //  zone_affichage.width *= zoom;
-               //=============LLGBO2 ===========================
-               marges = 0;
-               t1 = { top: 0 };
-               if (jQuery("#gbo") && jQuery("#gbo div:first").length > 0) {
-                   llgboframe = jQuery("#gbo div:first");
-                   marges = jQuery(llgboframe).outerWidth() - jQuery("#gbo div:last").outerWidth();
-
-                   m1 = jQuery(llgboframe).outerHeight();
-                   t1 = jQuery(llgboframe).position();
-
-
-                   if (TheImg.src) {
-                       marge_top = t1.top - img_top;
-                       Image_height -= marge_top;
-                       Image_width = Image_height * rapport;
-                       if ((winwidth) < Image_width) {
-                           _width = maxWidth;
-                       } else {
-                           _width = Image_width;
-                       }
-
-
-                       jQuery("#gbo").outerWidth(_width);
-                       jQuery("#gbo").outerHeight(Image_height);
-                       jQuery("#gbo").css("width", (_width) + "px");
-                       jQuery("#gbo").css("height", (Image_height) + "px");
-
-                       Image_height -= marges;
-                       Image_width -= marges;
-
-                   } else {
-
-                       jQuery("#gbo").width(zone_affichage.width - marges);
-                       jQuery("#gbo").height(Image_height + marges)
-                       jQuery("#gbo").css("width", zone_affichage.width - marges + "px");
-                       jQuery("#gbo").css("height", Image_height - marges + "px")
-
-                   }
-
-
-
-                   if (jQuery("area").length > 0) {
-                       jQuery("area").each(function (i) {
-
-                           obj1 = this.rel;
-                           obj2 = this.coords;
-                           if (obj1 == "up")
-                               this.coords = (Image_width / 3) + "," + 0 + "," + (Image_width * 2 / 3) + "," + Image_height;
-                           else if (obj1 == "prev")
-                               this.coords = 0 + "," + 0 + "," + (Image_width / 3) + "," + Image_height;
-                           else if (obj1 == "next")
-                               this.coords = (Image_width * 2) / 3 + "," + 0 + "," + (Image_width * 3 / 3) + "," + Image_height;
-
-                       });
-
-
-
-
-
-
-                   }
-
-
-               }
-
-               //=========================================================
-               //     jQuery(Cadre).css("position", "relative");
-
-               jQuery(Cadre).css("top", "0px");
-               jQuery("#standard").css("top", 0 + "px");
-               jQuery("#comments").css("top", 0 + "px");
-
-
-               //jQuery("#copyright").css("top", 0 + "px");
-
-
-               jQuery("#linkNext").height(Image_height);
-               jQuery("#linkPrev").height(Image_height);
-               //================ Zone affichage =========================
-               //  Image_height, Image_width = valeur a atteindre.
-               if (theme.match(RegExp("luciano", "g"))) {
-                   zone_affichage.height -= Bandeau_bas;
-               }
-
-               // jQuery(Cadre).height(zone_affichage.height);
-               //  jQuery(Cadre).height(mb-zone_affichage.top);
-               jQuery(Cadre).width(zone_affichage.width);
-               //==============================================================
-
-               img_finale.height = Image_height;
-               img_finale.width = Image_width;
-               //==============================================================
-
-               if (typeof (gmaps) != "undefined") {
-                   Gmap_ = gmaps.maps[0];
-                   if (Gmap_.sizeMode == 'A');
-                   {
-                       jQuery("#iGMapsIcon").css({ width: old_w * 0.8 + "px", height: old_h * 0.8 + "px" });
-
-                   }
-               }
-               //==============================================================
-               if (Type_Img == "charlie") {
-                   t1 = jQuery("#charlie").position();
-                   /**/
-                   pdf = 2 * parseInt(jQuery(".none_2").css("paddingRight"));
-                   jQuery("#charlie").css({
-                       width: Image_width + pdf,
-                       height: Image_height,
-                       margin: "auto"
-                   });
-
-
-                   jQuery("#player").css("width", Image_width + 100 + "px");
-                   jQuery("#player").css("height", Image_height);
-
-                   jQuery("#embedplayer").css("width", Image_width);
-                   jQuery("#embedplayer").css("height", Image_height);
-
-
-                   jQuery("object").width(Image_width);
-                   jQuery("object").height(Image_height);
-               } else if (Type_Img == "panorama") {
-
-                   //      jQuery(TheImg).panorama2(img_finale.height, img_finale.width);
-                   jQuery(TheImg).height(img_finale.height);
-                   jQuery(TheImg).width(img_finale.width);
-                   jQuery("#Panorama div").height(Image_height);
-                   //  class=simple_panorama
-
-                   jQuery(".panorama-viewport").css("left", "2px");
-                   jQuery(".panorama-viewport").css("width", "auto");
-                   //   setTimeout("cl_Timer()", 500);
-
-               } else if (Type_Img == "pamoorama") {
-                   return;
-                   marge_left += 0;
-                   new_width = zone_affichage.width - marge_right - marge_left;
-                   jQuery("#pamoorama").css({ margin: 0 + "px",
-                       left: marge_left + "px",
-                       height: Image_height + info_pamoorama_footer.height + "px",
-                       width: new_width + "px"
-                   });
-
-                   jQuery("#pamoorama").width(new_width);
-
-
-                   jQuery("#pamoorama_outter").css({
-                       left: marge_left + "px",
-                       height: Image_height + "px",
-                       width: (new_width) + "px"
-                   });
-                   jQuery("#pamoorama_outter").width(new_width);
-
-
-                   jQuery("#pamoorama_footer").width((zone_affichage.width - marge_right - marge_left));
-                   jQuery("#pamoorama_footer").css('width', (zone_affichage.width - marge_right - marge_left) + "px");
-                   zoom = Image_height / img_height;
-                   info_pamoorama_outter = jQuery("#pamoorama_outter").info();
-
-                   h_frame = jQuery("#pamoorama").width();
-                   if (old_w == jQuery(window).width() && old_h == jQuery(window).height()) {
-
-                       /*   if (info_pamoorama_outter.width == 0)
-                       setTimeout("wait_Timer()", 100);
-                       */
-                       //     jQuery(TheImg).css("zoom", zoom);
-                   }
-
-
-               } else if (TheImg.src) {
-                   //--- background ?? ---
-                   jQuery(TheImg).height(img_finale.height);
-                   jQuery(TheImg).width(img_finale.width);
-                   jQuery(TheImg).css("height", img_finale.height + "px");
-                   jQuery(TheImg).css("width", img_finale.width + "px");
-
-               } else {
-                   //===map ? ===
-                   jQuery(TheImg).height(img_finale.height);
-                   jQuery(TheImg).width(img_finale.width);
-                   jQuery(TheImg).css("height", img_finale.height + "px");
-                   jQuery(TheImg).css("width", img_finale.width + "px");
-               }
-
-
-               try {
-                   if (theme.match(RegExp("gally", "g"))) {
-
-                       jQuery("#navThumbNext").height(init_taille_thumblink.height * 2);
-                       jQuery("#navThumbPrev").height(init_taille_thumblink.height * 2);
-
-                       jQuery(".thumbLink").css("height", init_taille_thumblink.height + "px");
-                       jQuery(".thumbLink").css("width", init_taille_thumblink.width + "px");
-
-                       jQuery(Cadre).height(zone_affichage.height);
-
-                   } else {
-
-                       jQuery("#imageToolBar").css("position", "static");
-                   }
-               } catch (e) {
-
-               }
-               //  
-               if (!pos) pos = jQuery("#copyright").position();
-               if (pos != jQuery("#copyright").position())
-                   pos = jQuery("#copyright").position();
-               if (pos.top > 100) jQuery("#the_page").height(pos.top);
-
-               if (old_w == jQuery(window).width() && old_h == jQuery(window).height()) return;
-               jQuery(window).resize();
-               return;
-           });
-           var pos;
-           //===================================================================	  
-           jQuery(window).resize();
-
-
-       } // function
-);                                                                                                                                                                                                                                                                                                        // ready
-    /*
-*
-*/
-    jQuery.extend(jQuery.expr[':'], {
-        // Nom du sélecteur personnalisé
-        Description: function (a) {
-            n = jQuery(a).info();
-            return a;
-
-        }
-    });
-
-    /* Extension
-    * absolutize:
-    * relativize:
-    */
-//=========================================================
-    jQuery.fn.extend({
-        recentrage_widget: function () {
-            jQuery('html,body').stop().scrollTop(0);
-            jQuery('html,body').stop().scrollLeft(0);
-            jQuery(".ui-widget-overlay").css("opacity", "0.75");
-
-            l1 = (jQuery(window).width() - (jQuery(".gmapsPopup").width()))/2;
-            h1 = (jQuery(window).height() - (jQuery(".gmapsPopup").height()))/2;
- 
-            jQuery(".gmapsPopup").css("left", l1 + "px");
-            jQuery(".gmapsPopup").css("top", h1 + "px");
-
-        },
-        //-------------------------------------------------------
-        absolutize: function (element) {
-            element = jQuery(element).get(0);
-            if (element.getStyle('position') == 'absolute') return;
-            // Position.prepare(); // To be done manually by Scripty when it needs it.
-
-            var offsets = element.positionedOffset();
-            var top = offsets[1];
-            var left = offsets[0];
-            var width = element.clientWidth;
-            var height = element.clientHeight;
-
-            element._originalLeft = left - parseFloat(element.style.left || 0);
-            element._originalTop = top - parseFloat(element.style.top || 0);
-            element._originalWidth = element.style.width;
-            element._originalHeight = element.style.height;
-
-            element.style.position = 'absolute';
-            element.style.top = top + 'px';
-            element.style.left = left + 'px';
-            element.style.width = width + 'px';
-            element.style.height = height + 'px';
-            return element;
-        },
-
-        relativize: function (element) {
-            element = jQuery(element).get(0); ;
-            if (jQuery(element).css('position') == 'relative') return;
-            // Position.prepare(); // To be done manually by Scripty when it needs it.
-            element._originalLeft = parseFloat(element.style.left || 0);
-            element._originalTop = parseFloat(element.style.top || 0);
-            element._originalWidth = element.style.width;
-            element._originalHeight = element.style.height;
-
-            element.style.position = 'relative';
-            var top = parseFloat(element.style.top || 0) - (element._originalTop || 0);
-            var left = parseFloat(element.style.left || 0) - (element._originalLeft || 0);
-
-            element.style.top = top + 'px';
-            element.style.left = left + 'px';
-            //  element.style.height = element._originalHeight;
-            // element.style.width  = element._originalWidth;
-            return element;
-        }
-        //=========================================================
-    });          // fin extend
Index: tensions/cl_conflit/js/conflit.js.bak
===================================================================
--- /extensions/cl_conflit/js/conflit.js.bak	(revision 7880)
+++ 	(revision )
@@ -1,540 +1,0 @@
-﻿//==== autosize  remplace $(... avec jQuery( ====
-/*
-* [gmaps=id:1;width:800;height:640;]
-*       Luciano rv_gmaps
-*/
-var d1 = 0;
-var init_tb = 0;
-var dom = {};
-if (typeof jQuery == 'undefined') {
-    alert(" jQuery n'est pas chargé");
-} else {
-    // jQuery est chargé
-}
-try {
-    Conflit = { version: Version };
-} catch (e) {
-
-}
-//===================================================
-var detect = navigator.userAgent.toLowerCase();
-var OS, version;
-//===================================================
-browser = detect_browser();
-function detect_browser() {
-    mybrowser = {
-        browser: "",
-        konqueror: false,
-        chrome: false,
-        safari: false,
-        omniWeb: false,
-        opera: false,
-        firefox: false,
-        msie: false,
-        netscape: false
-    }
-    if (checkIt('konqueror')) { mybrowser.Konqueror = true; lbrowser = "konqueror"; OS = "Linux"; }
-    else if (checkIt('chrome')) { mybrowser.chrome = true; lbrowser = "chrome"; }
-    else if (checkIt('safari')) { mybrowser.safari = true; lbrowser = "safari"; }
-    else if (checkIt('omniweb')) { mybrowser.omniweb = true; lbrowser = "omniWeb"; }
-    else if (checkIt('opera')) { mybrowser.opera = true; lbrowser = "opera"; }
-    else if (checkIt('firefox')) { mybrowser.firefox = true; lbrowser = "firefox"; }
-
-    else if (checkIt('msie')) { mybrowser.msie = true; lbrowser = "msie"; }
-    else if (checkIt('compatible')) { mybrowser.NetscapeNavigator = true; lmybrowser.browser = "NetscapeNavigator"; version = detect.charAt(8); }
-    else lbrowser = "An unknown browser";
-    if (!version) version = detect.charAt(place + thestring.length);
-    if (!OS) {
-        if (checkIt('linux')) OS = "Linux";
-        else if (checkIt('x11')) OS = "Unix";
-        else if (checkIt('mac')) OS = "Mac";
-        else if (checkIt('win')) OS = "Windows";
-        else OS = "an unknown operating system";
-    }
-
-    mybrowser.browser = lbrowser;
-    return mybrowser
-
-
-};
-
-
-
-function checkIt(string) {
-    place = detect.indexOf(string) + 1;
-    thestring = string;
-    return place;
-}
-/*
-  
-*/
-
-
-konqueror = mybrowser.konqueror || false;
-chrome = mybrowser.chrome || false;
-safari = mybrowser.safari || false;
-omniWeb = mybrowser.omniWeb || false;
-opera = mybrowser.opera || false;
-firefox = mybrowser.firefox || false;
-msie = mybrowser.msie || false;
-netscape = mybrowser.netscape || false;
-
-
-//========================================
-/*function $defined(A) {
-$ = _$2; //   ;
-return A != undefined;
-}
-*/
-
-var time_out = 0;
-//===================================================
-
-nbpa = 0;
-var Fn;
-function conflit(element, nc) {
-    //--- cl_conflit    
-    var retour = (getStackTrace());
-    Fn = retour.fn;
-    retour = retour.state;
-
-    n = document;
-    v = window;
-    var ret_element = "";
-    if (retour.match(RegExp("jQuery", "gi"))) {
-        ret_element = jQuery(element);
-    }
-    else if (retour.match(RegExp("rv_gmaps", "gi"))) {
-        ret_element = jQuery().$Prototype(element);
-    } else if (retour.match(RegExp("GMaps", "gi"))) {
-        ret_element = jQuery(element);
-    } else if (retour.match(RegExp("pamooramics", "gi"))) {
-
-        ret_element = jQuery().$Pamoorama(element);
-
-        if (retour.match(RegExp("init_", "gi"))) {
-
-        }
-        nbpa += 1;
-
-    } else if (retour.match(RegExp("luciano", "gi"))) {
-        $1 = $_;
-
-        ret_element = jQuery().$Luciano(element, nc);
-
-    } else if (retour.match(RegExp("jQuery", "gi"))) {
-        ret_element = jQuery(element);
-    }
-
-    if (ret_element != "")
-        return ret_element;
-
-    if (typeof (element) == "string") {
-        if (element.match("^#|.ui", "gi")) {
-            ret_element = jQuery(element);
-            return ret_element;
-        }
-    } else if (typeof (element) == "function") {
-        fn = element.toString();
-        if (fn.match("#pwg|open", "gi")) {
-            ret_element = jQuery(element);
-            return ret_element;
-        }
-    } else if (element == document) {
-
-        ret_element = jQuery(element);
-        return ret_element;
-
-
-    }
-    tp0 = typeof (element);
-
-    ret_element = jQuery(element);
-    if (DEBUG == "true") {
-        retour = (getStackTrace());
-        alert("element : " + element + " retour : " + retour + "Fonctions:" + Fn);
-
-    }
-    return ret_element;
-} // conflit(element,nc)
-
-jQuery(document).ready(
-    function (jQuery) {
-        jQuery(window).load(function () {
-            //============================================================
-            jQuery("#icon_gmaps").bind('click', function () {
-
-                jQuery('html,body').stop().scrollTop(0);
-                jQuery('html,body').stop().scrollLeft(0);
-                jQuery(".ui-widget-overlay").css("opacity", "0.75");
-
-                l1 = (jQuery(window).width() - (jQuery(".gmapsPopup").width())) / 2;
-                h1 = (jQuery(window).height() - (jQuery(".gmapsPopup").height())) / 2;
-
-                jQuery(".gmapsPopup").css("left", l1 + "px");
-                jQuery(".gmapsPopup").css("top", h1 + "px");
-            })
-            //=============================================================                
-            p0 = jQuery("#theImage");
-            if (p0.length) {
-
-                //======================================================
-                if (theme.match("gally", "gi"))
-                    if (jQuery.isFunction(inittoolbar)) {
-                        if (typeof (currentTab) == "undefined") inittoolbar();
-                        else initializeImageMode("resize");
-                    };
-
-                p1 = jQuery("#theImage").css("position");
-                if (p1 != "static") {
-                    //==== compatibilité Gally/LLGBO ===
-                    //--- passage relative ==> static ===/
-                    jQuery("#theImage").css({ position: "static"
-                  }
-
-                    );
-                    jQuery("#imageToolBar").css({ position: "relative", top: "0px" });
-                }
-            }
-            //   jQuery(window).resize();
-
-        });
-        //=============================================================        
-
-        //  $ = _$2; ;
-
-
-    })
-;
-
-
-
-//=========================================================
-
-jQuery.fn.extend({
-
-    //---------------- luciano -------------------------------
-    $Luciano: function (el, nc) {
-        return document.id(el, nc, this.document);
-    },
-    //=============== PaMOOramics ===========================
-
-    $Pamoorama: function (B) {
-
-
-        if (!B) {
-            if (typeof (B) == "boolean") return null;
-
-        }
-
-        try {
-            if (B.htmlElement) {
-                return Garbage.collect(B);
-            }
-        } catch (e) {
-
-        }
-
-        if ([window, document].contains(B)) { return B; }
-        var A = $type(B);
-        if (A == "string") { B = document.getElementById(B); A = (B) ? "element" : false; }
-        if (A != "element") {
-            return null;
-        }
-        if (B.htmlElement) { return Garbage.collect(B); }
-        if (["object", "embed"].contains(B.tagName.toLowerCase())) { return B; }
-        $extend(B, Element.prototype);
-        B.htmlElement = function () { };
-        try { return Garbage.collect(B); } catch (e) {
-            return;
-        }
-
-    },
-    //===================================================
-    $Prototype: function (element) {
-        //======== prototype.js =====================
-        if (arguments.length > 1) {
-            for (var i = 0, elements = [], length = arguments.length; i < length; i++)
-                elements.push($(arguments[i]));
-            return elements;
-        }
-        if (typeof element == "string")
-            element = document.getElementById(element);
-
-        return Element.extend(element);
-
-        try {
-            new_element = Element.extend(element);
-        } catch (e) {
-            return new_element;
-        }
-        return new_element;
-    }
-    //=========================================================
-});    // fin extend
-
-
-
-/*
-* mootools.js  version: "1.11"
-* pamoorama0.3.js
-*
-* main.js (google maps)
-* prototype.js(mootool version: "1.62")
-* windows.js
-*
-*/
-function getStackTrace() {
-    var callstack = [];
-    var isCallstackPopulated = false;
-    try {
-        i.dont.exist += 0; //doesn't exist- that's the point
-    } catch (e) {
-        var retcallstack = [];
-        var e_message = e.message;
-        var e_stack = e.stack;
-        if (e_stack) { //Firefox Opera 3.6
-            //=== test fichier source =============
-            var lines = e.stack.split("\n");
-            for (var i = 0, len = lines.length; i < len; i++) {
-                var Src_Match = lines[i];
-                if (Src_Match.match(/conflit.js/)) {
-                    //
-                } else {
-                    if (Src_Match.match(/^\s*[A-Za-z0-9\-_\$]+\(/)) {
-                        callstack.push(Src_Match); //php?
-                    } else {
-                        callstack.push(Src_Match);
-                    }
-                    if (Src_Match.match("GMaps|applyMap|markupMaps|applyMarkers")) {
-                        callstack.push("GMaps");
-                        isCallstackPopulated = true;
-                        break;
-                    }
-                    if (Src_Match.match("rv_gmaps", "gi")) {
-                        callstack.push("rv_gmaps");
-                        isCallstackPopulated = true;
-                        break;
-                    }
-                    if (Src_Match.match("paMOOramics")) {
-                        isCallstackPopulated = true;
-                        callstack.push("paMOOramics");
-                        break;
-                    }
-                    if (Src_Match.match("Luciano", "gi")) {
-                        callstack.push("Luciano");
-                        isCallstackPopulated = true;
-                        break;
-                    }
-                    if (Src_Match.match("main")) {
-
-                        callstack.push("main");
-                        isCallstackPopulated = true;
-                        break;
-                    }
-                    if (Src_Match.match("jQuery")) {
-                        callstack.push("jQuery");
-                        isCallstackPopulated = true;
-                        break;
-                    }
-                }
-            }
-            //callstack.shift();
-            isCallstackPopulated = false;
-        }
-        if (window.opera && e.message && isCallstackPopulated == false) {
-            callstack = [];
-            //Opera =================================
-            var lines = e.message.split("\n");
-            for (var i = 0, len = lines.length; i < len; i++) {
-                if (lines[i].match(/^\s*[A-Za-z0-9\-_\$]+\(/)) {
-                    var entry = lines[i];
-                    //Append next line also since it has the file info
-                    if (lines[i + 1]) {
-                        entry += " at " + lines[i + 1];
-                        i++;
-                    }
-                    callstack.push(entry);
-                    //isCallstackPopulated = true;
-                }
-            }
-
-        }
-        //===== fin Opera======================================
-    }
-    if (!isCallstackPopulated) { //IE and Safari
-        var currentFunction = arguments.callee.caller;
-        //next 
-        callstack = [];
-        all_functions = [];
-        state = "";
-        if (currentFunction == null) {
-            return ("");
-        }
-        states = [];
-        var fn1 = currentFunction.toString(); // fonction d'appel local (conflit)
-
-        currentFunction = currentFunction.caller;
-        currentFunction = currentFunction.caller;
-        //$family
-
-        while (currentFunction) {
-            var fn = currentFunction.toString();
-            all_functions.push(fn);
-            var fname = fn.substring(fn.indexOf("function") + 8, fn.indexOf("(")) || " ";
-            if (fname != " ") {
-
-                jQuery.noop;
-                if (states.length > 0) break;
-
-                // if (fname != " $") callstack.push(fn);
-            } if (fname != "") {
-                jQuery.noop;
-                // if (fname != " $") callstack.push(fn);
-            }
-            callstack.push(fn);
-
-            if (fn.match(RegExp("jquery|switchmenu|switchTabs|switchInterface|gally|initializeImageMode", "gi"))) {
-                states.push('jQuery');
-
-            }
-            if (fn.match(RegExp("dialog..open", "gi"))) {
-                states.push('GMaps');
-
-            }
-            if (fn.match(RegExp("GMaps|applyMap|markupMaps|applyMarkers", "gi"))) {
-                states.push('GMaps');
-
-            }
-            //======================
-            if (fn.match(RegExp("_footer|ie_ready|makeDraggable|droppables", "gi"))) {
-
-                states.push('paMOOramics');
-
-            }
-            if (fn.match(RegExp("observe|responder|stopobserving|fireContentLoadedEvent", "gi"))) {
-                states.push('rv_gmaps');
-
-            }
-            //? bubble  
-            Expression = new RegExp("\\$", "gi")
-            if (fn.match(Expression)) {
-                if (fn.match(RegExp("rateForm", "gi"))) {
-
-                    states.push('Luciano');
-
-                }
-            }
-            if (fn.match(RegExp("(splat|buildFrameWork|photoNext)", "gi"))) {  //luciano
-
-                states.push('Luciano');
-
-            }
-
-            if (all_functions.length > 50) break;
-
-
-            currentFunction = currentFunction.caller;
-        }
-
-    }
-    state = states.join('\n');
-    Fn = all_functions;
-    return { state: state, fn: callstack.join('\n') };
-}
-//====================================
-
-
-(function ($) {
-    $(document).ready(function () {
-        jQuery(window).load(function () {
-            a = jQuery(':Description');
-        });
-    });
-    //==============================================
-    jQuery.extend(jQuery.expr[':'], {
-        // Nom du sélecteur personnalisé
-        Description: function (a) {
-            n = jQuery(a).infos();
-            if (n.id != "") {
-                //alert("<" + n.nodeName  +" id= " + n.id    + " >") ;
-            }
-            if (n.nodeName == "SCRIPT")
-                if (a.src == "") {
-                    Match = jQuery(a).html();
-                    /*
-                    if ( Match.match(new RegExp("jQuery", "gi") )) {
-                    alert(n.id + n.nodeName + a.outerHTML ) ;
-                    }
-                    if ( Match.match(new RegExp("ajax", "gi") )) {
-                    alert(n.id + n.nodeName + a.outerHTML ) ;
-                    }
-                    */
-                    if (Match.match(new RegExp("\\$", "gi"))) {
-
-                        if (Match.match(new RegExp("ajax", "gi"))) {
-                            //     alert(n.id + n.nodeName + a.outerHTML);
-
-                        }
-                    }
-                    if (Match.match(new RegExp("pamoorama", "ig"))) {
-
-                        //     alert(n.id + n.nodeName + a.innerHTML);
-
-                    }
-                } else {
-
-                    if (a.src.match(RegExp("mootools|pamooramic|luciano", "gi"))) {
-                        jQuery.noop;
-
-                    }
-
-                }
-
-            return a;
-
-        }
-    }); //fin extend
-    /*
-    *
-    */
-
-
-
-
-
-
-})(jQuery);
-
-
-function $(element, nc0) {
-    a = conflit(element, nc0);
-    return a;
-}
-if (typeof ($.ajax) != "function") {
-    $.ajax = function (origSettings) {
-        jQuery.ajax(origSettings);
-    }
-
-
-    $.parseJSON = function (msg) {
-        return jQuery.parseJSON(msg);
-    }
-
-
-}
-if (typeof ($.get) != "function") {
-    $.get = function (options) {
-        return jQuery.get(options);
-    }
-
-
-}
-$_ = $;
-function save_framework(page) {
-    Conflit = { version: Version };
-    $_ = $;
-    return
-
-}
-
Index: tensions/cl_conflit/js/jquery.dimensions.min.js
===================================================================
--- /extensions/cl_conflit/js/jquery.dimensions.min.js	(revision 7880)
+++ 	(revision )
@@ -1,194 +1,0 @@
-/* Copyright (c) 2007 Paul Bakaus (paul.bakaus@googlemail.com) and Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net)
- * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
- * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
- *
- * $LastChangedDate: 2007-12-20 08:43:48 -0600 (Thu, 20 Dec 2007) $
- * $Rev: 4257 $
- *
- * Version: 1.2
- *
- * Requires: jQuery 1.2+
- */
-(function (jQuery) {
-    jQuery.dimensions = { version: '1.3' };
-    /*
-    * Interception Height, Width
-    */
-    jQuery.each(['Height', 'Width'],
-            function (i, name) {
-                jQuery.fn['inner' + name] = function () {
-                    if (!this[0]) return;
-                    var torl = name == 'Height' ? 'Top' : 'Left',
-                        borr = name == 'Height' ? 'Bottom' : 'Right';
-                    return this.is(':visible') ? this[0]['client' + name] : num(this, name.toLowerCase()) + num(this, 'padding' + torl) + num(this, 'padding' + borr);
-                };
-
-                jQuery.fn['outer' + name] = function (options) {
-                    if (!this[0]) return;
-                    var torl = name == 'Height' ? 'Top' : 'Left',
-                        borr = name == 'Height' ? 'Bottom' : 'Right';
-                    options = jQuery.extend({ margin: false },
-                                                options || {});
-                    var val = this.is(':visible') ? this[0]['offset' + name] :
-                        num(this,
-                        name.toLowerCase()) +
-                        num(this, 'border' + torl + 'Width') +
-                        num(this, 'border' + borr + 'Width') +
-                        num(this, 'padding' + torl) +
-                        num(this, 'padding' + borr);
-                    return val + (options.margin ? (num(this, 'margin' + torl) + num(this, 'margin' + borr)) : 0);
-                };
-            });
-    /*
-    *
-    */
-    jQuery.each(['Left', 'Top'],
-      function (i, name) {
-          jQuery.fn['scroll' + name] = function (val) {
-              if (!this[0]) return;
-              return val != undefined ? this.each(function () {
-                  this == window || this == document ? window.scrollTo(name == 'Left' ? val : $(window)['scrollLeft'](),
-           name == 'Top' ? val : $(window)['scrollTop']()) : this['scroll' + name] = val;
-              }) : this[0] == window || this[0] == document ? self[(name == 'Left' ? 'pageXOffset' : 'pageYOffset')] || jQuery.boxModel && document.documentElement['scroll' + name] || document.body['scroll' + name] : this[0]['scroll' + name];
-          };
-
-      });
-    jQuery.fn.extend({
-
-        info: function () {
-            var width = 0, height = 0;
-            var left = 0, top = 0, elem = this[0], offset, parentOffset, offsetParent, results;
-            var borderwidth = { width: "0 0 0 0",
-                top: 0,
-                left: 0,
-                right: 0,
-                bottom: 0
-            }
-            var padding = { padding: "0 0 0 0",
-                top: 0,
-                left: 0,
-                right: 0,
-                bottom: 0
-            };
-            var margin = { margin: "0 0 0 0",
-                top: 0,
-                left: 0,
-                right: 0,
-                bottom: 0
-            };
-            //=====================================================================
-            results = {
-                position: jQuery(elem).css("position"),
-                top: 0,
-                left: 0,
-                width: 0,
-                height: 0,
-                right: 0,
-                bottom: 0,
-                borderwidth: borderwidth,
-                padding: padding,
-                margin: margin
-            };
-            ;
-            if (elem) {
-                Position = jQuery(elem).position();
-                left = Position.left;
-                top = Position.top;
-                width = jQuery(elem).outerWidth();
-                height = jQuery(elem).outerHeight();
-
-
-                borderwidth.left = jQuery(elem).css("borderLeftWidth");
-                borderwidth.right = jQuery(elem).css("borderRightWidth");
-                borderwidth.top = jQuery(elem).css("borderTopWidth");
-                borderwidth.bottom = jQuery(elem).css("borderBottomWidth");
-                try {
-                    borderwidth.width = jQuery(elem).css("borderWidth");
-                } catch (e) {
-                    borderwidth.width = '"' + borderwidth.left + ' ' + borderwidth.top + ' ' + borderwidth.right + ' ' + borderwidth.bottom + '"';
-                }
-
-
-                margin.left = jQuery(elem).css("marginLeft");
-                margin.right = jQuery(elem).css("marginRight");
-                margin.top = jQuery(elem).css("marginTop");
-                margin.bottom = jQuery(elem).css("marginBottom");
-                try {
-                    margin.margin = jQuery(elem).css("margin");
-                } catch (e) {
-                    margin.margin = '"' + margin.left + ' ' + margin.top + ' ' + margin.right + ' ' + margin.bottom + '"';
-                }
-
-                padding.left = jQuery(elem).css("paddingLeft");
-                padding.right = jQuery(elem).css("paddingRight");
-                padding.top = jQuery(elem).css("paddingTop");
-                padding.bottom = jQuery(elem).css("paddingBottom");
-                try { padding.padding = jQuery(elem).css("padding"); } catch (e) {
-                    padding.padding = '"' + padding.left + ' ' + padding.top + ' ' + padding.right + ' ' + padding.bottom + '"';
-                }
-
-                results = {
-                    position: jQuery(elem).css("position"),
-                    top: top,
-                    left: left,
-                    width: width,
-                    height: height,
-                    right: left + width,
-                    bottom: top + height,
-                    borderwidth: borderwidth,
-                    margin: margin,
-                    padding: padding
-                };
-
-                return results
-            } return results;
-        },
-        /*
-        * Position de l'object elem
-        */
-        position: function () {
-            var left = 0, top = 0, elem = this[0], offset, parentOffset, offsetParent, results;
-            if (elem) {
-                offsetParent = this.offsetParent();
-                offset = this.offset();
-                if (offsetParent) {
-                    if (typeof (offsetParent.offset) != "undefined")
-                        parentOffset = offsetParent.offset();
-                    else
-                        parentOffset = { top: 0, left: 0 };
-
-                    offset.top -= num(elem, 'marginTop');
-                    offset.left -= num(elem, 'marginLeft');
-
-                    if (offsetParent.length > 0) {
-                        parentOffset.top += num(offsetParent, 'borderTopWidth');
-                        parentOffset.left += num(offsetParent, 'borderLeftWidth');
-                    } else {
-                        parentOffset = { top: 0, left: 0 };
-
-                    }
-                } else {
-                    parentOffset = { top: 0, left: 0 };
-                }
-                results = {
-                    top: offset.top - parentOffset.top, left: offset.left - parentOffset.left
-                };
-            } return results;
-        },
-        /*
-        * offsetParent
-        */
-        offsetParent: function () {
-            var offsetParent = this[0].offsetParent;
-            while (offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && jQuery.css(offsetParent, 'position') == 'static'))
-                offsetParent = offsetParent.offsetParent;
-            return jQuery(offsetParent);
-        }
-    });
-    /*
-    *
-    */
-    function num(el, prop) {
-        return parseInt(jQuery.curCSS(el.jquery ? el[0] : el, prop, true)) || 0;
-    };
-})(jQuery);
