$(document).ready(function() {
	
	// rss2
	$('#rss2').hover(function() {
		$('#rss2-tooltip').css({'display': 'block', 'opacity': '0.7'}).fadeIn();
	}, function() {
		$('#rss2-tooltip').fadeOut();
	});
	
	// photo-show
	//$('.photo-show li:not(:first-child)').hide();
	$('.shows').css({'background': 'none'});
	$('.photo-show').innerfade({
			animationtype: 'fade',
			speed: 2000,
			timeout: 5000,
			type: 'sequence',
			containerheight: '197px'
	});

	
	// input:focus
	$('#author').focus(function() {
		$(this).parent('span').css({'background-position': '0 -127px'});
	}).blur(function() {
		$(this).parent('span').css({'background-position': '0 -100px'});
	});
	$('#email, #url').focus(function() {
		$(this).parent('span').css({'background-position': '0 -181px'});
	}).blur(function() {
		$(this).parent('span').css({'background-position': '0 -154px'});
	});
	$('#comment').focus(function() {
		$(this).parent('span').css({'background-position': '0 -374px'});
	}).blur(function() {
		$(this).parent('span').css({'background-position': '0 -208px'});
	});
	
	// input of search
	$('.text').focus(function() {
		$(this).val('');
	}).blur(function() {
		
		if($(this).val() =="") {
			$(this).val('Search this website!');
		};
	});
	
	// footer div | ul
	$('#footer-box div, #footer-box>ul').css({'float': 'left', 'height': '165px', 'margin-right': '10px', 'padding': '5px 10px 10px 5px', 'border-right': '1px dashed #3daad4'});
	
		
	// external Links
	$('ul.external li a, #backdoor a').attr('target', '_blank');
	$('a[rel*=external], #friend-links li a').attr('target', '_blank');
});