jQuery(function($){
	// Blinking Fields
	$('.blink').focus(function() {
        if(this.title==this.value) {
            this.value = '';
        }
    }).blur(function(){
        if(this.value=='') {
            this.value = this.title;
        }
    });
	
    //Applying markup to navigation dropdowns
    $('#navigation > ul > li > ul').each(function() {
    	$(this).wrap('<div class="dd"><div class="dd-bg"></div></div>');
    	$(this).closest('.dd').prepend('<div class="dd-top notext"></div>').append('<div class="dd-bottom notext"></div>');
    });
    	
	// Navigation Drop Down
	$('#navigation ul li').hover(function(){ 
		$('.dd', this).eq(0).show();
	}, function(){
		$('.dd', this).eq(0).hide();
	});
	
	// Apply PNG Fix for Internet Explorer 6
	if($.browser.msie && $.browser.version.substr(0,1) == 6) {
		DD_belatedPNG.fix('#logo img, #header .newsletter, .dd-top, .dd-bg, .dd-bottom, #sidebar .buttons span');
	}

	$('a.colorbox').colorbox({
		opacity: 0.65
	});

	$('.hotel-form h2').click(function() {
		var form = $(this).parent().find('.expandable-form');
		if (form.is(':visible')) {
			form.slideUp();
		} else {
			$('.expandable-form:visible').slideUp();
			form.slideDown();
		}
	});

});

Cufon.replace('#navigation a, .buttons a, #footer .col li a',  { hover: true });
Cufon.replace('#sidebar h3');
Cufon.replace('.calibri');
