﻿var obj = null;

function checkHover() {
    if (obj) {
        obj.find('ul').fadeOut('fast');
    } //if
} //checkHover

$(document).ready(function() {
    //$("#navigation li:last a").css("border-right", "none");
    $('.borderless').css("border-right", "none");
    
    $('#navigation> li').hover(function() {
        if (obj) {
            obj.find('ul').hide();
            obj = null;
        } //if
        $(this).find('ul').show();
    }, function() {
        obj = $(this);
        setTimeout(
			"checkHover()",
			600);
    });
});