// JavaScript Document

hover = function() {
	var delivery = true;
	var domain = "";
	if(delivery){
		domain = "";
	}else{
		domain = "/guest/wp_ollaria/";
	}
	if(document.getElementById('gototop01','img') != null){
		var gototop01 = document.getElementById('gototop01','img');
		gototop01.onmouseover = function(){
			this.setAttribute('src',domain + '/wordpress/wp-content/themes/ollaria/images/cmn_gototoph.gif');
		}
		gototop01.onmouseout = function(){
			this.setAttribute('src',domain + '/wordpress/wp-content/themes/ollaria/images/cmn_gototop.gif');
		}
	}
	if(document.getElementById('barLink1','img') != null){
	var _barLink1 = document.getElementById('barLink1','img');
		_barLink1.onmouseover = function(){
			this.setAttribute('src',domain + '/wordpress/wp-content/themes/ollaria/images/cmn_barlink1_on.gif');
		}
		_barLink1.onmouseout = function(){
			this.setAttribute('src',domain + '/wordpress/wp-content/themes/ollaria/images/cmn_barlink1_off.gif');
		}
	}
	if(document.getElementById('barLink2','img') != null){
		var _barLink2 = document.getElementById('barLink2','img');
		_barLink2.onmouseover = function(){
			this.setAttribute('src',domain + '/wordpress/wp-content/themes/ollaria/images/cmn_barlink2_on.gif');
		}
		_barLink2.onmouseout = function(){
			this.setAttribute('src',domain + '/wordpress/wp-content/themes/ollaria/images/cmn_barlink2_off.gif');
		}
	}
}
if(window.attachEvent) {
	window.attachEvent("onload", hover);
}
if(window.addEventListener) {
	window.addEventListener("load",hover,false);
}
