
function switchviewstate(tabnr, imageroot)
{
	var divEl1 = document.getElementById('newstab1');
	var divEl2 = document.getElementById('newstab2');
	var divEl3 = document.getElementById('newstab3');
	
	var htabnews1 = document.getElementById('headernewstab1');
	var htabnews2 = document.getElementById('headernewstab2');
	var htabnews3 = document.getElementById('headernewstab3');	
	
	
	
	
	switch (tabnr){
		case 1:
			divEl1.className = 'visible_news';
			divEl2.className = 'invisible_news';
			divEl3.className = 'invisible_news';
			
			htabnews1.src = imageroot+'tab_24hrs_selected.gif'
			htabnews2.src = imageroot+'tab_last7days.gif'
			htabnews3.src = imageroot+'tab_archive.gif'			
			break;
		case 2:
			divEl1.className = 'invisible_news';
			divEl2.className = 'visible_news';
			divEl3.className = 'invisible_news';
			
			htabnews1.src = imageroot+'tab_24hrs.gif'
			htabnews2.src = imageroot+'tab_last7days_selected.gif'
			htabnews3.src = imageroot+'tab_archive.gif'			
			break;
		case 3:
			divEl1.className = 'invisible_news';
			divEl2.className = 'invisible_news';
			divEl3.className = 'visible_news';
			
			htabnews1.src = imageroot+'tab_24hrs.gif'
			htabnews2.src = imageroot+'tab_last7days.gif'
			htabnews3.src = imageroot+'tab_archive_selected.gif'
			break;
	}

}


function switchyear(tabnr)
{
	var divEl1 = document.getElementById('yeartab1');
	var divEl2 = document.getElementById('yeartab2');
	var divEl3 = document.getElementById('yeartab3');
	var divEl4 = document.getElementById('yeartab4');
	
	var tabnews1 = document.getElementById('allyeartab1');	
	var tabnews2 = document.getElementById('allyeartab2');
	var tabnews3 = document.getElementById('allyeartab3');
	var tabnews4 = document.getElementById('allyeartab4');
	switch(tabnr)
	{
		case 1:
			divEl1.className = 'arhiv_year_over';
			divEl2.className = 'arhiv_year';
			divEl3.className = 'arhiv_year';
			divEl4.className = 'arhiv_year';
			
			
			
			tabnews1.className = 'visible_news';//		
			tabnews2.className = 'invisible_news';
			tabnews3.className = 'invisible_news';
			tabnews4.className = 'invisible_news';
			
		case 2:
			divEl1.className = 'arhiv_year';
			divEl2.className = 'arhiv_year_over';
			divEl3.className = 'arhiv_year';
			divEl4.className = 'arhiv_year';
			
			
			
			tabnews3.className = 'invisible_news';
			tabnews1.className = 'visible_news';//		
			tabnews3.className = 'invisible_news';
			tabnews4.className = 'invisible_news';
			
		case 3:
			divEl1.className = 'arhiv_year';
			divEl2.className = 'arhiv_year';
			divEl3.className = 'arhiv_year_over';
			divEl4.className = 'arhiv_year';
			
			
			
			tabnews3.className = 'invisible_news';
			tabnews2.className = 'invisible_news';
			tabnews1.className = 'visible_news';//		
			tabnews4.className = 'invisible_news';
			
		case 4:
			divEl1.className = 'arhiv_year';
			divEl2.className = 'arhiv_year';
			divEl3.className = 'arhiv_year';
			divEl4.className = 'arhiv_year_over';
			
			
			tabnews3.className = 'invisible_news';
			tabnews2.className = 'invisible_news';
			tabnews3.className = 'invisible_news';
			tabnews1.className = 'visible_news';//		
	}
}



function switchmonth(tabnr)
{
	var divEl1 = document.getElementById('newstab1');
	var divEl2 = document.getElementById('newstab2');
	var divEl3 = document.getElementById('newstab3');
	var divEl4 = document.getElementById('newstab4');
	var divEl5 = document.getElementById('newstab5');
	var divEl6 = document.getElementById('newstab6');
	var divEl7 = document.getElementById('newstab7');
	var divEl8 = document.getElementById('newstab8');
	var divEl9 = document.getElementById('newstab9');
	var divEl10 = document.getElementById('newstab10');
	var divEl11 = document.getElementById('newstab11');
	var divEl12 = document.getElementById('newstab12');


	var htabnews1 = document.getElementById('headernewstab1');
	var htabnews2 = document.getElementById('headernewstab2');
	var htabnews3 = document.getElementById('headernewstab3');	
	var htabnews4 = document.getElementById('headernewstab4');
	var htabnews5 = document.getElementById('headernewstab5');
	var htabnews6 = document.getElementById('headernewstab6');	
	var htabnews7 = document.getElementById('headernewstab7');
	var htabnews8 = document.getElementById('headernewstab8');
	var htabnews9 = document.getElementById('headernewstab9');	
	var htabnews10 = document.getElementById('headernewstab10');
	var htabnews11 = document.getElementById('headernewstab11');
	var htabnews12 = document.getElementById('headernewstab12');	



	switch (tabnr)
	{
		case 1:
			divEl1.className = 'visible_news';//
			divEl2.className = 'invisible_news';
			divEl3.className = 'invisible_news';
			divEl4.className = 'invisible_news';
			divEl5.className = 'invisible_news';
			divEl6.className = 'invisible_news';
			divEl7.className = 'invisible_news';
			divEl8.className = 'invisible_news';
			divEl9.className = 'invisible_news';
			divEl10.className = 'invisible_news';
			divEl11.className = 'invisible_news';
			divEl12.className = 'invisible_news';						
			
			htabnews1.className = 'arhiv_month_over';//
			htabnews2.className = 'arhiv_month';
			htabnews3.className = 'arhiv_month';
			htabnews4.className = 'arhiv_month';
			htabnews5.className = 'arhiv_month';
			htabnews6.className = 'arhiv_month';
			htabnews7.className = 'arhiv_month';
			htabnews8.className = 'arhiv_month';
			htabnews9.className = 'arhiv_month';
			htabnews10.className = 'arhiv_month';
			htabnews11.className = 'arhiv_month';
			htabnews12.className = 'arhiv_month';
			break;
			
		case 2:
			divEl1.className = 'invisible_news';
			divEl2.className = 'visible_news';//
			divEl3.className = 'invisible_news';
			divEl4.className = 'invisible_news';
			divEl5.className = 'invisible_news';
			divEl6.className = 'invisible_news';
			divEl7.className = 'invisible_news';
			divEl8.className = 'invisible_news';
			divEl9.className = 'invisible_news';
			divEl10.className = 'invisible_news';
			divEl11.className = 'invisible_news';
			divEl12.className = 'invisible_news';
			
			
			
			htabnews1.className = 'arhiv_month';//
			htabnews2.className = 'arhiv_month_over';
			htabnews3.className = 'arhiv_month';
			htabnews4.className = 'arhiv_month';
			htabnews5.className = 'arhiv_month';
			htabnews6.className = 'arhiv_month';
			htabnews7.className = 'arhiv_month';
			htabnews8.className = 'arhiv_month';
			htabnews9.className = 'arhiv_month';
			htabnews10.className = 'arhiv_month';
			htabnews11.className = 'arhiv_month';
			htabnews12.className = 'arhiv_month';
			break;
			
			
		case 3:			
			divEl1.className = 'invisible_news';
			divEl2.className = 'invisible_news';
			divEl3.className = 'visible_news';//
			divEl4.className = 'invisible_news';
			divEl5.className = 'invisible_news';
			divEl6.className = 'invisible_news';
			divEl7.className = 'invisible_news';
			divEl8.className = 'invisible_news';
			divEl9.className = 'invisible_news';
			divEl10.className = 'invisible_news';
			divEl11.className = 'invisible_news';
			divEl12.className = 'invisible_news';		
			
			
			htabnews1.className = 'arhiv_month';//
			htabnews2.className = 'arhiv_month';
			htabnews3.className = 'arhiv_month_over';
			htabnews4.className = 'arhiv_month';
			htabnews5.className = 'arhiv_month';
			htabnews6.className = 'arhiv_month';
			htabnews7.className = 'arhiv_month';
			htabnews8.className = 'arhiv_month';
			htabnews9.className = 'arhiv_month';
			htabnews10.className = 'arhiv_month';
			htabnews11.className = 'arhiv_month';
			htabnews12.className = 'arhiv_month';
			
			break;
		case 4:
			
			divEl1.className = 'invisible_news';
			divEl2.className = 'invisible_news';
			divEl3.className = 'invisible_news';
			divEl4.className = 'visible_news';//
			divEl5.className = 'invisible_news';
			divEl6.className = 'invisible_news';
			divEl7.className = 'invisible_news';
			divEl8.className = 'invisible_news';
			divEl9.className = 'invisible_news';
			divEl10.className = 'invisible_news';
			divEl11.className = 'invisible_news';
			divEl12.className = 'invisible_news';
			
			
			htabnews1.className = 'arhiv_month';//
			htabnews2.className = 'arhiv_month';
			htabnews3.className = 'arhiv_month';
			htabnews4.className = 'arhiv_month_over';
			htabnews5.className = 'arhiv_month';
			htabnews6.className = 'arhiv_month';
			htabnews7.className = 'arhiv_month';
			htabnews8.className = 'arhiv_month';
			htabnews9.className = 'arhiv_month';
			htabnews10.className = 'arhiv_month';
			htabnews11.className = 'arhiv_month';
			htabnews12.className = 'arhiv_month';			
			break;
		case 5:
			
			divEl1.className = 'invisible_news';
			divEl2.className = 'invisible_news';
			divEl3.className = 'invisible_news';
			divEl4.className = 'invisible_news';
			divEl5.className = 'visible_news';//
			divEl6.className = 'invisible_news';
			divEl7.className = 'invisible_news';
			divEl8.className = 'invisible_news';
			divEl9.className = 'invisible_news';
			divEl10.className = 'invisible_news';
			divEl11.className = 'invisible_news';
			divEl12.className = 'invisible_news';
			
			

			htabnews1.className = 'arhiv_month';//
			htabnews2.className = 'arhiv_month';
			htabnews3.className = 'arhiv_month';
			htabnews4.className = 'arhiv_month';
			htabnews5.className = 'arhiv_month_over';
			htabnews6.className = 'arhiv_month';
			htabnews7.className = 'arhiv_month';
			htabnews8.className = 'arhiv_month';
			htabnews9.className = 'arhiv_month';
			htabnews10.className = 'arhiv_month';
			htabnews11.className = 'arhiv_month';
			htabnews12.className = 'arhiv_month';			
			break;
		case 6:
			
			divEl1.className = 'invisible_news';
			divEl2.className = 'invisible_news';
			divEl3.className = 'invisible_news';
			divEl4.className = 'invisible_news';
			divEl5.className = 'invisible_news';
			divEl6.className = 'visible_news';//
			divEl7.className = 'invisible_news';
			divEl8.className = 'invisible_news';
			divEl9.className = 'invisible_news';
			divEl10.className = 'invisible_news';
			divEl11.className = 'invisible_news';
			divEl12.className = 'invisible_news';
			
			
			
			htabnews1.className = 'arhiv_month';//
			htabnews2.className = 'arhiv_month';
			htabnews3.className = 'arhiv_month';
			htabnews4.className = 'arhiv_month';
			htabnews5.className = 'arhiv_month';
			htabnews6.className = 'arhiv_month_over';
			htabnews7.className = 'arhiv_month';
			htabnews8.className = 'arhiv_month';
			htabnews9.className = 'arhiv_month';
			htabnews10.className = 'arhiv_month';
			htabnews11.className = 'arhiv_month';
			htabnews12.className = 'arhiv_month';			
			break;
		case 7:
			
			divEl1.className = 'invisible_news';
			divEl2.className = 'invisible_news';
			divEl3.className = 'invisible_news';
			divEl4.className = 'invisible_news';
			divEl5.className = 'invisible_news';
			divEl6.className = 'invisible_news';
			divEl7.className = 'visible_news';//
			divEl8.className = 'invisible_news';
			divEl9.className = 'invisible_news';
			divEl10.className = 'invisible_news';
			divEl11.className = 'invisible_news';
			divEl12.className = 'invisible_news';
			
			
			htabnews1.className = 'arhiv_month';//
			htabnews2.className = 'arhiv_month';
			htabnews3.className = 'arhiv_month';
			htabnews4.className = 'arhiv_month';
			htabnews5.className = 'arhiv_month';
			htabnews6.className = 'arhiv_month';
			htabnews7.className = 'arhiv_month_over';
			htabnews8.className = 'arhiv_month';
			htabnews9.className = 'arhiv_month';
			htabnews10.className = 'arhiv_month';
			htabnews11.className = 'arhiv_month';
			htabnews12.className = 'arhiv_month';			
			
			break;
			
		case 8:
			
			divEl1.className = 'invisible_news';
			divEl2.className = 'invisible_news';
			divEl3.className = 'invisible_news';
			divEl4.className = 'invisible_news';
			divEl5.className = 'invisible_news';
			divEl6.className = 'invisible_news';
			divEl7.className = 'invisible_news';
			divEl8.className = 'visible_news';//
			divEl9.className = 'invisible_news';
			divEl10.className = 'invisible_news';
			divEl11.className = 'invisible_news';
			divEl12.className = 'invisible_news';
			
			
			
			htabnews1.className = 'arhiv_month';//
			htabnews2.className = 'arhiv_month';
			htabnews3.className = 'arhiv_month';
			htabnews4.className = 'arhiv_month';
			htabnews5.className = 'arhiv_month';
			htabnews6.className = 'arhiv_month';
			htabnews7.className = 'arhiv_month';
			htabnews8.className = 'arhiv_month_over';
			htabnews9.className = 'arhiv_month';
			htabnews10.className = 'arhiv_month';
			htabnews11.className = 'arhiv_month';
			htabnews12.className = 'arhiv_month';			
			break;
			
			
		case 9:
			
			divEl1.className = 'invisible_news';
			divEl2.className = 'invisible_news';
			divEl3.className = 'invisible_news';
			divEl4.className = 'invisible_news';
			divEl5.className = 'invisible_news';
			divEl6.className = 'invisible_news';
			divEl7.className = 'invisible_news';
			divEl8.className = 'invisible_news';
			divEl9.className = 'visible_news';//
			divEl10.className = 'invisible_news';
			divEl11.className = 'invisible_news';
			divEl12.className = 'invisible_news';
			
			
			htabnews1.className = 'arhiv_month';//
			htabnews2.className = 'arhiv_month';
			htabnews3.className = 'arhiv_month';
			htabnews4.className = 'arhiv_month';
			htabnews5.className = 'arhiv_month';
			htabnews6.className = 'arhiv_month';
			htabnews7.className = 'arhiv_month';
			htabnews8.className = 'arhiv_month';
			htabnews9.className = 'arhiv_month_over';
			htabnews10.className = 'arhiv_month';
			htabnews11.className = 'arhiv_month';
			htabnews12.className = 'arhiv_month';			
			break;
		case 10:
			
			divEl1.className = 'invisible_news';
			divEl2.className = 'invisible_news';
			divEl3.className = 'invisible_news';
			divEl4.className = 'invisible_news';
			divEl5.className = 'invisible_news';
			divEl6.className = 'invisible_news';
			divEl7.className = 'invisible_news';
			divEl8.className = 'invisible_news';
			divEl9.className = 'invisible_news';
			divEl10.className = 'visible_news';///
			divEl11.className = 'invisible_news';
			divEl12.className = 'invisible_news';
			
			
			htabnews1.className = 'arhiv_month';//
			htabnews2.className = 'arhiv_month';
			htabnews3.className = 'arhiv_month';
			htabnews4.className = 'arhiv_month';
			htabnews5.className = 'arhiv_month';
			htabnews6.className = 'arhiv_month';
			htabnews7.className = 'arhiv_month';
			htabnews8.className = 'arhiv_month';
			htabnews9.className = 'arhiv_month';
			htabnews10.className = 'arhiv_month_over';
			htabnews11.className = 'arhiv_month';
			htabnews12.className = 'arhiv_month';			
			break;
		case 11:
			
			divEl1.className = 'invisible_news';
			divEl2.className = 'invisible_news';
			divEl3.className = 'invisible_news';
			divEl4.className = 'invisible_news';
			divEl5.className = 'invisible_news';
			divEl6.className = 'invisible_news';
			divEl7.className = 'invisible_news';
			divEl8.className = 'invisible_news';
			divEl9.className = 'invisible_news';
			divEl10.className = 'invisible_news';
			divEl11.className = 'visible_news';//
			divEl12.className = 'invisible_news';
			
			
			htabnews1.className = 'arhiv_month';//
			htabnews2.className = 'arhiv_month';
			htabnews3.className = 'arhiv_month';
			htabnews4.className = 'arhiv_month';
			htabnews5.className = 'arhiv_month';
			htabnews6.className = 'arhiv_month';
			htabnews7.className = 'arhiv_month';
			htabnews8.className = 'arhiv_month';
			htabnews9.className = 'arhiv_month';
			htabnews10.className = 'arhiv_month';
			htabnews11.className = 'arhiv_month_over';
			htabnews12.className = 'arhiv_month';			
			break;
		case 12:
			
			divEl1.className = 'invisible_news';
			divEl2.className = 'invisible_news';
			divEl3.className = 'invisible_news';
			divEl4.className = 'invisible_news';
			divEl5.className = 'invisible_news';
			divEl6.className = 'invisible_news';
			divEl7.className = 'invisible_news';
			divEl8.className = 'invisible_news';
			divEl9.className = 'invisible_news';
			divEl10.className = 'invisible_news';
			divEl11.className = 'invisible_news';
			divEl12.className = 'visible_news';//
			
			htabnews1.className = 'arhiv_month';//
			htabnews2.className = 'arhiv_month';
			htabnews3.className = 'arhiv_month';
			htabnews4.className = 'arhiv_month';
			htabnews5.className = 'arhiv_month';
			htabnews6.className = 'arhiv_month';
			htabnews7.className = 'arhiv_month';
			htabnews8.className = 'arhiv_month';
			htabnews9.className = 'arhiv_month';
			htabnews10.className = 'arhiv_month';
			htabnews11.className = 'arhiv_month';
			htabnews12.className = 'arhiv_month_over';			
			break;
		
	}

}
