Cufon.replace('#home h2, #about h2, #thepub h2, #livevenue #toplisting h2, #livevenue #intro h2, #livevenue #bookingsinfo h2, #blog h2, #gallery h2, #contact h2,.header, #nextgighome h3, #latestbloghome h3, #latestbloghome .date, #bookingenquiry legend, #bookingsinfo #tech h3, #bookingsinfo #tech p strong, #listings ul li .title, #listings ul li .moredetails, #listings #morelistings, ol#bloglist h3, ol#bloglist p.date, h3#comment-head, #nextgighome p.date, #intro p.mailing-link', {fontFamily: 'Rockwell Condensed' , hover: true});
Cufon.replace('h1', { fontFamily: 'Rockwell Condensed', hover: true});
Cufon.replace('#footer #footerblock', { fontFamily: 'Rockwell Condensed', hover: true});
Cufon.replace('#foodmenu h2, #foodmenu, .handwritten, #gallery h3, .sidebox h3', { fontFamily: 'Hand Of Sean', hover: true});

$(document).ready(function() {
	// add class of pdf to links that end in pdf and open in a new window
	$("a[href$=pdf]").addClass("pdf");
	$("ul.gallerylist a, a.mainflyer, a#blogimage, ul#pub-images li a").fancybox({
			'zoomSpeedIn':	300, 
			'zoomSpeedOut':	300, 
			'overlayShow':	true,
			'overlayOpacity': .3
		});
	$('a[rel="external"]').click( function() {
		window.open( $(this).attr('href') );
		return false;
	});
	
	$("#listings li:gt(6)").hide();
	$("#listings li:first").addClass("selected");
	if ($("#listings li").size() < 6) $("#morelistings").hide();
	
	$("#listings li").click(function(){
		$("#toplisting").html($(this).html());
		$("#listings li").removeClass("selected");
		$(this).addClass("selected");
		Cufon.replace('#toplisting h2', {fontFamily: 'Rockwell Condensed' , hover: true});
		Cufon.now();
	// leave this here
	$("ul.gallerylist a, a.mainflyer, a#blogimage, ul#pub-images li a").fancybox({
			'zoomSpeedIn':	300, 
			'zoomSpeedOut':	300, 
			'overlayShow':	true,
			'overlayOpacity': .3
	});
	});
	$("#morelistings").click(function(){
		$("#listings li:gt(6)").slideDown("fast");					  
		$("#morelistings").hide();
	});

 // hide the join our mailing list form
  $('.joinform').hide();

 // toggle the mailing list form
  $('p#join a').click(function() {
    $('.joinform').show(400);
    return false;
});
});