Index: /extensions/cl_conflit/admin/admin_conflit.php
===================================================================
--- /extensions/cl_conflit/admin/admin_conflit.php	(revision 7880)
+++ /extensions/cl_conflit/admin/admin_conflit.php	(revision 7880)
@@ -0,0 +1,190 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | Piwigo - a PHP based picture gallery                                  |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
+// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
+// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
+if (!defined('CONFLIT_DIR')) define('CONFLIT_DIR' , basename(dirname(__FILE__)));
+if (!defined('CONFLIT_PATH')) 
+define(
+  'CONFLIT_PATH',
+   PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'
+);
+// +-----------------------------------------------------------------------+
+// | Check Access and exit when user status is not ok                      |
+// +-----------------------------------------------------------------------+
+//check_status(ACCESS_ADMINISTRATOR);
+include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
+include_once (PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
+
+$my_base_url = get_admin_plugin_menu_link(__FILE__);
+
+
+
+$tabsheet = new tabsheet();
+$tabsheet->add( 'conflit_admin',
+                l10n('admin'),
+                $my_base_url.'&amp;tab=conflit_admin'
+			   );
+/*		   
+$tabsheet->add( 'conflit_content',
+                l10n('content'),
+                $my_base_url.'&amp;tab=conflit_content'
+			   );
+*/			   
+			   
+			   
+	if (!isset($_GET['tab']))
+	   $page['tab'] = 'conflit_admin';
+else
+       $page['tab'] = $_GET['tab'];	
+	   
+	   		   
+$tabsheet->select($page['tab']);
+$tabsheet->assign();
+
+$page['global'] = array();
+$error = array();
+
+global $user, $conf, $errors ;
+global $args, $conflits_message,$erreur_message ;
+
+include_once (CONFLIT_PATH.'include/constants.php'); 
+
+$aff_nb=true;
+
+ ; 
+include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
+include_once (PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
+
+
+$my_base_url = get_admin_plugin_menu_link(__FILE__);
+load_language('lang', CONFLIT_PATH ); 
+// *************************************************************************
+// |                          Sélection de l'onglet                        |
+// *************************************************************************
+$conflits_message ="";  
+$erreur_message="";
+global $conf;
+global $conflit_parametres;
+global $template,$page,$conf ; 
+    global $picture;
+ 
+  $visible=true;	
+
+        $path = CONFLIT_PATH;
+          $plg_data = implode( '', file($path.'main.inc.php') );
+          if ( preg_match("|Plugin Name: (.*)|", $plg_data, $val) )
+          {
+            $plugin['name'] = trim( $val[1] );
+          }
+          if (preg_match("|Version: (.*)|", $plg_data, $val))
+          {
+            $plugin['version'] = trim($val[1]);
+          }
+          if ( preg_match("|Plugin URI: (.*)|", $plg_data, $val) )
+          {
+            $plugin['uri'] = trim($val[1]);
+          }
+          if ($desc = load_language('description.txt', $path.'/', array('return' => true)))
+          {
+            $plugin['description'] = trim($desc);
+          }
+          elseif ( preg_match("|Description: (.*)|", $plg_data, $val) )
+          {
+            $plugin['description'] = trim($val[1]);
+          }
+          if ( preg_match("|Author: (.*)|", $plg_data, $val) )
+          {
+            $plugin['author'] = trim($val[1]);
+          }
+          if ( preg_match("|Author URI: (.*)|", $plg_data, $val) )
+          {
+            $plugin['author uri'] = trim($val[1]);
+          }
+          if (!empty($plugin['uri']) and strpos($plugin['uri'] , 'extension_view.php?eid='))
+          {
+            list( , $extension) = explode('extension_view.php?eid=', $plugin['uri']);
+            if (is_numeric($extension)) $plugin['extension'] = $extension;
+          }
+          // IMPORTANT SECURITY !
+          $plugin = array_map('htmlspecialchars', $plugin);
+
+$version = $plugin['version'] ;
+	 $conflit_parametres = cl_conflit_Get_Options();
+
+
+	 
+   if (isset($_POST['submit']))  {  
+	  if ($_POST['submit'] == l10n('cl_conflit_save'))  {  
+	         cl_conflit_sauve_options_inf() ;
+		     unset($_POST); 
+		 }
+	}	
+	//=========================================
+	if (isset($_POST['img_start']))  {
+		 unset($_POST);
+		 }
+ include (CONFLIT_PATH."include/affiche.php"); 	 	 
+//================================================================================
+$base_url = get_root_url().'admin_conflit.php';
+switch ($page['tab'])
+ {
+  case 'conflit_admin':
+
+    $template->set_filenames(array('plugin_admin_content' => realpath(CONFLIT_PATH . 'admin/template/admin.tpl')));
+
+ 
+    $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
+    break; 
+ 
+case 'conflit_content':
+
+  
+ $template->set_filenames(array( 'plugin_admin_content' => realpath(CONFLIT_PATH . 'template/picture.tpl' )));
+ $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
+ break; 
+  }
+if (!isset($conflits_message)){
+		  $conflits_message = "";
+		} 
+ 
+ 
+		  
+		if  ($conflits_message != "")  {
+		   array_push($page['conflits'],  $conflits_message);
+		 $conflits_message="";
+		 }
+		if (!isset($erreur_message)){
+		  $erreur_message = "";
+		} 		 
+		if  ($erreur_message != "")  {
+	
+		  array_push($page['errors'], $erreur_message);
+		  $erreur_message="";
+	
+		 
+		 }		 
+		 
+//================================================================
+ 
+
+?>
Index: /extensions/cl_conflit/admin/cl_conflit_admin.php
===================================================================
--- /extensions/cl_conflit/admin/cl_conflit_admin.php	(revision 7880)
+++ /extensions/cl_conflit/admin/cl_conflit_admin.php	(revision 7880)
@@ -0,0 +1,186 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | Piwigo - a PHP based picture gallery                                  |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
+// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
+// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
+
+if (!defined('CONFLIT_PATH')) 
+define(
+  'CONFLIT_PATH',
+   PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'
+);
+// +-----------------------------------------------------------------------+
+// | Check Access and exit when user status is not ok                      |
+// +-----------------------------------------------------------------------+
+//check_status(ACCESS_ADMINISTRATOR);
+include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
+include_once (PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
+
+$my_base_url = get_admin_plugin_menu_link(__FILE__);
+
+
+
+$tabsheet = new tabsheet();
+$tabsheet->add( 'cl_conflit_admin',
+                l10n('admin'),
+                $my_base_url.'&amp;tab=cl_conflit_admin'
+			   );
+/*		   
+$tabsheet->add( 'cl_conflit_content',
+                l10n('content'),
+                $my_base_url.'&amp;tab=cl_conflit_content'
+			   );
+*/			   
+			   
+			   
+	if (!isset($_GET['tab']))
+	   $page['tab'] = 'cl_conflit_admin';
+else
+       $page['tab'] = $_GET['tab'];	
+	   
+	   		   
+$tabsheet->select($page['tab']);
+$tabsheet->assign();
+
+$page['global'] = array();
+$error = array();
+
+global $user, $conf, $errors ;
+global $args, $cl_conflits_message,$erreur_message ;
+
+include_once (CONFLIT_PATH.'include/constants.php'); 
+
+$aff_nb=true;
+
+ ; 
+include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');
+include_once (PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
+
+
+$my_base_url = get_admin_plugin_menu_link(__FILE__);
+load_language('lang', CONFLIT_PATH ); 
+// *************************************************************************
+// |                          Sélection de l'onglet                        |
+// *************************************************************************
+	$cl_conflits_message ="";  
+	$erreur_message="";
+	global $conf;
+	global $cl_conflit_parametres;
+	global $template,$page,$conf ; 
+	global $picture;
+ 
+	$visible=true;	
+
+	$path = CONFLIT_PATH;
+
+          $plg_data = implode( '', file($path.'main.inc.php') );
+          if ( preg_match("|Plugin Name: (.*)|", $plg_data, $val) )
+          {
+            $plugin['name'] = trim( $val[1] );
+          }
+          if (preg_match("|Version: (.*)|", $plg_data, $val))
+          {
+            $plugin['version'] = trim($val[1]);
+          }
+          if ( preg_match("|Plugin URI: (.*)|", $plg_data, $val) )
+          {
+            $plugin['uri'] = trim($val[1]);
+          }
+          if ($desc = load_language('description.txt', $path.'/', array('return' => true)))
+          {
+            $plugin['description'] = trim($desc);
+          }
+          elseif ( preg_match("|Description: (.*)|", $plg_data, $val) )
+          {
+            $plugin['description'] = trim($val[1]);
+          }
+          if ( preg_match("|Author: (.*)|", $plg_data, $val) )
+          {
+            $plugin['author'] = trim($val[1]);
+          }
+          if ( preg_match("|Author URI: (.*)|", $plg_data, $val) )
+          {
+            $plugin['author uri'] = trim($val[1]);
+          }
+          if (!empty($plugin['uri']) and strpos($plugin['uri'] , 'extension_view.php?eid='))
+          {
+            list( , $extension) = explode('extension_view.php?eid=', $plugin['uri']);
+            if (is_numeric($extension)) $plugin['extension'] = $extension;
+          }
+          // IMPORTANT SECURITY !
+          $plugin = array_map('htmlspecialchars', $plugin);
+
+			$version = $plugin['version'] ;
+			$cl_conflit_parametres = cl_conflit_Get_Options();
+		if (isset($_POST['submit']))  {  
+			if ($_POST['submit'] == l10n('cl_conflit_save'))  {  
+					cl_conflit_sauve_options_inf() ;
+					unset($_POST); 
+				}
+		}	
+	//=========================================
+	if (isset($_POST['img_start']))  {
+		 unset($_POST);
+		 }
+ include (CONFLIT_PATH."include/affiche.php"); 	 	 
+//================================================================================
+$base_url = get_root_url().'admin_cl_conflit.php';
+switch ($page['tab'])
+ {
+  case 'cl_conflit_admin':
+
+    $template->set_filenames(array('plugin_admin_content' => realpath(CONFLIT_PATH . 'admin/template/admin.tpl'))); 
+    $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
+    break; 
+ 
+case 'cl_conflit_content':
+
+  
+ $template->set_filenames(array( 'plugin_admin_content' => realpath(CONFLIT_PATH . 'template/picture.tpl' )));
+ $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
+ break; 
+  }
+if (!isset($cl_conflits_message)){
+		  $cl_conflits_message = "";
+		} 
+ 
+ 
+		  
+		if  ($cl_conflits_message != "")  {
+		   array_push($page['cl_conflits'],  $cl_conflits_message);
+		 $cl_conflits_message="";
+		 }
+		if (!isset($erreur_message)){
+		  $erreur_message = "";
+		} 		 
+		if  ($erreur_message != "")  {
+	
+		  array_push($page['errors'], $erreur_message);
+		  $erreur_message="";
+	
+		 
+		 }		 
+		 
+//================================================================
+ 
+
+?>
Index: /extensions/cl_conflit/admin/template/admin.tpl
===================================================================
--- /extensions/cl_conflit/admin/template/admin.tpl	(revision 7880)
+++ /extensions/cl_conflit/admin/template/admin.tpl	(revision 7880)
@@ -0,0 +1,184 @@
+{html_head} 
+ <script type="text/javascript">
+     var DEBUG = '{$DEBUG}';
+     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 }';
+
+     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 check_auto_w = '{$check_auto_w}';
+
+     var check_desc_v = '{$check_desc_v}';
+
+     </script>
+    {known_script id="jquery" src="themes/default/js/jquery.packed.js"}
+   
+{/html_head}
+
+{* $Id: conflit admin.tpl  *}
+ <!--- HEAD conflit TPL --->
+{known_script id="jquery.cluetip" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.cluetip.packed.js"}
+{known_script id="jquery.ui"      src=$ROOT_URL|@cat:"themes/default/js/ui/ui.core.js"}
+{known_script id="jquery.ui.resizable" src=$ROOT_URL|@cat:"themes/default/js/ui/ui.resizable.js"}
+{known_script id="jquery.ui.slider" src=$ROOT_URL|@cat:"themes/default/js/ui/ui.slider.js"}
+{known_script id="jquery.ui.draggable" src=$ROOT_URL|@cat:"themes/default/js/ui/ui.draggable.js"}
+{literal}
+<script type="text/javascript">
+
+jQuery().ready(function(){ 
+  jQuery('.cluetip').cluetip({ 
+    width: 300,
+    splitTitle: '|'
+  });
+});
+
+</script>
+{/literal}
+<!--============== assign visible =======================-->	
+{assign var="affiche_cde" value="true"}
+{if $affiche_cde == "true"}
+  {assign var="visible" value="block"}
+{else}
+  {assign var="visible" value="none"}
+{/if}
+{if $check_auto_w == true} 
+     {assign var="visible_w" value="visible"}
+  {else}
+     {assign var="visible_w" value="hidden"}
+{/if}
+<div class="titrePage">
+		<h2>{'Autosize'|translate} {'version'|translate}{$version}</h2>
+</div>
+  <span>{'cl_conflit_Howto'|translate}</span>
+
+
+
+<!--============== !DIV ==={$IMG_WIDTH  }=={$IMG_HEIGHT  }======-->	
+<table >
+  <form action="" method="post" name="form_conflit" id="form_conflit"    >
+
+  <table id="table0" style=" background:none;border:outset;width:90%; z-index:-500 " >
+    <fieldset>
+  	<legend class="cluetip" title="{'cl_conflit_config_title_1'|@translate}|{'cl_conflit_hlp_line1'|@translate}">{'cl_conflit_config_title_1'|@translate}</legend>
+        <td>{'User status'|@translate}</td>
+        <td>{'cl_conflit_height'|@translate}</td>
+        <td style="visibility:visible">{'cl_conflit_width'|@translate}
+         <input type="checkbox" name="check_auto_w" value="on"  {$check_auto_w}  /></td>
+         <td style="visibility:visible">{'cl_conflit_enabled'|@translate}
+        </td>
+
+        <tr>
+        <td>{'user_status_webmaster'|@translate}</td>
+        <td><input name="webmaster_height" id="Text7" type="text"  value ="{$webmaster_height}" /></td>
+        <td style="visibility:{$visible_w}"><input name="webmaster_width" id="webmaster_width" type="text"  value ="{$webmaster_width}" /></td>
+         <td ><input name="webmaster_enabled" id="webmaster_enabled" type="checkbox"  value ="on" {$webmaster_enabled}  /></td>
+        </tr>
+        <tr>
+        <td>{'user_status_admin'|@translate}</td>
+        <td><input name="admin_height" id="admin_height" type="text"  value ="{$admin_height}" /></td>
+        <td style="visibility:{$visible_w}"><input name="admin_width" id="admin_width" type="text"  value ="{$admin_width}" /></td>
+          <td ><input name="admin_enabled" id="admin_enabled" type="checkbox"  value ="on" {$admin_enabled} /></td>
+        </tr>
+        <tr>
+        <td>{'user_status_generic'|@translate}</td>
+        <td><input name="generic_height" id="Text1" type="text"  value ="{$generic_height}" /></td>
+        <td style="visibility:{$visible_w}"><input name="generic_width" id="generic_width" type="text"  value ="{$generic_width}" /></td>
+        <td ><input name="generic_enabled" id="generic_enabled" type="checkbox"  value ="on" {$generic_enabled} /></td>
+        </tr>
+        <tr>
+        <td>{'user_status_guest'|@translate}</td>
+        <td><input name="guest_height" id="Text3" type="text"  value ="{$guest_height}" /></td>
+        <td style="visibility:{$visible_w}"><input name="guest_width" id="guest_width" type="text"  value ="{$guest_width}" /></td>
+         <td ><input name="guest_enabled" id="guest_enabled" type="checkbox"  value ="on" {$guest_enabled} /></td>
+        </tr>
+        <tr>
+        <td>{'user_status_normal'|@translate}</td>
+        <td><input name="normal_height" id="Text5" type="text"  value ="{$normal_height}" /></td>
+        <td style="visibility:{$visible_w}"><input name="normal_width" id="normal_width" type="text"  value ="{$normal_width}" /></td>
+         <td ><input name="normal_enabled" id="normal_enabled" type="checkbox"  value ="on" {$normal_enabled} /></td>
+        </tr>
+
+  </fieldset>
+
+  </table>
+
+<br />
+ <table id="table_d" style=" background:none;border:outset;width:90%; z-index:-500 " >
+   <fieldset>
+  	<legend class="cluetip" title="{'cl_conflit_config_title_2'|@translate}|{'cl_conflit_hlp_line2'|@translate}">{'cl_conflit_config_title_2'|@translate}</legend>
+ 
+    <!--======== Dimensions HL ===================-->	
+    <tr> 
+      <td class="cluetip" title="{'cl_conflit_miniheight'|@translate}|{'cl_conflit_hlp_line3'|@translate}" >{'cl_conflit_miniheight'|translate}</td>
+      <td ><input name="mini_height" id="mini_height" type="text"  value ="{$MINI_HEIGHT}" /> px 
+           </td> 
+	 
+     <td class="cluetip" title="{'cl_conflit_miniwidth'|translate}|{'cl_conflit_hlp_line3'|@translate}"  > {'cl_conflit_miniwidth'|translate}</td>
+   <td  >
+    <input name="mini_width"  id="mini_width" type="text" value =  "{$MINI_WIDTH}" /> px
+       </tr>
+   <!--======== Positions  ===================-->	
+<tr >
+ <td class="cluetip" title="{'cl_conflit_echelle_max'|translate}|{'cl_conflit_hlp_line4'|@translate}" > {'cl_conflit_echelle_max'|translate}</td>
+ <td  >
+ <input name="echelle_max" id="echelle_max"  type="text" value ="{$ECHELLE_MAX}" /> 
+ </td>
+ 
+</tr>
+
+<tr >  
+<td class="cluetip" title="{'cl_conflit_marge_basse'|translate}|{'cl_conflit_hlp_line5'|@translate}" > {'cl_conflit_marge_basse'|translate}</td>
+<td><input name="marge_basse" id="marge_basse"  type="text" value =  "{$MARGE_BASSE}" /> px</td>
+
+</tr>		  
+
+  <!--======================================================================================-->	
+     <tr >
+	 
+	 </tr>
+
+
+  </fieldset>
+ </table>
+ <!--=================== Bloc choix =============================-->	 
+ <table>
+  <tr><td style="visibility:visible">{'cl_conflit_icon_view'|@translate}
+         <input type="checkbox" name="check_icon_v" value="on"  {$check_icon_v}  />
+  </td>
+  <td>{'cl_conflit_desc_view'|@translate}
+         <input type="checkbox" name="check_desc_v" value="on"  {$check_desc_v}  />
+  </td>
+  <td>
+  </td>
+  
+  </tr>
+</table>
+ 
+  <table>
+  <td><input name="submit" type="submit" value="{'cl_conflit_save'|@translate}" /></td>
+</table> 
+</form>
+ 
+ </table >
+
+ 
Index: /extensions/cl_conflit/conflit.inc.php
===================================================================
--- /extensions/cl_conflit/conflit.inc.php	(revision 7880)
+++ /extensions/cl_conflit/conflit.inc.php	(revision 7880)
@@ -0,0 +1,128 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | Piwigo - a PHP based picture gallery                                  |
+// | cl_conflit                                                             |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2010      cljosse                                        |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+if (!defined('CONFLIT_PATH')) 
+define(
+  'CONFLIT_PATH',
+   PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'
+);
+
+class conflit_controler {
+//============================================================
+ /*
+  *  cl_conflit_script
+ */
+ static public function cl_conflit_script()
+	{
+	   global  $template,$user,$conf,$picture ,$page,$cl_version;
+	   	$my_path =  basename(dirname(__FILE__)).'/' ;
+	    $my_path = dirname(__FILE__).'/';
+		$template->set_filenames(array('cl_conflit_init'=>$my_path. "template/conflit.tpl" ) );	
+		$debug = isset($conf['debug']) ? $conf['debug'] : false ; 
+		$cl_conflit =  isset($conf['cl_conflit']) ? $conf['cl_conflit'] : 'true' ;			
+		$theme=$user['theme'];
+			 
+  		$template->assign(
+  						array( 'version' => $cl_version['version'] ,
+						'cl_conflit' => $cl_conflit  ,
+						'theme' => $theme  ,
+						'DEBUG' => $debug   ,
+						'CONFLIT_ROOT' => CONFLIT_PATH)
+						 );
+
+		if(	$page['body_id'] == 'theAdminPage' ) return ;
+		return $template->parse( 'cl_conflit_init', false);
+	}// function cl_autosize_script
+//=================================================================================
+/*
+ *
+*/
+ static public function cl_conflit_script_2()
+ {
+		global  $template,$user,$conf,$picture ,$page,$cl_version;
+	 
+			$my_path =  basename(dirname(__FILE__)).'/' ;
+			$my_path = dirname(__FILE__).'/';
+			$debug = isset($conf['debug']) ? $conf['debug'] : false ; 
+			$cl_conflit =  isset($conf['cl_conflit']) ? $conf['cl_conflit'] : 'true' ;
+			$theme=$user['theme'];
+
+			$template->assign(
+  					array('version' => $cl_version['version'] ,
+						'ma_page' =>	$page['body_id'],
+						'cl_conflit' => $cl_conflit  ,
+						'theme' => $theme  ,
+						'DEBUG' => $debug   ,
+						'CONFLIT_ROOT' => CONFLIT_PATH)
+						);
+						 
+		$autoscript="<script type='text/javascript'>
+	 
+	if (typeof (save_framework) == 'function')
+	save_framework('".$page['body_id']."');
+</script>";
+		$template->append('footer_elements',$autoscript);  
+		return ;
+
+
+ }// function cl_autosize_script_2
+
+ //=================================================================
+ /*
+ *  
+ */
+ static public function cl_conflit_script_3($content)
+ {
+	   global  $template,$user,$conf,$picture ,$page,$cl_version;
+	    
+			$my_path =  basename(dirname(__FILE__)).'/' ;
+			$my_path = dirname(__FILE__).'/';
+			$debug = isset($conf['debug']) ? $conf['debug'] : false ; 
+			$cl_conflit =  isset($conf['cl_conflit']) ? $conf['cl_conflit'] : 'true' ;
+			$theme=$user['theme'];
+
+$ThePicture = $template->get_template_vars('current');
+$tpl_name =   $user['theme'] ;
+if ( !empty($content) )   {  return $content;  }	
+if ($ThePicture['is_picture'] <> 1 )  	{  return $content;  ; }	
+
+	 $autosizejs = '<script type="text/javascript" charset="utf-8"  src="';
+	      $autocss =   $autosizejs.'themes/default/js/jquery.packed.js"></script>'."\n"; 
+		  $template->append('head_elements',$autocss);
+
+		$autocss="<script type='text/javascript'>
+    //   jQuery('#theImage').css({opacity:'0.0'});
+</script>";
+
+		$template->append('footer_elements',"\n".$autocss);
+		return $content ;
+
+
+ }// function cl_autosize_script_3
+
+
+} // class
+
+
+
+
+
+?>
Index: /extensions/cl_conflit/include/affiche.php
===================================================================
--- /extensions/cl_conflit/include/affiche.php	(revision 7880)
+++ /extensions/cl_conflit/include/affiche.php	(revision 7880)
@@ -0,0 +1,57 @@
+<?php  
+
+$visible=(isset($visible))?$visible:false;
+$img_width=isset($picture['current']['width'])?$picture['current']['width']:480;
+$img_height=isset($picture['current']['height'])?$picture['current']['height']:320;
+$version=isset($version)?$version:"";
+$theme=$user['theme'];
+$user_status = $user['status'] ;
+
+  	$template->assign(
+  					array(
+					'thumbnail' => $conf['prefix_thumbnail'],
+                    'visible' => $visible,
+                    'version' => $version,
+                    'CONFLIT_PATH' => CONFLIT_PATH,
+                    'theme' => $theme,
+					 'SCALED_WIDTH' => $picture['current']['scaled_width'],
+					 'SCALED_HEIGHT' => $picture['current']['scaled_height'],                    
+                    'IMG_WIDTH' 	=> $img_width,
+                    'IMG_HEIGHT'	=> $img_height,
+                    'MINI_HEIGHT' => $conflit_parametres->mini_height,
+                    'MINI_WIDTH' 	=> $conflit_parametres->mini_width,
+                    'MARGE_BASSE' => $conflit_parametres->marge_basse,
+                    'ECHELLE_MAX' => $conflit_parametres->echelle_max,
+
+                    'check_auto_w' => ($conflit_parametres->check_auto_w == 'on') ? 'checked="checked"'  : '' ,
+                    'check_icon_v' => ($conflit_parametres->check_icon_v == 'on') ? 'checked="checked"'  : '' ,
+                    'check_desc_v' => ($conflit_parametres->check_desc_v == 'on') ? 'checked="checked"'  : '' ,
+
+					'webmaster_width' => $conflit_parametres->webmaster_width,
+                    'webmaster_height' => $conflit_parametres->webmaster_height,
+					'webmaster_enabled' => ($conflit_parametres->webmaster_enabled == 'on') ? 'checked="checked"'  : '' ,
+
+                    'admin_width' => $conflit_parametres->admin_width,
+                    'admin_height' => $conflit_parametres->admin_height,
+					'admin_enabled' => ($conflit_parametres->admin_enabled == 'on') ? 'checked="checked"'  : '' ,
+
+                    'generic_width' => $conflit_parametres->generic_width,
+                    'generic_height' => $conflit_parametres->generic_height,
+					'generic_enabled' => ($conflit_parametres->generic_enabled == 'on') ? 'checked="checked"'  : '' ,
+
+                    'guest_width' => $conflit_parametres->guest_width,
+                    'guest_height' => $conflit_parametres->guest_height,
+					'guest_enabled' => ($conflit_parametres->guest_enabled == 'on') ? 'checked="checked"'  : '' ,
+				 
+                    'normal_width' => $conflit_parametres->normal_width,
+                    'normal_height' => $conflit_parametres->normal_height,
+					'normal_enabled' => ($conflit_parametres->normal_enabled == 'on') ? 'checked="checked"'  : '' ,
+
+					'user_status'   => get_user_status($user_status)  
+					
+				 )
+				);	
+
+			    
+ //unset($_POST);
+?>
Index: /extensions/cl_conflit/include/constants.php
===================================================================
--- /extensions/cl_conflit/include/constants.php	(revision 7880)
+++ /extensions/cl_conflit/include/constants.php	(revision 7880)
@@ -0,0 +1,7 @@
+<?php
+global $prefixeTable;
+if (!defined('CL_CONFLIT_TABLE')) define('CL_CONFLIT_TABLE', $prefixeTable.'cl_conflit');
+
+
+
+?>
Index: /extensions/cl_conflit/index.php
===================================================================
--- /extensions/cl_conflit/index.php	(revision 7880)
+++ /extensions/cl_conflit/index.php	(revision 7880)
@@ -0,0 +1,32 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | PhpWebGallery - a PHP based picture gallery                           |
+// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
+// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
+// +-----------------------------------------------------------------------+
+// | file          : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
+// | last update   : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
+// | last modifier : $Author: rub $
+// | revision      : $Revision: 1912 $
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: /extensions/cl_conflit/js/Affiche_script - Copie (2).js
===================================================================
--- /extensions/cl_conflit/js/Affiche_script - Copie (2).js	(revision 7880)
+++ /extensions/cl_conflit/js/Affiche_script - Copie (2).js	(revision 7880)
@@ -0,0 +1,1064 @@
+/*
+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: /extensions/cl_conflit/js/Affiche_script - Copie.js
===================================================================
--- /extensions/cl_conflit/js/Affiche_script - Copie.js	(revision 7880)
+++ /extensions/cl_conflit/js/Affiche_script - Copie.js	(revision 7880)
@@ -0,0 +1,1064 @@
+/*
+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: /extensions/cl_conflit/js/Affiche_script.js
===================================================================
--- /extensions/cl_conflit/js/Affiche_script.js	(revision 7880)
+++ /extensions/cl_conflit/js/Affiche_script.js	(revision 7880)
@@ -0,0 +1,1109 @@
+
+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();
+}
+
+jQuery(document).ready(
+
+      function (jQuery) {
+         
+
+          if (DEBUG == "false") {
+              jQuery("#Debug").hide();
+              jQuery("#Debug1").hide();
+              jQuery("#Debug2").hide();
+          }
+          var img_top = "0";
+
+          var old_h = 0;
+          var rapport = -1;
+          var old_w = 0;
+
+          var llgboframe = jQuery("#gbo div:first");
+          var marges_llgbo = 0;
+          if (llgboframe.length > 0) {
+              ll1 = jQuery(llgboframe).info();
+              ll2 = jQuery("#gbo div:last").info();
+              marges_llgbo = (ll1.width - ll2.width) + ll2.borderwidth.left + ll2.borderwidth.right;
+          }
+
+
+          //=========================================================
+
+          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_imageToolBar = jQuery("#imageToolBar").info();
+              if (info_imageToolBar.position == "absolute") {
+                  jQuery("#imageToolBar").css("position", "relative");
+                  jQuery("#imageToolBar").css("top", 0 + "px");
+              }
+              var info_theImage = jQuery("#theImage").info();
+
+              if (info_theImage.position == "relative") {
+                  //--- passage relative ==> static ===/
+                  jQuery("#theImage").css("position", "static");
+                  info_theImage = jQuery("#theImage").info();
+
+              }
+              if (info_theImage.position == "absolute") {
+                  //--- passage absolute ==> static ===/
+                  jQuery("#theImage").css("position", "static");
+                  info_theImage = jQuery("#theImage").info();
+
+              }
+ 
+              marge_top = Info_the_page.top +
+                                     Info_the_page.borderwidth.top +
+                                     info_theImage.borderwidth.top;
+
+              img_top = info_theImage.top + info_theImage.borderwidth.top;
+              return { marge_top: marge_top, img_top: img_top };
+
+          }
+
+          /* Récupère les informations sur la description.
+          *
+          */
+          function Info_description(Parent) {
+
+
+              //  jQuery("#" + Parent + " p:not(:contains(' ')) ").remove();
+
+
+
+              //=============================================================================
+              var info_description = { top: 0, bottom: 0, height: 0 };
+
+              if (theme.match(RegExp("simple", "gi"))) {
+                  jQuery("#" + Parent).css({ padding: "0px",
+                      marginLeft: "0px",
+                      marginRight: "auto",
+                      marginTop: "0px",
+                      marginBottom: "0px", position: "absolute", top: Bandeau + "px"
+                  });
+              } else {
+
+                  /*   jQuery("#" + Parent).css({ padding: "0px",
+                  marginLeft: "auto",
+                  marginRight: "auto",
+                  marginTop: "0px",
+                  marginBottom: "0px"
+                  });
+                  */
+
+              }
+
+
+              //   jQuery("#" + Parent + " p").css({ padding: "0px", margin: "0px "    });
+
+
+              if (theme.match(RegExp("luciano", "g"))) {
+                  info_img = jQuery("#" + Parent + " #theImg img").info();
+
+              } else {
+
+                  info_img = jQuery("#" + Parent + " img").info();
+              }
+
+              info_description.marge = { bottom: info_img.padding.bottom + info_img.margin.bottom + info_img.borderwidth.bottom,
+                  top: info_img.padding.top + info_img.borderwidth.top
+              }
+
+              info_description.top = info_img.bottom + info_img.margin.bottom + info_img.borderwidth.bottom;
+              //=============================================================================
+              info_gbo = jQuery("#gbo").info();
+              if (info_description.top < info_gbo.bottom)
+                  info_description.top = info_gbo.bottom;
+              //=============================================================================
+              info_desc = jQuery("#" + Parent + " p:first").info();
+              if (info_desc.bottom < info_img.bottom)
+                  info_desc.bottom = info_img.bottom;
+
+              //  if (info_desc.top > info_img.bottom)
+              //     info_description.top = info_desc.top;
+
+              if (jQuery("#Panorama").length) {
+                  Type_Img = "panorama";
+                  //  cl_visible = false;
+
+              }
+              info_table = jQuery(".infoTable").info();
+
+              if (info_table.top > info_description.bottom)
+                  info_description.bottom = info_table.top;
+              //===========================================================================
+
+              info_licencetag = jQuery(".licencetag").info();
+
+
+              if (info_licencetag.bottom > 0) {
+                  jQuery(".licencetag").css("border", "solid 5px transparent");
+                  if (info_licencetag.bottom > info_description.bottom) {
+                      info_description.bottom = info_licencetag.bottom;
+                  }
+                  else
+                      info_description.bottom += info_table.margin.top + info_table.padding.top;
+
+              }
+              //=============================================================================
+              if (theme.match(RegExp("gally", "gi"))) {
+                  if (!theme.match(RegExp("lapis", "gi"))) {
+                      info_description.bottom = info_description.bottom
+                  }
+              }
+
+
+
+
+
+              if (info_description.top < 1)
+                  info_description.top = info_description.bottom;
+
+
+              if (info_description.bottom < info_description.top) {
+                  info_description.bottom = info_description.top;
+
+                  info_desc = jQuery("#" + Parent + " p:last").info();
+
+                  if (info_desc.bottom > info_img.bottom)
+                      info_description.bottom = info_desc.bottom;
+              }
+
+
+              if (theme.match(RegExp("gally", "g"))) {
+                  if (!theme.match(RegExp("lapis", "gi"))) {
+                      info_copyright = jQuery("#copyright").info();
+                      info_description.bottom += info_copyright.height;
+                  }
+              }
+
+              if (theme.match(RegExp("luciano", "g"))) { info_description.bottom -= 30 }
+
+              info_description.height = info_description.bottom - info_description.top;
+
+
+              if (DEBUG == "true") {
+
+                  /*  jQuery("#Debug").text(jQuery("#Debug").text() + user_status);    
+        
+
+                  info_description.width = "800";
+                  */
+                  jQuery("#Debug").css('display', 'block');
+                  jQuery("#Debug1").show();
+                  jQuery("#Debug2").show();
+                  Bandeau_bas = info_description;
+
+                  jQuery("#Debug").css({
+                      filter: 'alpha(opacity:50)',
+                      position: "absolute",
+                      width: "800px",
+                      border: "solid 1px green",
+                      top: Bandeau + "px"
+                  });
+                  jQuery("#Debug").text("Debug:Bandeau : " + Bandeau);
+
+                  jQuery("#Debug1").css({
+                      filter: 'alpha(opacity:50)',
+                      position: "absolute",
+                      border: "solid 1px green",
+                      top: Bandeau_bas.top + "px",
+                      width: (200) + "px",
+                      height: Bandeau_bas.height + "px"
+                  });
+                  jQuery("#Debug1").text("Debug1:Bandeau_bas top : " + Bandeau_bas.top + " height:" + Bandeau_bas.height);
+
+                  jQuery("#Debug2").css({
+                      filter: 'alpha(opacity:50)',
+                      position: "absolute",
+                      left: '50px',
+                      width: (300) + "px",
+                      border: "solid 1px green", top: Bandeau_bas.bottom + "px"
+                  });
+                  jQuery("#Debug2").text("Debug2:Bandeau_bas bottom :" + Bandeau_bas.bottom);
+
+              }
+
+              if (check_desc_v != 'checked="checked"') {
+                  info_description.height = 0;
+              }
+
+              return info_description;
+
+          }
+
+          /*
+          *
+          */
+          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("#icon_gmaps").bind('click', function () {
+              jQuery().recentrage_widget();
+          })
+
+
+
+
+
+
+          /* 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 = 0;
+          var Bandeau_t = Info_entete("theImage")
+          Bandeau = Bandeau_t.img_top;
+          var Bandeau_bas = 0;
+          Bandeau_bas = Info_description("theImage");
+          //===================================================================	
+          /*
+          * window .resize
+          */
+          jQuery(window).resize(function (event, ui) {
+              if (typeof (event) == 'undefined') return;
+              if (!cl_visible == true) return;
+              if (eval(user_status + "_enabled") == "") return;
+              var chk = eval(user_status + "_enabled");
+
+
+
+              //==========================================================================
+              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; }
+              //===========================================================================
+
+
+              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("#theImage").find("img").length > 0) {
+                  Type_Img = "img";
+              } else if (jQuery("img").length > 0) {
+                  Type_Img = "img_autre";
+                  return;
+              } else {
+                  return;
+              }
+
+
+
+              var Cadre = jQuery("#theImage").get(0);
+              var info_Cadre = jQuery(Cadre).info();
+              //===============  Information cadre ======
+              var info_the_page = jQuery("#the_page").info();
+
+              //=============================================================================
+              var info_HeaderBar = jQuery("#imageHeaderBar").info();
+
+              var info_content = jQuery("#content").info();
+
+
+              var info_titrePage = jQuery("#titrePage").info();
+
+
+              var Zone_Affichage = jQuery("#theImage").info();
+
+              var info_ToolBar = jQuery("#imageToolBar").info();
+              var info_imageInfoBar = jQuery("#imageInfoBar").info();
+              var info_theHeader = jQuery("#theHeader").info();
+
+
+              var marge = 0;
+              if (info_ToolBar.width > 0)
+                  marge = (Zone_Affichage.width - info_ToolBar.width) / 2;
+
+              var marge_right = marge;
+              var marge_left = marge;
+
+              if (info_content.width > 100) {
+                  marge_left = 0;
+                  marge_right = info_imageInfoBar.margin.left + info_imageInfoBar.margin.right;
+                  winwidth = info_content.width;
+                  marge_right = info_imageInfoBar.width + marge_right;
+              }
+              else
+                  winwidth = Zone_Affichage.width;
+
+              winwidth -= (marge_right + marge_left);
+
+
+
+
+              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);
+                      img_reelle.height = info_image.height;
+                      img_reelle.width = winwidth - marge_right - marge_right;
+                      Bandeau_bas.height = 10;
+                      marge_right = 10;
+
+                      info_the_page = jQuery("#the_page").info();
+                      ;
+
+                      break
+
+
+                  case "panorama":
+                      // return;
+
+
+                      TheImg = Get_Img_Maxi("#Panorama img");
+                      info_theImage = jQuery(TheImg).info();
+                      info_the_page = jQuery("#the_page").info();
+
+                      break
+                  case "img":
+
+                      if (!TheImg) return;
+                      if (theme.match(RegExp("luciano", "g"))) {
+                          TheImg = jQuery("#the_page #theImg");
+                      }
+                      info_theImage = jQuery(TheImg).info();
+                      info_the_page = jQuery("#the_page").info();
+
+
+                      break
+                  case "img_autre":
+                      if (!TheImg) return;
+                      info_theImage = jQuery(TheImg).info();
+                      info_the_page = jQuery("#the_page").info();
+
+
+                      break
+                  case "embed":
+                      //
+
+                      TheImg = jQuery(Cadre).find("embed");
+
+                      info_theImage = jQuery(Cadre).info();
+                      info_the_page = jQuery("#the_page").info();
+                      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);
+                      info_theImage = jQuery(Cadre).info();
+                      info_the_page = jQuery("#the_page").info();
+                      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");
+
+                      info_theImage = jQuery("#pamoorama").info();
+                      info_the_page = jQuery("#the_page").info();
+                      break
+
+
+              }
+
+              //=============== Vérification taille minimale  autorizée ======================
+              var miniWidth = jQuery(TheImg).Get_Val_int(jQuery(TheImg).css("min-width"), mini_width);
+              miniHeight = jQuery(TheImg).Get_Val_int(jQuery(TheImg).css("min-height"), mini_height);
+
+
+              var maxWidth = jQuery(TheImg).Get_Val_int(jQuery(TheImg).css("max-width"), winwidth, "0");
+              maxHeight = jQuery(TheImg).Get_Val_int(jQuery(TheImg).css("max-height"), winheight, "0");
+
+              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 = Zone_Affichage.borderwidth.left;
+              borderW += Zone_Affichage.borderwidth.right;
+
+
+              Zone_Affichage.width = winwidth - borderW;
+
+
+
+              var Licence = jQuery(".licencetag");
+              info_Licence = jQuery(".licencetag").info();
+
+              jQuery("#theImage #theImg IMG").css("marginTop", "0px")
+              //========== Correction en fonction du thème =============================
+              var correction = 0;
+              if (theme.match(RegExp("sobre", "g"))) {
+
+                  correction = -info_Licence.padding.top;
+
+              } else if (theme.match(RegExp("Pure", "g"))) {
+                  correction += 0; //??
+              } else if (theme.match(RegExp("luciano", "g"))) {
+                  correction = 0; //??
+
+              } else if (theme.match(RegExp("simple", "g"))) {
+                  correction += 0; //??
+              } else if (theme.match(RegExp("gally", "g"))) {
+                  correction += 0; //??
+
+              }
+              //================ Licence  ========================
+
+              if (Licence.length > 0) {
+                  jQuery(".licencetag").css("padding", "0px");
+
+              }
+              //====================================================
+              info_img = jQuery(TheImg).info();
+
+
+
+              img_top = Bandeau;
+
+              Marge_Basse = parseInt(marge_basse || 0); // hors bandeau
+              //==========================================================================
+              h = 0;
+              Zone_Affichage.height = winheight - Bandeau - Marge_Basse - correction;
+              var Image_height = Zone_Affichage.height - Bandeau_bas.height - Bandeau_bas.marge.top - Bandeau_bas.marge.bottom;
+
+              //=============================================================
+              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;
+              } else {
+                  Image_width = Zone_Affichage.width;
+              }
+
+              //===============================================================
+              align_auto = "center";
+              if (jQuery("#theImg").css("textAlign"))
+                  align_auto = jQuery("#theImg").css("textAlign");
+              var widthmin = winwidth;
+
+              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 = widthmin * parseInt(width_user) / 100;
+                  else
+                      widthmin = parseInt(width_user);
+                  var marges = marges_llgbo;
+                  widthmin -= info_img.borderwidth.left;
+                  widthmin -= info_img.borderwidth.right;
+
+                  widthmin -= marges;
+                  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);
+                  }
+
+
+
+              }
+
+
+              // }
+              //===================================================
+
+
+
+              zoom = echelle;
+              //=============LLGBO2 ===========================
+
+
+              if (marges_llgbo > 0) {
+
+                  t1 = jQuery(llgboframe).info();
+                  if (!TheImg.src) {
+                      TheImg = jQuery(TheImg).find("img").get(0)
+                  }
+                  if (TheImg.src) {
+
+                      Image_width -= marges_llgbo; // réduction frame
+                      Image_height -= marges_llgbo; // réduction frame
+                      if (rapport > 1) {
+                          if (Image_width > winwidth) {
+                              jQuery("#gbo").outerWidth(winwidth);
+                              jQuery("#gbo").css("width", winwidth + "px");
+                          }
+                          else {
+                              jQuery("#gbo").outerWidth(Image_width);
+                              jQuery("#gbo").css("width", Image_width + "px");
+                          }
+
+                          t1 = jQuery("#gbo div:last").info();
+
+                          Image_width = t1.width - (t1.borderwidth.left + t1.borderwidth.right);
+                          Image_height = parseInt(Image_width / rapport);
+
+                          jQuery("#gbo").outerHeight(Image_height + marges_llgbo);
+                          jQuery("#gbo").css("height", (Image_height + marges_llgbo) + "px");
+                          if (jQuery.browser.msie) {
+                              jQuery("#gbo").css("paddingBottom", 17 + "px");
+                          }
+
+                      } else {
+                          Image_height -= 4;
+                          Image_width -= 4;
+                          if (Image_width > winwidth) {
+                              jQuery("#gbo").outerWidth(winwidth);
+                              jQuery("#gbo").css("width", winwidth + "px");
+                          }
+                          else {
+                              jQuery("#gbo").outerWidth(Image_width);
+                              jQuery("#gbo").css("width", Image_width + "px");
+                          }
+
+                          jQuery("#gbo").css("height", (Image_height + marges_llgbo) + "px");
+                          jQuery("#gbo").height(Image_height + marges_llgbo);
+
+                          jQuery("#gbo").css("width", Image_width + marges_llgbo + "px");
+                          jQuery("#gbo").width(Image_width + marges_llgbo);
+
+
+
+                          if (jQuery.browser.msie) {
+                              jQuery("#gbo").css("paddingBottom", 17 + "px");
+                          }
+
+                      }
+                      //  jQuery("#" + Parent + " p:not(:contains(' ')) ").remove();
+                      a0 = jQuery("area[rel!=up][rel!=prev][rel!=next]");
+                      a1 = jQuery("area[rel=prev]");
+                      a2 = jQuery("area[rel=next]");
+                      a3 = jQuery("area[rel=up]");
+                      nb_zone = 3;
+                      if (a1.length == 0) {
+                          nb_zone -= 1;
+                      }
+                      if (a2.length == 0) {
+                          nb_zone -= 1;
+                      }
+
+
+                      var Largeur_zone = (Image_width / nb_zone);
+                      var Hauteur_zone = (Image_height);
+                      var init_zone = 0;
+
+                      if (a1.length > 0) {
+                          coord = { x0: init_zone, y0: 0, x1: Largeur_zone, y1: Hauteur_zone };
+
+                          jQuery("area[rel=prev]").attr({ coords: "'" + coord.x0 + "," + coord.y0 + "," + coord.x1 + "," + coord.y1 + "'" });
+                          init_zone += Largeur_zone;
+                      }
+
+                      coord = { x0: init_zone, y0: 0, x1: init_zone + Largeur_zone, y1: Image_height };
+
+                      if (a0.length > 0) {
+                          jQuery("area[rel=up]").attr({ coords: "'" + coord.x0 + "," + coord.y0 + "," + coord.x1 + "," + (coord.y1 / 2) + "'" });
+                          jQuery(a0).attr({ coords: "'" + coord.x0 + "," + (coord.y1 / 2) + "," + coord.x1 + "," + (coord.y1) + "'" });
+                      } else {
+                          jQuery("area[rel=up]").attr({ coords: "'" + coord.x0 + "," + coord.y0 + "," + coord.x1 + "," + (coord.y1) + "'" });
+                      }
+                      init_zone += Largeur_zone;
+
+                      if (a2.length > 0) {
+                          coord = { x0: init_zone, y0: 0, x1: init_zone + Largeur_zone, y1: Image_height };
+                          jQuery("area[rel=next]").attr({ coords: "'" + coord.x0 + "," + coord.y0 + "," + coord.x1 + "," + coord.y1 + "'" });
+                      }
+
+
+
+
+
+                      /*
+                      jQuery("area[rel=prev]").attr({ coords: "'" + 0 + ",0," + (Image_width) / nb_zone + "," + Image_height + "'" });
+                      jQuery("area[rel=up]").attr({ coords: "'" + Image_width * (nb_zone - 1) / (nb_zone + 1) + ",0," + (Image_width * (nb_zone - 1)) / (nb_zone + 1) + "," + Image_height + "'" });
+                      jQuery("area[rel=next]").attr({ coords: "'" + (Image_width * (nb_zone - 1)) / (nb_zone + 1) + ",0," + (Image_width * (nb_zone + 1)) / (nb_zone + 1) + "," + Image_height + "'" });
+                      */
+
+                  }
+              }
+
+              //================ Zone affichage =========================
+              //  Image_height, Image_width = valeur a atteindre.
+              if (theme.match(RegExp("luciano", "g"))) {
+                  //---- information en dehors du cadre 
+                  Zone_Affichage.height -= Bandeau_bas.height;
+                  jQuery(Cadre).height(Zone_Affichage.height);
+
+              }
+
+              //=========================================================
+
+              //  jQuery(Cadre).css("top", "0px");
+              jQuery("#standard").css("top", 0 + "px");
+              jQuery("#comments").css("top", 0 + "px");
+
+
+              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").info();
+                  /**/
+                  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");
+
+              }
+
+              /*
+              jQuery("#Debug1").css({
+              position: "absolute",
+              top: Bandeau + "px",
+              textAlign: align_auto,
+              margin: "0px auto",
+
+
+              border: "solid 1px red",
+
+              width: Image_width + "px",
+              height: Image_height + "px"
+
+              });
+              //===================================================
+              jQuery("#Debug2").css({ position: "absolute",
+              left: Zone_Affichage.left + 'px',
+              border: "solid 1px green",
+              top: Zone_Affichage.top + "px",
+              width: Zone_Affichage.width / 2 + "px",
+              height: Zone_Affichage.height + "px"
+
+              });
+              jQuery("#Debug2").text(info_Cadre.bottom);
+              */
+
+              try {
+                  if (theme.match(RegExp("gally", "g"))) {
+
+                      //===========================================================================
+
+                      if (jQuery("#navThumbPrev").length > 0) {
+                          jQuery("#navThumbPrev").css({ height: info_img.height + "px",
+                              top: info_img.top
+                          });
+                      }
+                      if (jQuery("#navThumbNext").length > 0) {
+                          jQuery("#navThumbNext").css({ height: info_img.height + "px",
+                              top: info_img.top
+                          });
+                      }
+                      if (!theme.match(RegExp("lapis", "gi"))) { }
+                  } else if (theme.match(RegExp("simple", "g"))) {
+
+                  } else {
+
+                      //    jQuery("#imageToolBar").css("position", "static");
+                  }
+              } catch (e) {
+
+              }
+              //  
+              if (!pos) pos = jQuery("#copyright").info();
+              if (pos != jQuery("#copyright").info())
+                  pos = jQuery("#copyright").info();
+              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();
+          /*
+          * 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;
+          }
+
+
+      } // 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: /extensions/cl_conflit/js/conflit.js
===================================================================
--- /extensions/cl_conflit/js/conflit.js	(revision 7880)
+++ /extensions/cl_conflit/js/conflit.js	(revision 7880)
@@ -0,0 +1,557 @@
+﻿//==== autosize  remplace $(... avec jQuery( ====
+/*
+*[gmaps=id:1;width:800;height:640;]
+*       Luciano rv_gmaps
+* pb : Gmaps llgbo pamooramics rv_map 
+*/
+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");
+            })
+            //=============================================================  
+            if (typeof(Parent)=="undefined")
+                Parent = "#theImage";
+
+            info_image = jQuery(Parent).infos();
+            if (info_image.height==0) {
+                Parent = "#theImageBox";
+            }
+
+
+            p0 = jQuery(Parent);
+
+            if (p0.length > 0) {
+             
+  
+                //======================================================
+                if (theme.match("gally", "gi"))
+                    if (jQuery.isFunction(inittoolbar)) {
+                        if (typeof (currentTab) == "undefined") inittoolbar();
+                        else initializeImageMode("resize");
+                    };
+
+                    if (info_image.position != "static") {
+                    //==== compatibilité Gally/LLGBO ===
+                    //--- passage relative ==> static ===/
+                    jQuery(Parent).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 ($fn) != "function") {
+    $.fn = function (options) {
+        return jQuery.fn(options);
+    }
+
+
+}
+if (typeof ($.get) != "function") {
+    $.get = function (options) {
+        return jQuery.get(options);
+    }
+
+
+}
+$_ = $;
+function save_framework(page) {
+    Conflit = { version: Version };
+    $_ = $;
+    return
+
+}
+
Index: /extensions/cl_conflit/js/conflit.js.bak
===================================================================
--- /extensions/cl_conflit/js/conflit.js.bak	(revision 7880)
+++ /extensions/cl_conflit/js/conflit.js.bak	(revision 7880)
@@ -0,0 +1,540 @@
+﻿//==== 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: /extensions/cl_conflit/js/infos.txt
===================================================================
--- /extensions/cl_conflit/js/infos.txt	(revision 7880)
+++ /extensions/cl_conflit/js/infos.txt	(revision 7880)
@@ -0,0 +1,49 @@
+              /* Squelette 
+              //montblanc info_theImage.top  121
+              //          imageToolBar.margin top:10 padding bottom:10
+              //<body> thePicturePage
+              //  <div> the_page
+              //    <div> theHeader
+              //    <div> imageHeaderBar
+              //    <div> imageToolBar
+              //    <div> theImage
+              //     <img> ??
+              //     <p>
+              //       <br>
+              //       <p>
+              //     <span class="licencetag" style="text-align: left;">
+              //
+              // image top gallycuise :154
+              // 
+              //<body> thePicturePage
+              //  <div> the_page
+              //    <div> theHeader
+              //    <div> theHeaderAlt
+              //     <div> content
+              //             theImageHigh
+              //       <div> imageHeaderBar
+              //       <div> imageToolBar
+              //       <div> theImage
+              //                   theImgContainer
+              //                     <img> ??
+              //        <p>
+              //        <br>
+              //         <p>
+              //         <span class="licencetag" style="text-align: left;">
+              //        theTabsContainer
+              //      copyright
+
+              //<body> thePicturePage
+              //  <div> the_page
+              //     <span id="gboh2" >
+              //     <div id="gbo" style="width: 770px; height: 596px;">
+              //        <div id="llgboframe31" >
+              //        ----------><div id="llgboframe1" >
+              //                     <img />
+              //        <p>
+              //        <br>
+              //         <p>
+              //         <span class="licencetag" style="text-align: left;">
+              //      
+              //     <div id="comments" style="top: 0px;">
+              //     <div id="copyright">
Index: /extensions/cl_conflit/js/jquery.dimensions.js
===================================================================
--- /extensions/cl_conflit/js/jquery.dimensions.js	(revision 7880)
+++ /extensions/cl_conflit/js/jquery.dimensions.js	(revision 7880)
@@ -0,0 +1,300 @@
+/* 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 $
+*
+* $LastChangedDate: 2010-10-23 08:43:48 -0600 (Thu, 20 Dec 2007) $
+* By cljosse
+* 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({
+
+        infos: function () {
+            var width = 0, height = 0;
+            var elem = jQuery(this).get(0);
+
+
+            var Left = 0, Top = 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
+            };
+            //=====================================================================
+            myposition = "";
+            results = {
+                position: "",
+                top: 0,
+                left: 0,
+                width: 0,
+                height: 0,
+                right: 0,
+                bottom: 0,
+                borderwidth: borderwidth,
+                padding: padding,
+                margin: margin, id: "", nodeName: ""
+            };
+            ;
+            if (elem) {
+                id = ""; nodeName = "";
+                if (elem.id) id = elem.id;
+                if (elem.nodeName) nodeName = elem.nodeName;
+
+
+                if (elem == window) {
+
+                    myposition = jQuery(this).attr("position") || "";
+                    width = jQuery(elem).width();
+                    height = jQuery(elem).height();
+                } else {
+                    myposition = jQuery(this).css("position") || "";
+                    width = jQuery(elem).outerWidth();
+                    height = jQuery(elem).outerHeight();
+
+
+                    borderwidth.left = jQuery(elem).Get_Val_int(jQuery(elem).css("borderLeftWidth"));
+                    borderwidth.right = jQuery(elem).Get_Val_int(jQuery(elem).css("borderRightWidth"));
+                    borderwidth.top = jQuery(elem).Get_Val_int(jQuery(elem).css("borderTopWidth"));
+                    borderwidth.bottom = jQuery(elem).Get_Val_int(jQuery(elem).css("borderBottomWidth"));
+                    try {
+                        borderwidth.width = jQuery(elem).Get_Val_int(jQuery(elem).css("borderWidth"));
+                    } catch (e) {
+                        borderwidth.width = '"' + borderwidth.left + ' ' + borderwidth.top + ' ' + borderwidth.right + ' ' + borderwidth.bottom + '"';
+                    }
+
+
+                    margin.left = jQuery(elem).Get_Val_int(jQuery(elem).css("marginLeft"));
+                    margin.right = jQuery(elem).Get_Val_int(jQuery(elem).css("marginRight"));
+                    margin.top = jQuery(elem).Get_Val_int(jQuery(elem).css("marginTop"));
+                    margin.bottom = jQuery(elem).Get_Val_int(jQuery(elem).css("marginBottom"));
+                    try {
+                        margin.margin = jQuery(elem).Get_Val_int(jQuery(elem).css("margin"));
+                    } catch (e) {
+                        margin.margin = '"' + margin.left + ' ' + margin.top + ' ' + margin.right + ' ' + margin.bottom + '"';
+                    }
+
+                    padding.left = jQuery(elem).Get_Val_int(jQuery(elem).css("paddingLeft"));
+                    padding.right = jQuery(elem).Get_Val_int(jQuery(elem).css("paddingRight"));
+                    padding.top = jQuery(elem).Get_Val_int(jQuery(elem).css("paddingTop"));
+                    padding.bottom = jQuery(elem).Get_Val_int(jQuery(elem).css("paddingBottom"));
+                    try { padding.padding = jQuery(elem).Get_Val_int(jQuery(elem).css("padding")); } catch (e) {
+                        padding.padding = '"' + padding.left + ' ' + padding.top + ' ' + padding.right + ' ' + padding.bottom + '"';
+                    }
+                }
+                if (elem == window) {
+                    Position = { Top: 0, Left: 0 };
+                } else {
+                    Position = jQuery(elem).position();
+                }
+                Left = Position.left;
+                Top = Position.top;
+
+                results = {
+                    position: myposition,
+                    top: Top,
+                    left: Left,
+                    width: width,
+                    height: height,
+                    right: Left + width,
+                    bottom: Top + height,
+                    borderwidth: borderwidth,
+                    margin: margin,
+                    padding: padding,
+                    id: id,
+                    nodeName: nodeName
+                };
+
+                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 (elem == window) {
+                        parentOffset = { top: 0, left: 0 };
+                    } else if (typeof (offsetParent.offset) != "undefined")
+                        parentOffset = offsetParent.offset();
+                    else
+                        parentOffset = { top: 0, left: 0 };
+
+                    if (!offset)
+                        offset = { 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: Math.ceil(offset.top - parentOffset.top), left: Math.ceil(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);
+        },
+        /*
+        * Get_val_int
+        * params: element,valeur maxi
+        * return: valeur entiere
+        */
+
+        Get_Val_int: function (myObj, Maxi_val, Mini_val) {
+            var val = 0;
+
+            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;
+                var reg1 = new RegExp("px", "g")
+                if (myObj.match(reg1)) {
+
+                    myObj = parseInt(myObj);
+
+                }
+                else {
+                    reg1 = new RegExp("%", "g")
+                    if (myObj.match(reg1)) {
+                        val = Math.ceil(myObj * Maxi_val / 100);
+                        return val;
+                    }
+                }
+
+                if (Mini_val)
+                    if (myObj < 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;
+                }
+
+
+
+                val = parseInt(myObj);
+
+            } else {
+                val = parseInt(myObj);
+            }
+            if (typeof (val) == "NaN") return Maxi_val;
+            return val;
+        }
+    });
+    /*
+    *
+    */
+    function num(el, prop) {
+        return parseInt(jQuery.curCSS(el.jquery ? el[0] : el, prop, true)) || 0;
+    };
+
+
+
+})(jQuery);
Index: /extensions/cl_conflit/js/jquery.dimensions.min.js
===================================================================
--- /extensions/cl_conflit/js/jquery.dimensions.min.js	(revision 7880)
+++ /extensions/cl_conflit/js/jquery.dimensions.min.js	(revision 7880)
@@ -0,0 +1,194 @@
+/* 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);
Index: /extensions/cl_conflit/language/fr_FR/description.txt
===================================================================
--- /extensions/cl_conflit/language/fr_FR/description.txt	(revision 7880)
+++ /extensions/cl_conflit/language/fr_FR/description.txt	(revision 7880)
@@ -0,0 +1,1 @@
+﻿Gére les conflits entre mootools,jQuery,pamooramics...
Index: /extensions/cl_conflit/language/fr_FR/lang.php
===================================================================
--- /extensions/cl_conflit/language/fr_FR/lang.php	(revision 7880)
+++ /extensions/cl_conflit/language/fr_FR/lang.php	(revision 7880)
@@ -0,0 +1,4 @@
+<?php
+global $lang;
+
+?>
Index: /extensions/cl_conflit/main.inc.php
===================================================================
--- /extensions/cl_conflit/main.inc.php	(revision 7880)
+++ /extensions/cl_conflit/main.inc.php	(revision 7880)
@@ -0,0 +1,66 @@
+<?php
+/*
+Plugin Name: cl_conflit
+Version: 1.0.0
+Description: gere les conflits
+Plugin URI: http://piwigo.org/ext/extension_view.php?
+Author: cljosse
+Author URI:http://cljosse.free.fr
+*/
+/*| Ajoute l' option validation de l'autotaille en fonction du statut */
+if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
+if (!defined('CONFLIT_PATH')) 
+define(  'CONFLIT_PATH',   PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/' );
+
+include_once(CONFLIT_PATH.'conflit.inc.php');
+global $cl_version,$cl_plugin ;
+//===================================================================
+	$path = CONFLIT_PATH; 
+          $plg_data = implode( '', file($path.'main.inc.php') );
+          if ( preg_match("|Plugin Name: (.*)|", $plg_data, $val) )
+          {
+            $plugin['name'] = trim( $val[1] );
+          }
+          if (preg_match("|Version: (.*)|", $plg_data, $val))
+          {
+            $plugin['version'] = trim($val[1]);
+          }
+          if ( preg_match("|Plugin URI: (.*)|", $plg_data, $val) )
+          {
+            $plugin['uri'] = trim($val[1]);
+          }
+          if ($desc = load_language('description.txt', $path.'/', array('return' => true)))
+          {
+            $plugin['description'] = trim($desc);
+          }
+          elseif ( preg_match("|Description: (.*)|", $plg_data, $val) )
+          {
+            $plugin['description'] = trim($val[1]);
+          }
+          if ( preg_match("|Author: (.*)|", $plg_data, $val) )
+          {
+            $plugin['author'] = trim($val[1]);
+          }
+          if ( preg_match("|Author URI: (.*)|", $plg_data, $val) )
+          {
+            $plugin['author uri'] = trim($val[1]);
+          }
+          if (!empty($plugin['uri']) and strpos($plugin['uri'] , 'extension_view.php?eid='))
+          {
+            list( , $extension) = explode('extension_view.php?eid=', $plugin['uri']);
+            if (is_numeric($extension)) $plugin['extension'] = $extension;
+          }
+          // IMPORTANT SECURITY !
+          $plugin = array_map('htmlspecialchars', $plugin);
+		  $cl_version = $plugin;
+//============================================================================		
+
+
+$conflit_controler = new conflit_controler();
+
+add_event_handler('loc_after_page_header', array(&$conflit_controler, 'cl_conflit_script'),  EVENT_HANDLER_PRIORITY_NEUTRAL+20 ,  2);
+add_event_handler('loc_end_page_tail',array(&$conflit_controler, 'cl_conflit_script_2'),  EVENT_HANDLER_PRIORITY_NEUTRAL );
+add_event_handler('render_element_content',array(&$conflit_controler, 'cl_conflit_script_3'),  EVENT_HANDLER_PRIORITY_NEUTRAL-1,  2  );
+ 
+
+?>
Index: /extensions/cl_conflit/maintain.inc.php
===================================================================
--- /extensions/cl_conflit/maintain.inc.php	(revision 7880)
+++ /extensions/cl_conflit/maintain.inc.php	(revision 7880)
@@ -0,0 +1,63 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | Piwigo - a PHP based picture gallery                                  |
+// +-----------------------------------------------------------------------+
+// | Copyright(C) 2008-2009 Piwigo Team                  http://piwigo.org |
+// | Copyright(C) 2003-2008 PhpWebGallery Team    http://phpwebgallery.net |
+// | Copyright(C) 2002-2003 Pierrick LE GALL   http://le-gall.net/pierrick |
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+ if (!defined('CONFLIT_PATH')) 
+define(
+  'CONFLIT_PATH', PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'
+);
+ 
+function plugin_install()
+{
+ global $conf;
+
+  if (!isset($conf['cl_conflit']))
+  {
+    
+  $q = '
+    INSERT INTO '.CONFIG_TABLE.' (param, value, comment)
+    VALUES ("cl_conflit","","Parametres du plugin Autosize")
+  ;';
+  pwg_query($q);
+  }
+ 
+ 
+}
+
+
+
+function plugin_uninstall()
+{
+  global $conf;
+  if (isset($conf['cl_conflit']))
+  {
+    $q = '
+      DELETE FROM '.CONFIG_TABLE.'
+      WHERE param="cl_conflit"
+    ;';
+    pwg_query($q);
+    }
+	 $query = 'DROP TABLE IF EXISTS  '.CL_CONFLIT_TABLE.';';
+    pwg_query( $query);
+ }
+
+?>
Index: /extensions/cl_conflit/pem_metadata.txt
===================================================================
--- /extensions/cl_conflit/pem_metadata.txt	(revision 7880)
+++ /extensions/cl_conflit/pem_metadata.txt	(revision 7880)
@@ -0,0 +1,4 @@
+File automatically created from SVN repository.
+
+URL: http://piwigo.org/svn/extensions/Autosize 
+Revision: 7458
Index: /extensions/cl_conflit/template/autosize.tpl
===================================================================
--- /extensions/cl_conflit/template/autosize.tpl	(revision 7880)
+++ /extensions/cl_conflit/template/autosize.tpl	(revision 7880)
@@ -0,0 +1,71 @@
+ {* $Id: conflit/template/picture.tpl  *}
+   
+ {html_head} 
+<!-- conflit/template/picture.tpl  --> 
+    {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js" now=1} 
+    {known_script id="conflit_script" src=$CONFLIT_PATH|@cat:"js/conflit.js"}
+    {known_script id="dimensions" src=$CONFLIT_PATH|@cat:"js/jquery.dimensions.js"}
+
+{*jQuery is always available by default*} 
+
+ <script type="text/javascript">  
+    var cl_visible = "{$cl_visible}" =="true";
+    var DEBUG = '{$DEBUG}';
+    var thumbnail = '{$thumbnail}';
+    var theme = '{$theme}';
+    var visible = '{$visible}';
+    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 }';
+
+    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 webmaster_enabled = '{ $webmaster_enabled   }';
+
+    var admin_width='{ $admin_width   }';
+    var admin_height = '{ $admin_height   }';
+    var admin_enabled = '{ $admin_enabled   }';
+
+    var generic_width='{ $generic_width   }';
+    var generic_height = '{ $generic_height   }';
+    var generic_enabled = '{ $generic_enabled   }';
+
+    var guest_width='{ $guest_width   }';
+    var guest_height = '{$guest_height}';
+    var guest_enabled = '{ $guest_enabled   }';
+
+    var normal_width='{$normal_width}';
+    var normal_height = '{$normal_height}';
+    var normal_enabled = '{ $normal_enabled   }';
+
+    var user_status='{$user_status}';
+   
+    var check_auto_w = '{$check_auto_w}';
+    var check_desc_v = '{$check_desc_v}';
+     </script>
+
+{known_script id="Affiche_script" src=$CONFLIT_PATH|@cat:"js/Affiche_script.js"}
+
+ <!--  << conflit/template/picture.tpl   --> 
+{/html_head}  
+
+
+{if $DEBUG == "true"}
+  {assign var="visible" value="block"}
+
+
+ 
+<!---  conflit/template/picture.tpl  body --->
+  <div id="Debug"  align=center style="color:black;z-index:2000;position:absolute; background-color:Beige; top:0px;left:0px;width:800px;margin:auto;"></div>
+   <div id="Debug1"  align=center style="color:black;z-index:2000;position:absolute; background-color:Beige; top:0px;left:0px;width:800px;margin:auto;"></div>
+  <div id="Debug2"  align=center style="color:black;z-index:2000;position:absolute; background-color:Beige; top:0px;left:0px;width:800px;margin:auto;"></div>
+ {else}
+  {assign var="visible" value="none"} {/if}<!--  << conflit/template/picture.tpl body  -->
Index: /extensions/cl_conflit/template/conflit.tpl
===================================================================
--- /extensions/cl_conflit/template/conflit.tpl	(revision 7880)
+++ /extensions/cl_conflit/template/conflit.tpl	(revision 7880)
@@ -0,0 +1,11 @@
+{html_head} 
+<!--- Autosize/template/confilt.tpl (before) ---> 
+{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js" } 
+{known_script id="conflit_script" src=$CONFLIT_ROOT|@cat:"js/conflit.js"}
+    {known_script id="dimensions" src=$CONFLIT_ROOT|@cat:"js/jquery.dimensions.js"}
+<!---FIN Autosize/template/confilt.tpl (before) --->	{/html_head}   
+<script type="text/javascript">
+    var DEBUG = '{$DEBUG}';
+    var theme = '{$theme}';
+    var Version =  '{$version}' ;
+</script>
Index: /extensions/cl_conflit/template/picture.tpl
===================================================================
--- /extensions/cl_conflit/template/picture.tpl	(revision 7880)
+++ /extensions/cl_conflit/template/picture.tpl	(revision 7880)
@@ -0,0 +1,24 @@
+ <style type="text/css">
+         #bp_cla {ldelim}
+  cursor:pointer;
+}
+navThumb{ldelim}
+    height:auto
+}
+body{ldelim} overflow:visible; overflow-x:visible; overflow-y:visible
+}
+     </style>
+ <a onclick = "Toggle_bp()"  id="bp_cla" 
+    title="{'cl_conflit_info_2'|@translate}"
+    alt="{'cl_conflit_info_2'|@translate}" />
+    <img class="button" id="bp_img_cla" alt="{'cl_conflit_info_2'|@translate}"  src="{$cl_conflit_button.ICON}"  complete="complete"/>
+  </a>
+
+ <script language=javascript type="text/javascript">
+ var src1="{$cl_conflit_button.ICON}";
+ var src2="{$cl_conflit_button.ICON2}";
+ var src3="{'cl_conflit_info_2'|@translate}";
+ var src4 = "{'cl_conflit_info'|@translate}";
+
+ </script>
+ 
