
	messageObj = new DHTML_modalMessage();	// We only create one object of this class
	messageObj.setShadowOffset(5);	// Large shadow
	function EmbedPopup()
	{
	    messageObj.setSource("forgotpassword.aspx");
	    messageObj.setCssClassMessageBox(false);
	    messageObj.setSize(577,435);
	    messageObj.setShadowDivVisible(true);	// Enable shadow for these boxes	
	    messageObj.displayPage();        
	}	   

    $(document).ready(function() { 
    $('.tips').randomContent({xmlPath: "includes/xml/tips.xml", nodeName: "fact"});
    $('.cycler');
    if ( $('#rotator').length > 0 ) {
    
        $('#rotator').cycle({
        timeout:6000,
        speed:'slow',
        pager:'#rotator-nav',
        pagerAnchorBuilder: function(idx, slide) { 
            var navlabel = $($(slide).html() + 'img').attr('alt');
            return '<span><a href="#">' + navlabel + '</a></span>';
            }
        }
        );
        $('#rotator-nav').append("<a id='pbtn' class='pause'>&nbsp;</a>");

        var bplplay = true;
        $('#pbtn').click(function() {
        
            if (bplplay) {
                $('#rotator').cycle('pause');
                $('#pbtn').removeClass('pause').addClass('play')
                bplplay = false;
            }
            else {
                $('#rotator').cycle('resume');
                $('#pbtn').removeClass('play').addClass('pause')
                bplplay = true;
            }
        });
    }

    });     


	// When the document loads do everything inside here ...
    $(document).ready(function(){
    	// When a link is clicked
    	$("a.tab").click(function () {
            // switch all tabs off
            $(".active").removeClass("active");
            // switch this tab on
            $(this).addClass("active");
            // slide all content up
            $(".content").slideUp();
            // slide this content up
            var content_show = $(this).attr("title");
        	$("#"+content_show).slideDown();
    	});
	});

$(document).ready(function() {
  $('ul#nav > li').hover(function() {
    $('ul:first', this).show();
  },
  function() {
    $('ul:first', this).hide();
  });

  $('ul#nav li li').hover(function() {
    $('ul:first', this).each(function() {
      $(this).css('top', $(this).parent().position().top );
      $(this).css('left', $(this).parent().position().left + $(this).parent().width() );
      $(this).show();
    });
  },
  function() {
    $('ul:first', this).hide();
  });
});

