/*$(function(){
	var sf = $('#searchField');
	alert(sf.val());
	if(sf.val()=='') sf.val(sf.attr('title'));
	sf.focusin(function(){
		if (this.val() == sf.attr('title')) this.val('');
		});
	sf.focusout(function(){
		if (this.val() == '') sf.val(sf.attr('title'));
		});
	});
*/
function loginShow()
{
/*	var el = window.event ? window.event.srcElement : e.currentTarget;
	alert(el.tagName);
*/
	node=document.getElementById("login");
	if(node.style.display=="block")
	{
		node.style.display="none";
//		removeHandler(document.getElementsByTagName("body").item(0),"click",loginShow);
	}
	else
	{
		node.style.display="block";
//		addHandler(document.getElementsByTagName("body").item(0),"click",loginShow);
	}
}
/*
function loginInit()
{
	addHandler(document.getElementById("loginButton"),"click",loginShow);
}
var root=window.addEventListener||window.attachEvent?window:document.addEventListener?document:null;
if(root){
	addHandler(root,"load",loginInit);
}
*/

window.onload = function () {
	el=document.getElementById("searchField");
	if (el.value == '') el.value = el.title;
	el.onfocus = function () {
		if (this.value == this.title) this.value = '';
	}
	if (el.captureEvents) el.captureEvents(Event.FOCUS);
	el.onblur = function () {
		if (this.value == '') this.value = this.title;
	}
	if (el.captureEvents) el.captureEvents(Event.BLUR);
}


