$(function() {
	$('#citybrazil').bind('mouseover', function(event) {
		setTooltip(85, 45, 100, 42, '<strong>CityBrazil</strong><br/>Site e rede social de cidades brasileiras.');
		showTooltip(60);
	});

	$('#citybrazil').bind('mouseout', function(event) {
		hideTooltip(45);
	});

	$('#biz').bind('mouseover', function(event) {
		setTooltip(300, 45, 100, 42, '<strong>Biz</strong><br/>Tecnologia em pagamentos digitais.');
		showTooltip(65);
	});

	$('#biz').bind('mouseout', function(event) {
		hideTooltip(45);
	});

	$('#premovale').bind('mouseover', function(event) {
		setTooltip(430, 108, 125, 42, '<strong>Premovale</strong><br/>Estruturas e pr&eacute;-moldados para constru&ccedil;&atilde;o.');
		showTooltip(128);
	});

	$('#premovale').bind('mouseout', function(event) {
		hideTooltip(108);
	});

	$('#festidanca').bind('mouseover', function(event) {
		setTooltip(650, 75, 153, 42, '<strong>Festidan&ccedil;a</strong><br/>Festival de dan&ccedil;a da Funda&ccedil;&atilde;o Cultural Cassiano Ricardo.');
		showTooltip(95);
	});

	$('#festidanca').bind('mouseout', function(event) {
		hideTooltip(85);
	});

	$('#folharegionais').bind('mouseover', function(event) {
		setTooltip(80, 205, 115, 42, '<strong>Folha Regionais</strong><br/>Escrit&oacute;rios regionais do jornal Folha de S.Paulo.');
		showTooltip(220);
	});

	$('#folharegionais').bind('mouseout', function(event) {
		hideTooltip(205);
	});

	$('#orientavida').bind('mouseover', function(event) {
		setTooltip(225, 190, 160, 30, '<strong>Orientavida</strong><br/>Organiza&ccedil;&atilde;o n&atilde;o-governamental.');
		showTooltip(205);
	});

	$('#orientavida').bind('mouseout', function(event) {
		hideTooltip(190);
	});

	$('#ornato').bind('mouseover', function(event) {
		setTooltip(595, 185, 89, 40, '<strong>Ornato</strong><br/>Rede de lojas de casa e presentes.');
		showTooltip(195);
	});

	$('#ornato').bind('mouseout', function(event) {
		hideTooltip(185);
	});

	$('#marte').bind('mouseover', function(event) {
		setTooltip(196, 273, 126, 40, '<strong>Marte</strong><br/>Balan&ccedil;as e equipamentos de alta precis&atildeo.');
		showTooltip(289);
	});

	$('#marte').bind('mouseout', function(event) {
		hideTooltip(273);
	});

	$('#motopiloto').bind('mouseover', function(event) {
		setTooltip(449, 273, 85, 40, '<strong>Motopiloto</strong><br/>Site e rede social de motociclistas.');
		showTooltip(285);
	});

	$('#motopiloto').bind('mouseout', function(event) {
		hideTooltip(273);
	});

	$('#cian').bind('mouseover', function(event) {
		setTooltip(645, 263, 89, 40, '<strong>Cian</strong><br/>Cl&iacute;nica de ouvido, nariz e garganta.');
		showTooltip(273);
	});

	$('#cian').bind('mouseout', function(event) {
		hideTooltip(263);
	});

	$('#caule').bind('mouseover', function(event) {
		setTooltip(334, 358, 89, 40, '<strong>Caule</strong><br/>Industria de alcool e derivados.');
		showTooltip(373);
	});

	$('#caule').bind('mouseout', function(event) {
		hideTooltip(358);
	});

	$('#planevale').bind('mouseover', function(event) {
		setTooltip(540, 368, 128, 40, '<strong>Planevale</strong><br/>Engenharia, planejamento e consultoria.');
		showTooltip(380);
	});

	$('#planevale').bind('mouseout', function(event) {
		hideTooltip(368);
	});

	$('#saojosedoscampos').bind('mouseover', function(event) {
		setTooltip(-6, 378, 117, 40, '<strong>S&atilde;o Jos&eacute; dos Campos</strong><br/>Marca para a cidade de S&atilde;o Jos&eacute; dos Campos.');
		showTooltip(388);
	});

	$('#saojosedoscampos').bind('mouseout', function(event) {
		hideTooltip(378);
	});

	$('#radioondalivre').bind('mouseover', function(event) {
		setTooltip(157, 402, 92, 31, '<strong>Onda Livre</strong><br/>R&aacute;dio comunit&aacute;ria.');
		showTooltip(412);
	});

	$('#radioondalivre').bind('mouseout', function(event) {
		hideTooltip(402);
	});

	$('#cooper').bind('mouseover', function(event) {
		setTooltip(-1, 470, 109, 40, '<strong>Cooper</strong><br/>Ind&uacute;stria de latic&iacute;nios. Redesenho da marca.');
		showTooltip(480);
	});

	$('#cooper').bind('mouseout', function(event) {
		hideTooltip(470);
	});

	$('#phocusinteract').bind('mouseover', function(event) {
		setTooltip(258, 470, 83, 31, '<strong>Phocus Interact</strong><br/>Ag&ecirc;ncia digital.');
		showTooltip(482);
	});

	$('#phocusinteract').bind('mouseout', function(event) {
		hideTooltip(470);
	});

	$('#ambragroup').bind('mouseover', function(event) {
		setTooltip(446, 470, 100, 39, '<strong>AmbraGroup</strong><br/>Pesquisa e tecnologia industrial.');
		showTooltip(482);
	});

	$('#ambragroup').bind('mouseout', function(event) {
		hideTooltip(470);
	});

	$('#tirel').bind('mouseover', function(event) {
		setTooltip(653, 462, 110, 32, '<strong>Tirel</strong><br/>Atelier de gastronomia.');
		showTooltip(475);
	});

	$('#tirel').bind('mouseout', function(event) {
		hideTooltip(462);
	});
});

function setTooltip(left, top, width, height, text) {
	$('#tooltip').css('opacity','0');
	$('#tooltip').css('left',left);
	$('#tooltip').css('top',top);
	$('#tooltip').css('width',width);
	$('#tooltip').css('height',height);
	$('#tooltip').html(text);
}

function showTooltip(val) {
	$('#tooltip').stop().animate({opacity:0.9,top:val}, 350);
}

function hideTooltip(val) {
	$('#tooltip').stop().animate({opacity:0,top:val}, 200, function(){
		$('#tooltip').css('opacity','0');
	});
}
