var LoadReadyLocal = {

    homePageSlideShow: function(){
        $(function() {
            $('.anythingSlider').anythingSlider({
                 autoPlay: true
                ,easing: 'jswing'
                ,delay: 5000
                ,startStopped: false
                ,animationTime: 900
                ,hashTags: true
                ,buildNavigation: true
                ,pauseOnHover: true
                ,startText: 'etet'
                ,stopText: 'sdsd'
            });
        });
    },
    
    evaluationForm: function(){
        $(function() {
            var options = {
                success: function(json, statusText, jqFormObj) {
                    Validate.validateFormData(json, statusText, jqFormObj);
                    Util.hideProgressInd();
                },
                beforeSubmit: function() {
                    Util.showProgressInd();
                },
                dataType: 'json'
            };
            $('#evaluationForm').ajaxForm(options);
        });
    },
    
    newsletterForm: function(){
        $(function() {
            var options = {
                success: function(json, statusText, jqFormObj) {
                    Validate.validateFormData(json, statusText, jqFormObj);
                    Util.hideProgressInd();
                },
                beforeSubmit: function() {
                    Util.showProgressInd();
                },
                dataType: 'json'
            };
            $('#newsletterForm').ajaxForm(options);
        });
    }     

};

LoadReady = $.extend(LoadReady, LoadReadyLocal);


$(function() {
    $('#lang ul li:last-child').css('border-right', '0');

    $('#footer a').click(function(e){
        e.preventDefault();
        Util.openDialogForLink.call(this, '', 600, 400);
    });

    $('.hlist li:last-child a').css('padding-right', '0');

    $.reject({
        closeCookie: true // Set cookie to remmember close for this session
    });
});


