/*
 * APP
 */
jQuery(function($){
    
    $("#next_one img").live("mouseover", function(){
        $(this).attr("src", "http://localhost:1760/7160/mingo/www/app/ltd/img/interface/nextover.png");
    });

    $("#next_one img").live("mouseout", function(){
        $(this).attr("src", "http://localhost:1760/7160/mingo/www/app/ltd/img/interface/next.png");
    });
    
    $(".next").live("click", function(){

        var next = $(this).attr("href");

        $.ajax( {
            url: "index.php/app/application/" + next,
            type: "GET",
            dataType: "html",
            success: function(response){
                $(response).insertAfter("#next");
                $("#next").remove();
            }
        });
        return false;
    });
    
    $(".nudge-d").live("mouseover", function(){
        $(this).stop().animate( {
            top: '333px'
        }, 200);
    });
    $(".nudge-d").live("mouseout", function(){
        $(this).stop().animate( {
            top: '330px'
        }, 200);
    });
    
    $(".nudge-n").live("mouseover", function(){
        $(this).stop().animate( {
            top: '407px'
        }, 200);
    });
    $(".nudge-n").live("mouseout", function(){
        $(this).stop().animate( {
            top: '410px'
        }, 200);
    });
    
    $(".nudge-north").live("mouseover", function(){
        $(this).stop().animate( {
            top: '112px'
        }, 200);
    });
    $(".nudge-north").live("mouseout", function(){
        $(this).stop().animate( {
            top: '115px'
        }, 200);
    });
    
    $(".nudge-right").live("mouseover", function(){
        $(this).stop().animate( {
            left: '248px'
        }, 200);
    });
    $(".nudge-right").live("mouseout", function(){
        $(this).stop().animate( {
            left: '245px'
        }, 200);
    });
    
    $(".nudge-story").live("mouseover", function(){
        $(this).stop().animate( {
            left: '843px'
        }, 200);
    });
    $(".nudge-story").live("mouseout", function(){
        $(this).stop().animate( {
            left: '840px'
        }, 200);
    });
    
    $(".nudge-left").live("mouseover", function(){
        $(this).stop().animate( {
            left: '807px'
        }, 200);
    });
    $(".nudge-left").live("mouseout", function(){
        $(this).stop().animate( {
            left: '810px'
        }, 200);
    });
    
    $(".nudge-s").live("mouseover", function(){
        $(this).stop().animate( {
            left: '527px'
        }, 200);
    });
    $(".nudge-s").live("mouseout", function(){
        $(this).stop().animate( {
            left: '530px'
        }, 200);
    });
    
    $(".nav").live("mouseover", function(){
        $(this).stop().animate( {
            top: '323px'
        }, 200);
    });
    $(".nav").live("mouseout", function(){
        $(this).stop().animate( {
            top: '320px'
        }, 200);
    });

    $(".ajax_box").live("click", function(){

        var mca = $(this).attr("href");

        $.ajax( {
            url: "index.php/" + mca,
            type: "GET",
            dataType: "html",
            success: function(response){
                $("#box").hide().html(response).fadeIn(500);

            }
        });
        return false;
    });
    
/*    $(".ajax_strip").live("click", function(){

        var mva = $(this).attr("href");

        $.ajax( {
            url: "index.php/" + mva,
            type: "GET",
            dataType: "html",
            success: function(response){
                $("#strip").hide().html(response).fadeIn(500);

            }
        });
        return false;
    });

*/

    $(".ajax_strip_top").live("click", function(){

        var mva = $(this).attr("href");

        $.ajax( {
            url: "index.php/" + mva,
            type: "GET",
            dataType: "html",
            success: function(response){
                $("#strip_top").hide().html(response).fadeIn(500);

            }
        });
        return false;
    });
    
    $("#logo").live("click", function(){

        $('#header').hide();

    });
    
jQuery(window).load(function(){
    $('body').show();
    $('#front').show();
});


});


