// COMUM.JS
// CAIAC SOLUÇÕES PARA INTERNET
// www.caiac.com.br

function Flash(swf, w, h, id) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="'+id+'" 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="'+swf+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<param name="scale" value="exactfit">');
	document.write('<embed src="'+swf+'" swliveconnect="true" wmode="transparent" scale="exactfit" name="'+id+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'"></embed>');
	document.write('</object>');
}

function acessaPergunta() {
	obj = document.getElementById("cmbCategoria");
	
	if (obj.selectedIndex > 0) location.href = obj.options[obj.selectedIndex].value;
}

function mostraResposta(id) {
	obj = document.getElementById("resposta"+id);
	
	if (obj.style.display == "none") obj.style.display = "block";
	else obj.style.display = "none";
}