<!--
	var secs
	var timerID = null
	var timerRunning = false
	var delay = 1000
	var indPath = 0

	function InitializeTimer()
	{
		if (numPaths > 0)
		{
			secs = 10
			ChangeIFrameUrl()
		
			if (indPath == numPaths)
				indPath = 0
			
			StopTheClock()
			StartTheTimer()
		}
	}

	function StopTheClock()
	{
		if(timerRunning)
				clearTimeout(timerID)
		timerRunning = false
	}

	function StartTheTimer()
	{
		if (secs==0)
		{
			//StopTheClock()
			//InitializeTimer()
			secs = 10

			ChangeIFrameUrl()
			indPath = indPath + 1
		
			if (indPath == numPaths)
				indPath = 0
			
			StopTheClock()
			StartTheTimer()
		}
		else
		{
			secs = secs - 1
			timerRunning = true
			timerID = self.setTimeout("StartTheTimer()", delay)
		}
	}
	
	function ChangeIFrameUrl()
	{
			if( document.getElementById )
			{
				var foo = document.getElementById("destaques")
			}
			else
			{
				var foo = document.all("destaques")
			}

			if (foo)
			{
				if (foo.contentWindow)
				{
					foo.contentWindow.location = paths[indPath]
				}
				else
				{
					if (document.frames)
					{
						if(window.opera)
						{
							document.frames[foo.name].location = paths[indPath]
						}
						else
						{
							foo.url = paths[indPath]
						}
					}
				}
			}
			else
			{
				if (document.getElementsByTagName)
					foo = document.getElementsByTagName("destaques")
				
				if (foo)
				{
					if (foo.contentDocument)
					{
						foo.contentDocument.location.replace( paths[indPath])
					}
					else
					{
						foo.location = paths[indPath]
					}

					if (foo.contentWindow)
					{
						foo.contentWindow.location.url = paths[indPath]
					}
				}
			}
			//if (document.frames)
			//	document.frames('destaques').location = paths[indPath]
			//indPath = indPath + 1
	}
//-->
