/*
* TIGERENTENCLUB
* standard.js
*
* Author: Holger M. Stangl
* Company: Limeflavour | http://www.limeflavour.com
* Date: Mai 2009
*/


$(document).ready(function() {
	
	
	// Body Height
	//$('.container').css('min-height', $('body').height()-480 );
	
	$('.teaserBoxSpecial09 .imageBox').each(function() {
	
		$(this).hover(
			function() {
				$(this).addClass('hover');
			},
			function() {
				$(this).removeClass('hover');
			}
		);
	
	});
	
	$('.containerFriends .teaserBox').each(function() {
	
		$(this).hover(
			function() {
				$(this).addClass('hover');
			},
			function() {
				$(this).removeClass('hover');
			}
		);
		
		$('.deleteFriend',this).click( function(){
			$(this).parent().parent().hide();
			$(this).parent().parent().next().show();
			return false;
		});
		
		$('.deleteNo',this).click( function(){
			$(this).parent().parent().hide();
			$(this).parent().parent().prev().show();
			return false;
		});
		
	});
	
	
	$('.edit').hover(
		function(){
			$(this).attr("src","images/icon_edit_hi.png");
		},
		function(){
			$(this).attr("src","images/icon_edit.png");
		}
	);
	
	$('.comment').hover(
		function(){
			$(this).attr("src","images/icon_comment_hi.png");
		},
		function(){
			$(this).attr("src","images/icon_comment.png");
		}
	);
	
	$('.beantworten').hover(
		function(){
			$(this).attr("src","images/icon_beantworten_hi.png");
		},
		function(){
			$(this).attr("src","images/icon_beantworten.png");
		}
	);
	
	$('.viewall').hover(
		function(){
			$(this).attr("src","images/icon_viewall_hi.png");
		},
		function(){
			$(this).attr("src","images/icon_viewall.png");
		}
	);
	
	$('.delete').hover(
		function(){
			$(this).attr("src","images/icon_delete_hi.png");
		},
		function(){
			$(this).attr("src","images/icon_delete.png");
		}
	);
	
	$('.sendPost').hover(
		function(){
			$(this).attr("src","images/btn_post_hi.png");
		},
		function(){
			$(this).attr("src","images/btn_post.png");
		}
	);


	$('.searchPost').hover(
		function(){
			$(this).attr("src","images/btn_post_big_hi.png");
		},
		function(){
			$(this).attr("src","images/btn_post_big.png");
		}
	);


});
