var image_url_1 = new Image();
var image_url_2 = new Image();
var image_url_3 = new Image();
var image_url_4 = new Image();
var image_url_5 = new Image();
var image_url_6 = new Image();
var image_url_7 = new Image();
var image_url_8 = new Image();
	
image_url_1.src = "leftnav-subbtn2.jpg";
image_url_2.src = "leftnav-subbtn2.jpg";
image_url_3.src = "leftnav-subbtn2.jpg";
image_url_4.src = "leftnav-subbtn2.jpg";
image_url_5.src = "leftnav-subbtn2.jpg";
image_url_6.src = "leftnav-subbtn2.jpg";
image_url_7.src = "leftnav-subbtn2.jpg";
image_url_8.src = "leftnav-subbtn2.jpg";


function setSection1(section){
	currentSection1 = section;
	checkSection1();
}

function checkSection1(){
	
	document.getElementById('inv').style.backgroundPosition="top";
	document.getElementById('lr').style.backgroundPosition="top";
	document.getElementById('cnfr').style.backgroundPosition="top";
	document.getElementById('gp').style.backgroundPosition="top";
	document.getElementById('ngns').style.backgroundPosition="top";
	document.getElementById('vm').style.backgroundPosition="top";
	document.getElementById('vp').style.backgroundPosition="top";
	
	if(currentSection1 == "inv"){
		document.getElementById('inv').style.backgroundPosition="bottom";
	}
	else if(currentSection1 == "lr"){
		document.getElementById('lr').style.backgroundPosition="bottom";
	}
	else if(currentSection1 == "cnfr"){
		document.getElementById('cnfr').style.backgroundPosition="bottom";
	}
	else if(currentSection1 == "gp"){
		document.getElementById('gp').style.backgroundPosition="bottom";
	}
	else if(currentSection1 == "ngns"){
		document.getElementById('ngns').style.backgroundPosition="bottom";
	}
	else if(currentSection1 == "vm"){
		document.getElementById('vm').style.backgroundPosition="bottom";
	}
	else if(currentSection1 == "vp"){
		document.getElementById('vp').style.backgroundPosition="bottom";
	}
	
	else {
		
		document.getElementById('inv').style.backgroundPosition="top";
		document.getElementById('lr').style.backgroundPosition="top";
		document.getElementById('cnfr').style.backgroundPosition="top";
		document.getElementById('gp').style.backgroundPosition="top";
		document.getElementById('ngns').style.backgroundPosition="top";
		document.getElementById('vm').style.backgroundPosition="top";
		document.getElementById('vp').style.backgroundPosition="top";
	}
}

function changeButtons1(n){
	switch(n){
		case 1:
		document.getElementById('inv').style.backgroundPosition="bottom";
		break;

		case 2:
		document.getElementById('lr').style.backgroundPosition="bottom";
		break;

		case 3:
		document.getElementById('cnfr').style.backgroundPosition="bottom";
		break;
		
		case 4:
		document.getElementById('gp').style.backgroundPosition="bottom";
		break;
		
		case 5:
		document.getElementById('ngns').style.backgroundPosition="bottom";
		break;
		
		case 6:
		document.getElementById('vm').style.backgroundPosition="bottom";
		break;
		
		case 7:
		document.getElementById('vp').style.backgroundPosition="bottom";
		break;
	}
}

function changeButtonsBack1(n){
	switch(n){
		case 1:
		if(currentSection1 == "inv"){
			document.getElementById('inv').style.backgroundPosition="bottom";
		}
		else {
			document.getElementById('inv').style.backgroundPosition="top";
		}
		break;
		
		case 2:
		if(currentSection1 == "lr"){
			document.getElementById('lr').style.backgroundPosition="bottom";
		}
		else {
			document.getElementById('lr').style.backgroundPosition="top";
		}
		break;
		
		case 3:
		if(currentSection1 == "cnfr"){
			document.getElementById('cnfr').style.backgroundPosition="bottom";
		}
		else {
			document.getElementById('cnfr').style.backgroundPosition="top";
		}
		break;
		
		case 4:
		if(currentSection1 == "gp"){
			document.getElementById('gp').style.backgroundPosition="bottom";
		}
		else {
			document.getElementById('gp').style.backgroundPosition="top";
		}
		break;
		
		case 5:
		if(currentSection1 == "ngns"){
			document.getElementById('ngns').style.backgroundPosition="bottom";
		}
		else {
			document.getElementById('ngns').style.backgroundPosition="top";
		}
		break;
		
		case 6:
		if(currentSection1 == "vm"){
			document.getElementById('vm').style.backgroundPosition="bottom";
		}
		else {
			document.getElementById('vm').style.backgroundPosition="top";
		}
		break;
		
		case 7:
		if(currentSection1 == "vp"){
			document.getElementById('vp').style.backgroundPosition="bottom";
		}
		else {
			document.getElementById('vp').style.backgroundPosition="top";
		}
		break;
		
		
	}
}