	function bookmarksite(titulo,url){
	if (window.sidebar) // firefox
		window.sidebar.addPanel(titulo, url, "");
	else if(window.opera && window.print){ // opera
		var elem = document.createElement('a');
		elem.setAttribute('href',url);
		elem.setAttribute('title',titulo);
		elem.setAttribute('rel','sidebar');
		elem.click();
	} 
	else if(document.all)// ie sux
		window.external.AddFavorite(url, titulo);
	}

	function openWindow(width,height,secao,scroll,url) {
	  var left = 50;
	  var top = 10
	  window.open(url, secao, 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars='+scroll+', status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
	}

	function embeds(url,w,h){
		document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+w+'" height="'+h+'">');
		document.write('<param name="movie" value="'+url+'">');
		document.write('<param name="quality" value="high">');
		document.write('<param name="wmode" value="transparent">');
		document.write('<param name="menu" value="false">');
		document.write('<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed>');
		document.write('</object>');
	}

	document.enSelecionou = false;
	function validaEnquete() {
		if (!document.enSelecionou) { 
			alert("Selecione uma opção da enquete");
		} else {
			xajax.procEnquete('fEnquete');
		}
	}

	function fontSize (elem, acao){
		// tamanho inicial da fonte (em px)
		var tamInic = 12;
		// Tamanho mínimo da [b]fonte (em px)
		var tamMin = 10;
		// Tamanho máximo da fonte (em px)
		var tamMax = 28;
		// Pega o tamanho da fonte. Se não foi setada ainda (primeira vez que a função é executada) terá como tamanho padrão 'tamInic'.
			if (document.getElementById(elem).style.fontSize == "") {
				var tamFonte = tamInic;
			} else {
				var tamFonte = parseInt(document.getElementById(elem).style.fontSize);
			}

		switch (acao) {
		// Aumenta o tamanho, enquanto foi menor que 'tamMax'
			case '+':
			if (tamFonte < tamMax)
				document.getElementById(elem).style.fontSize = (tamFonte + 2) + "px";
			break;
		// Diminui o tamanbo, enquanto for maior que 'tamMin'
			case '-':
			if (tamFonte > tamMin)
				document.getElementById(elem).style.fontSize = (tamFonte - 2) + "px";
			break;
		}
	}