// infotec.js
(function($){$(function(){
var $links = $('.menu-infotec a');
var $panelswrapper = $('.paneles ul');
var $panels = $('.panel', $panelswrapper);
var delay = 1200;
var fill = $('<div style="float:right;height:240px;width:85px"></div>'
			+ '<div style="float:right;height:235px;width:210px"></div>'
			+ '<div style="float:right;height:215px;width:85px"></div>');
$panels.filter('.panelx').prepend(fill);
$links.click(function(evt) {
	evt.preventDefault();
	this.blur();
	var link = this; 
	var $link = $(this);
	if ($link.is('.selected')) { return false; }
	$links.removeClass('selected');
	$link.addClass('selected');
	var left = $panels.filter(link.hash).position().left;
	$panelswrapper.animate({left:-left},delay);
});	
var hash=window.location.hash ? '[hash='+window.location.hash+']' : ':first';
$links.filter(hash).click();
});})(jQuery);

