(function($){

    var bParty = {

        init: function() {
            // first check for the mobile browser if so, forward to mobile site
            if( $.browser.mobile ){
                window.location = './mobile.html';
            }

            // init the blockparty project
            $('#topHeader').live('click', function(event){
                if( window.location.href.indexOf('mobile') > -1 ){
                    history.go(-1);
                }else{
                    window.location.href= './';
                }
            });
        }
    };


    vulcan = window.vulcan?window.vulcan:{};
    vulcan.bParty = bParty;

    $(document).ready(function(){
        vulcan.bParty.init();
    });

})(jQuery);

