var pngElements = Array(
	'*.PNG',
	'p.mainTitle img'
);

if (typeof(document.documentElement.style.maxHeight) == 'undefined') {
	DD_belatedPNG.fix(pngElements.join(','));
}

var suffix1 = '_off.';
var suffix2 = '_on.';

function rollOver() {
	var images = $$('img').concat($$('input')); 

	var tmp = new Object();
	images.each( function(obj, index) {
		obj.galleryImg = false;
		if(obj.getAttribute('src') && obj.getAttribute('src').indexOf(suffix1)!=-1) {
			obj.onmouseover = function() {
				this.setAttribute('src', this.getAttribute('src').replace(suffix1, suffix2));
			}
			obj.onmouseout = function() {
				this.setAttribute('src', this.getAttribute('src').replace(suffix2, suffix1));
			}
			tmp[index] = new Image();
			tmp[index].src = obj.src.replace(suffix1, suffix2);
		}
	} );
}


function emadd(txt1, txt2, txt3) {
	var email = txt1 + '@' + txt2;
	var label = (txt3 == '') ? email : txt3;
	document.write('<a href="mailto:' + email + '">' + label + '</a>');
	return;
}


Event.observe(window, 'load', rollOver, false);

