
/************************************************************************
* Internet Ranger Object
*************************************************************************/
if (!btplc) { var btplc = {}; }

btplc.InternetRanger = function () {
    var self = this; 			// Scoping vairable to help retain scope to this instance when in nested functions
    this.debugErrors = false; 	// Boolean to indicate if debugging information should be shown

    /************************************************************************
    * Constructor
    *************************************************************************/
    this.init = function () {
        self.debug("Initializing");

        // load jquery
        $(document).ready(function () {
            self.debug("jQuery Ready");
            self.ready();
        });
    };

    /************************************************************************
    * Once jQuery is ready...
    *************************************************************************/
    this.ready = function () {
        self.debug("Running sitespecific functions");

        self.convertBanner();
    };

    /************************************************************************
    * Convert Banner function
    *************************************************************************/
    this.convertBanner = function () {
        self.debug("StyleRadioButtons called");
	
	if ($('.homebanner').length > 0)
	{
		$('.homebanner').innerfade({ speed: 'slow', timeout: 4000, type: 'sequence', containerheight: '112px' }); 
	}
    };

    /************************************************************************
    * Allow for easy turning on/off of debugging information
    *************************************************************************/
    this.debug = function (myMessage) {
        if (this.debugErrors == true) {
            if ((typeof console != "undefined") && (typeof console.log == 'function')) {
                console.log(myMessage);
            }
            else {
                alert(myMessage);
            }
        }
    };

    /************************************************************************
    * Instantiate this Object
    *************************************************************************/
    this.init();
}

/************************************************************************
* Create an instance of the object so we can use it to access data.
*************************************************************************/
var InternetRanger = new btplc.InternetRanger();
