jQuery(function(){
	var current_quote = jQuery("div.xquote:visible");
	setInterval(function(){
		var next = current_quote.next("div.xquote");
		if (0 == next.length) { next = jQuery(jQuery("div.xquote").get(0));}
		current_quote.fadeOut(500, function(){
			next.fadeIn(500, function(){
				if (jQuery.browser.msie) {
					next.removeAttr('style').show();
				}
			});
		});
		current_quote = next;
	}, 10000);

	var _menu = document.getElementById("menu");
	if(_menu) {
		var _list = _menu.getElementsByTagName('a');
		for(var i = 0; i < _list.length; i++) {
			_list[i].onmousedown = function() {
				if(this.className.indexOf('push') == -1) this.className += ' push';
			}
			_list[i].onmouseup = function() {
				this.className = this.className.replace('push','');
			}
		}
	}

});
