function zoomPhoto(photoUrl, alt) {
	tb_show(alt, 'files/' + photoUrl,photoUrl);
	return false;
}

function openPhoto(photoUrl, alt){

	document.getElementById("imageBox").innerHTML = 
		'<a href="files/' + photoUrl + '" onclick="return zoomPhoto(\'' + photoUrl + '\', \'' + alt + '\')"><img src="files/medium_' + photoUrl + '" style="border: solid #aaaaaa 1px;" title="' + alt + '" alt="' + alt + '"></a>';
	return false;
}

function focus_input(elem, startfocus) {
	if (startfocus)
		elem.className = 'activeinput';
	else 
		elem.className = 'inactiveinput';
}

function mouseEnter(i){
	var target = document.getElementById(i);
	target.className='content-active'; 
	document.getElementById("edit-icon-"+ i).style.display = '';
}

function mouseExit(i){
	var target = document.getElementById(i);
	target.className=''; 
	document.getElementById("edit-icon-"+ i).style.display = 'none';
}

function load(){
	if (document.getElementById("map")) {
		loadMap();
	}
}

function unload(){
	if (document.getElementById("map")) {
		GUnload();
	}
}



function showElement(id) {
 
	if (document.getElementById) { 
		document.getElementById(id).style.display = 'block';
	}
	else {
		if (document.layers) {
			document.id.display = 'block';
		}
		else {
			document.all.id.style.display = 'block';
		}
	}
}


function switchElement(id, ids){	
	hideAllElements(ids);
	showElement(id, ids);
}

function hideAllElements(ids){
	for (var i=0;i<ids.length;i++){
		hideElement(ids[i]);
	}		  
}

function hideElement(id) {

	if (document.getElementById) { 
		document.getElementById(id).style.display = 'none';

	}
	else {
		if (document.layers) {
			document.id.display = 'none';
		}
		else {
			document.all.id.style.display = 'none';
		}
	}
}


