/**
 * Some things which must be done at the begging
 */
function start()
{
	loadPage("home.html", "dataload");
	mint.fx.Round("quote");
	mint.fx.Round("text");
	mint.fx.Round("data");
	mint.fx.Round("footer");
}

function pausecomp(millis) 
{
	var date = new Date();
	var curDate = null;

	do { curDate = new Date(); } 
	while(curDate-date < millis);
} 

function fadeIn(where) 
{
    mint.fx.Fade(where, 100, 20, 500);
}

function fadeOut(where) 
{
    mint.fx.Fade(where, 0, 20, 500);
}

function loadPage(str, where)
{
	setTimeout('fadeIn', 200);
	var req = mint.Request();
	req.OnSuccess = function() 
		{
			pauseComp(200);
			fadeOut(where);
		}
	req.Send(str, where);
}

