var tabs = {
			
	speed : 400,
	minHeight : 600,
	init : function() {
		$(".content").hide();	
	
		$(".strip").hover( function(e) {
			tabs.showStrip(this);
			_gaq.push(['_trackEvent', 'Tabs', 'View', $(this).attr("id")]);
			//$.History.setHash($(this).attr("id"));
		});
		
		$("#menu_spacer").hover( function(e) {
			$(".strip").animate({height : '58px'}, {duration:tabs.speed, queue:false})
				.find(".imgLink").css('background-position-y', '0px')
					.animate({"left":"300px"}, {duration:tabs.speed, queue:false});
			$(".strip").find(".content").hide();
			$("#menu_spacer").animate({height : '300px'}, {duration:tabs.speed, queue:false});
			$("#tree").animate({top : '215px'}, {duration:tabs.speed, queue:false});
			_gaq.push(['_trackEvent', 'Tabs', 'View', "close"]);
		});
	},
	
	showStrip : function(strip) {
		if($(strip).height() == 58) {
			var newheight = $(window).height() * .98 - 260;
			if(newheight < tabs.minHeight) newheight = tabs.minHeight;
			
			$(".strip").animate({height : '58px'}, {duration:tabs.speed, queue:false})
				.find(".imgLink").css('background-position-y', '0px')
						.animate({"left":"300px"}, {duration:tabs.speed, queue:false});
			$(".strip").find(".content").hide();
			$(strip).animate({height : newheight+'px'}, {duration:tabs.speed, queue:false, complete:function() {
				$(strip).find(".content").height(newheight-80+'px')
					.fadeIn(1000);
			}});
			$("#menu_spacer").animate({height : '100px'}, {duration:tabs.speed, queue:false});
			$("#tree").animate({top : '15px'}, {duration:tabs.speed, queue:false});
			$(strip).find(".imgLink").css('background-position-y', '-16px')
				.animate({"left":"0px"}, {duration:tabs.speed, queue:false});
			var repox = Math.random()*400-200;
			var repoy = Math.random()*-500;
			$("#tathead_otro").animate({"background-position-x" : repox+'px', "background-position-y" : repoy+'px'}, {duration:tabs.speed*12, queue:false});
			videoScroller.animateIn();
		}
	}
	
};