/*
	taosProgress.js
	===================================================================================
	TAOS
	Taos Progress Indicator JavaScript 0.6.0

		
	Updated: 05/03/2002 14:43
	Authors: Oliver Emberton (oliver@silktide.com)
	===================================================================================	
*/

	// Sniff for XP SP2 - different handling of modal dialogs etc
	var browserIsSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
	//browserIsSP2=false;

	// ! Currently assumes location of taos_public !
	if (!browserIsSP2)
	{
		if (top.oPopup)
		{
			top.oPopup.hide();
			//top.oPopup="";
		}
	}
	
// Popup progress window
function taosOpenProgress()
{
	if (browserIsSP2) // Not possible in SP2
		return false;
		
	//document.body.style.cursor="wait";
	
	width=200;
	height=46;
	
	top.oPopup = window.createPopup();
	var oPopBody = top.oPopup.document.body;
	
	oPopBody.id="popupMessage";
	oPopBody.style.backgroundColor = "white";
	oPopBody.style.color = "black";
	oPopBody.style.border = "solid 1px black";
	
	temphtml="<table width='100%' height='100%' cellpadding='0' cellspacing='0' border='0'><tr><td align='center' style='font-family: verdana, arial; font-size: 13px;'>"
		+"One moment<br>"
		+"<img src='/taos_public/gfx/gicon_progressAnim.gif'>"
		+"</td></tr></table>";

	oPopBody.innerHTML = temphtml;
	
	top.oPopup.show((screen.width-width)/2, (screen.height-height)/2, width, height); //, document.body);*/
}