function get_flash(arquivo, largura, altura, bgcolor, id, qualidade, alinhamento,transparente) {
	var obj = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+largura+'" height="'+altura+'" id="'+id+'" align="'+alinhamento+'">';
	obj+= '<param name="allowScriptAccess" value="sameDomain" />';
	obj+= '<param name="movie" value="'+arquivo+'" />';
	obj+= '<param name="quality" value="'+qualidade+'" />';
	if(transparente == true) {
		obj+= '<param name="wmode" value="transparent" />';
	}
	obj+= '<param name="bgcolor" value="'+bgcolor+'" />';
	obj+= '<embed src="'+arquivo+'" '+((transparente==true)?'wmode="transparent"':'')+'" quality="'+qualidade+'" bgcolor="'+bgcolor+'" width="'+largura+'" height="'+altura+'" name="'+id+'" align="'+alinhamento+'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	obj+= '</object>';
	document.write(obj);
}
function ajaxCall(idc,params)
{
	switch(idc)
	{
		case 'contato':

		var nome = document.getElementById('nome');
		var email = document.getElementById('email');
		var empresa = document.getElementById('empresa');
		var tel = document.getElementById('tel');
		var mensagem = document.getElementById('mensagem');

		var arr = new Array();

		arr[0] = [nome,"*","Nome"];
		arr[1] = [email,"email","E-mail"];
		arr[2] = [empresa,"*","Empresa"];
		arr[3] = [tel,"*","Telefone"];
		arr[4] = [mensagem,"*","Mensagem"];

		var f = new Form();

		var validacao = f.Validate(arr,params.iid);

		if( validacao == "")
		{
			var lv = new LoadVars();

			lv.nome = nome.value;
			lv.email = email.value;
			lv.empresa = empresa.value;
			lv.tel = tel.value;
			lv.mensagem = mensagem.value;

			lv.onLoad = function()
			{
				f.Clean(arr);
				alert(this.content);
			}
			lv.sendAndLoad('index.php?target=ajaxInterface&act='+idc,'POST');/**/
		}
		else
		{
			switch(params.iid)
			{
				case "pt":
				alert("Os seguintes erros foram encontrados:\n\n"+validacao);
				break;
				
				case "en":
				alert("The following errors has occurred:\n\n"+validacao);
				break
			}
			
		}
		break;

	}
	return false;
}


function exibe(id) {
	if(document.getElementById('dado'+id)) {
		if(document.getElementById('dado'+id).style.display == 'none') {
			document.getElementById('dado'+id).style.display = 'block';
		} else {
			document.getElementById('dado'+id).style.display = 'none';
		}
	}
}
