function showImageTop(banner,xlink,alt,id){
	var theImages = new Array() 
	var theTypes = new Array() 
	var theLink   = new Array() 
 
	//theImages[0] = 'banners/banner_pgto_menor.gif'
	//theTypes[0]  = 'img'
	//theLink[0]   = 'default.asp'
	
	//theImages[1] = 'banners/banner_atacado.gif'
	//theTypes[1]  = 'img'
	//theLink[1]   = 'default.asp'
	
	//theImages[1] = 'banners/prata2_468x60.gif'
	//theTypes[1]  = 'img'
	//theLink[1]   = 'http://premiacao2009.ebit.com.br/index.asp?loja=114195'
	
	theImages[0] = banner
	theTypes[0]  = 'img'
	theLink[0]  = 'http://www.portorizzo.com.br/loja/produtos.asp?lang=pt_BR&tipo_busca=subcategoria&codigo_categoria=16&codigo_subcategoria=258'
	
	//alert(id);
	
	//theImages[1] = 'banners/fiq.jpg'
	//theTypes[1]  = 'img'
	//theLink[1]   = 'http://www.fiq.com.br/'
    //theImages[1] = 'banners/banner_2006_468x60.swf'
	//theTypes[1]  = 'swf'
	var j = 0
	var p = theImages.length;
	var preBuffer = new Array()

	for (i = 0; i < p; i++){
		preBuffer[i] = new Image()
		preBuffer[i].src = theImages[i]
	}
	var whichImage = Math.round(Math.random()*(p-1));
	if (theTypes[whichImage] == 'swf') {
		document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" WIDTH="468" HEIGHT="60">');
		document.write('    <param name=movie value="'+theImages[whichImage]+'">');
		document.write('    <param name=quality value=high>');
		document.write('    <embed src="'+theImages[whichImage]+'" WIDTH="468" HEIGHT="60" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash">');
		document.write('    </embed>');
		document.write('</object>');
	}
	else {
		document.write('<a href="'+theLink[whichImage]+'"><img src="'+theImages[whichImage]+'" border="0" alt="'+alt+'" onclick="pontos(\''+id+'\');"></a>');
	}
}

function showImageLat(){
	var theImages = new Array() 
	var theTypes  = new Array() 
	var theLink   = new Array() 
 
	theImages[0] = 'banners/museulogo.gif'
	theTypes[0]  = 'img'
	theLink[0]   = 'http://www.mcb.sp.gov.br/'

	theImages[1] = 'banners/fale_presidente.gif'
	theTypes[1]  = 'img'
	theLink[1]   = 'mailto:falecompresidente@abimovel.com'

	theImages[2] = 'banners/Logo_Alerta_finalsite_p.gif'
	theTypes[2]  = 'img'
	theLink[2]   = 'http://www.inmetro.gov.br/'

	theImages[3] = 'banners/banner_portalmoveleiro.gif'
	theTypes[3]  = 'img'
	theLink[3]   = 'http://www.portalmoveleiro.com.br/'

	 
	var j = 0
	var p = theImages.length;
	var preBuffer = new Array()

	for (i = 0; i < p; i++){
		preBuffer[i] = new Image()
		preBuffer[i].src = theImages[i]
	}
	var whichImage = Math.round(Math.random()*(p-1));
	if (theTypes[whichImage] == 'swf') {
		document.write('<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" WIDTH="468" HEIGHT="60">');
		document.write('    <param name=movie value="'+theImages[whichImage]+'">');
		document.write('    <param name=quality value=high>');
		document.write('    <embed src="'+theImages[whichImage]+'" WIDTH="468" HEIGHT="60" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash">');
		document.write('    </embed>');
		document.write('</object>');
	}
	else {
		document.write('<a href="'+theLink[whichImage]+'"><img src="'+theImages[whichImage]+'" border="0" onclick="pontos(\''+id+'\');"></a>');
	}
}
