function changeSubsite(page, levelId) {
	var frame = document.getElementById('subsite');
	frame.src = page;
	if (levelId) {
		showLevel(levelId);
	}
}
function showLevel(id) {
	var el = document.getElementById(id);
	if (el) {
		if (el.style.display=='block') {
			el.style.display='none';
		} else {
			el.style.display='block';
		}
	}
}

function LoadImage(){
	var imageElement = document.getElementById("clickedImage");
	  imageElement.src="images/"+window.top.location.search.substring(1);
}

function ShowHideForm(hiddenId){
var element1 = document.getElementById(hiddenId);
if (element1.style.visibility=="hidden"){
   element1.style.visibility="visible";
   document.getElementById("icon").style.background="white url('images/mail.png') no-repeat top center";
}else{
   element1.style.visibility="hidden";
	document.getElementById("icon").style.background="white url('images/nomail.png') no-repeat top center";
}
}

function NewWindowImage($image,x,y)
{
if(window["Obrazek"]){
document.anchors["Obrazek"];
}
window.open($image,"Obrazek","toolbar=no,directories=no,width="+x+",height="+y+",status=no,scrollbars=yes,resize=yes,menubar=no");
}

function clearInputHint(input, hint) {
	try {
		if (input.value==hint) {
			input.value = "";
		}
	} catch (e) {
	}
}
function restoreInputHint(input, hint) {
	try {
		if (input.value=="") {
			input.value = hint;
		}
	} catch (e) {
	}
}


function updateBreadcrumb(navId) {
	var el = document.getElementById("breadcrumb");
	if (el) {
		if (subsiteNavigator[navId]) {
			el.innerHTML=subsiteNavigator[navId];
		} else {
			el.innerHTML=subsiteNavigator['other'];
		}
	}
}
