$(document).ready( function(){
	autoFill($("#txtSearch"), "Enter Search Keyword(s)");
	//IE6 css hover flicker prevention (only affects users with "Every time the page loads" temporary files setting
	try { document.execCommand("BackgroundImageCache", false, true); } catch(err) {}
	
	$("#photo-feature").cycle();
});


//Auto-Fill function accepts id of input and fills it with the given value.
function autoFill(id, v){
	$(id).css({ color: "#b2adad" }).attr({ value: v }).focus(function(){
		if($(this).val()==v){
			$(this).val("").css({ color: "#333" });
		}
	}).blur(function(){
		if($(this).val()==""){
			$(this).css({ color: "#b2adad" }).val(v);
		}
	});
	
}