(function($){

$(function() {
	$('.slider').jcarousel({
		visible: 1,
		scroll: 1,
		auto: 5,
		wrap: "both",
		buttonPrevHTML: null,
		buttonNextHTML: null
	});
	
	$('.blink')
	.live('focus', function() {
		if(this.value == this.title) {
			this.value =''
		}
	})
	.live('blur', function() {
		if(this.value == '') {
			this.value = this.title
		}
	});
	
	$('.selectbox').selectbox();
	
	/*
	$('a[class*="colorbox"]').colorbox({
		maxWidth: "100%",
		maxHeight: "100%",
		iframe: true,
		onComplete: function() {
			$('.selectbox').selectbox();
			if($('#cboxTitle').text() == '') {
				$('#cboxTitle').hide();
			}
		}
	});
	*/

	$('a[class*="colorbox"]').fancybox({
		type: 'iframe',
		width: 780,
		height: 800
	});

	$('a[rel="floorplans"]').fancybox();
	
	if($.browser.msie && $.browser.version == 6) {
		DD_belatedPNG.fix('.top-tabs a, .side-nav .widget-m, .gallery-widget, .disclaimer .box-m, .news-widget .widget-m, .offers-widget .widget-m, .three-boxes .box-m, #cboxPrevious, #cboxNext, #cboxTitle');
	}
});

})(jQuery)
