var g_sDocumentWindowID ='documentwindow';

var g_shiSliderLeftID = 'shiSliderLeftID';
var g_shiSliderLeftColumnID = 'sliderMoveBarLeft';

var g_iActualColumnLeftWidth_STANDARD = 328;
var g_iActualColumnLeftWidth = 328;
var g_iMinColumnLeftWidth = 328;
var g_iMaxColumnLeftWidth = 550;
var g_iCloseColumnLeftWidth = 44;
var g_sActiveElementLeftId = 'outlookActiveElementId';
var g_sCloseElementLeftId = 'outlookCloseElementId';
var g_sCookieFieldNameColumnLeft = 'shiColumnLeftWidth';

//new
var g_aSliderSubtractIds = new Array();

var g_bMinimizeColumnLeft  = 'true';


var drag_obj = null;
var mousePositionX = 0;
var s_w = 20;

/** Configuration of Slider 
* The following functions are set the attributes of cssClasses and divs
**/

/**
 * opens the outlook toolbar
 * @return
 */
function setSHISliderDisplayOpenLeft()
{
    if(document.getElementById(g_sCloseElementLeftId)!=null)
       document.getElementById(g_sCloseElementLeftId).style.display = 'none';
    if(document.getElementById(g_sActiveElementLeftId)!=null)    
       document.getElementById(g_sActiveElementLeftId).style.display = 'block';
}

/**
 * closes the outlook toolbar
 * @return
 */
function setSHISliderDisplayCloseLeft()
{
    if(document.getElementById(g_sCloseElementLeftId)!=null)
       document.getElementById(g_sCloseElementLeftId).style.display = 'block';
    if(document.getElementById(g_sActiveElementLeftId)!=null)    
       document.getElementById(g_sActiveElementLeftId).style.display = 'none';   
    	
}

function removeMarginal()
{
    if(document.getElementById('marginalMasterTableID')!=null)    
       document.getElementById('marginalMasterTableID').style.display= "none";
}

/** Configuration of Slider 
* The following functions are set the attributes of cssClasses and divs
**/
function setCSSClassesForLeftSlider(areaWidth)
{
    cssRule('.outlookToolbarWidthOuter','width',(areaWidth)+"px");
    cssRule('.outlookToolbarWidth','width',(areaWidth)+"px");
    cssRule('.outlookToolbarWidthInner','width',(areaWidth-2)+"px");
    cssRule('.outlookToolbarWidthNav','width',(areaWidth-31)+"px");
    cssRule('.outlookToolbarWidthSearch','width',(areaWidth-24)+"px");
}
