/* Copyright 2006-2007 Panagiotis Tsimpoglou. All rights reserved. */
/*
	<summary>
	The event for focusing the top search textbox.
	</summary>
	<param name="Obj">Object</param>
	<returns></returns>
	<remarks>Return false in order to prevent the default event from firing.</remarks>
*/
function TopSearchGotFocus(Obj) {	
	try{ Obj.value = (Obj.value == 'Search aPazari...'? '': Obj.value); } catch(ex) {}
	return false;
}

/*
	<summary>
	The event for loosing focus from the top search textbox.
	</summary>
	<param name="Obj">Object</param>
	<returns></returns>
	<remarks>Return false in order to prevent the default event from firing.</remarks>
*/
function TopSearchLostFocus(Obj) {
	try{ if(Obj.value.length == 0) { Obj.value = 'Search aPazari...'; } } catch(ex) {}
	return false;
}

/*
	<summary>
	The event for submiting the top search form. If the textbox contains the default grey message then the form is not submited.
	</summary>
	<returns></returns>
	<remarks>Return false in order to prevent the default event from firing.</remarks>
*/
function TopSearchSubmit() {
	try{ 
		if($('#top-keywords').val() == 'Search aPazari...') { $('#top-keywords').val(''); return false; } else { return true; }
	} catch(ex) {}
	return false;
}