$(document).ready(function() {
	$('#tab_content2').hide(); 
	$('#tab_content3').hide(); 
	document.getElementById('tab_button1').style.backgroundImage = ('url(/images/nw-dl/button1_active.gif)');
	document.getElementById('tab_button2').style.backgroundImage = ('url(/images/nw-dl/button2_inactive.gif)');
	document.getElementById('tab_button3').style.backgroundImage = ('url(/images/nw-dl/button3_inactive.gif)');
});

function tabload(x) {
	if (x == 1) {
	document.getElementById('tab_button1').style.backgroundImage = ('url(/images/nw-dl/button1_active.gif)');
	document.getElementById('tab_button2').style.backgroundImage = ('url(/images/nw-dl/button2_inactive.gif)');
	document.getElementById('tab_button3').style.backgroundImage = ('url(/images/nw-dl/button3_inactive.gif)');
	document.getElementById('tab_button1').style.color = ('#000');
	$('#tab_content1').fadeIn();  
	$('#tab_content2').fadeOut();
	$('#tab_content3').fadeOut();
	}
	else if (x == 2) {
	document.getElementById('tab_button2').style.backgroundImage = ('url(/images/nw-dl/button2_active.gif)');
	document.getElementById('tab_button1').style.backgroundImage = ('url(/images/nw-dl/button1_inactive.gif)');
	document.getElementById('tab_button3').style.backgroundImage = ('url(/images/nw-dl/button3_inactive.gif)');
	$('#tab_content2').fadeIn();
	$('#tab_content1').fadeOut();
	$('#tab_content3').fadeOut();
	}
	else if (x == 3) {
	document.getElementById('tab_button3').style.backgroundImage = ('url(/images/nw-dl/button3_active.gif)');
	document.getElementById('tab_button1').style.backgroundImage = ('url(/images/nw-dl/button1_inactive.gif)');
	document.getElementById('tab_button2').style.backgroundImage = ('url(/images/nw-dl/button2_inactive.gif)');
	$('#tab_content3').fadeIn();   
	$('#tab_content1').fadeOut();
	$('#tab_content2').fadeOut();
	
	}
}

