var toolbar = null;
			var content = null;
			var tbHeight = 0;
			var tbTargetHeight = -1;
			var slideAmount = 0;
			var tbSlideAmount = 0;
			var slideSpeed = 50;

			function OnToolbarLoad(frm)
			{
				toolbar = frm;
				Init();
			}
			
			function OnContentLoad(frm)
			{
				content = frm;
				Init();
			}
			
			function Init()
			{
				if( toolbar != null && content != null )
				{
				   if(toolbar.contentWindow.InitRegions)
					   toolbar.contentWindow.InitRegions(content)
					else if(toolbar.InitRegions)
				      toolbar.InitRegions(content)					
					else
					   alert( 'Or not' )
				}
			}

			function ResizeToolbar(height)
			{
				tbHeight = height;
				UpdateFrameset();
			}

			function SlideToolbar(height)
			{
				tbSlideAmount = parseInt( ((height * 1000) / slideSpeed) / slideSpeed );
				tbTargetHeight = height;
				window.setTimeout( '_Slide()', slideSpeed )
			}

			function _Slide()
			{
				tbHeight += tbSlideAmount;
				var delta = tbHeight - tbTargetHeight;
				var loop = false;
				if(delta > 0)
					tbHeight = tbTargetHeight;
				else
					loop = true;				
				
				UpdateFrameset();

				if( loop )
					window.setTimeout( '_Slide()', slideSpeed )
			}

			function UpdateFrameset()
			{
				document.getElementById('frsMain').rows = tbHeight +",*";
			}
