function roll_over(img_name, img_src)
   {

   if (document.all) {
      
      document.all[img_name].src = img_src;
      
      
   }
   
   else {
   
      document[img_name].src = img_src;   
   
   }   
   
   
   }


function changeIndexContent(ct_index) {


   if (ct_index > 3) ct_index = 3;

   if (document.all) {
   
      var left_div = document.all['xooloo_pres_l'];


      var presbutton1 = document.all['presbutton1'];
      var presbutton2 = document.all['presbutton2'];
      var presbutton3 = document.all['presbutton3'];
      
      var accroche_1_div = document.all['accroche_1'];
      var accroche_2_div = document.all['accroche_2'];
      var accroche_3_div = document.all['accroche_3'];   
   
   }

   else {

      var left_div = document.getElementById('xooloo_pres_l');

      var accroche_1_div = document.getElementById('accroche_1');
      var accroche_2_div = document.getElementById('accroche_2');
      var accroche_3_div = document.getElementById('accroche_3');

      var presbutton1 = document.getElementById('presbutton1');
      var presbutton2 = document.getElementById('presbutton2');
      var presbutton3 = document.getElementById('presbutton3');


   }

   if (left_div && presbutton2 && presbutton1 && presbutton3 ) {

      switch(ct_index) {

         case 1: 
            
            left_div.style.background="transparent url(images/accroche_01.png) no-repeat" ;
            left_div.alt="Xooloo Parental Control Internet Filtering"; 
            left_div.title="Xooloo Parental Control Internet Filtering";


            presbutton1.style.background="transparent url(images/fond_menu_haut_on.png) no-repeat" ;
            presbutton2.style.background="transparent url(images/fond_menu_off.png) no-repeat" ;
            presbutton3.style.background="transparent url(images/fond_menu_off.png) no-repeat" ;

            accroche_1_div.style.display = "block";
            accroche_2_div.style.display = "none";
            accroche_3_div.style.display = "none";
            
            break;
         case 2:
          
            left_div.style.background="transparent url(images/accroche_02.png) no-repeat" ;
            left_div.alt="Protect your children with the latest technologies"; 
            left_div.title="Parental software and human supervision";
   
            presbutton1.style.background="transparent url(images/fond_menu_haut_off.png) no-repeat" ;
            presbutton2.style.background="transparent url(images/fond_menu_on.png) no-repeat" ;
            presbutton3.style.background="transparent url(images/fond_menu_off.png) no-repeat" ;



            accroche_1_div.style.display = "none";
            accroche_2_div.style.display = "block";
            accroche_3_div.style.display = "none";   


           break;
         case 3:
            left_div.style.background="transparent url(images/accroche_03.png) no-repeat" ;

            left_div.alt="Protect your children with the latest technologies"; 
            left_div.title="Parental software and human supervision";

            
            presbutton1.style.background="transparent url(images/fond_menu_haut_off.png) no-repeat" ;
            presbutton2.style.background="transparent url(images/fond_menu_off.png) no-repeat" ;
            presbutton3.style.background="transparent url(images/fond_menu_on.png) no-repeat" ;


            accroche_1_div.style.display = "none";
            accroche_2_div.style.display = "none";
            accroche_3_div.style.display = "block";

            break;

      }

   }

   else {

      alert('missing dom object !!');
   

   }



}


function showModal() {


  $('#modal1').css('display','block');

}

function hideModal() {


  $('#modal1').css('display','none');

}

