// javascript file
function linksHover() {
	var objMenu = document.getElementById('menu_01').getElementsByTagName('A');
	for(var i=0; i<objMenu.length; i++) {
		objMenu[i].onmouseover = function() { 
			var tmpPath = new String(this.firstChild.getAttribute('SRC'));
			tmpPath = tmpPath.substr(0,(tmpPath.length-4));
			this.firstChild.setAttribute('src', tmpPath+'_hover.gif'); 
		}	
		objMenu[i].onmouseout = function() {
			var tmpPath = new String(this.firstChild.getAttribute('SRC'));
			tmpPath = tmpPath.substr(0,(tmpPath.length-10));
			this.firstChild.setAttribute('src', tmpPath+'.gif');		
		} 
	}
}
function setOpacity(object, value) {
		object.style.opacity = value/10;
		object.style.filter = "alpha(opacity=" + value*10+ ")";
    		object.style.MozOpacity = (value / 10);
    		object.style.KhtmlOpacity = (value / 10);
} 
function galleriesHover() {
	var tmpObj = document.getElementById('galleries_01');
	var arrMiniatures = tmpObj.getElementsByTagName('A');
	for(var i=0; i<arrMiniatures.length;i++) {
		setOpacity(arrMiniatures[i].firstChild, 7);
		arrMiniatures[i].onmouseover = function() {
			setOpacity(this.firstChild, 10);
		}
		arrMiniatures[i].onmouseout = function() {
			setOpacity(this.firstChild, 7);
		}
	}
}
window.onload = function() {
	linksHover();
	galleriesHover();
}

