function addEvent(node, type, fn, bool) 
{ 
	if(!bool) var bool = false;
	
	if(node.addEventListener)
	{
		node.addEventListener(type, fn, bool);
		return true;
	}
	else if(node.attachEvent)
	{
		node['e'+type+fn] = fn;
		node[type+fn] = function() { node['e'+type+fn](window.event); }
		node.attachEvent('on'+type, node[type+fn]);
		return true;
	}
	return false;
};



function searchValue() {
	var s = document.getElementById('s');
	s.value = 'SEARCH';
	s.onfocus = function() { this.value = ''; };
}
addEvent(window,'load',searchValue);



function bgBottomHeight() {
	var bgbot = document.getElementById('bg-bottom');	
	var htmlHeight = document.body.parentNode.scrollHeight;
	bgbot.style.height = (htmlHeight - 375) + 'px';
}
addEvent(window,'load',bgBottomHeight); 
