$( function() {

	$("input.moreinfo").click(function () {

		$(this).siblings("ul").toggle()
	});

	$("input.radio").click(function () {

		$(this).siblings("div").toggle()
	});

	/*$("#formback").fadeTo("fast", 0.6);
	$("#mailing_email").click(function () { if($(this).val() == 'Your email address'){ $(this).val(''); } });


	$("a.map").click(function () {
		$('#developments li').removeClass("on");
		var id = $(this).attr("id");
		//alert('#development_'+id.substr(4));
		$('#development_'+id.substr(4)).addClass("on");
	});

	$("ul.fplan_thumbs li a").click(function () {
		var id = $(this).attr("rel");
		$('ul.fplan li').hide();
		$('ul.fplan_thumbs li').removeClass("highlight");
		$('ul.fplan li#'+id).fadeIn("slow");
		$(this).parent().addClass("highlight");

	});*/

	//$("#residential_options li input").click(function () { if($(this).val() == 'Yes'){ $("#residential_developments").show(); }else{$("#residential_developments").hide();} });

	//$(".easternrange").click(function () { window.open($(this).attr("href"),"EasternrangeLimitedDetails","width=450,height=190"); return false; });
	
	$('a[class*=fancybox]').fancybox();

	$("a.fancy_youtube").click(function() {
		$.fancybox({
				'padding'		: 0,
				'autoScale'		: false,
				'transitionIn'	: 'none',
				'transitionOut'	: 'none',
				'titleShow'		: false,
				'width'			: 640,
				'height'		: 385,
				'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/') + '?autoplay=1&rel=0&showinfo=0',
				'type'			: 'swf',
				'swf'			: {
					'wmode'		: 'transparent',
					'allowfullscreen'	: 'true'
				}
			});

		return false;
	});
	
	$('a.fancy_form').fancybox({
		'width'			: 480,
		'height'		: 370,
		'padding'		: 5,
        'autoScale'     : false,
		'titleShow'		: false,
		'overlayShow'	: true,
		'overlayOpacity': 0.7,
		'type'			: 'iframe'
	});
    
});
