function ResizeGadget(height)
{
	if(height != null)
	{
		try	{_IG_AdjustIFrameHeight(height);}
		catch(e)
		{			
			/*try {
				//window.parent.ResizeGadgetIFrame(window, height);
				window.parent.document.getElementsByTagName('iframe')[0].height = height;
			}
			catch(e) {}*/		}
	}
	else
	{
		try	{_IG_AdjustIFrameHeight();}
		catch(e)
		{
			/*try {
				//window.parent.ResizeGadgetIFrame(window);
				window.parent.document.getElementsByTagName('iframe')[0].height = getDocumentHeight();
			}
			catch(e) {}*/		}
	}
}

function ShowLoading()
{
	document.getElementById("loading").style.display = "block";
}

function HideLoading()
{
	document.getElementById("loading").style.display = "none";
}