$(document).ready(function(){
      var imgHTML="<img src='img/fff_alpha50.png' class='aImgTop' height='8' width='50' /><img src='img/fff_alpha50.png' class='aImgBottom' height='8' width='50' />";
      
      $(".menItem").prepend(imgHTML);    
      $(".hoverItem").prepend(imgHTML);      
       
      $(".hoverAnker").each(function (i) {   
                  w=$(this).width();
                  par=$(this).parent();
                  $(this).parent().css("width",w+"px")
                  $(par).children().attr("width",w);  
      });


      $(".hoverItem").mouseenter(function () {
             $(".aImgTop",this).stop().animate(
                 {    top: "-8"   }    , 360   
             );               
             $(".aImgBottom",this).stop().animate(
                 {    top: "16"   }    , 360 
             );      
                    
      });     
    $(".hoverItem").mouseleave(function () {
             $(".aImgTop",this).stop().animate(
                 {    top: "0"   }    , 360   
             );               
             $(".aImgBottom",this).stop().animate(
                 {    top: "8"   }    , 360 
             );  
      });

      $(".menAnker").each(function (i) {   
                  w=$(this).width();
                  par=$(this).parent();
                  $(this).parent().css("width",w+"px")
                  $(par).children().attr("width",w);  
      });


      $(".menItem").mouseenter(function () {
             $(".aImgTop",this).stop().animate(
                 {    top: "-8"   }    , 360   
             );               
             $(".aImgBottom",this).stop().animate(
                 {    top: "16"   }    , 360 
             );      
                    
      });
      
    $(".menItem").mouseleave(function () {
             $(".aImgTop",this).stop().animate(
                 {    top: "0"   }    , 360   
             );               
             $(".aImgBottom",this).stop().animate(
                 {    top: "8"   }    , 360 
             );  
      });

    

        

  });
  
  function subMenShow(submen){
      $(submen).find("div.menItem").each(function (i) {   
                   $(this).oneTime(100*i, function() {
                          $(this).stop().show();
               });                 
        });
  }
   
  
  function subMenHide(submen){
      $(submen).find("div.menItem").each(function (i) {   
                   $(this).oneTime(70*i, function() {
                          $(this).stop().hide();
               });                 
        });
  }
  

