	Cufon.now();

	// noSpam
	$("a.escape").each(function(){
			var el = $(this);
			var p = el.text().split('∂');
			if (el.attr('rel') != '') el.attr('href', 'mailto:'+p[0]+'@'+el.attr('rel'));
			else el.attr('href', 'mailto:'+p[0]+'@'+p[1]);
			el.html(p[0]+'@'+p[1]);
	});
		
	$(document).ready(function(){
	
		if(!Modernizr.input.placeholder){

		$('[placeholder]').focus(function() {
			var input = $(this);
			if (input.val() == input.attr('placeholder')) {
			input.val('');
			input.removeClass('placeholder');
			}
		}).blur(function() {
			var input = $(this);
			if (input.val() == '' || input.val() == input.attr('placeholder')) {
			input.addClass('placeholder');
			input.val(input.attr('placeholder'));
			}
			}).blur();
			$('[placeholder]').parents('form').submit(function() {
				$(this).find('[placeholder]').each(function() {
				var input = $(this);
				if (input.val() == input.attr('placeholder')) {
					input.val('');
				}
				})
			});
		}
		
		$("a[rel=lightbox], .iframe").fancybox({
			'titlePosition'  : 'inside',
			'overlayColor' : '#666',
			'overlayOpacity' : '0.3',
			'padding' : '0',
			'speedIn' : '300',
			'transitionIn' : 'fade',
			'transitionOut' : 'fade',
			'speedOut' : '300',
			'changeSpeed' : '300',
			'changeFade' : 'fast',
			'centerOnScroll' : 'true',
			'width' : '95',
			'height' : '95'
		});
		
		// submit hover fade
		$('input[type=submit]').css('opacity', .85);	
		$(function () {
			$('input[type=submit]').hover(function() {
				$(this).stop().fadeTo("fast", 1);
					}, function() {
				$(this).stop().fadeTo("fast", .85);
			});
		});
		
		$(function () {
				$('a[href*=#]').click(function () {
						if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
								var a = $(this.hash);
								a = a.length && a || $('[name=' + this.hash.slice(1) + ']');
								if (a.length) {
										var b = a.offset().top;
										$('html,body').animate({
												scrollTop: b
										}, 500);
										return false
								}
						}
				})
		});
		
	});
