function changeTextColorOver(elementId)
{
	var text = document.getElementById(elementId);
	text.style.color = "#59ADDB";
}

function changeTextColorOut(elementId)
{
	var text = document.getElementById(elementId);
	text.style.color = "#793900";
}

startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("appartments");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				var selAppartType = document.getElementById("selAppartType");
				var contactEmail = document.getElementById("contactEmail");
				node.onmouseover=function() {
					this.className+=" over";
					this.style.color = "#0067AC";
					if (selAppartType != null && contactEmail != null) {
						selAppartType.style.visibility = 'hidden';
						contactEmail.style.visibility = 'hidden';
					}
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
					this.style.color = "#793900";
					if (selAppartType != null && contactEmail != null) {
						selAppartType.style.visibility = 'visible';
						contactEmail.style.visibility = 'visible';
					}
				}
			}
		}
		navRoot = document.getElementById("services");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				var selAppartType = document.getElementById("selAppartType");
				var contactEmail = document.getElementById("contactEmail");
				node.onmouseover=function() {
					this.className+=" over";
					this.style.color = "#0067AC";
					if (selAppartType != null && contactEmail != null) {
						selAppartType.style.visibility = 'hidden';
						contactEmail.style.visibility = 'hidden';
					}
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
					this.style.color = "#793900";
					if (selAppartType != null && contactEmail != null) {
						selAppartType.style.visibility = 'visible';
						contactEmail.style.visibility = 'visible';
					}
				}
			}
		}
		navRoot = document.getElementById("offer");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				var selAppartType = document.getElementById("selAppartType");
				var contactEmail = document.getElementById("contactEmail");
				node.onmouseover=function() {
					this.className+=" over";
					this.style.color = "#0067AC";
					if (selAppartType != null && contactEmail != null) {
						selAppartType.style.visibility = 'hidden';
						contactEmail.style.visibility = 'hidden';
					}
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
					this.style.color = "#793900";
					if (selAppartType != null && contactEmail != null) {
						selAppartType.style.visibility = 'visible';
						contactEmail.style.visibility = 'visible';
					}
				}
			}
		}
		navRoot = document.getElementById("photos");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				var contactEmail = document.getElementById("contactEmail");
				node.onmouseover=function() {
					this.className+=" over";
					this.style.color = "#0067AC";
					if (contactEmail != null) {
						contactEmail.style.visibility = 'hidden';
					}
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
					this.style.color = "#793900";
					if (contactEmail != null) {
						contactEmail.style.visibility = 'visible';
					}
				}
			}
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", startList);

function blueTriangle(imgId) {
	var photo = document.getElementById(imgId);
	photo.src = "res/menu_triangle_blue.jpg";
}

function commonTriangle(imgId) {
	var photo = document.getElementById(imgId);
	photo.src = "res/menu_triangle.jpg";
}

function onPrice(priceImgPath)
{
	var largePhoto = document.getElementById("largePhoto");
	largePhoto.src = priceImgPath + "/price.jpg";
}

function onPartners(newImgPath)
{
	largePhoto.src = newImgPath;
}
