/* Flash */
function EscreveFlash(piWid, piHei, psSrc, psId, transp) {
var strSwf;

strSwf = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" id=\""+psId+"\" width=\""+piWid+"\" height=\""+piHei+"\">";
strSwf += "<param name=\"movie\" value=\""+psSrc+ "?" + new Date().getTime()+"\">";
strSwf += "<param name=\"allowScriptAccess\" value=\"sameDomain\">";
strSwf += "<param name=\"quality\" value=\"high\">";
if(transp){
strSwf += "<param name=\"wmode\" value=\"transparent\">";
}else{
strSwf += "<param name=\"wmode\" value=\"opaque\">";
}
strSwf += "<embed id=\""+psId+"\" name=\""+psId+"\" allowScriptAccess=\"sameDomain\" swLiveConnect=\"true\" src=\""+psSrc+"?"+new Date().getTime()+"\" quality=\"high\" "
strSwf += "pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+piWid+"\" height=\""+piHei+"\" "
if(transp){
strSwf += "wmode=\"transparent\" "
}else{
strSwf += "wmode=\"opaque\" "
}
strSwf += "></embed></object>";

this.document.write(strSwf);
} 

function abrir_janela_popup(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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;
}

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 video(vid){
	window.open('video.asp?video='+vid,'Vídeo','width=320,height=292')
}

function EscreveFlashvideo(piWid, piHei, psSrc) {
var strSwf;

strSwf = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" id=\"playerflv\" width=\""+piWid+"\" height=\""+piHei+"\" align=\"middle\">";
strSwf += "<param name=\"movie\" value=\""+psSrc+"\">";
strSwf += "<param name=\"allowScriptAccess\" value=\"sameDomain\">";
strSwf += "<param name=\"quality\" value=\"high\">";
strSwf += "<param name=\"bgcolor\" value=\"#d7dbde\">";

strSwf += "<embed id=\"playerflv\" name=\"playerflv\" allowScriptAccess=\"sameDomain\" src=\""+psSrc+"\" quality=\"high\" bgcolor=\" d7dbde\" "
strSwf += "pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+piWid+"\" height=\""+piHei+"\"></embed></object>";

this.document.write(strSwf);
} 