$(document).ready(function(){

	// Enable cufon canvas replacement
    Cufon.replace('h2, nav', {
        fontFamily: 'HelveticaNeueLight',
        hover: true
    });
	
	$('input:text, textarea').focus( function() {
		$(this).addClass("focus").removeClass("idle");
		if (this.value == this.defaultValue) this.value = '';
		}).blur( function() {
			$(this).removeClass("focus");
			if ($.trim(this.value) == '') {
			this.value = (this.defaultValue ? this.defaultValue : '');  
		$(this).addClass("idle");
	}});
	
	$("a.okapionLink").hover(
		function(){
			$(this).stop().animate(
				{backgroundPosition: "(0 -46)"}, 
				{duration: 300})
		},
		function(){
			$(this).stop().animate(
				{backgroundPosition: "(-62 0)"}, 
				{duration: 300})
		}
	);
});
