jQuery(function($){
	/*
	Cufon.replace('#navigation ul li strong a, #footer ul li a, .rss a', {
		color: '-linear-gradient(0.1=#ff9d0f, #381353)'
	});
	*/
	
	$('.dd .cnt ul li:last').addClass('last');

	$('.tweet').each(function() {
		if($('.tweet').index($(this)) % 2 == 0) {
			$(this).addClass('tweet-left');
		} else {
			$(this).addClass('tweet-right');
		}
	});
	
	$('#search form .submit').hover(
		function() { $(this).addClass('submit-hover'); },
		function() { $(this).removeClass('submit-hover'); }
	);
	
	$('.blink').
	focus(function() {
	    if(this.title==this.value) {
	        this.value = '';
	    }
	}).
	blur(function(){
	    if(this.value=='') {
	        this.value = this.title;
	    }
	});

	$('#navigation ul li').hover(
		function() { 
			if($(this).find('.dd:animated').length == 0) {
				$(this).find('a:eq(0)').addClass('hover');
				$(this).find('.dd').slideDown("fast"); 
			}
		},
		function() { 
			$(this).find('a:eq(0)').removeClass('hover');
			$(this).find('.dd').slideUp("fast"); 
		}
	);
	
	$('#coda-slider-1').codaSlider({
       autoSlide: true,
       autoSlideInterval: 5000,
       autoSlideStopWhenClicked: true
   });
   
	$('.coda-nav').each(function() {
		if($('.panel').length < 2) {
			$(this).hide();
		}
	});
   
	$("a[rel^='prettyPhoto']").prettyPhoto({
		theme: 'dark_square',
	});
	
 
});