$(function()
{
  $('#scroll-actualite-id').css({height : '250px'});
  $('#scroll-actualite-id').jScrollPane({showArrows:true, scrollbarWidth: 24, arrowSize: 9, dragMaxHeight: 20, dragMinHeight: 20});
  $('#scroll-archives-id').css({height : '60px'});
  $('#scroll-archives-id').jScrollPane({showArrows:true, scrollbarWidth: 24, arrowSize: 9, dragMaxHeight: 20, dragMinHeight: 20});
  
  // On remplace le contenu de l'image header par l'animation flash
  
  $('#image').html(' \
  <object width="955" height="169"> \
      <param name="movie" value="'+ROOT_PATH+'files/homepage/hpvracing_home.swf"></param> \
      <param name="allowFullScreen" value="false"></param> \
      <param name="allowscriptaccess" value="always"></param> \
      <embed src="'+ROOT_PATH+'files/homepage/hpvracing_home.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="955" height="169"></embed> \
    </object> \
  ');
  
  // On enlève le lien sur la home page
  $('#link-home').html('');

});

function createLightboxGroup(NEWId)
{
  // Binding the lightbox to each group
  $('#news-'+NEWId+' a.lightbox').lightBox({
    imageLoading   : ROOT_PATH+'images/layout/lightbox/loading.gif',
    imageBtnClose  : ROOT_PATH+'images/layout/lightbox/'+LANG+'/close.gif',
    imageBtnPrev   : ROOT_PATH+'images/layout/lightbox/'+LANG+'/prev.gif',
    imageBtnNext   : ROOT_PATH+'images/layout/lightbox/'+LANG+'/next.gif',
    imageBlank     : ROOT_PATH+'images/layout/lightbox/blank.gif'
  });
}