var UpdateOpen = false;
var counter = 1;
var LastCopy = 'UpdateCopy1';
var LastImg = 'UpdateImg1';

function bringUpdate(){
	if (UpdateOpen == false){
		showLayer('UpdateNavPrev');
		showLayer('UpdateCopy1');
		showLayer('UpdateImg1');
		UpdateOpen = true;	
	}
}

function switchUpdate(whichDir){
	if (whichDir == 'prev'){
		if (counter <= 6){
			counter = counter + 1;
			hideLayer(LastCopy);
			hideLayer(LastImg);
			showLayer('UpdateNavNext');
			showLayer('UpdateCopy' + counter);
			showLayer('UpdateImg' + counter);
			LastCopy = 'UpdateCopy' + counter;
			LastImg = 'UpdateImg' + counter;
			if (counter == 7){
				hideLayer('UpdateNavPrev');
			}
		}
	} else {
		if (counter >= 2){
			counter = counter - 1;
			hideLayer(LastCopy);
			hideLayer(LastImg);
			showLayer('UpdateNavPrev');
			showLayer('UpdateCopy' + counter);
			showLayer('UpdateImg' + counter);
			LastCopy = 'UpdateCopy' + counter;
			LastImg = 'UpdateImg' + counter;
			if (counter == 1){
				hideLayer('UpdateNavNext');
			}
		}
	
	}
}

