/***************
args explained:
	strheader : 	string of text that will be bolded. 
					if you want to use double quotes you must use the character entity (&quot;). 
					apostrophes must be escaped with backslash(\)
				
	strBodyText : 	string of text that will be body of tool tip. 
					if you want to use double quotes you must use the character entity (&quot;). 
					apostrophes must be escaped with backslash(\)
					
	strCatType : 	takes either 'category' or 'subcategory'
	
	ojbId : 		the element making the call to w_overlib() must have and id associated with it. this id must be unique to the page.
					if and id is not supplied tool tip will be relative to mouse instead of element
	
***************/
function w_overlib(strHeader, strBodyText, strCatType, objId){

	if (strCatType == 'category'){
		strOverLibArg = '<div class=\'toolTipContentCat\'>';
		strOverLibArg += '<h4 class=\'marginTopZero\'>' + strHeader + '</h4>';
		strOverLibArg += strBodyText;
		strOverLibArg += '</div><div class=\'toolTipArrowCat\'></div>';
		return overlib(strOverLibArg, FULLHTML, ANCHOR, objId, ANCHORALIGN, '0', '0', '.1','1', STICKY, CENTER);
	} else if (strCatType == 'subcategory'){
		strOverLibArg = '<div class=\'toolTipContentSubCat\'>';
		strOverLibArg += '<h4 class=\'marginTopZero\'>' + strHeader + '</h4>';
		strOverLibArg += strBodyText;
		strOverLibArg += '</div><div class=\'toolTipArrowSubCat\'></div>';
		return overlib(strOverLibArg, FULLHTML, ANCHOR, objId, ANCHORALIGN, '0', '0', '.2','1', STICKY, CENTER);
	} else if (strCatType == 'division'){
		strOverLibArg = '<div class=\'toolTipContentDiv\'>';
		strOverLibArg += '<h4 class=\'marginTopZero\'>' + strHeader + '</h4>';
		strOverLibArg += strBodyText;
		strOverLibArg += '</div><div class=\'toolTipArrowDiv\'></div>';
		return overlib(strOverLibArg, FULLHTML, ANCHOR, objId, ANCHORALIGN, '0', '0', '.1','1', STICKY, CENTER);
	} else if (strCatType == 'map'){
		strOverLibArg = '<div class=\'toolTipContentMap\'>';
		strOverLibArg += '<h4 class=\'marginTopZero\'>' + strHeader + '</h4>';
		strOverLibArg += strBodyText;
		strOverLibArg += '</div><div class=\'toolTipArrowMap\'></div>';
		return overlib(strOverLibArg, FULLHTML, OFFSETX, 0, STICKY, CENTER);
	}
	//return overlib(strOverLibArg, FULLHTML, ANCHOR, objId, ANCHORALIGN, '0', '0', '0','1', STICKY, CENTER);
}

