// File: minisearch.js

// Start function when DOM has completely loaded 
$(document).ready(function(){ 
	$('.yesscript').show();
	$('.yesscript').removeAttr('class');
	$('form.noscript').hide();
	$('input[name="q"]').focus(function() {
		curV = $(this).val();
		defV = $(this).attr("defaultValue")
		if(defV == curV){
			$(this).attr("defaultStyle", $(this).attr("style"));
			$(this).attr("style","width: 124px; color: #000; font-size: 1em; padding: 1px;").val("");
		}
	}).blur(function() {
		curV = $(this).val();
		if($(this).attr("defaultValue") != curV) {
		if(curV == ""){
			$(this).val($(this).attr("defaultValue")).attr("style", $(this).attr("defaultStyle"));
			}
		}
	});
});

function clearDefaultandCSS(target) {
	defV = $(target).attr("defaultValue");
	curV = $(target).val();
	if( defV != curV ){
		$(target).attr("defaultValue", $(target).val()).attr("defaultStyle", $(target).attr("style"))	.removeAttr("sytle").val("");
		};
}

function restoreDefaultandCSS(target) {
	
}