function tabswap( i, t ){
	var a = new Array( 2, 6, 10, 14, 18, 22 );
	
	//Set_Cookie( 'news_section', i, 30, '/', '', '' );
	
	for ( j = 0; j < 6; j++ )
    {
        ctab1 = "tab" + t + "_" + (a[j] - 1);
        ctab2 = "tab" + t + "_" + a[j];
        ctab3 = "tab" + t + "_" + (a[j] + 1);
        btab = "tab" + (t + 1) + "_" + i;

        if ( document.getElementById("tab" + (t + 1) + "_" + a[j]) )
        {
            document.getElementById("tab" + (t + 1) + "_" + a[j]).style.display = "none";
        }

        if ( a[j] == i )
        {
            document.getElementById(ctab1).className = "tab_wl";
            document.getElementById(ctab2).className = "tab_wm";
           	document.getElementById(ctab3).className = "tab_wr";
		  
        }
        else if ( document.getElementById(ctab2))
        {
            document.getElementById(ctab1).className = "tab_bl";
            document.getElementById(ctab2).className = "tab_bm";
            document.getElementById(ctab3).className = "tab_br";
        }
    }

    document.getElementById(btab).style.display = "block";
}


/*
function tab_load() {
	if (!Get_Cookie( 'news_section' )) tabswap( 2, 5 );
	else tabswap( Get_Cookie( 'news_section' ), 5 );	
}
*/

function tab_load(sec_id) {
	if(sec_id == '0') tabswap( 2, 5 );
	else tabswap( sec_id, 5 );
}






