﻿
			function ignoreErrors() 
			{
				return true;
			}
			
			window.onerror = ignoreErrors;

		
			function PesquisaToggle()
			{
				if (window.document.getElementById('results').style.display == '') 
				{ 
					window.document.getElementById('results').style.display='none'; 
					window.document.getElementById('results').src = '' 
				}
			}
			
			window.document.onclick = PesquisaToggle;
/*

alert('oi');

function PesquisaToggle(iframe)

	s = document.getElementById(iframe);

	if (s.style.display == '') 
	{ 
		s.style.display='none'; 
		s.src = '' 
	}

}

*/

/* 
	ESSA FUNÇÃO RETIRA A BORDA DO FLASH NO IE
	
	seu uso no HTML deve ser feito conforme modelo.
	
	<script type="text/javascript">
		geraSWF('path_do_arquivo.swf',largura,altura,'id_para_o_banner');
	</script>
	
	// Usar essa chamada dentro da div com a class .dm-homeBanners
	// Essa chamada pode ser usada em qualquer outro lugar onde existe um .swf, só necessita chamar o arquivo .js e no html usar a chamada acima	

*/

/*

function geraSWF(pathImg, w, h, idSwf)
{
	document.write("<object classid='clsid:D27CDB6E-AE6D-11CF-96B8-444553540000' id='obj1' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0' border='0' width='"+w+"' height='"+h+"'>");
    document.write("<param name='movie' value='"+pathImg+"'>");
    document.write("<param name='wmode' value='transparent'>");
    document.write("<param name='quality' value='High'>");
    document.write("<embed src='"+pathImg+"' wmode='transparent' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='"+idSwf+"' width='"+w+"' height='"+h+"' quality='High'>");
	document.write("</object>");
}


*/