$(document).ready(function(){

	$(".hidden").hide();
	$(".show").html("(more +)");

	$(".show").click(function() {
	if (this.className.indexOf('clicked') != -1 ) {
			$(this).next().slideUp(100);
			$(this).removeClass('clicked')
			$(this).html("(more +)");
			$(this).css('color','gray');
			}
			else {
			$(this).addClass('clicked')
			$(this).next().slideDown(100);
			$(this).html("(close -)");
			$(this).css('color','red');
			}
	});
		

$('#workDescription').fadeOut("fast", 0);

//jQuery.event.add(window, "load", resizeFrame);
//jQuery.event.add(window, "resize", resizeFrame);

function resizeFrame() 
{
    var h = $(window).height();
    var w = $(window).width();
    var sizeTo = (w >= 1000) ? 840 : 680;
    if( w < 800) {
    	sizeTo = 680;
    }
    
    $("#container").css('width',sizeTo);
 
}



});

function toggleVisible() {
	if($('#workDescription').css('display') != "none") {
		$('#workDescription').fadeOut("fast", 0);
	} else {
		$('#workDescription').fadeIn("fast");
	}
}

