Cufon.replace('#navigation > ul > li > a', { fontFamily : 'Chaparral Pro', textShadow: '2px 2px #8a8a81', hover : { color:'#ffffff' } });
Cufon.replace('.big-image a', { fontFamily : 'Chaparral Pro', hover : { color:'#999999' } });
Cufon.replace('.box-list h3, .calendar h3, .btn-subscribe, .recommended h3, .quote p', { fontFamily : 'Chaparral Pro' });
Cufon.replace('.sitemap .col h3, .head-green h2, .clean h2, ', { fontFamily : 'Chaparral Pro', hover : true});

jQuery(document).ready(function ($) {

	$('#navigation > ul > li > a').hover(function() {
		var linkWidth = $(this).width() -26;
		$(this).find('span').css('width', linkWidth);
	});

	$("#navigation > ul > li").hover(function() {
		$(this).css({ 'z-index' : 100 });
		$(this).find(".dd").show();
		$(this).find("a:eq(0)").addClass('active');
	}, function() {
		$(this).css({ 'z-index' : 1 });
		$(this).find(".dd").hide();
		$(this).find("a:eq(0)").removeClass('active');
		Cufon.replace('#navigation > ul > li > a', { fontFamily : 'Chaparral Pro', textShadow: '2px 2px #8a8a81', hover : { color:'#ffffff' } });
	});
	
	$('.blink')
		.focus(function(){
			if( $(this).val() == $(this).attr('title') ) {
				$(this).val('');
			}
		})
		.blur(function(){
			if( $(this).val() == '' ) {
				$(this).val( $(this).attr('title') );
			}
		});
	
	$('#comments-template .commentlist > .comment:last').css('border-bottom', 0);
	$('#comments-template, #comments-template label:not(.visible)').hide();
	$('.comments').click(function() {
		$('#comments-template').slideDown();
	});
});

