<!--
function openLive(camera) {
	window.location.href='live?camera='+camera;
}

function openHistory(camera,date, format) {
	window.location.href='history?camera='+camera+'&date='+date+'&format='+format;
}

function inCell(cell, newstyle) {
	if (!cell.contains(event.fromElement)) {
		cell.className = newstyle;
	}
}

function outCell(cell, newstyle) {
	if (!cell.contains(event.toElement)) {
		cell.className = newstyle; 
	}
} 

function abre(url, w, h) {
	window.open(url,"_blank","status=no,toolbar=no,scrollbars=yes,location=no,menu=-no,width="+w+",height="+h);
}
	d = new dTree('d');
		d.config.useStatusText=true;
		d.config.useCookies=true;
		d.config.folderLinks=false;
		d.config.closeSameLevel=true;
		d.add(0,-1, '<b>câmeras</b>', '', 'node title', '_self', 'img/cam.gif','img/cam.gif');
		d.add(1,0,'santa catarina','');
		d.add(2,1,'garopaba','');
		d.add(3,2,'ferrugem','http://www.bestwaves.com/surf/ondas/santa-catarina/garopaba/ferrugem-norte/681', 'node title', '_self', 'img/cam.gif');
		d.add(47,2,'silveira','http://www.bestwaves.com/surf/ondas/santa-catarina/garopaba/silveira-sul/687', 'node title', '_self', 'img/cam.gif');
		d.add(6,1,'imbituba','');
		d.add(7,6,'rosa','http://www.bestwaves.com/surf/ondas/santa-catarina/imbituba/rosa-sul/692', 'node title', '_self', 'img/cam.gif');
		d.add(70,6,'vila','http://www.bestwaves.com/surf/ondas/santa-catarina/imbituba/vila/693', 'node title', '_self', 'img/cam.gif');
		d.add(10,1,'florianópolis','');
		d.add(11,10,'mole','http://www.bestwaves.com/surf/ondas/santa-catarina/florianopolis/mole/670', 'node title', '_self', 'img/cam.gif');
		d.add(53,10,'joaquina','http://www.bestwaves.com/surf/ondas/santa-catarina/florianopolis/joaquina/666', 'node title', '_self', 'img/cam.gif');
		d.add(60,0,'paraná','');
		d.add(61,60,'matinhos','');
		d.add(62,61,'pico','http://www.bestwaves.com/surf/ondas/parana/matinhos/pico-de-matinhos/569', 'node title', '_self', 'img/cam.gif');
		d.add(14,0,'são paulo','');
		d.add(56,14,'mongaguá','');
		d.add(57,56,'plataforma','http://www.bestwaves.com/surf/ondas/sao-paulo/mongagua/lado-esq-do-pier/750', 'node title', '_self', 'img/cam.gif');
		d.add(35,14,'santos','');
		d.add(36,35,'quebra-mar','http://www.bestwaves.com/surf/ondas/sao-paulo/santos/quebra-mar/770', 'node title', '_self', 'img/cam.gif');
		d.add(15,14,'guarujá','');
		d.add(16,15,'pitangueiras','http://www.bestwaves.com/surf/ondas/sao-paulo/guaruja/monduba/730', 'node title', '_self', 'img/cam.gif');
		d.add(32,15,'tombo','http://www.bestwaves.com/surf/ondas/sao-paulo/guaruja/tombo/735', 'node title', '_self', 'img/cam.gif');
		d.add(19,14,'são sebastião','');
		d.add(20,19,'maresias','http://www.bestwaves.com/surf/ondas/sao-paulo/sao-sebastiao/maresias/781', 'node title', '_self', 'img/cam.gif');
		d.add(67,19,'camburi','http://www.bestwaves.com/surf/ondas/sao-paulo/sao-sebastiao/camburi/777', 'node title', '_self', 'img/cam.gif');
		d.add(23,14,'ubatuba','');
		d.add(24,23,'praia grande','http://www.bestwaves.com/surf/ondas/sao-paulo/ubatuba/praia-grande/788', 'node title', '_self', 'img/cam.gif');
		d.add(27,0,'rio de janeiro','');
		d.add(43,27,'rio de janeiro','');
		d.add(44,43,'barra da tijuca','http://www.bestwaves.com/surf/ondas/rio-de-janeiro/rio-de-janeiro/barramares/599', 'node title', '_self', 'img/cam.gif');
		d.add(39,27,'niterói','');
		d.add(40,39,'itacoatiara','http://www.bestwaves.com/surf/ondas/rio-de-janeiro/niteroi/itacoatiara-(pampo)/594', 'node title', '_self', 'img/cam.gif');
		d.add(28,27,'saquarema','');
		d.add(29,28,'itaúna','http://www.bestwaves.com/surf/ondas/rio-de-janeiro/saquarema/itauna/612', 'node title', '_self', 'img/cam.gif');

-->
