﻿$(function(){
//   $(".level4").each(function() {
//        var Parent = $(this).attr("parentGroup");
//        var ParentObject = $(".level3.selected[group='" + Parent + "']");
//        if ($(ParentObject).find("ul.level3UL").length ==0) {
//            $(ParentObject).append("<ul class='level3UL'></ul>");
//        }
//        $(this).appendTo($(ParentObject).find("ul.level3UL"));
//   });
//   
//   $(".level3").each(function() {
//        var Parent = $(this).attr("parentGroup");
//        var ParentObject = $(".level2.selected[group='" + Parent + "']");
//        if ($(ParentObject).find("ul.level2UL").length ==0) {
//            $(ParentObject).append("<ul class='level2UL'></ul>");
//        }
//        $(this).appendTo($(ParentObject).find("ul.level2UL"));
//   });
//   
//   
//   var count = 0
//   $(".level2").each(function() {
//        var Parent = $(this).attr("parentGroup");
//        var ParentObject = $(".level1.selected[group='" + Parent + "']");
//            if ($(ParentObject).find("ul.level1UL").length ==0) {
//                $(ParentObject).append("<ul class='level1UL'></ul>");
//            }
//            $(this).appendTo($(ParentObject).find("ul.level1UL"));
//   });
   
   var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
   
   $(".LargeText").hide();
   
   $(".SmallText").click(function() {
        $(this).next(".LargeText").animate({
            opacity: 'toggle',
            height: 'toggle'
            }, 500);
   
   });
   
   
   $("#MenuBar1").find("li").each(function(){
        if( $(this).find("li").length > 0 )
        {
            $(this).find("a:eq(0)").click(function(e){
                e.preventDefault();
                return false;
            });
        }
   });
});


