// JavaScript Document
function addLoadEvent(func) {
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			oldonload();
			func();
		}
	}
}

function homeBtn() {
	if (!document.getElementById) return false;
	var rnlBtn = document.getElementById("logo_btn");
	rnlBtn.onmouseover = function() {
			rnlBtn.setAttribute("src","/images/rnl-logo-hover.png");
	}
	rnlBtn.onmouseout = function() {
			rnlBtn.setAttribute("src","/images/rnl-logo.png");
	}
}

addLoadEvent(homeBtn);

//jQuery method for homeBtn()
/*$(function() {
	var homeBtn = $('#logo_btn');
	homeBtn.hover(
				function() {
					$(this).attr("src","images/rnl-logo-hover.png");
				},			
				function() {
					$(this).attr("src","images/rnl-logo.png");
				});
});
*/

/*var objFixIeTooltip = {
	// methods
	init : function() {
		// detect support
		if (!document.getElementById || !document.getElementsByTagName) return;
		// detect IE - leave out if using conditional comments
		var isIE = navigator.userAgent.indexOf("MSIE");
		if (isIE < 1) return;
		// find the image(s) - tweak to your needs
		var elContainer=document.getElementById("wrapper");
		if (!elContainer) return;
		var elImg=elContainer.getElementsByTagName("img");
		if (!elImg) return;
		// if there isn't already a title attribute set on the image, set the title attribute to blank, thus overriding the alt tooltip behaviour
		// use == '' because IE always thinks title is a string (cannot distinguish between undefined and empty attributes)
		if (elImg.getAttribute('title') == '') elImg.setAttribute('title','');
	}
};
addLoadEvent(objFixIeTooltip.init);*/