Cufon.replace('.headline', { fontFamily: 'Whitney HTF' });
Cufon.replace('#pageHead h1', { fontFamily: 'Helvetica Neue LT Pro Bold' });
Cufon.replace('#moreTitle', { fontFamily: 'Whitney HTF' });



	

/*(function($) { 
     $(document).ready(function(){
        $('#div1, #div2, #div3').hide();
        $('a.plus').click(function(){
           $(this).next().slideToggle();
           $(this).toggleClass("minus_icon"); 
           return false;
        });
     });
})(jQuery);*/

$(document).ready(function() {
		
		$(".businessDetails, #my_account_details").hide();	 /*#search_more_options, .additional_locations */
		/*http://stackoverflow.com/questions/3044331/how-to-make-jquery-slidetoggle-effect-for-multiple-div-on-same-page*/
						
		// HOMEPAGE FEATURE
		$("#featured > ul").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);
	
		// HOMEPAGE FOOTER SCROLL
		$("#scroller").simplyScroll({
			autoMode: 'loop'
		});
		
		// HELPER TEXT ON HOMEPAGE
		/*$('#helperLink').click(function(){
			$("#helperText").show();   							   
		});*/
																
																
		// STICKY PANEL FOR TOP MENU						
		/*var stickyPanelOptions = {
			topPadding: 0,
			afterDetachCSSClass: "BoxGlow_Grey2",
			savePanelSpace: true
		};*/

		// multiple panel example (you could also use the class ".stickypanel" to select both)
	   // $("#Panel1,#Panel2").stickyPanel(stickyPanelOptions);

		/*$("#main_menu").stickyPanel(stickyPanelOptions);*/
		
		// CAROUSEL FOR BLOG		
		jQuery('.carouselWrapper').find('ul').jcarousel({
			wrap: 'circular',
			scroll: 1
		});
		
		// CATEGORY TAB PULLOUT
		// BG Tag Show
		$('#tab').click(function(){
			var w = $(this).outerWidth();
			$(this).animate({ left: -w}, 200, 
				function(){
					$('#tab-expanded').animate({left:0}, 200);
				});
			return false;
	   });
	   // BG Tag Hide
	   $('#btn-close').click(function(){
			$('#tab-expanded').animate({left: -266}, 200,
				function(){
					$('#tab').animate({left: 0}, 200);
					$('.h').fadeIn('fast');
				});
			return false;
	   });

	
	/*$('#my_account_details').hide();*/
	$('#my_account').click(function () {
		$(this).toggleClass('expanded');
		$('#my_account_details').slideToggle('fast');
		return false;
	});
	
	$('#my_account_btn').click(function () {
		$('#my_account_details').slideToggle('fast');
		return false;
	});
	
	$('#my_account_close').click(function () {
		$('#my_account_details').slideToggle('fast');
		return false;
	});
	
	// BUSINESS DIRECTORY		
	/*$(".businessDetails").hide();*/
	$("a.tog").click(function () {
		$(this).toggleClass("active");
		$(this).next().slideToggle(200);
	});
	
	/*$(".additional_locations").hide();*/
	$("a.show_additional").click(function () {
		$(this).next().slideToggle(200);
	});
		
	/*$("#search_more_options").hide();*/
	$("a.toggleSearch").click(function () {
		$(this).toggleClass("expanded");
		$('#search_more_options').slideToggle("fast");
	});
	
	$('.adBlock').last().css('border-bottom', 'none');
	
	$("#keyword").autocomplete('http://lowcountrylocalfirst.org/sites/all/themes/llf/js/keywords.php', {
		minChars: 0,
		width: 300,
		multiple: false,
		mustMatch: true,
		matchContains: true,
		scroll: false
	});
	
});	
