/// <reference path="jquery-1.3.2-vsdoc.js" />
/// <reference path="jquery.jshowoff.min.js" />

var Default = {
    init: function () {

        $("#rotator").jshowoff({
            controls: false,
            speed: 10000,
	    autoPlay:false
        });

        $(".show-release-notes").click(function () {
            $("#release-notes").dialog("destroy");
            $("#release-notes").dialog({
                height: 400,
                width: 500,
                modal: true
            });
        });

	$('#features').jshowoff();

	// fix pre overflow in IE
	(function ($) {
		$.fn.fixOverflow = function () {
			if ($.browser.msie) {
				return this.each(function () {
					if (this.scrollWidth > this.offsetWidth) {
						$(this).css({ 'padding-bottom' : '20px', 'overflow-y' : 'hidden' });
					}
				});
			} else {
				return this;
			}
		};
	})(jQuery);

	$('pre').fixOverflow();

	slideMenu.build('sm',326,10,10,1);
    }
};

$(document).ready(function () {
    Default.init();
});

