$(document).ready(function() {
	
	$("#navigation li[class!=current] ul").hide();
	//$("#navigation li.current ul").show();
	$("body[class=home] #navigation li ul").show();
		
	$("body[class=home] #navigation li[class!=current]").hover(
        function () {
		$(this).addClass("hover");
        },function(){
		$(this).removeClass("hover");
	});//hover
	
	$("body[class!=home] #navigation li[class!=current]").hover(
        function () {
		$(this).addClass("hover").children("ul").show();
        },function(){
		$(this).removeClass("hover").children("ul").hide();
	});//hover
	
	$(".blocks .box ul, .blocks .box a.more").hide();
	$(".blocks .box[id]").hover(
        function () {
		$(this).addClass("hover").children("ul, a.more").show();
        },function(){
		$(this).removeClass("hover").children("ul, a.more").hide();
	});//hover
	
	$(".methods .blocks-wide .box p.more, .blocks-wide .box div.info, .client .blocks-wide .box a.more").hide();
	$(".methods .blocks-wide .box[id], .client .blocks-wide .box[id], .approach .blocks .box[id]").hover(
        function () {
		$(this).addClass("hover").children("a.more, div.info, p.more").show();
        },function(){
		$(this).removeClass("hover").children("a.more, div.info, p.more").hide();
	});//hover

$("strong.prev span").hover(
        function () {
		$(this).parent().css("background-position", "0 -26px");
        },function(){
		$(this).parent().css("background-position", "0 1px");
	});//hover

$("strong.next span").hover(
        function () {
		$(this).parent().css("background-position", "100% -26px");
        },function(){
		$(this).parent().css("background-position", "100% 1px");
	});//hover	
	
$("strong.back span, strong.backtop span").hover(
        function () {
			$(this).parent().css("background-position", "100% -26px");
        },
        function(){
			$(this).parent().css("background-position", "100% 1px");
	});//hover
		
	var quote = Array
	(
		["To pretend, I actually do the thing: I have therefore only pretended to pretend.", "Jacques Derrida"],
		["The intuitive mind is a sacred gift and the rational mind is a faithful servant. We have created a society that honors the servant and has forgotten the gift.", "Albert Einstein"],
		["Those who do not move, do not notice their chains.", "Rosa Luxemburg"],
		["In times of change, learners inherit the Earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists.", "Eric Hoffer"],
		["Every child is an artist. The problem is how to remain an artist once he grows up.", "Pablo Picasso"],
		["Imagination is more important than knowledge...", "Albert Einstein"],
		["You cannot depend on your eyes when your imagination is out of focus.", "Mark Twain"],
		["Genius means little more than the faculty of perceiving in an unhabitual way.", "William James"],
		["Improvisation involves people making very sophisticated decisions on the spur of the moment, without the benefit of any kind of script or plot…", "Malcolm Gladwell"],
		["More of me comes out when I improvise.", "Edward Hopper"],
		["The real act of discovery consists not<br />in finding new lands, but in seeing<br />with new eyes.", "Marcel Proust"],
		["It is the function of art to renew our perception.", "Anais Nin"],
		["If people never did silly things nothing intelligent would ever get done.", "Ludwig Wittgenstein"],
		["Be careful what you pretend to be because you are what you pretend to be.", "Kurt Vonnegut"],
		["He not busy being born is busy dying.", "Bob Dylan"],
		["If you know exactly what you are going to do, what is the point of doing it?", "Pablo Picasso"],
		["The ultimate measure of a man is not where he stands in moments of comfort and convenience, but where he stands at times of challenge and controversy.", "Martin Luther King"],
		["Always remember that you are absolutely unique. Just like everyone else.", "Margaret Mead"],
		["In play, a child always behaves beyond<br />his average age, above his daily behavior.<br />In play it is as though he was a head taller<br />than himself.", "Lev Vygotsky"],
		["A thing is not necessarily either true or false; it can be both true and false.", "Harold Pinter"],
		["None of us really grow up. All we ever do is learn how to behave in public.", "Keith Johnstone"],
		["The discovery of who we are is the discovery<br />of who it is that we are continuously becoming.", "Fred Newman"],
		["Human creativity is the ultimate economic resource.", "Richard Florida"],
		["A child of five would understand this. Send someone to fetch a child of five.", "Groucho Marx"],
		["Development... is the activity of creating who you are by performing who you’re not.", "Lois Holzman"],
		["Anything worth doing is worth doing<br />slowly.", "Mae West"],
		["Life is what happens while you are busy making other plans.", "John Lennon"],
		["Reality leaves a lot to the imagination.", "John Lennon"],
		["Don't live down to expectations.", "Wendy Wasserstein"],
		["The main thing is to care. Care very hard, even if it is only a game you are playing.", "Billy Jean King"],
		["You can discover more about a person<br />in an hour of play than in a year<br />of conversation.", "Plato"],
		["The cure for boredom is curiosity; there is no cure for curiosity.", "Dorothy Parker"],
		["We are not what we know but what we are willing to learn.", "Mary Catherine Bateson"],
		["If you can do it, then why do it?", "Gertrude Stein"],
		["Allow that mistakes are a normal part of the process of living and learning  a process we call progress.", "Marie Curie"],
		["If you think you’re too small to be effective, you have never been in bed<br />with a mosquito.", "Betty Reese"],
		["We are all faced with a series of great opportunities brilliantly disguised as impossible situations.", "Charles R Swindoll"],
		["Knowing is not enough; we must apply. Being willing is not enough; we must do.", "Leonardo da Vinci"]
	);
	
	var number = Math.floor(Math.random()*37);
	$("#header blockquote p.quote span").html("\u201C" + quote[number][0] + "\u201D");
	$("#header blockquote p cite").html(quote[number][1]);
	

});// document ready
