﻿// JavaScript Document

function escreveFlash(flash, largura, altura)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ');
	document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" ');
	
	if(largura>0){	
	  document.write('width="' + largura + '"');	
	}	
	
	if(altura>0){	
	  document.write(' height="' + altura + '"');
	}	
	document.write('>');
	document.write('<param name="movie" value="' + flash + '" />');
	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="' + flash + '" menu="false" wmode="transparent" ');
	document.write('quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ');
	document.write('type="application/x-shockwave-flash" ');
	
	if(largura>0){
	  document.write('width="' + largura + '"');
	}	
	
	if(altura>0){	
	  document.write(' height="' + altura + '"');
	}
	document.write('></embed>');
	document.write('</object>');
}


function escrevePosicaoMenu() {
	
	largura = screen.width;
  
  if (largura == 1440){
    posLeft = 400;
  }else if (largura == 1280){
    posLeft = 200;       
  }else if (largura == 1024) {
    posLeft = 100;
  }else if (largura == 800) {
    posLeft = 0;
  }
  
  document.write('<div id="Anima" style="position:absolute; left: ' + posLeft + 'px; top: 105px; width:790px; height:400px; z-index: 1;">');
  document.write('<script>escreveFlash("../swf/menu-4.swf", "790", "400");</script>');
  document.write('</div>');
  
}

function escrevePosicaoBannerInf() {
	
	largura = screen.width;
  
  if (largura == 1280){

    posLeft = 230;

  }
  
  document.write('<div id="Anima" style="position:absolute; left: ' + posLeft + 'px; top: 500px; width:790px; height:400px; z-index: 1;">');
  document.write('<script>escreveFlash("../swf/menurotativo-site.swf", "570", "140");</script>');
  document.write('</div>');
  
}