var $jm = ($J.Doc.a) ? 'a' : 'addEvent';
$j(document)[$jm]('domready', function () {
    $J.$A(window.document.byClass("tabs")).forEach(function(el) {
    	$J.$A(el.childNodes).forEach(function(el){
    		if (el.tagName=='LI') {
    			if (el.firstChild) { 
        			$j(el.firstChild)[$jm]('click', function(e){
        				$j(e).stop();
        				$J.$A(window.document.byClass("tabCont")).forEach(function(el) {
        					el.className = 'tabCont';
        				});
        				
        				document.getElementById(this.id+'_cont').className = 'tabCont active';
        				$J.$A(window.document.byClass("tabactive")).forEach(function(el) {
        					el.className='';
        				});

        				this.className = 'tabactive';
        				this.blur();
        			});
    			}
    		}
    	})
    });
});
