


$(document).ready(function()
{
    $(".triggerright").click(function (event)
        {
        if ($(".noshowright:first").length > 0) 
        {                                
            /*$(".showhorizontal:first").fadeOut('fast');*/            
            $(".showhorizontal:first").removeClass('showhorizontal').addClass('noshowleft');
            $(".noshowright:first").removeClass('noshowright').addClass('showhorizontal');
            
        }
        event.preventDefault();        
    });
        
    $(".triggerleft").click(function (event)
        {
        if ($(".noshowleft:first").length > 0)
        {
            /*$(".showhorizontal:last").fadeOut('fast');*/                   
            $(".showhorizontal:last").removeClass('showhorizontal').addClass('noshowright');
            $(".noshowleft:last").removeClass('noshowleft').addClass('showhorizontal');
                        
        }
        event.preventDefault();
    });
    
    
    
    
    
    $(".triggerdown").click(function (event)
        {
        if ($(".noshowlower:first").length > 0)
        {
            /*$(".showhorizontal:first").fadeOut('fast', function()
            {*/
                $(".showvertical:first").removeClass('showvertical').addClass('noshowupper');
                $(".noshowlower:first").removeClass('noshowlower').addClass('showvertical');
            /*});*/
        }
        event.preventDefault();
    });

    $(".triggerup").click(function (event)
        {
        if ($(".noshowupper:first").length > 0)
        {
            /*$(".showhorizontal:last").fadeOut('fast', function()
            {*/
                $(".showvertical:last").removeClass('showvertical').addClass('noshowlower');
                $(".noshowupper:last").removeClass('noshowupper').addClass('showvertical');
            /*});*/
        }
        event.preventDefault();
    });
});

