this.naveff = function (e) {
	$(e).hover(function(){
		$(this).stop().fadeTo(400, .7)
	}, 
	function() {
		$(this).stop().fadeTo(300, 1)
	})
}



$(document).ready(function(){
    $('#sidebar ul.children').hide();
    
    var title = jQuery('#content div.entry.page div.entrytitle:first a');
    if (title.size()) {
        var current = $("#pages a[href='" + title.attr('href') + "']");
        if (current.size()) {
            current.css('color', '#FF9900');
            current.parent().children('ul.children').show();
            current.parents().show();
        }
    }
    
	naveff('ul#nav a, .entrytitle h2, #content > div img:not([src~=steph_nico.jpg])')
	naveff('a#mainlogo')
	

	$('div#slider > img').click(function(){
		window.location = 'http://archive.bm-photo.ch/portfolio'
	}).css('cursor','pointer')
	
	$.preload( 'div#slider img', {
		onFinish:function(){
			$('div#slider').innerfade({ speed: 'slow', timeout: 5000, type: 'random', containerheight: '633px' })
		}
			
	});


})
