
jQuery(function ($) {
    $('.fix-last > *:last-child').addClass('last');
    $('.top-nav li, #navigation li').hover(
		function(){
			var sub = $(this).find('.dd');
			if( sub.length == 0 ) return;
			
			sub.show();
			$(this).find('a:eq(0)').addClass('hover');
		},
		function(){
			var sub = $(this).find('.dd');
			if( sub.length == 0 ) return;
			
			sub.hide();
			$(this).find('a:eq(0)').removeClass('hover');
		}
	);
	
	$('.blink')
	.focus(function(){
		if( $(this).attr('value') == $(this).attr('title') ) {
			$(this).attr({ 'value': '' });
		}
	})
	.blur(function(){
		if( $(this).attr('value') == '' ) {
			$(this).attr({ 'value': $(this).attr('title') })
		}
	});
	
	$('.col-details').hover(
		function(){ $(this).find('.col-more').show(); },
		function(){ $(this).find('.col-more').hide(); }
	);

	
	Cufon.replace('h1', { fontFamily: 'Rock it' });
})
