jQuery(document).ready(function() {
	//homepage charities/donors box click to activate link
	jQuery(".effect").click(function () { 
		the_href = jQuery(this).find("a").attr("href"); 
		//alert(the_href);
		window.location = the_href;
    });
	//homepage charity logos url click fix for IE
	jQuery(".char-hold").click(function () { 
		the_href = jQuery(this).parent().attr("href"); 
		//alert(the_href);
		window.location = the_href;
    });
	//contact form reset button simulation
	jQuery("#resetBtn").click(function () { 
		jQuery("#reset").click(); 
		return false;
    });
})



/*function initPage()
{
	var _div = document.getElementsByTagName("div");
	if (_div)
	{
		for (var i = 0; i < _div.length; i++)
		{
			if (_div[i].className.indexOf("effect") != -1)
			{
				var href = _div[i].getElementsByTagName('strong')[0].getElementsByTagName('a')[0].href;
				_div[i].onmouseover = function () 
				{
					
					if (this.className.indexOf("hover" == -1))
					this.className += " hover";
					window.status = href;
				}
				_div[i].onclick = function () {
					window.location = href;
				}
				_div[i].onmouseout = function ()
				{
					this.className = this.className.replace("hover", "");
					window.status = "";
				}
			}
		}
	}
}
if (window.addEventListener)
	window.addEventListener("load", initPage, false);
else if (window.attachEvent)
	window.attachEvent("onload", initPage);*/