var image_url_1 = new Image();
var image_url_2 = new Image();
var image_url_3 = new Image();
var image_url_4 = new Image();
	
image_url_1.src = "leftnav-btn1.jpg";
image_url_2.src = "leftnav-btn1.jpg";
image_url_3.src = "leftnav-btn1.jpg";
image_url_4.src = "leftnav-btn1.jpg";


function setSection(section){
	currentSection = section;
	checkSection();
}

function checkSection(){
	document.getElementById('internet').style.backgroundPosition="top";
	document.getElementById('mobile1').style.backgroundPosition="top";
	document.getElementById('phone').style.backgroundPosition="top";
	document.getElementById('mpls').style.backgroundPosition="top";
	document.getElementById('ict').style.backgroundPosition="top";
	document.getElementById('wd').style.backgroundPosition="top";
	document.getElementById('gd').style.backgroundPosition="top";
	document.getElementById('other').style.backgroundPosition="top";
	
	if(currentSection == "internet"){
		document.getElementById('internet').style.backgroundPosition="bottom";
	}
	else if(currentSection == "mobile1"){
		document.getElementById('mobile1').style.backgroundPosition="bottom";
	}
	else if(currentSection == "phone"){
		document.getElementById('phone').style.backgroundPosition="bottom";
	}
	else if(currentSection == "mpls"){
		document.getElementById('mpls').style.backgroundPosition="bottom";
	}
	else if(currentSection == "ict"){
		document.getElementById('ict').style.backgroundPosition="bottom";
	}
	else if(currentSection == "wd"){
		document.getElementById('wd').style.backgroundPosition="bottom";
	}
	else if(currentSection == "gd"){
		document.getElementById('gd').style.backgroundPosition="bottom";
	}
	else if(currentSection == "other"){
		document.getElementById('other').style.backgroundPosition="bottom";
	}
	
	else {
		document.getElementById('internet').style.backgroundPosition="top";
		document.getElementById('mobile1').style.backgroundPosition="top";
		document.getElementById('phone').style.backgroundPosition="top";
		document.getElementById('mpls').style.backgroundPosition="top";
		document.getElementById('ict').style.backgroundPosition="top";
		document.getElementById('wd').style.backgroundPosition="top";
		document.getElementById('gd').style.backgroundPosition="top";
		document.getElementById('other').style.backgroundPosition="top";
	}
}

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

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

		case 3:
		document.getElementById('phone').style.backgroundPosition="bottom";
		break;
		
		case 4:
		document.getElementById('mpls').style.backgroundPosition="bottom";
		break;
		
		case 5:
		document.getElementById('ict').style.backgroundPosition="bottom";
		break;
		
		case 6:
		document.getElementById('wd').style.backgroundPosition="bottom";
		break;
		
		case 7:
		document.getElementById('gd').style.backgroundPosition="bottom";
		break;
		
		case 8:
		document.getElementById('other').style.backgroundPosition="bottom";
		break;
	}
}

function changeButtonsBack(n){
	switch(n){
		case 1:
		if(currentSection == "internet"){
			document.getElementById('internet').style.backgroundPosition="bottom";
		}
		else {
			document.getElementById('internet').style.backgroundPosition="top";
		}
		break;
		
		case 2:
		if(currentSection == "mobile1"){
			document.getElementById('mobile1').style.backgroundPosition="bottom";
		}
		else {
			document.getElementById('mobile1').style.backgroundPosition="top";
		}
		break;
		
		case 3:
		if(currentSection == "phone"){
			document.getElementById('phone').style.backgroundPosition="bottom";
		}
		else {
			document.getElementById('phone').style.backgroundPosition="top";
		}
		break;
		
		case 4:
		if(currentSection == "mpls"){
			document.getElementById('mpls').style.backgroundPosition="bottom";
		}
		else {
			document.getElementById('mpls').style.backgroundPosition="top";
		}
		break;
		
		case 5:
		if(currentSection == "ict"){
			document.getElementById('ict').style.backgroundPosition="bottom";
		}
		else {
			document.getElementById('ict').style.backgroundPosition="top";
		}
		break;
		
		case 6:
		if(currentSection == "wd"){
			document.getElementById('wd').style.backgroundPosition="bottom";
		}
		else {
			document.getElementById('wd').style.backgroundPosition="top";
		}
		break;
		
		case 7:
		if(currentSection == "gd"){
			document.getElementById('gd').style.backgroundPosition="bottom";
		}
		else {
			document.getElementById('gd').style.backgroundPosition="top";
		}
		break;
		
		case 8:
		if(currentSection == "other"){
			document.getElementById('other').style.backgroundPosition="bottom";
		}
		else {
			document.getElementById('other').style.backgroundPosition="top";
		}
		break;
		
		
	}
}

function setScn(section){
	currentSection2 = section;
	checkScn();
}

function checkScn(){
	document.getElementById('download').style.backgroundPosition="top";
	
	
	if(currentSection2 == "download"){
		document.getElementById('download').style.backgroundPosition="bottom";
	}
	
	else {
		document.getElementById('download').style.backgroundPosition="top";
	}
}

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

		
	}
}

function changeBtnsBack(n){
	switch(n){
		case 1:
		if(currentSection2 == "download"){
			document.getElementById('download').style.backgroundPosition="bottom";
		}
		else {
			document.getElementById('download').style.backgroundPosition="top";
		}
		break;
		
		
		
		
	}
}