//*************************************************************************************/
// File:  helphlep.js
// Purpose: Help Helper functions
// Please don't distribute without prior written consent. 
//
//
// Programmers:
// - Stacy Haven
// - stacy.haven@dhtmlsolutions.com
// - Copyright (c)2007 Stacy Haven / DHTMLSolutions.com.  All rights reserved.
//*************************************************************************************/
//*************************************************************************************/

function DFShowHelp(){
	posObj = DFGetCenterCoordinates(542,464);
	helpContainerMain.MoveToLoc(0,null);
	helpContainerWindow.MoveToLoc(posObj.l,posObj.t);
	helpContainerMain.ShowIt(true);
}

function DFHideHelp(){
	helpContainerMain.MoveToLoc(-2000,null);
	helpContainerMain.ShowIt(false);
}

function DFWriteHelp(htmlIn){
        document.getElementById("helpContent").innerHTML = htmlIn ;
}

function DFGetCenterCoordinates(w,h){
	var posObj = {l:null,t:null};
	var fullx = document.documentElement.scrollWidth;
	if(PBO.bSaf){
		var fully = window.innerHeight;
	}else{
		var fully = document.documentElement.clientHeight;
	}
	if(PBO.bSaf){
		var posy = document.body.scrollTop;
	}else{
		var posy = document.documentElement.scrollTop;
	}
	var posx = document.documentElement.scrollLeft;
	posObj.l = posx+(fullx/2)-(w/2);
	posObj.t = posy+(fully/2)-(h/2);
	return posObj;
}


