var m_oQuotesInterval = null;

function QuotesSetTimer()
{
var iRandomNumber;
	
	iRandomNumber = Math.round(((Math.random() * 1000) % 20)) + 20;
	m_oQuotesInterval = window.setInterval("QuotesShow()", iRandomNumber * 1000);
}

function QuotesKillTimer()
{
	
	window.clearInterval(m_oQuotesInterval);
}

function QuotesOnScroll()
{
var oDiv;
var oBody;
	
	oDiv = document.getElementById("oQuotes");
	oBody = oDiv.parentNode;
	oDiv.style.left = Number(oBody.clientWidth + oBody.scrollLeft - 213);
	oDiv.style.top = Number(oBody.clientHeight + oBody.scrollTop - 146);
	oDiv.style.width = 213;
	oDiv.style.height = 146;
}

function QuotesShow()
{
var oFlash;
var oDiv;
var oBody;

	oDiv = document.getElementById("oQuotes");
	oBody = oDiv.parentNode;
	oDiv.style.left = Number(oBody.clientWidth + oBody.scrollLeft - 213);
	oDiv.style.top = Number(oBody.clientHeight + oBody.scrollTop - 146);
	oDiv.style.width = 213;
	oDiv.style.height = 146;
	oFlash = document.getElementById("oFlashQuotes");
	oFlash.goToFrame(2);
	oFlash.play();
	QuotesKillTimer();
	QuotesSetTimer()
}
