$(function() {
	if ($.browser.msie && $.browser.version.substr(0,1)<7) {
		DD_belatedPNG.fix(' .jcarousel-prev, .jcarousel-next');
	};
	
	$("#navigation li").hover(function() {
	  $('.dd:eq(0)', this).toggle();
	  $('a:eq(0)', this).toggleClass('hover');
	});
	
	$('.field, textarea').focus(function() {
        if(this.title==this.value) {
            this.value = '';
        }
    }).blur(function(){
        if(this.value=='') {
            this.value = this.title;
        }
    });
    
    	$(".slider ul").jcarousel({
			scroll: 1,
			auto: 3,
			wrap:"circular",
			start: 1
		});	
		
		$("a.popup-trigger").fancybox({

			'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
			    return '<span id="fancybox-title-over">' +  (currentIndex + 1) + ' of ' + currentArray.length + ' ' + title + '</span>';
			}
	});
			
});

Cufon.replace("#container h2, .box h2, h1");
