$j = jQuery.noConflict();

$j(document).ready(function(){
	/* Menu */
    $j('#menu').children('li').bind('mouseover',function(){
        $j(this).siblings('li').each(function(){
            hidedropdown.apply(this);
        });
        clearInterval(this.timer);
        this.timer = setInterval(showdropdown.bind(this), 50);
    }).bind('mouseout',function(){
        clearInterval(this.timer);
        this.timer = setInterval(hidedropdown.bind(this), 400);
    });
});
function showdropdown(){
    $j(this).addClass('sfHover');
	$j(this).children('ul').slideDown(300);
    $j(this).children('a').addClass('over');
    clearInterval(this.timer);
}
function hidedropdown(){
    $j(this).removeClass('sfHover');
	$j(this).children('ul').fadeOut(200);
    $j(this).children('a').removeClass('over');
    clearInterval(this.timer);
}
Function.prototype.bind = function(object) {
    var method = this;
    return function() {
        method.apply(object, arguments);
    }
}
