﻿jQuery(document).ready(function ($) {
  var appID = $("#MSTranslatorAppID").val();
  $("p,h1,h2,a,.xlatext").translator({ appID: appID, languageListNode: $('#languages').get(0) });
});
$(function () {
    /*
    This jQuery code was inspired by the following:
    http://net.tutsplus.com/tutorials/html-css-techniques/how-to-create-a-drop-down-nav-menu-with-html5-css3-and-jquery/
    
      setup events for menu items - works with styles in site.css
    */
    $("body div li").each(function () {
        if ($(this).find("ul").length > 0) {
            //show subnav on hover  
            $(this).mouseenter(function () {
                $(this).find("ul").stop(true, true).slideDown();
            });
            //hide submenus on exit  
            $(this).mouseleave(function () {
                $(this).find("ul").stop(true, true).slideUp();
            });

            $(this).find("ul").mousemove(function () {
                $(this).stop(true, true).show();
            });
        }
    });
});

