function GetFileName(Source){
	DocumentURL = Source.location.href;
	SplitPath = DocumentURL.split("/");
	FileName = SplitPath[SplitPath.length-1];
	//alert( FileName );
	return FileName;
}
//ApplicationPath = AppURL.replace(FileName,"");
function GetApplicationPath(Source){
	FileName = GetFileName();
	DocumentURL = Source.location.href;
	ApplicationPath = DocumentURL.replace(FileName,"");
	//alert( ApplicationPath );
	return ApplicationPath;
}
//Calculate real position of HTML element
//Get Left Pos
function DL_GetElementLeft(eElement)
{
    if (!eElement && this)                       // if argument is invalid
    {                                            // (not specified, is null or is 0)
        eElement = this;                         // and function is a method
    }                                            // identify the element as the method owner
    
    var nLeftPos = eElement.offsetLeft;          // initialize var to store calculations
    var eParElement = eElement.offsetParent;     // identify first offset parent element  
    while (eParElement != null)
    {                                            // move up through element hierarchy
        nLeftPos += eParElement.offsetLeft;      // appending left offset of each parent
        eParElement = eParElement.offsetParent;  // until no more offset parents exist
    }
    return nLeftPos;                             // return the number calculated
}

//Get Top Pos
function DL_GetElementTop(eElement)
{
    if (!eElement && this)
    {
        eElement = this;
    }

    var nTopPos = eElement.offsetTop;
    var eParElement = eElement.offsetParent;
    while (eParElement != null)
    {
        nTopPos += eParElement.offsetTop;
        eParElement = eParElement.offsetParent;
    }
    return nTopPos;
}
/*===========================================================*/
var tNode = null
function PaneResize(dir){
	if(dir == "close"){
		ContentSideBar.style.width = "120px"//LanguageLabel.offsetWidth + NavBarEnd_1.offsetWidth;
		if(tNode==null){tNode = ContentSideBarDiv.removeNode(true)}
		FooterContentTD.style.backgroundImage = "url(images/bottom_bar_"+ lang +"_S.gif)"
	}else{
		ContentSideBar.style.width = "";
		if(tNode!=null){ContentSideBar.appendChild(tNode);tNode = null}
		FooterContentTD.style.backgroundImage = "";
	}
}

/* Body Click */


function BodyClick(){
	//alert(1)
}