
if (typeof window.MdControlsNamespace == "undefined")
{
	window.MdControlsNamespace = {};
}

if (
	typeof(window.MdControlsNamespace.Utils) == "undefined" ||
	typeof(window.MdControlsNamespace.Utils.Version) == null ||
	window.MdControlsNamespace.Utils.Version < 1.1
	)
{
	
	window.MdControlsNamespace.Utils=
	{
		Version : 1.1
	};

	window.MdControlsNamespace.CallMdResize = function (parentElement)
	{
		var children = parentElement.getElementsByTagName("*");
		for (var i = 0; i < children.length; i ++)
		{
			var child = children[i];
			if (child.MdResize)
			{
				child.MdResize();
			}
			if (child.MdResizeStopLookup) return;
		}
	};

	window.MdControlsNamespace.CallMdShow = function (parentElement)
	{
		var children = parentElement.getElementsByTagName("*");
		for (var i = 0; i < children.length; i ++)
		{
			var child = children[i];
			if (child.MdShow)
			{
				child.MdShow();
			}
			
			if (child.MdShowStopLookup) {
				return;
			};
		}
	};

	window.MdControlsNamespace.AppendStyleSheet = function(callback, clientID, pathToCssFile)
	{
		if (!pathToCssFile) 
		{ 
			return; 
		}

		var isGecko = window.netscape && !window.opera;
		if (!callback && isGecko)
		{
			//immediate css loading for Gecko
			document.write("<" + "link" + " rel='stylesheet' type='text/css' href='" + pathToCssFile + "' />");
		}
		else
		{
			var linkObject = document.createElement("link");
			linkObject.rel = "stylesheet";
			linkObject.type = "text/css";
			linkObject.href = pathToCssFile;
			document.getElementsByTagName("head")[0].appendChild(linkObject);
		}
	}
}

//BEGIN_ATLAS_NOTIFY
if (typeof(Sys) != "undefined")
{
	if (Sys.Application != null && Sys.Application.notifyScriptLoaded != null)
	{
		Sys.Application.notifyScriptLoaded();
	}
}
//END_ATLAS_NOTIFY