        /*! RECALC General v1 <http://nvinteractive.co.nz>
	        Copyright (c) NV Interactive
        	
	        References:
		        jquery-1.2.6.js
        		
	        Release Notes:

        		
        */

ui = function () {

    var init = function () {
        //Init Menus
        $("#subnav").nvmenu();

        //Init Forms
        $(".form").nvforms();

        //Init news cycle
        $('#article-shorts').before('<div id="article-nav">').cycle({
            timeout: 5500,
            speed: 500,
            fx: 'scrollLeft',
            pager: '#article-nav'
        });


        /* [ Add code for browsers ] */
        if (jQuery.browser.safari) $("body").addClass("webkit");
        if (jQuery.browser.msie) {
            $("body").addClass("msie");
            if (jQuery.browser.version == 7.0) $("body").addClass("msie7");
            if (jQuery.browser.version == 6.0) $("body").addClass("msie6");
        }
        if (jQuery.browser.mozilla) $("body").addClass("mozilla");

    }


    return {
        /* Public API
        */
        init: init
    }

} ();

    $(ui.init);




    // usage: log('inside coolFunc',this,arguments);
    // paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
    window.log = function () {
        log.history = log.history || []; // store logs to an array for reference
        log.history.push(arguments);
        if (this.console) {
            console.log(Array.prototype.slice.call(arguments));
        }
    };
    // catch all document.write() calls
    (function (doc) {
        var write = doc.write;
        doc.write = function (q) {
            log('document.write(): ', arguments);
            if (/docwriteregexwhitelist/.test(q)) write.apply(doc, arguments);
        };
    })(document); 
