﻿// JScript File

//função para exibir as animações em flash //

function WriteFlash(path, width, height, opacity) {
  document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='"+width+"' height='"+height+"'>");
  document.write("<param name='movie' value='"+path+"'>");
  document.write("<param name='quality' value='high'>");
  if(opacity == "yes"){
    document.write("<param name='wmode' value='transparent'>");
  }else{
    document.write("<param name='BGCOLOR' value='#ffffff'>");
  }
  document.write("<embed src='"+path+"' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'"); 
  if(opacity == "yes"){
    document.write(" wmode='transparent'");
  }else{
    document.write(" bgcolor='#ffffff' ");
  }
  document.write("width='"+width+"' height='"+height+"'></embed>");
  document.write("</object>");
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

