	function clearForm() {
    		document.form.keyword.value = "";
    	}
    	
    Cufon.replace('#menu_header li, #now-serving p', { fontFamily: 'Helvetica Neue',  hover: true });
		//Cufon.replace('input', { fontFamily: 'Myriad Pro'});
		
	Shadowbox.init();	
    	
	jQuery.noConflict();
		
	jQuery(document).ready(function() {
	
	
		jQuery('li.event-list-home:even').addClass('odd');
		
		jQuery('tr.cart-item-row:even').addClass('odd');
		jQuery('tr.ordered-items:even').addClass('odd');
	
		// Signin Box Dropdown
	    jQuery(".signin").click(function() {
	        jQuery("fieldset#signin_menu").toggle();
	    	jQuery(".signin").toggleClass("menu-open");
	    });
	    
	    jQuery("fieldset#signin_menu").mouseup(function() {
	    	return false
	    });
	    jQuery(document).mouseup(function(e) {
	    	if(jQuery(e.target).parent("a.signin").length==0) {
	    		jQuery(".signin").removeClass("menu-open");
	    		jQuery("fieldset#signin_menu").hide();
	    	}
	    });
	    // end Signin Box
	    
	    // Tabs
        jQuery(function() {
    		jQuery(".header-search").organicTabs({
                "speed": 400
            });
            
            jQuery(".page-tabs").organicTabs({
            	"speed": 400,
            });
    	});
    	//end Tabs
    	
    	//Site Selector
    	jQuery(function() {
		    jQuery('.dropdown dt a').click(function() {
		    	jQuery('.dropdown dd ul').toggle();
		    })
		    
		    jQuery('.dropdown dd ul li a').click(function() {
		    	var text = jQuery(this).html();
		    	jQuery('.dropdown dt a span').html(text);
		    	jQuery('.dropdown dd ul').hide();
		    	jQuery('#result').html('selected value is: ' + getSelectedValue('sample'))
		    });
		    
		    jQuery(document).bind('click', function(e) {
		    	var $clicked = jQuery(e.target);
		    	if (! $clicked.parents().hasClass('dropdown'))
		    		jQuery('.dropdown dd ul').hide();
		    });
		});
		// end Site Selector
		
		/*** modalbox contact form functions ***/
		//select all the a tag with name equal to modal
    	jQuery('a[name=modal]').click(function(e) {
    	    //Cancel the link behavior
    	    e.preventDefault();
    	    //Get the A tag
    	    var id = jQuery(this).attr('href');
    	 
    	    //Get the screen height and width
    	    var maskHeight = jQuery(document).height();
    	    var maskWidth = jQuery(window).width();
    	 
    	    //Set height and width to mask to fill up the whole screen
    	    jQuery('#mask').css({'width':maskWidth,'height':maskHeight});
    	     
    	    //transition effect     
    	    jQuery('#mask').fadeIn(200);    
    	    jQuery('#mask').fadeTo("fast",0.8);  
    	 
    	    //Get the window height and width
    	    var winH = jQuery(window).height();
    	    var winW = jQuery(document).width();
    	           
    	    //Set the popup window to center
    	    jQuery(id).css('top',  winH/2-jQuery(id).height()/2);
    	    jQuery(id).css('left', winW/2-jQuery(id).width()/2);
    	 
    	    //transition effect

    	    jQuery(id).fadeIn(200); 
    	 
    	});
    	 
    	//if close button is clicked
    	jQuery('.window .close').click(function (e) {
    	    //Cancel the link behavior
    	    e.preventDefault();
    	    jQuery('#mask, .window').fadeOut('slow');
    	});     
    	 
    	//if mask is clicked
    	jQuery('#mask').click(function () {
    	    jQuery(this).hide();
    	    jQuery('.window').fadeOut('slow');
    	});
    	/*** END modalbox contact form functions ***/
    	
    	
    	/*** Clear form field on focus ***/
    	var clearMePrevious = '';
    
    	// clear input on focus
    	jQuery('.clearMeFocus').focus(function()
    	{
    		if(jQuery(this).val()==jQuery(this).attr('title'))
    		{
    			clearMePrevious = jQuery(this).val();
    			jQuery(this).val('');
    		}
    	});
    	// if field is empty afterward, add text again
    	jQuery('.clearMeFocus').blur(function()
    	{
    		if(jQuery(this).val()=='')
    		{
    			jQuery(this).val(clearMePrevious);
    		}
    	});
	});
