// JavaScript Document


showWaterMark = function(tag, minHeight, offset) {
	var contentHeight = document.getElementById(tag).offsetHeight;
	if (contentHeight < minHeight) contentHeight = minHeight;  // min height
	document.getElementById('watermark').style.top = (contentHeight-offset) + 'px';
	document.getElementById('watermark').style.display = 'block';
}

mouseOver = function(obj) {
	ext = obj.src.substring(obj.src.lastIndexOf('.'), obj.src.length);
	if (obj.src.indexOf('On' + ext) == -1) {
		obj.src = obj.src.replace(ext, 'On'+ext);
	}
}

mouseOut = function(obj) {
	ext = obj.src.substring(obj.src.lastIndexOf('.'), obj.src.length);
	if (obj.src.indexOf('On' + ext) != -1) {
		obj.src = obj.src.replace('On'+ext, ext);
	}
}
