quote = 0;quotes = 0;qtimer = false; qmaxheight = 0;function next_quote(){	if ( (quote+1) > quotes ){		quote = 0;	}else{		quote = quote + 1;	}	display_quote();}function prev_quote(){	if ( (quote-1) < 0 ){		quote = quotes;	}else{		quote = quote - 1;	}	display_quote();}function display_quote(){	quo = $(".quotes");		$(".quotes").hide();	$(quo[quote]).show();		$(".quote_state").html("(" + (quote+1) + "/" + (quotes+1) + ")");}function play_quotes(){	next_quote();	clearTimeout(qtimer);	qtimer = setTimeout("play_quotes()",8000);}	function pause_quote(){	if (qtimer){ 		clearTimeout(qtimer);		qtimer = false;		$(".quote_pause").hide();		$(".quote_play").show();	}else{		$(".quote_play").hide();		$(".quote_pause").show();		play_quotes();	}				}	$("body").ready(function(){	$(".quotes").each(function(){		if ( $(this).height() > qmaxheight ) qmaxheight = $(this).height();		$(this).attr("size",$(this).height());	});			$(".quotes").height(qmaxheight); //max		quo = $(".quotes");	quotes = (quo.length - 1);	quote = Math.floor(Math.random()*quotes);	display_quote();		$(".quote_prev").click(function(){ prev_quote(); });	$(".quote_next").click(function(){ next_quote(); });	$(".quote_play").click(function(){ pause_quote(); });	$(".quote_pause").click(function(){ pause_quote(); });		play_quotes();});
