jQuery.noConflict();
    
jQuery(document).ready(function(){
    var currentWork = jQuery("#modules .belt li:first");

    jQuery('#header .menu li').hover(function() {	
            submenu = jQuery('> .submenu', this);
            submenu.stop().css({overflow:"hidden", height:"auto", paddingBottom:"18px", display:"none"}).slideDown(300, function()
            {
                jQuery(this).css({overflow:"visible", height:"auto", paddingBottom:"18px"});
            });	
		},
		function() {	
            submenu = jQuery('> .submenu', this);
            submenu.stop().slideUp(300, function()
            {	
                jQuery(this).css({overflow:"hidden", display:"none"});
            });
        }
    );

    jQuery("#modules .nextNav").click(function() {
        nextWork = currentWork.next('li')
        if(nextWork.length) {
            jQuery("#modules .belt").animate({left: '-=431px'});
            currentWork = nextWork; //alert(currentWork.css('left'));
        }
    });
    
    jQuery("#modules .prevNav").click(function() {
        prevWork = currentWork.prev('li')
        if(prevWork.length) {
            jQuery("#modules .belt").animate({left: '+=431px'});
            currentWork = prevWork;
        }
    });

 });

