/*****************************/
/* english-fonctions-jquery.js
/* contient les evenements jquery
/* Nicolas Rossi
/*****************************/  



      
$(function()
{         
      
      

      
      //click sur le menu des category de press//
      $("#menuCategoryPress a").click(function()        
      {
          var myId = $(this).attr("id");      
          //$("#presseContent").load("lpg-presse-view.php?pressCategory="+myId+""); 
      
          $.ajax({
                    type: "post",
                    url: "english-lpg-presse-view.php",
                    data: "pressCategory="+myId,   
                    beforeSend: function(){ 
                                $("#presseContent").hide();
                                //$("#presseContent").empty();                                    
                                showPreload();
                    },                    
                    success: function(data){
                        if(data.length >0) { 
                                hidePreload();  
                                $("#presseContent").html(data);                                
                                $("#presseContent").fadeIn();                                
                                $('#listePressWslide').wslide({  
                                    width: 550,   
                                    height: 570, 
                                    duration:300,          
                                    horiz: true        
                                });  
                                $('#listePressWslide').css("margin-top","10px");
                                $('.wslide-menu').css("text-align","center");
      
                        }
                        else { 
                                hidePreload();
                        } 
                    }
                });
      });
      
      //wslide du contenu de la revue de presse// 
   $('#listePressWslide').wslide({
      width: 550,  
       height: 570,
        duration:300,          
       horiz: true        
    });    


    
    
    $('#listePressWslide').css("margin-top","10px");
    $('.wslide-menu').css("text-align","center"); 
    
    // $("#news21 img").after('<img src="images/news82-02.jpg" alt="miu miu"><img src="images/news82-03.jpg" alt="miu miu"><img src="images/news82-04.jpg" alt="miu miu">');
 
    
  //
//   $('#news21').cycle({ 
//    fx:       'fade', 
//    speed:    1000    
//   });
// 
 
    $("div[rel]").overlay();
 
    $("a[rel]").overlay();

});


 function showPreload()
            {
                  $('.preloader').show();
            
            }

 function hidePreload() 
            { 
                $('.preloader').hide();                              
            }