/*
    Javascript for Bigpond News
    Jeff Lowder - 0419 350 760
    www.different.com.au
*/
var BPNEWS = function(){
    // private variables - only available to BPNEWS method
    var strTemplateResourcePath = "";
    
    return {
        // all the public variables and functions
        
        changeTabs:	function (n,t,tabSet,contentSet,contextPath) {
                    	for(i = 0; i < t; i++){
                    		Element.setStyle(tabSet+'-'+i+'-text', {background:'url('+contextPath+'images/tab_off_bg.gif) repeat-x'} );
                    		Element.setStyle(tabSet+'-'+i+'-left', {background:'url('+contextPath+'images/tab_off_left.gif) repeat-x'} );
                    		$(tabSet+'-'+i+'-text').removeClassName('selected');
                    		Element.setStyle(tabSet+'-'+i+'-right', {background:'url('+contextPath+'images/tab_off_right.gif) right top repeat-x'} );
                    		$(contentSet+'-'+i).hide();
                    	}
                    	Element.setStyle(tabSet+'-'+n+'-text', {background:'url('+contextPath+'images/tab_on_bg.gif) repeat-x'} );
                    	$(tabSet+'-'+n+'-text').addClassName('selected');
                    	Element.setStyle(tabSet+'-'+n+'-left', {background:'url('+contextPath+'images/tab_on_left.gif) repeat-x'} );
                    	Element.setStyle(tabSet+'-'+n+'-right', {background:'url('+contextPath+'images/tab_on_right.gif) right top repeat-x'} );
                    	$(contentSet+'-'+n).show();
                    	return false;
                    }
    };
}();
