jQuery(document).ready(function($) {
	clearText.init();

   $('#slideshow').cycle({
   	fx: 'fade',
   	pause: 0,
   	timeout: 9000
   });

   
   $('#onload').trigger('click');
 });
 
 // Clear - use this to automatically clear a text box of it's default value. If nothing is typed in the box, the script will put the default value back 
clearText = {

      txtBoxes : ['s'],
      
      init: function() {

	for (i=0;i<clearText.txtBoxes.length;i++) {
		var oCurrentTxtBox = document.getElementById(clearText.txtBoxes[i]);

		if (!oCurrentTxtBox) { continue; }
		jQuery(oCurrentTxtBox).addClass("searchText");
		oCurrentTxtBox.defaultVal = oCurrentTxtBox.defaultValue;
		clearText.clearBox(oCurrentTxtBox);
            }
      },
      clearBox : function(txtBox) {
            txtBox.onfocus = function() {
                  if (txtBox.value == txtBox.defaultVal) { 
	        	txtBox.value = ''; 
		jQuery(txtBox).removeClass("searchText"); } 
            };

            txtBox.onblur = function() {
                  if (txtBox.value == '') { 
		txtBox.value = txtBox.defaultVal; 
	        	jQuery(txtBox).addClass("searchText"); }
            };
      }
};
