function initPage()
{
	var d = document.getElementById("content");
	if ( d )
	{
		var links= d.getElementsByTagName("a");
		for (var i=0; i<links.length; i++)
		{
			if (links[i].className == "button-open") {
				links[i].onmouseover = function() {
					this.parentNode.parentNode.style.background= '#F7F7F4 url(/home/wp-content/themes/RiversWithoutBorders2/images/dots-gray.gif) repeat-x left bottom';
				}
				links[i].onmouseout = function() {
					this.parentNode.parentNode.style.background = 'url(/home/wp-content/themes/RiversWithoutBorders2/images/dots-gray.gif) repeat-x left bottom';
				}				
			}
		  if (links[i].className == "icon-open") {
				links[i].onmouseover = function() {
					this.parentNode.style.background= '#F7F7F4 url(/home/wp-content/themes/RiversWithoutBorders2/images/dots-gray.gif) repeat-x left bottom';
				}
				links[i].onmouseout = function() {
					this.parentNode.style.background = 'url(/home/wp-content/themes/RiversWithoutBorders2/images/dots-gray.gif) repeat-x left bottom';
				}				
			}	
			
			
		}
	}
}
if (window.addEventListener)
	window.addEventListener("load", initPage, false);
else if (window.attachEvent)
	window.attachEvent("onload", initPage);
