/*
 *
 * Defines all the basic function used in every pages
 *
 * */
var BaseFunctions = new function (){
    this.initialize = function(){};
    this.initializePlugins = function(){};
    this.unload = function(){};
    this.onScrollHandler = function(){};
    this.onResizeHandler = function(){};
    this.setPreLoading = function(){};
    this.initVideo = function(){};

    this.initSocialNetworks = function(){
        gapi.plusone.go('container');
        try{
            FB.XFBML.parse();
        }catch(ex){
        
        };

    };

    this.resetPage = function(){
        this.initialize = function(){};
        this.initializePlugins = function(){};
        this.unload = function(){};
        this.onScrollHandler = function(){};
        this.onResizeHandler = function(){};
        this.setPreLoading = function(){};
        this.initVideo = function(){};
    };

    $(window).resize(function(){
        BaseFunctions.onResizeHandler();
    });
    $(window).scroll(function(e){
        BaseFunctions.onScrollHandler(e);
    });

};
