currnum = 1;
currview = 1;

function changeMenu(num) {

	if (num == 1) {
		// top pic
		document.getElementById("toppictd").style.backgroundColor = "#402418";
		document.getElementById("toppic").src = "images/toppic_app.jpg";
		// main left
		document.getElementById("mainlogotd").style.backgroundColor = "#B9B17C";
		document.getElementById("mainlogo").src = "images/mainlogo_app2.jpg";
		// main right
		document.getElementById("mainpictd").style.backgroundColor = "#FFFFFF";
		document.getElementById("mainpic").src = "images/mainpic_app2.jpg";
		// bot pic
		document.getElementById("botpictd").style.backgroundColor = "#402418";
		document.getElementById("botpic").src = "images/botpic_app2.jpg";
		// text 
		document.getElementById("appdiv").style.display = "block";
		document.getElementById("dinnerdiv").style.display = "none";
		document.getElementById("dessertdiv").style.display = "none";
	}

	if (num == 2) {
		// top pic
		document.getElementById("toppictd").style.backgroundColor = "#402418";
		document.getElementById("toppic").src = "images/toppic_app.jpg";
		// main left
		document.getElementById("mainlogotd").style.backgroundColor = "#95813E";
		document.getElementById("mainlogo").src = "images/mainlogo_dinner.jpg";
		// main right
		document.getElementById("mainpictd").style.backgroundColor = "#C1A169";
		document.getElementById("mainpic").src = "images/mainpic_dinner.jpg";
		// bot pic
		document.getElementById("botpictd").style.backgroundColor = "#402418";
		document.getElementById("botpic").src = "images/botpic_dinner.jpg";
		// text 
		document.getElementById("appdiv").style.display = "none";
		document.getElementById("dinnerdiv").style.display = "block";
		document.getElementById("dessertdiv").style.display = "none";
	}
	
	if (num == 3) {
		// top pic
		document.getElementById("toppictd").style.backgroundColor = "#402418";
		document.getElementById("toppic").src = "images/toppic_app.jpg";
		// main left
		document.getElementById("mainlogotd").style.backgroundColor = "#AD9D59";
		document.getElementById("mainlogo").src = "images/mainlogo_bread.jpg";
		// main right
		document.getElementById("mainpictd").style.backgroundColor = "#B17825";
		document.getElementById("mainpic").src = "images/mainpic_bread.jpg";
		// bot pic
		document.getElementById("botpictd").style.backgroundColor = "#402418";
		document.getElementById("botpic").src = "images/botpic_bread.jpg";
		// text 
		document.getElementById("appdiv").style.display = "none";
		document.getElementById("dinnerdiv").style.display = "none";
		document.getElementById("dessertdiv").style.display = "block";
		
	}
	if (num == 4) {
		// top pic
		document.getElementById("toppictd").style.backgroundColor = "#402418";
		document.getElementById("toppic").src = "images/toppic_app.jpg";
		// main left
		document.getElementById("mainlogotd").style.backgroundColor = "#AD9D59";
		document.getElementById("mainlogo").src = "images/mainlogo_tasting.jpg";
		// main right
		document.getElementById("mainpictd").style.backgroundColor = "#B17825";
		document.getElementById("mainpic").src = "images/mainpic_tasting.jpg";
		// bot pic
		document.getElementById("botpictd").style.backgroundColor = "#402418";
		document.getElementById("botpic").src = "images/botpic_tasting.jpg";
		// text 
		document.getElementById("appdiv").style.display = "none";
		document.getElementById("dinnerdiv").style.display = "none";
		document.getElementById("dessertdiv").style.display = "block";
	}
	
	if (num == 5) {
		// top pic
		document.getElementById("toppictd").style.backgroundColor = "#402418";
		document.getElementById("toppic").src = "images/toppic_app.jpg";
		// main left
		document.getElementById("mainlogotd").style.backgroundColor = "#AD9D59";
		document.getElementById("mainlogo").src = "images/mainlogo_sample.jpg";
		// main right
		document.getElementById("mainpictd").style.backgroundColor = "#B17825";
		document.getElementById("mainpic").src = "images/mainpic_sample.jpg";
		// bot pic
		document.getElementById("botpictd").style.backgroundColor = "#402418";
		document.getElementById("botpic").src = "images/botpic_sample.jpg";
		// text 
		document.getElementById("appdiv").style.display = "none";
		document.getElementById("dinnerdiv").style.display = "none";
		document.getElementById("dessertdiv").style.display = "block";
	}
	if (num == 6) {
		// top pic
		document.getElementById("toppictd").style.backgroundColor = "#402418";
		document.getElementById("toppic").src = "images/toppic_app.jpg";
		// main left
		document.getElementById("mainlogotd").style.backgroundColor = "#AD9D59";
		document.getElementById("mainlogo").src = "images/mainlogo_tasting.jpg";
		// main right
		document.getElementById("mainpictd").style.backgroundColor = "#B17825";
		document.getElementById("mainpic").src = "images/mainpic_tasting.jpg";
		// bot pic
		document.getElementById("botpictd").style.backgroundColor = "#402418";
		document.getElementById("botpic").src = "images/botpic_tasting.jpg";
		// text 
		document.getElementById("appdiv").style.display = "none";
		document.getElementById("dinnerdiv").style.display = "none";
		document.getElementById("dessertdiv").style.display = "block";
	}
	if (num == 7) {
		// top pic
		document.getElementById("toppictd").style.backgroundColor = "#402418";
		document.getElementById("toppic").src = "images/toppic_app.jpg";
		// main left
		document.getElementById("mainlogotd").style.backgroundColor = "#AD9D59";
		document.getElementById("mainlogo").src = "images/mainlogo_ambience.jpg";
		// main right
		document.getElementById("mainpictd").style.backgroundColor = "#B17825";
		document.getElementById("mainpic").src = "images/mainpic_ambience.jpg";
		// bot pic
		document.getElementById("botpictd").style.backgroundColor = "#402418";
		document.getElementById("botpic").src = "images/botpic_ambience.jpg";
		// text 
		document.getElementById("appdiv").style.display = "none";
		document.getElementById("dinnerdiv").style.display = "none";
		document.getElementById("dessertdiv").style.display = "block";
	}
	if (num == 8) {
		// top pic
		document.getElementById("toppictd").style.backgroundColor = "#402418";
		document.getElementById("toppic").src = "images/toppic_app.jpg";
		// main left
		document.getElementById("mainlogotd").style.backgroundColor = "#AD9D59";
		document.getElementById("mainlogo").src = "images/mainlogo_directions.jpg";
		// main right
		document.getElementById("mainpictd").style.backgroundColor = "#B17825";
		document.getElementById("mainpic").src = "images/mainpic_directions.jpg";
		// bot pic
		document.getElementById("botpictd").style.backgroundColor = "#402418";
		document.getElementById("botpic").src = "images/botpic_directions.jpg";
		// text 
		document.getElementById("appdiv").style.display = "none";
		document.getElementById("dinnerdiv").style.display = "none";
		document.getElementById("dessertdiv").style.display = "block";
	}
	if (num == 9) {
		// top pic
		document.getElementById("toppictd").style.backgroundColor = "#402418";
		document.getElementById("toppic").src = "images/toppic_app.jpg";
		// main left
		document.getElementById("mainlogotd").style.backgroundColor = "#AD9D59";
		document.getElementById("mainlogo").src = "images/mainlogo_party2.jpg";
		// main right
		document.getElementById("mainpictd").style.backgroundColor = "#B17825";
		document.getElementById("mainpic").src = "images/mainpic_party2.jpg";
		// bot pic
		document.getElementById("botpictd").style.backgroundColor = "#402418";
		document.getElementById("botpic").src = "images/botpic_party2.jpg";
		// text 
		document.getElementById("appdiv").style.display = "none";
		document.getElementById("dinnerdiv").style.display = "none";
		document.getElementById("dessertdiv").style.display = "block";
	}
	currview = num;
	currview = 1;
	document.getElementById("textdiv").style.display = "block";
	document.getElementById("viewtextpic").src = "images/view_photo.gif";
}

function changeText() {
	if (currview == 1) {
		currview = 0;
		document.getElementById("textdiv").style.display = "none";
		document.getElementById("viewtextpic").src = "images/view_text.gif";
	} else {
		currview = 1;
		document.getElementById("textdiv").style.display = "block";
		document.getElementById("viewtextpic").src = "images/view_photo.gif";
	}

}