//=====================================================//
var LoadReadyLocal = {
    emailToFriend: function(){
        $(function() {
            Dialog.setUpForm('emailToFriendForm');
            $('.btnEmailToFriend').click(function(e){
                e.preventDefault();
                Dialog.openDialog.call(this, 'emailToFriendForm', Lang.data.emailToAFriend, 485, 485);
            });
        });
    }

};

LoadReady = $.extend(LoadReady, LoadReadyLocal);


$(function() {
    Cufon.replace('h1') ('h2') ('h3') ('h4') ('h5');
    $('ul.sf-menu').superfish();

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

    $('.mapCountrySelect select').change(function(e){
        var content_id = $(this).val();
        var url = "/index.php?_room=content&_spAction=Address&showHTML=0&content_id=" + content_id;
        Util.showProgressInd();
        $('#mapAddress').load(url, function() {
            Util.hideProgressInd();
        });
    });

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


