$(document).ready(function() {
	
	var hover_interval = 150;
	var hover_timeout = 300;
	
	$("li#nav-news").hoverIntent( { interval:hover_interval, timeout:hover_timeout, over:function() {
        $("#newsdropdown").fadeIn('fast');
		$(this).children("a").css("background-color","#122024");
		$(this).children("a").css("margin-top","-5px");
		$(this).children("a").css("padding-top","5px");
		return false;
    }, out:function() {
        $("#newsdropdown").fadeOut('fast');
		$(this).children("a").css("background-color","transparent");
		return false;
    } } );
	
	$("li#nav-biketests").hoverIntent( { interval:hover_interval, timeout:hover_timeout, over:function() {
        $("#biketestsdropdown").fadeIn('fast');
		$(this).children("a").css("background-color","#122024");
		$(this).children("a").css("margin-top","-5px");
		$(this).children("a").css("padding-top","5px");
		return false;
    }, out:function() {
        $("#biketestsdropdown").fadeOut('fast');
		$(this).children("a").css("background-color","transparent");
		return false;
    } } );
	
	$("li#nav-letsride").hoverIntent( { interval:hover_interval, timeout:hover_timeout, over:function() {
        $("#letsridedropdown").fadeIn('fast');
		$(this).children("a").css("background-color","#122024");
		$(this).children("a").css("margin-top","-5px");
		$(this).children("a").css("padding-top","5px");
		return false;
    }, out:function() {
        $("#letsridedropdown").fadeOut('fast');
		$(this).children("a").css("background-color","transparent");
		return false;
    } } );
	
	$("li#nav-buysell").hoverIntent( { interval:hover_interval, timeout:hover_timeout, over:function() {
        $("#buyselldropdown").fadeIn('fast');
		$(this).children("a").css("background-color","#122024");
		$(this).children("a").css("margin-top","-5px");
		$(this).children("a").css("padding-top","5px");
		return false;
    }, out:function() {
        $("#buyselldropdown").fadeOut('fast');
		$(this).children("a").css("background-color","transparent");
		return false;
    } } );
	
	$("li#nav-more").hoverIntent( { interval:hover_interval, timeout:hover_timeout, over:function() {
        $("#moredropdown").fadeIn('fast');
		$(this).children("a").css("background-color","#122024");
		$(this).children("a").css("margin-top","-5px");
		$(this).children("a").css("padding-top","5px");
		return false;
    }, out:function() {
        $("#moredropdown").fadeOut('fast');
		$(this).children("a").css("background-color","transparent");
		return false;
    } } );
	
	$("li#nav-profile").hoverIntent( { interval:hover_interval, timeout:hover_timeout, over:function() {
        $("#profiledropdown").fadeIn('fast');
		$(this).children("a").css("background-color","#535353");
		return false;
    }, out:function() {
        $("#profiledropdown").fadeOut('fast');
		$(this).children("a").css("background-color","transparent");
		return false;
    } } );
	
	$("li#nav-addcontent").hoverIntent( { interval:hover_interval, timeout:hover_timeout, over:function() {
        $("#addcontentdropdown").fadeIn('fast');
		$(this).children("a").css("background-color","#535353");
		return false;
    }, out:function() {
        $("#addcontentdropdown").fadeOut('fast');
		$(this).children("a").css("background-color","transparent");
		return false;
    } } );
	
	$("li#nav-account").hoverIntent( { interval:hover_interval, timeout:hover_timeout, over:function() {
        $("#accountdropdown").fadeIn('fast');
		$(this).children("a").css("background-color","#535353");
		return false;
    }, out:function() {
        $("#accountdropdown").fadeOut('fast');
		$(this).children("a").css("background-color","transparent");
		return false;
    } } );
	
	$("li.nav-sidesubmenu").hoverIntent( { interval:hover_interval, timeout:hover_timeout, over:function() {
		var id = $(this).attr('id').substring(4);
		$("div.sidesubmenu."+id).fadeIn('fast');
		$(this).children("a").css("background-color","#535353");
		$(this).children("a").css("margin-right","0");
		return false;
	}, out:function() {
		var id = $(this).attr('id').substring(4);
		$("div.sidesubmenu."+id).fadeOut('fast');
		$(this).children("a").css("background-color","transparent");
		$(this).children("a").css("margin-right","5px");
		return false
	} } );
	
});
