var Watemark_Text = "";

function stupidOpera5() {
	ver = String(navigator.appVersion).substr(0,1);
	if(window.opera != null && ver == "5") return true;
	else return false;
}

var hint = null;

function protectFromFool() {
	if(document.images['photo'] != null && document.images['photo'].style != null && !stupidOpera5()) {
		var image = document.images['photo'];
		
		image.width	= image.width;
		image.height	= image.height;
		image.style.backgroundImage = "url(" + image.src + ")";
		image.src = "img/empty.gif";
		image.alt = "";
		
		if(document.createElement != null) {
			if(document.getElementById("imghint") != null) {
				hint = document.createElement("DIV");
				document.body.appendChild(hint);
				
				hint.id = "alt";
				hint.style.display = "none";

				hint.innerHTML = document.getElementById("imghint").innerHTML;
				
				image.onmouseover	= showHint;
				image.onmouseout	= hideHint;
				image.onmousemove	= moveHint;
			}
		}
	}
}

function moveHint(Event) {
	if(hint != null) {
		if(Event == null) Event = window.event;

		if(document.body.scrollLeft != null) {
			dx = document.body.scrollLeft;
			dy = document.body.scrollTop;
		}
		else {
			if(window.scrollX != null) {
				dx = window.scrollX;
				dy = window.scrollY;
			}
			else {
				dx = 0;
				dy = 0;
			}
		}
		
		hint.style.left = Event.clientX + dx - 1 + "px";
		hint.style.top = Event.clientY + dy - 22 + "px";
	}
}

function showHint() {
	if(hint != null) hint.style.display = "";
}

function hideHint() {
	if(hint != null) hint.style.display = "none";
}
