// AGCORP.NET (R)2007 - Funcao para carregar os objetos em flash sem a proteçao do controle 
//
// Abdenego Santos
function flash(arqflash,largura,altura) {
document.write('<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="' + largura + '" height="' + altura + '">');
document.write('<param name="movie" value="' + arqflash + '" />');
document.write('<param name="quality" value="high" />');
document.write('<param name="menu" value="false" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<embed src="' + arqflash + '" width="' + largura + '" height="' + altura + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false" wmode="transparent"></embed>');
document.write('</object>');
}

function AbreJanela(url) {
          window.open(url);
}


var images=new Array();
images[0]="images/img-topo1.png";
images[1]="images/img-topo2.png";
images[2]="images/img-topo3.png";
images[3]="images/img-topo4.png";
images[4]="images/img-topo5.png";
var amount = Math.floor(Math.random() * images.length);
document.write('<style>.li-top-right{background-image:url('+images[amount]+'); background-position:right;}</style>'); 
