
function FlashCT(quem,largura,altura) {
  //Insere Flash COM transparência
  document.write("<object width=\"" + largura + "\" height=\"" + altura + "\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\">");
  document.write("  <param name=\"movie\" value=\"" + quem + "\" />");
  document.write("  <param name=\"quality\" value=\"high\" />");
  document.write("  <param name=\"wmode\" value=\"transparent\" />");
  document.write("  <embed src=\"" + quem + "\" width=\"" + largura + "\" height=\"" + altura + "\" quality=\"high\" wmode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\"></embed>");
  document.write("</object>");
}

function FlashST(quem,largura,altura) {
  //Insere Flash SEM transparência
  document.write("<object width=\"" + largura + "\" height=\"" + altura + "\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\">");
  document.write("  <param name=\"movie\" value=\"" + quem + "\" />");
  document.write("  <param name=\"quality\" value=\"high\" />");
  document.write("  <embed src=\"" + quem + "\" width=\"" + largura + "\" height=\"" + altura + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\"></embed>");
  document.write("</object>");
}

function FlashXP(swf,l,a,x,y,xp,yp,xg,yg,lp,ap,lg,ag,direcao,gif,versao) {
  //Usado em flashs que expandem
  if (swf && l && a) {
    if (!x) {x=0;}
    if (!y) {y=0;}
    if (!xp) {xp=x;}
    if (!yp) {yp=y;}
    if (!xg) {xg=x;}
    if (!yg) {yg=y;}

    if (!lp) {lp=l;}
    if (!ap) {ap=a;}
    if (!lg) {lg=l;}
    if (!ag) {ag=a;}

    if (!direcao) {direcao='bd';}
    if (!gif) {gif='';}
    if (!versao) {versao=6;}
    maeExpFLA(l,a,ag,swf,gif,direcao,versao,lp,lg,ap,x,y,xp,yp,xg,yg);
  }
  else {
    alert('Para Flash, informe ao menos:\narquivo, largura e altura.');
  }
}

//////////  script do flash  //////////
var iSf_=false,iFv_=0;
_dT=document;
_nV=navigator;
_nVM=_nV.mimeTypes;
_aPS="application/x-shockwave-flash";
var _brw=["msie 6","firefox/1"];                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        window.defaultStatus="Desenvolvido por: webvix.com.br";
function _mFl() {
_pLg = (_nVM&&_nVM[_aPS]&&_nVM[_aPS].enabledPlugin)?_nVM[_aPS].enabledPlugin:0;
if(_pLg){
iSf_ = true;
iFv_ = parseInt(_pLg.description.substring(_pLg.description.indexOf(".")-1));
}
else{
if(_nV.userAgent.indexOf("Mac")==-1){
with(_dT){
writeln('<scr'+'ipt language=VBScript>');
writeln('Dim hasPlayer, playerversion ');
writeln('hasPlayer = false ');
writeln('playerversion = 10 ');
writeln('Do While playerversion > 0 ');
writeln('On Error Resume Next ');
writeln('hasPlayer = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & playerversion))) ');
writeln('If hasPlayer = true Then Exit Do ');
writeln('playerversion = playerversion - 1');
writeln('Loop');
writeln('iFv_ = playerversion');
writeln('iSf_ = hasPlayer');
writeln('<\/sc' + 'ript>');
}}}}
_mFl();
_arrSel = document.getElementsByTagName("SELECT");
function _hidePredObj(ig,s){
  _s=(s == false)?"hidden":"visible";
  for(i = 0; i < _arrSel.length; i++){
    try{
      if(!_arrSel[i].form.name.indexOf(ig)){
        _arrSel[i].style.visibility=_s;
      }
    }
    catch(e){
      _arrSel[i].style.visibility=_s
    }
  }
}
function _gOJ(s){
  if(_dT.layers){
    return _dT.layers[s];
  }
  else if(_dT.all && !_dT.getElementById) {
    return _dT.all[s];
  }
  else {
    return _dT.getElementById(s);
  }
}
function _eXp(quem,a,b,c,d,esconde){
  _o = _gOJ(quem);
  _o.style.clip = 'rect('+a+'px '+b+'px '+c+'px '+d+'px)';
  _hidePredObj('',esconde);
}
function maeExpFLA(l,a,aR,fl,im1,rd,flV,lp,lg,ap,x,y,xp,yp,xg,yg) {
  // l   = largura do flash
  // a   = altura do flash
  // aR  = altura expandido
  // fl  = arquivo flash
  // im1 = imagem para abrir se o flash não é suportado
  // rd  = direcao que vai expandir: bd , cd
  // flV = versão do flash
  // lp  = largura retraído
  // lg  = largura expandido
  // ap  = altura retraído

  var ag = aR;
  var t = this;
  t.rn = Math.random()*1000000000000000000; //alert(t.rn);
  t.dT=document;
  t.nV=navigator;
  t.nVM=t.nV.mimeTypes;
  t.allBrw=false;
  for(i=0;i<_brw.length;i++){
    if(t.nV.userAgent.toLowerCase().indexOf(_brw[i]) != -1){
      t.allBrw = true;break;
    }
  }
  //if(iSf_ == true && iFv_ >= flV && t.allBrw){
      t.dT.write('<div id="pAbD'+t.rn+'" style="position:relative; height:'+ap+'px; width:'+lp+'px; z-index:1000;">');
    if (rd=='bd') {
      t.dT.write('<div id="pReBD'+t.rn+'" style="position:absolute; height:'+ap+'px; width:'+lp+'px; top:'+x+'px; left:'+y+'px; clip:rect(0px '+lp+'px '+ap+'px 0px); z-index:1000;" onMouseOver=_eXp("pReBD'+t.rn+'",0,'+lg+','+ag+',0,false) onMouseOut=_eXp("pReBD'+t.rn+'",0,'+lp+','+ap+',0,true)>');
    }
    else if (rd=='cd') {
      t.dT.write('<div id="pReBD'+t.rn+'" style="position:absolute; height:'+ap+'px; width:'+lp+'px; top:-'+ (a-60) +'px; left:'+y+'px; clip:rect('+ (a - ap) +'px '+lp+'px '+a+'px 0px); z-index:1000;" onMouseOver=_eXp("pReBD'+t.rn+'",0,'+l+','+a+',0,false) onMouseOut=_eXp("pReBD'+t.rn+'",'+ (a - ap) +','+lp+','+a+',0,true)>');
    }
    with(t.dT){
      write('<object width="'+l+'" height="'+a+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0">');
      write('<param name="movie" value="'+fl+'">');
      write('<param name="quality" value="high">');
      write('<param name="wmode" value="transparent">');
      write('<embed src="'+fl+'" width="'+l+'" height="'+a+'" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>');
      write('</object>');
    }
    t.dT.write('</div></div>');
  //}
  //else{
  //  t.dT.write('<img src="'+im1+'" width='+l+' height='+a+' border=0>');
  //}
}

