$(document).ready(function(){
	
	$(".detailed").hide()
	
	$('a[rel*=facebox]').facebox() 

	$('a[@rel*=external]').click(function() {
		this.target = "_blank";
	});
	$('.street-address, .locality, .region, .postal-code').append(',');
	$('.moyles-telephone, .moyles-email').append(':');
	
	/*$('#room-listing ul li .details').click(function(){
		$('#room-listing ul li').show();
		$('#view-room').remove();
		$(this).parent('li').hide().after('<li id="view-room"></li>');
		$('#fg_' + this.name).show();
		$('#view-room').load(this.href + ' ' + '#content');
		eval(this.href + ' ' + '#content');
		return false;
	});*/
	
	$('h3.address').before('<iframe src="http://www.moyles.com/moylesMap.html" scrolling="no" frameborder="0"></iframe>');
	$('div#menu').append('<p class="print"><a href="javascript:window.print();" title="Print this menu">Print this menu</a></p>');
	$("form fieldset #miykt-miykt").bind("click", function(){
		$(this).val("");
		$(this).css("color","#000000");
	});
	$("form fieldset #miykt-miykt").bind("focus", function(){
		$(this).val("");
		$(this).css("color","#000000");
	});
	$("form fieldset #subscribe").bind("mouseover", function(){
		$(this).css("text-decoration","underline");
	});
	$("form fieldset #subscribe").bind("mouseout", function(){
		$(this).css("text-decoration","none");
	});
	$(".gallery ul li a").click(function(){
		$('.gallery #current').replaceWith('<a id="current" href="' + this.href + '" title="' + this.title + '"><img src="images/content/' + this.name + '.jpg" alt="' + this.title + '" /></a>');
		$(".gallery #current").lightBox({overlayOpacity: 0.8});
		return false;
	});
	$(".gallery #current").lightBox({overlayOpacity: 0.8});

});