﻿// JavaScript Document
function redimensiona ()
{
	var largura = window.screen.width;
	var objConteinerPrincipal = document.getElementById ('conteiner_principal');
	var objConteinerBanners = document.getElementById ('conteiner_banners');
	//alert (largura);
	if (largura == '800')
	{
		objConteinerPrincipal.style.margin = '0px 0px 0px -386px';
		objConteinerBanners.style.display = 'none';
	}
}

function write_dhtml (movie, width, height, top, left, marginTop, marginLeft, zIndex, display)
{
	document.write('<DIV ID="DHTMLHOME" STYLE="position:absolute; top:' + top + 'px; left:' + left + 'px; margin-top:' + marginTop + 'px; margin-left:' + marginLeft + 'px; z-index:' + zIndex + '; display:' + display + ';">');
	document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH="' + width + '" HEIGHT="' + height + '" VIEWASTEXT>');
	document.write('<PARAM NAME="movie" VALUE="/Web/util/swf/dhtml/' + movie + '">');
	document.write('<PARAM NAME="quality" VALUE="high">');
	document.write('<PARAM NAME="wmode" VALUE="transparent">');
	document.write('<EMBED SRC="/Web/util/swf/dhtml/' + movie + '" WMODE="transparent" QUALITY=HIGH PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" TYPE="application/x-shockwave-flash" WIDTH="' + width + '" HEIGHT="' + height + '">');
	document.write('</EMBED>');
	document.write('</OBJECT>');
	document.write('</DIV>');	
}

function menuInterna ()
{
	var strHTML = '';
	strHtml = '<td class="menu_interno_meio">';
	strHtml += '<table cellpadding="0" cellspacing="0" border="0" class="menu_interno_tabela">';
	strHtml += '<tr>';
	strHtml += '<td><img src="/web/util/img/menu_interno/topo.png" width="149" height="13"></td>';
	strHtml += '</tr>';
	strHtml += '<tr>';
	strHtml += '<td class="menu_interno_tabela_meio">';
	strHtml += '<table cellpadding="0" cellspacing="0" border="0">';
	strHtml += '<tr>';
	strHtml += '<td class="menu_interna_titulo"><a href="/Web/Empresa/">a empresa</a></td>';
	strHtml += '</tr>';
	strHtml += '<tr>';
	strHtml += '<td class="menu_interna_pontilhado"></td>';
	strHtml += '</tr>';
	strHtml += '<tr>';
	strHtml += '<td class="menu_interna_titulo"><a href="/Web/Portifolio/">portfolio</a></td>';
	strHtml += '</tr>';
	strHtml += '<tr>';
	strHtml += '<td class="menu_interna_pontilhado"></td>';
	strHtml += '</tr>';
	strHtml += '<tr>';
	strHtml += '<td class="menu_interna_titulo">premiações</td>';
	strHtml += '</tr>';
	strHtml += '<tr>';
	strHtml += '<td class="menu_interna_espaco"></td>';
	strHtml += '</tr>';
	strHtml += '<tr>';
	strHtml += '<td class="menu_interno_item"><img src="/web/util/img/menu_interno/bullet_menu.jpg" align="absmiddle"> <a href="/Web/Premiacao/">2007</a></td>';
	strHtml += '</tr>';
	strHtml += '</table>';
	strHtml += '</td>';
	strHtml += '</tr>';
	strHtml += '<tr>';
	strHtml += '<td><img src="/web/util/img/menu_interno/rodape.png" width="149" height="7"></td>';
	strHtml += '</tr>';
	strHtml += '</table>';
	strHtml += '</td>';
	document.write (strHtml);
}

function mostraMenu(objMenu,objImagem){
//	alert(objMenu + ' - ' + objImagem);
	document.getElementById(objMenu).src = objImagem;
}

function mostraSubMenu(menu,mostra)
{
  var objMenu = document.getElementById(menu);
  if(mostra==true)
  {
	  objMenu.style.visibility='visible';
  }
  else
  {
	  objMenu.style.visibility='hidden';
  }
}

function aplicaFlash(swf, width, height, wmode, cache) {
	var noCache = "";
	if (cache == undefined || cache == '') {var noCache = "?" + new Date();}
	if (wmode != "opaque" && wmode != "transparent") {wmode = "transparent";}
	var monta_swf = "";
	monta_swf += "<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='"+ width +"' height='"+ height +"' title=''>";
	monta_swf += "<param name='movie' value='"+ swf + noCache +"'>";
	monta_swf += "<param name='quality' value='high'>";
	monta_swf += "<param name='menu' value='0'>";
	monta_swf += "<param name='wmode' value='"+ wmode +"'>";
	monta_swf += "<embed src='"+ swf + noCache +"' quality='high' wmode='"+ wmode +"' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='"+ width +"' height='"+ height +"'></embed>";
	monta_swf += "</object>";
	document.write(monta_swf);
}