// Image Functions
// changeImage() and preload() functions for rollovers and GIF animation
// 19990326

// Copyright (C) 1999 Dan Steinman
// Distributed under the terms of the GNU Library General Public License
// Available at http://www.dansteinman.com/dynapi/

function preload(imgObj,imgSrc) {
	if (document.images) {
		eval(imgObj+' = new Image()')
		eval(imgObj+'.src = "'+imgSrc+'"')
	}
}
function changeImage(layer,imgName,imgObj) {
	if (document.images) {
		if (document.layers && layer!=null) eval('document.'+layer+'.document.images["'+imgName+'"].src = '+imgObj+'.src')
		else document.images[imgName].src = eval(imgObj+".src")
	}
}

function exibeVideo(idDiv,nFlash)
{ 
scFlash = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" border=\"0\" width=\"250\" height=\"188\" id=\"video2\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" \/><param name=\"movie\" value=\"" + nFlash + ".swf\" \/><param name=\"quality\" value=\"high\" \/><param name=\"bgcolor\" value=\"#000000\" \/><embed src=\"" + nFlash + ".swf\" quality=\"high\" bgcolor=\"#000000\" width=\"250\" height=\"188\" name=\"video2\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"\/><\/object>";
document.getElementById(idDiv).innerHTML = scFlash;
} 
function exibeFoto(idDiv,idImage)
{
scFoto = "<a onMouseMove=\"mostraBanner(event," + idImage + ")\" onMouseOver=\"carregaBanner('"+ idImage + "')\" onmouseout=\"ocultaBanner()\"><img name=\"foto\" src=\"<%=MaquinaAntiga%>/fotos/nd_gra.gif\" width=\"250\" height=\"188\" border=\"0\"><\/a>";
document.getElementById(idDiv).innerHTML = scFoto;
} 

