// Rounded corners
$('#frame').corner();
$('#main').corner();
$('.callout').corner();
$('.callout_small').corner();

// Elements to replace with Houndcats PB font
// http://new.myfonts.com/fonts/pink-broccoli/houndcats-pb/
Cufon.replace('h1');
Cufon.replace('h3');
Cufon.replace('h6');

Cufon.replace('#navigation > ul > li > a > span', {
	hover: true,
	hoverables: { span: true, a: true }
});

Cufon.replace('#footer_links', {hover:true});

$(document).ready(function() {
	
	// Shadowbox for videos, and email newsletter
	Shadowbox.init({
	    		overlayOpacity: 0.7
	});
	
	// Dropdowns
	ddsmoothmenu.init({
	 			mainmenuid: "navigation", //menu DIV id
	 			orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	 			classname: 'ddsmoothmenu', //class added to menu's outer DIV
				contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
	 });
	
	// Twitter Feed
	$(".tweet").tweet({
	            username: "AustinsParkEnt",
	            join_text: "auto",
	            avatar_size: 24,
	            count: 1,
	            auto_join_text_default: "", 
	            auto_join_text_ed: "we",
	            auto_join_text_ing: "we were",
	            auto_join_text_reply: "we replied to",
	            auto_join_text_url: "we were checking out",
	            loading_text: "loading..."
	});
	
	// Tooltip for the Rewards Club Registration Link
	$('#address a[href]').qtip(
	{
		content: 'Receive special discounts and coupons available only to our registered guests',
		position: {
			corner: {
		    	tooltip: 'bottomLeft',
				target: 'topRight'
			}
		},
	    style: {
			border: {
				width: 3,
				radius: 5,
				color: '#276B95'
			},
			color: '#276B95',	
			padding: 5, 
			textAlign: 'center',
			tip: true, 
			name: 'blue'
		}
	});
});