function enlargePhoto(photo_id, has_large) {
	document.getElementById('project_picture_normal').src = ProjectPics[photo_id].src;
	display_photo_id = photo_id;
	if('' == has_large) {
		displayOff('project_picture_normal_click_text');
	} else {
		displayOn('project_picture_normal_click_text');
	}
}
function openBigPhoto() {
	if("undefined" != LargePics[display_photo_id]) {
		openPhoto(LargeName+'-'+display_photo_id, LargePics[display_photo_id][0], LargePics[display_photo_id][1], LargePics[display_photo_id][2]);
	}
}
function openPhoto(t, p, w, h) {
	/*
	t = window title
	p = URL to image file
	w = width of image file
	h = height of image file
	*/
	var window_width = String(Number(w) + 20);
	var window_height = String(Number(h) + 20);
	var window_scroll = "no";
	if(screen.width) {
		if((Number(w) + 20) > screen.width) {
			window_width = String(Number(screen.width) - 80);
			window_scroll = "yes";
		}
		if((Number(h) + 20) > screen.height) {
			window_height = String(Number(screen.height) - 80);
			window_scroll = "yes";
		}
	} else {
		if(w > 560) {
			window_height = "560";
			window_scroll = "yes";
		}
		if(h > 400) {
			window_height = "400";
			window_scroll = "yes";
		}
	}
	var open_specs = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=" + window_scroll + ",resizable=no,copyhistory=no,height=" + window_height + ",width=" + window_width + ",top=10,left=10";
	window.open(p, t, open_specs);
}

function displayOff(theID) {
	if(document.getElementById(theID) && ("none" != document.getElementById(theID).style.display)) {
		if(document.getElementById(theID).style.display = "none") {
			return true;
		}
	}
	return false;
}
function displayOn(theID) {
	if(document.getElementById(theID) && ("none" == document.getElementById(theID).style.display)) {
		if(document.getElementById(theID).style.display = "") {
			return true;
		}
	}
	return false;
}
