Cufon.replace('h1', {
	color: '-linear-gradient(#111,#555,#111)',
	textShadow: '1px 1px #fff'

});
Cufon.replace('h2', {
	textShadow: '1px 1px #fff'
});

$(document).ready(function() {
	
	$("a[rel^='prettyPhoto']").prettyPhoto({
		animationSpeed: 'normal',
		padding: 10,
		opacity: 0.55,
		showTitle: true,
		allowresize: true,
		counter_separator_label: '/',
		theme: 'light_square',
		hideflash: false,
		modal: false,
		changepicturecallback: function(){},
		callback: function(){}
	});
	
	/*
	$('#right .content').mousemove(function(e) {
		var _top = parseInt($('#right').offset().top) + 80;
		var _contentH = parseInt($('#right .content').height());
		var _H = $('#right').height() - 100;
		var _scH = _contentH - _H;
		var _ypos = e.pageY - _top;
		
		if(_scH > 0) {
			var _contentY = -(_scH / _H)*_ypos + 10;
			$('#right .content').animate({top: _contentY}, { queue:false, duration: 2000 });
		}
	});
	*/

	/*
	$(document).find('.content li h3, .content li p').fadeOut(0);
	$('.content li').hover(function() {
    		$(this).find('h3, p').stop(true, true).fadeIn(600);
    	}, function() {
    		$(this).find('h3, p').stop(true, true).fadeOut(600);
    	}
    );
	$('.content li').stop().hover(function() {
			$(this).find('img').stop(true, true).fadeTo(600, 0.75);
		}, function() {
			$(this).find('img').stop(true, true).fadeTo(600, 1);	
		}
	);
	*/
	
	
	function staticNav() {
        var sidenavHeight = $("#left").height();
        var winHeight = $(window).height();
        var browserIE6 = (navigator.userAgent.indexOf("MSIE 6")>=0) ? true : false;

        if (browserIE6) {
            $("#left").css({'position' : 'absolute'});
        } else {
            $("#left").css({'position' : 'fixed'});
        }

        if (sidenavHeight > winHeight) {
            $("#left").css({'position' : 'static'});
        }
    }

    staticNav();

    $(window).resize(function () {
        staticNav();
    });
	
});
