// ----------------------------------------------------------------
message     = "MS - METALSINTER IND. E COM. DE FILTROS E SINTERIZADOS LTDA.^" +
		              "^" +		             	                
		              "^"
		scrollSpeed = 25
		lineDelay   = 1500	  
		
		txt         = ""
	
function scrollText(pos) 
{
  if (message.charAt(pos) != '^') 
  {
	txt    = txt + message.charAt(pos)
	status = txt
	pauze  = scrollSpeed
  }
  else 
  {
	pauze = lineDelay
	txt   = ""
	if (pos == message.length-1) pos = -1
  }
  pos++
  setTimeout("scrollText('"+pos+"')",pauze)
}		

scrollText(0)
// ----------------------------------------------------------------		
// IE3 workaround vbscript objects
DA = (document.all) ? 1 : 0

window.onerror=handle_error

function handle_error()
{
	return true;
}
// ----------------------------------------------------------------
function MM_openBrWindow(theURL,winName,features) 
{ //v2.0
  	window.open(theURL,winName,features);
}
// ----------------------------------------------------------------
function POP_Window(theURL,winName,features) 
{ //v2.0
	window.open(theURL,winName,features);
}
// ----------------------------------------------------------------
function download0(mypage, myname, w, h, scroll) 
{
	var h = 335
	var ht = -90
	var w = 446
	var wt = 120
	var winl = (screen.width - wt) / 2;
	var wint = (screen.height - ht) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no'
	win = window.open('contato.asp','Contato', winprops)
	if (parseInt(navigator.appVersion) >= 4) 
	{ 
		win.window.focus(); 
	}
}

// ----------------------------------------------------------------
function download00(mypage, myname, w, h, scroll) 
{
	var h = 335
	var ht = -90
	var w = 518
	var wt = 120
	var winl = (screen.width - wt) / 2;
	var wint = (screen.height - ht) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=yes'
	win = window.open('opiniao.asp','opiniao', winprops)
	if (parseInt(navigator.appVersion) >= 4) 
	{ 
		win.window.focus(); 
	}
}
// ----------------------------------------------------------------
function displayWindow(theURL,winName,width,height,features) 
{ //v3.1
// Made by Eddie Traversa modified from Macromedia Code
// http://nirvana.media3.net/
    var window_width = width;
    var window_height = height;
    var newfeatures= features;
    var window_top = (screen.height-window_height)/2;
    var window_left = (screen.width-window_width)/2;
    newWindow=window.open(''+ theURL + '',''+ winName + '','width=' + window_width + ',height=' + window_height + ',top=' + window_top + ',left=' + window_left + ',features=' + newfeatures + '');
    newWindow.focus();
}
