/*
---------------------------------------
FoodSourceInc.com Global Javascript
Author: Ty Cohen
Thank you to the jQuery team!
---------------------------------------
*/

// Render the menu
$(document).ready(function() {
	qm_create(0,false,0,250,false,false,false,false);					   
});

// Global search
// -----------------------------
// Sets default text and clears the global search, and more.
$(document).ready(function() {
	// Set the defaut text
	var defaultText = "Site Search"
	$("#qSearch").val(defaultText);
	
	// When clear the search box when in focus
	$("#qSearch").focus(function () {
		if ($("#qSearch").val() == defaultText) {
			$(this).val("");	
		}
	})
	// When search box is blurred, check to see if a value was entered
	// If not, then put the default text back
	$("#qSearch").blur(function() {
		if ($(this).val() == "" || $(this).val() == " ") {
			$(this).val(defaultText);		
		}
	});
});