/***********************************************************************
* Author: Kris Watson, Lumous Media, LLC (www.lumousmedia.com)
* Date: September 2008
* Description: Enables Rollover Drop down menus
* Requires: Jquery, LiveQuery
* Copyright: Jquery and LiveQuery are copyright their respective authors. 
*************************************************************************/

$(document).ready(function(){
  
  ////
  // Set Initial state to hidden
  init();	  
  
  ////
  //Show/Hide About Menu
  $(".menu_about a").livequery(function() {
      $(this)     
        .hover(function() {     
          $("#sub_menu_about_uns").show(1,function() {
            $(this)
                  .hover(function(){
                    $(this).show();
                  }, function() {
                    $(this).hide();
                  });
          });
        
        }, function() {
          $("#sub_menu_about_uns").hide();
        });
    });
    
  
  ////
  //Show/Hide Products Menu
  $(".menu_products a").livequery(function() {
      $(this)     
        .hover(function() {     
          $("#sub_menu_products_uns").show(1,function() {
            $(this)
                  .hover(function(){
                    $(this).show();
                  }, function() {
                    $(this).hide();
                  });
          });
        
        }, function() {
          $("#sub_menu_products_uns").hide();
        });
    });
    
    ////
    //Show/Hide News Menu
    $(".menu_news a").livequery(function() {
      $(this)     
        .hover(function() {     
          $("#sub_menu_news_uns").show(1,function() {
            $(this)
                  .hover(function(){
                    $(this).show();
                  }, function() {
                    $(this).hide();
                  });
          });

        }, function() {
          $("#sub_menu_news_uns").hide();
        });
    });
      
    ////
    //Show/Hide Contact Menu
    $(".menu_contactus a").livequery(function() {
      $(this)     
        .hover(function() {     
          $("#sub_menu_contact_uns").show(1,function() {
            $(this)
                  .hover(function(){
                    $(this).show();
                  }, function() {
                    $(this).hide();
                  });
          });

        }, function() {
          $("#sub_menu_contact_uns").hide();
        });
    });  
  
});

function init() {
  $("#sub_menu_about_uns").hide();
  $("#sub_menu_products_uns").hide();
  $("#sub_menu_news_uns").hide();
  $("#sub_menu_contact_uns").hide();
}
