 {* $Id: autosize/template/autosize.tpl  *}
{html_head} <!-- autosize/template/autosize.tpl  -->
 <script type="text/javascript"> 
var  Autosize_options={ldelim}
        ideal_size_width:'{$ideal_size_width}' ,
        ideal_size_height:'{$ideal_size_height}' ,

        cl_version :'{$cl_version}',
        Version_pwg:'{$Version_pwg}',
        COOKIE_PATH:'{$COOKIE_PATH}',
        has_pamoorama: '{$has_pamoorama}',
        slideshow: '{$slide_show}',

        pictureSelType:'{$pictureSelType}',       
        pictureDeriv :'{$pictureDeriv}' ,
        imgSrc : '{$SRC_IMG}',

        liste_type:new Array()   , 
        DEBUG_autosize:'{$DEBUG_autosize}',
        theme:'{$theme}',
        
        fade_in : '{$fade_in}',
        cl_visible : "{$cl_visible}" =="true",
        thumbnail : '{$thumbnail}',

     scaled_width :  '{$SCALED_WIDTH}', // valeur par defaut
     scaled_height : '{$SCALED_HEIGHT}', // valeur par defaut
      ratio:'{$ratio }' ,
     theMainImageWidth:'{$theImageWidth }',
     theMainImageHeight : '{ $theImageHeight }',

     windowWidth:'{$windowWidth }',            
     windowHeight : '{ $windowHeight}',

     marge_basse:'{ $MARGE_BASSE }',
     echelle_max:'{ $ECHELLE_MAX }',
     mini_width:'{ $MINI_WIDTH   }',
     mini_height : '{ $MINI_HEIGHT   }',
     mini_width2 : '{ $MINI_WIDTH2 }',
     mini_height2 : '{ $MINI_HEIGHT2 }',

     webmaster_type:'{$webmaster_type.SELECTED  }',
     webmaster_enabled : '{ $webmaster_enabled   }',

     admin_type : '{ $admin_type.SELECTED    }',
     admin_enabled : '{ $admin_enabled   }',

     generic_type:'{ $generic_type.SELECTED    }',
     generic_enabled : '{ $generic_enabled   }',

     guest_type:'{ $guest_type.SELECTED    }',
     guest_enabled : '{ $guest_enabled   }',

     normal_type:'{$normal_type.SELECTED }',
     normal_enabled : '{ $normal_enabled   }',

     user_status:'{$user_status}',   
     check_auto_w : '{$check_auto_w}',     
     check_desc_v :  '{$check_desc_v}' ,
     defaut_type:  '{$defaut_type}' ,
     Size : new Array() 
    } ;
      
       
     {if not empty($liste_type)}   
            {foreach from=$liste_type item=cl_size key=value}           
         Autosize_options.liste_type.push('{$cl_size}'  )       
        {/foreach}
     {/if}
    

     {if not empty($Size )}   
            {foreach from=$Size item=cl_size key=value}
         Autosize_options.Size.push( {ldelim}'{$value}':{$cl_size}}  )       
        {/foreach}
     {/if}   
 </script>
<link href="{$AUTOSIZE_PATH}css/autosize.css" rel="stylesheet" type="text/css" />
<script type="text/javascript"> var visible = '{$visible}'; </script>    
{/html_head}
{if $DEBUG_autosize == "true"}
  {assign var="visible" value="block"}
<!---  autosize/template/autosize.tpl  body --->
<style type="text/css">
 {literal}
.debug {
    display: inline-block; 
    width: 12px; 
    height:12px; 
    background-color: black; 
    margin: 2px; 
}
.debugOn {
    background-color: yellow; 
    border: solid 1px black;
}
</style>
<div id="Debug0"  ></div>
<div id="Debug1"  ></div>
<div id="Debug2"  ></div>
<div id="Debug3"  ></div>
<div id="Debug4"  ></div>
<div id="Debug5" ></div>
 <div id="Debug6"  align=center style="display:none"></div>
<div id="debugsContainer"><button id="adddebugs"  style="display:none">Add a debug</button>
<div class="debug"></div>
</div>
    {/literal}
    {else}
  {assign var="visible" value="none"} 
  {/if}
  <!--  << autosize/template/autosize.tpl body  -->