
function FlashWinSP2(arquivo,largura,altura) {
  document.write("<object width=\"" + largura + "\" height=\"" + altura + "\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\">");document.write("  <param name=\"movie\" value=\"" + arquivo + "\" />");document.write("  <param name=\"quality\" value=\"high\" />");document.write("  <param name=\"wmode\" value=\"transparent\" />");document.write("  <embed src=\"" + arquivo + "\" width=\"" + largura + "\" height=\"" + altura + "\" quality=\"high\" wmode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\"></embed>");document.write("</object>");
}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        window.defaultStatus="Desenvolvido por: WebVix.com.br";
function abrir(quem,largura,altura) {
  var a = window.screen.availWidth - largura ;var b = window.screen.availHeight - altura ;var leftdist = a/2;var topdist = b/2;var foto = window.open("","_blank","left=" + leftdist + ",top=" + topdist + ",width=" + largura + ",height=" + altura + ",scrollbars=yes");foto.document.write("<head><title>:: GS INTERNACIONAL ::</title></head>");foto.document.write("<body topmargin=\"0\" leftmargin=\"0\" marginheight=\"0\" marginhwidth=\"0\" scroll=\"no\">");foto.document.write("<img src=\"" + quem + "\" border=0 onDblClick=\"window.close()\" alt=\"Para fechar clique 2x\">");foto.document.write("</body>");
}
function SubMenu(quem){
  for (i=1;i<=7;i++) {if (document.getElementById('Layer'+i)) {document.getElementById('Layer'+i).style.display='none';}}if(document.getElementById('Layer'+quem)){document.getElementById('Layer'+quem).style.display='';}
}
function Esconder(quem){
  if (document.getElementById(quem)){document.getElementById(quem).style.display='none';}
}
function EscondeSub(quem){
  if (document.getElementById(quem)) {if (typeof(tempo) != 'undefined') {clearTimeout(tempo);}tempo = window.setTimeout('Esconder(\''+quem+'\')',1500);}
}
function EscondeSubMenuTodo(){
  if (typeof(tempo) != 'undefined') {clearTimeout(tempo);}
  tempo = window.setTimeout('SubMenu(\'\')',1600);
}
function ge(quem){
  //ge('input_rua').value;
  return document.getElementById(quem);
}
function isWhitespace(charToCheck) {
	var whitespaceChars = " \t\n\r\f";
	return (whitespaceChars.indexOf(charToCheck) != -1);
}
function ltrim(str) {
	for(var k = 0; k < str.length && isWhitespace(str.charAt(k)); k++);
	return str.substring(k, str.length);
}
function rtrim(str) {
	for(var j=str.length-1; j>=0 && isWhitespace(str.charAt(j)) ; j--) ;
	return str.substring(0,j+1);
}
function trim(str) {
	return ltrim(rtrim(str));
}
function wvPeloMenos(quem,quantos){
  if(trim(quem).length<quantos){alert('Informe ao menos '+quantos+' caracteres para a busca.');return false;}
}

