	//function for float menu
	var _totalWinHeight=-1;
	var _adjWinHeight;
	var _rightDivPos;
	var _rightFooterPos;
	var _bottomFooterPos;

	function setTotal()
	{
		_totalWinHeight = document.body.scrollHeight;
		_adjWinHeight= _totalWinHeight;//-608;
		
		var eRightHead = document.getElementById("righthead");
		var eRightDiv = document.getElementById("rightdiv");
		var eFloatMenu = document.getElementById("FloatMenu");
		var eFooterMenu = document.getElementById("FooterMenu");
		
		if(eFloatMenu!=null)
		{
			_rightFooterPos = document.body.clientHeight - eFloatMenu.clientHeight;
			eFloatMenu.style.top=_rightFooterPos;
			resizePanel(_rightFooterPos);
		}
		
		if(eFooterMenu!=null)
		{	
			_bottomFooterPos=document.body.clientHeight - eFooterMenu.clientHeight;
			eFooterMenu.style.top= _bottomFooterPos;
		}	
		
/*
		if(eRightDiv!=null && eFloatMenu!=null)
		{
			var eRightHeadHeight = 0;
			if (eRightHead != null){
				eRightHead.style.height='';
				eRightHeadHeight = parseInt(eRightHead.clientHeight);
			}	
			eFloatMenu.style.height='';

			eRightDiv.style.height = 
				parseInt(document.body.clientHeight) - 
				eRightHeadHeight -  
				parseInt(eFloatMenu.clientHeight)
				;
		}
*/
	}

	function window_onscroll()
	{
	  if(document.body.scrollTop <= _adjWinHeight){
		var eRightComp = document.getElementById("rightcomp");
		var eRightHead = document.getElementById("righthead");
		var eRightDiv = document.getElementById("rightdiv");
		var eFloatMenu = document.getElementById("FloatMenu");
		var eFooterMenu = document.getElementById("FooterMenu");

		if(eRightComp!=null && eFloatMenu!=null)
		{
			var floatMenuTop = 0;
			
			if(eRightComp.style.position=='absolute')
				floatMenuTop=document.body.scrollTop + _rightFooterPos-120;//523;
			else
				floatMenuTop=document.body.scrollTop + _rightFooterPos;
	
			eFloatMenu.style.top=floatMenuTop-1;
	
			resizePanel(floatMenuTop);
		}		

		if(eFooterMenu!=null){
			eFooterMenu.style.top=document.body.scrollTop + _bottomFooterPos;
		}
	  }
	}
	
	function ShowControl()
	{
		if(typeof(ddlArray)!="undefined")
		{
			for(var i=0;i<=ddlArray.length-1;i++)
			{
				document.getElementById(ddlArray[i]).style.display='';
			}
		}
	}
	//Function for Right pane
	var blcheck=true;
	function tabControl()
	{
		try
		{
		if (blcheck==true)
		  {
		    	
		    if(typeof(ddlArray)!="undefined")
		    {
				for(var i=0;i<=ddlArray.length-1;i++)
				{
					var objectToHide = document.getElementById(ddlArray[i]);
					if(objectToHide != null) objectToHide.style.display='none';
				}
		    }

		     //calling tab control function
		    if(typeof(al_TabControl_SingleRowMode)!="undefined")
		    {
				al_TabControl_SingleRowMode("cntrlTab", true, 847)
			}

		    //document.getElementById("rightcomp").style.position='absolute';
		    var rightdiv = document.getElementById("rightdiv");
		    if (rightdiv != null)
		    {   
		        rightdiv.style.width=847;
		        var spans = rightdiv.getElementsByTagName("SPAN");
		        for (var i=0; i<spans.length; i++)
                {
                    if (spans[i].className == 'UltraWebTreeLine2B')
                        spans[i].style.width = '767';
                }		     
		    }
		    document.getElementById("rightcomp").style.left=154;
		    document.getElementById("rightcomp").style.width=850;

		    if(document.getElementById("middletab")!=null)
		    {
				document.getElementById("middletab").style.display='none';
		    }

		    if(document.getElementById("FloatMenu")!=null)
		    {	    
				//document.getElementById("FloatMenu").style.top=document.body.scrollTop + _rightFooterPos-42;//42;//523;
				//Since rightcomp is not positioned absolute any more, FloatMenu Top position should be Just ScrollTop + _rightFooterPos
				document.getElementById("FloatMenu").style.top=document.body.scrollTop + _rightFooterPos
				//document.getElementById("FloatMenu").style.left=0;
				document.getElementById("FloatMenu").style.left=237;
				document.getElementById("FloatMenu").style.width=850;
				
		    }

		    document.getElementById("tabctrl").src='/DIAHome/Common/Resources/Images/right.gif';
		    document.getElementById("tabctrl1").src='/DIAHome/Common/Resources/Images/right.gif';		   
		    document.getElementById("tabctrl").alt='Click here to Collapse the Tab';
		    document.getElementById("tabctrl1").alt='Click here to Collapse the Tab';
		    document.getElementById("expandcolapse").innerHTML='Collapse';		    
		    document.getElementById("expandcolapse").style.width=824;
		    document.getElementById("rightHead").style.width=820;

		    blcheck=false;
		    if (document.getElementById("bottomlnk") != null)
				document.getElementById("bottomlnk").style.display='none';
			
			if(document.getElementById("rightmenu")!=null)
			{
				document.getElementById("rightmenu").style.top=26;
	 			document.getElementById("rightmenu2").style.top=26;
	 			document.getElementById("rightmenu").style.left=279;
	 			document.getElementById("rightmenu2").style.left=0;
	 	    }
		    return;		
		  }
		  else
		  {   	        
		    if(typeof(ddlArray)!="undefined")
		    {
				for(var j=0;j<=ddlArray.length-1;j++)
				{
					document.getElementById(ddlArray[j]).style.display='';
				}
		    }

		    document.getElementById("rightcomp").style.position='';
		    var rightdiv = document.getElementById("rightdiv");
		    if (rightdiv != null)
		    {   
		        rightdiv.style.width=275;
		        var spans = rightdiv.getElementsByTagName("SPAN");
		        for (var i=0; i<spans.length; i++)
                {
                    if (spans[i].className == 'UltraWebTreeLine2B')
                        spans[i].style.width = '190';
                }		     
		    }
		    document.getElementById("rightcomp").style.width=278;
		    document.getElementById("rightcomp").style.left=726;

		    if(document.getElementById("middletab")!=null)
		    {
				document.getElementById("middletab").style.display='';
		    }

		    if(document.getElementById("FloatMenu")!=null)
		    {
				document.getElementById("FloatMenu").style.top=document.body.scrollTop + _rightFooterPos;//565;
				//document.getElementById("FloatMenu").style.left=726;
				//Changed this setting because now we have a broader left Nav.
				document.getElementById("FloatMenu").style.left=800;
				document.getElementById("FloatMenu").style.width=278;
			}

    		//document.getElementById("expandcolapse").style.width=190;
		    document.getElementById("tabctrl").src='/DIAHome/Common/Resources/Images/left.gif';
		    document.getElementById("tabctrl").alt='Click here to Expand the Tab';
            document.getElementById("tabctrl1").src='/DIAHome/Common/Resources/Images/left.gif';
		    document.getElementById("tabctrl1").alt='Click here to Expand the Tab';
		    document.getElementById("expandcolapse").innerHTML='Expand';
			document.getElementById("rightHead").style.width=255;			

	        if(document.getElementById("bottomlnk")!=null)
				document.getElementById("bottomlnk").style.display = '';

	        //calling tab control function
	        if(typeof(al_TabControl_SingleRowMode)!="undefined")
	        {
				al_TabControl_SingleRowMode("cntrlTab", false, 275)
	        }

			if(document.getElementById("rightmenu")!=null)
			{
				if(click=='over' || click=='comm' || click=='news')
					{
						document.getElementById("rightmenu").style.top=66;
	 					document.getElementById("rightmenu2").style.top=93;
	 					document.getElementById("rightmenu").style.left=726;
	 					document.getElementById("rightmenu2").style.left=726;
				}
				else
				{
           				document.getElementById("rightmenu").style.top=93;
	 					document.getElementById("rightmenu2").style.top=66;
	 					document.getElementById("rightmenu").style.left=726;
	 					document.getElementById("rightmenu2").style.left=726;
				}      
			}
	        blcheck=true;
		  }	
		  }
		  catch(e){}
	}
 
  function resizePanel(floatMenuTop)
  {
	//window.status=window.status+ 'underResize1';
  	var name = "cntrlTab";
  	var currentTabs = document.getElementsByName(name + "_currentTab");
  
  	if ( currentTabs.length > 0){
  		//window.status=window.status+ 'underResize2';
		var num = currentTabs[0].value;
		var oPanel = al_TabControl_GetPanel(name, num);
		if (oPanel != null)
		{
		    //window.status=window.status+ 'underResize2.1';
		    if ((floatMenuTop - findPosY(oPanel)-5)>0)
		    {
		        //window.status=window.status+ 'underResize2.2' + floatMenuTop + ' ' + (findPosY(oPanel)-5) + '  ' + (floatMenuTop - findPosY(oPanel)-5) ;
		        oPanel.style.height = floatMenuTop - findPosY(oPanel)-5;
		    }
		    //window.status=window.status+ 'underResize2.3';
		} 
		//oPanel.style.height = floatMenuTop - findPosY(oPanel)-5;
	}
	else
	{
		//window.status=window.status+ 'underResize3';
		var rdiv = document.getElementById("rightdiv");
		if (rdiv != null)
		{
		    if ((floatMenuTop - findPosY(rdiv)-5)>0)
		    {
		        rdiv.style.height = floatMenuTop - findPosY(rdiv)-5;
		    }
		}
		//rdiv.style.height = floatMenuTop - findPosY(rdiv)-5;
	}
  }

	var click='over';
	var blcheck=true;
	var previd='overview';
	function changeRightMenuPos(id,id2)
	{
		document.getElementById(id2).style.display="";		
		if(id2!=previd)
		{
			document.getElementById(previd).style.display="none";
		}
		previd=id2;
		if(blcheck==true)
		{
		  document.getElementById("rightmenu").style.top=93;
		  document.getElementById("rightmenu2").style.top=66;
		}
		if(id!=click)
		{
		document.getElementById(click).className="meetingrightmenu";
		}
		document.getElementById(id).className="meetingrightmenusel";
		click=id;		
	}	
	
	function changeRightMenuPos1(id,id2)
	{
		document.getElementById(id2).style.display="";		
		if(id2!=previd)
		{
			document.getElementById(previd).style.display="none";
		}
		previd=id2;
		
		if(blcheck==true)
       {
		  document.getElementById("rightmenu").style.top=66;
		  document.getElementById("rightmenu2").style.top=93;
		}
		if(id!=click)
		{
			document.getElementById(click).className="meetingrightmenu";		
		}
		document.getElementById(id).className="meetingrightmenusel";
		click=id;
	}
	
	// function for rollover effect on upper right Menu Buttons
	function changeRightMenuOver(id)
	{
		if(id!=click)
		{
		  document.getElementById(id).className="meetingrightmenusel";
		}
	}
	
	function changeRightMenu(id)
	{
		if(id!=click)
		{
		  document.getElementById(id).className="meetingrightmenu";
		}
	}	
