$(document).ready(function(){
	$("#select_photographer li").fadeTo(0, 0.6);
	
	$("#select_photographer li").hover(function(){
		$(this).fadeTo(200, 1);
	}, function(){
		$(this).fadeTo(200, 0.6);
	})
	
	$("#controls a").click(function(){
		return false;
	})
	lastBlock = $("#div_3");
	maxWidth = 500;
	minWidth = 150;	

	$("#start_box .box").hover(function(){
		$(lastBlock).animate({width: minWidth+"px"}, { queue:false, duration:400 });
		$(this).animate({width: maxWidth+"px"}, { queue:false, duration:400});
		div_id = $(this).attr('id');
		$("#"+lastBlock.id+" .folded_link").fadeOut(200);
		$("#"+div_id+" .folded_link").fadeIn(200);
		lastBlock = this;
	});
	$(".info").toggle(function(){
	    $(".info_photo").slideDown(200);
	}, function(){
	    $(".info_photo").slideUp(200);
	})
});

function openDiv(el, easing_method){
	$(el).animate({width:500}, {duration: 500, easing: easing_method})
	$(el).addClass('active');
	$(el).removeClass('folded');
	$(el+" .folded_link").fadeIn(650);
}

function closeDiv(el, easing_method){
	$(el).animate({width:150}, {duration: 500, easing: easing_method})
	$(el).removeClass('active');
	$(el).addClass('folded');
	$(el+" .folded_link").fadeOut(650);
}
/*
function clickIE4(){
	if (event.button==2){

		return false;
	}
}

function clickNS4(e){
	if (document.layers||document.getElementById&&!document.all){
		if (e.which==2||e.which==3){

			return false;
		}
	}
}

if (document.layers){
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
	document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("return false")*/
