function initPage()
{
	var inputs = document.getElementsByTagName("input");
	for (var i=0; i<inputs.length; i++)
	{
		if (inputs[i].className == "btn")
			{
				inputs[i].onmouseover = function()
			{
			this.src = this.src.replace(".gif", "-hover.gif");
			}
			inputs[i].onmouseout = function()
			{
				this.src = this.src.replace("-hover.gif", ".gif");
			}
		}
		if (inputs[i].className == "inp-search")
			{
				inputs[i].onfocus = function()
			{
				this.style.color = "#000";
			}
				inputs[i].onblur = function()
			{
				this.style.color = "#ababab";
			}
		}
		if (inputs[i].className == "inp-txt")
			{
				inputs[i].onfocus = function()
			{
				this.style.color = "#000";
			}
				inputs[i].onblur = function()
			{
				this.style.color = "#ababab";
			}
		}
	}
	var texta = document.getElementsByTagName("textarea");
	for (var i=0; i<texta.length; i++)
	{
		if (texta[i].className == "inp-txt-area")
			{
				texta[i].onfocus = function()
			{
				this.style.color = "#000";
			}
				texta[i].onblur = function()
			{
				this.style.color = "#ababab";
			}
		}
	}

	
}

if (window.addEventListener)
window.addEventListener("load", initPage, false);
else if (window.attachEvent)
window.attachEvent("onload", initPage); 
