﻿/// <reference path="jquery-1.4.1-vsdoc.js" />

    var flag = false;
jQuery(function () {
    var opentime, closetime;
    jQuery("#menubar ul li").hover(function () {
        var obj = this;
        window.clearTimeout(closetime);
        opentime = window.setTimeout(function () {
            flag = true;
            jQuery(">ul", obj).fadeIn("fast");
            jQuery(obj).attr("class", "selected-menu");
        }, 100);
    }, function () {
        flag = false;
        jQuery(">ul", this).delay(320);
        if (flag) return;
        window.clearTimeout(opentime);
        jQuery("ul", this).fadeOut("fast");
        jQuery(this).attr("class", "");
        jQuery("li", this).attr("class", "");


    });

});

function hideMenu(obj) {


}

function browse(path) {
    window.open(path, 'browser', 'toolbar=yes,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,width=900,height=700').focus();
}


