//\/////
//\  coolTip Position Cap Plugin
//\  This file requires coolTip 1.00 or later.
//\  Modified August 24, 2005
//\
//\  You may not remove or change this notice.
//\  Copyright Robert E Boughner 2005. All rights reserved.
//\  
//\  This plugin is governed by the same restrictions set forth
//\  in the prologue to cCore.js.
//\/////
//\  THIS IS A VERY MODIFIED VERSION. DO NOT EDIT OR PUBLISH. GET THE ORIGINAL!
if(typeof cInfo==cUdf||!cInfo.meets(1.00))alert('coolTip 1.00 or later is required for the Position Cap Plugin.');else{registerCommands('positioncap,scrollbars,src,data,noborder');
setDefaultVariables('positioncap|top|scrollbars|0|src||data||noborder|0');
function setPositionCapVariables(obj){obj.positioncap=cd_positioncap;obj.scrollbars=cd_scrollbars;obj.src=cd_src;obj.data=cd_data;obj.noborder=cd_noborder;}
function parsePositionCapExtras(pf,i,ar){var k=i,v;if(k<ar.length){if(ar[k]==POSITIONCAP){eval(pf+'positioncap="'+ar[++k]+'"');return k;}
if(ar[k]==SCROLLBARS){eval(pf+'scrollbars=('+pf+'scrollbars==0?1:0)');return k;}
if(ar[k]==SRC){eval(pf+'src="'+ar[++k]+'"');return k;}
if(ar[k]==DATA){eval(pf+'data="'+ar[++k]+'"');return k;}
if(ar[k]==NOBORDER){eval(pf+'noborder=('+pf+'noborder==0?1:0)');return k;}}
return-1;}
function ctContentSimplePosnCap(text){var bodyTxt,txt,sHgt=getMinimumHeight(),cpIsMultiple=/,/.test(po.cellpad);with(po){if(scrollbars)text=addWrapTags(text,sHgt);bodyTxt=ctInnerTable(text);if(scrollbars)bodyTxt=setScrollbarFormatting(bodyTxt,sHgt);txt='<table width="'+width+'" border="0" cellpadding="'+border+'" cellspacing="0" '+(bgclass?'class="'+bgclass+'"':bgcolor+' '+height)+'><tr><td>'+bodyTxt+'</td></tr></table>';}
set_background("");return txt;}
function ctContentCaptionPosnCap(text,title,close){var nameId,txt,sHgt=getMinimumHeight(),caption,vPosn,posCap,capPosn=po.positioncap.toUpperCase(),cpIsMultiple=/,/.test(po.cellpad);var closing,closeevent,doClose=(close!="");posCap=(/^L/.test(capPosn)?'L':(/^R/.test(capPosn)?'R':''));if(posCap=='L')capPosn=(/LEFT/.test(capPosn)?capPosn.substring(4):capPosn.substring(1));else if(posCap=='R')capPosn=(/RIGHT/.test(capPosn)?capPosn.substring(5):capPosn.substring(1));if(/^T/.test(capPosn))vPosn='TOP';else if(/^B/.test(capPosn))vPosn='BOTTOM';else if(/^M/.test(capPosn))vPosn='MIDDLE';closing="";closeevent="onmouseover";if(po.closeclick==1)closeevent=(po.closetitle?"title='"+po.closetitle+"'":"")+" onclick";if(po.capicon!=""){nameId=' hspace=\"5\"'+' align=\"middle\" alt=\"\"';if(typeof po.dragimg!='undefined'&&po.dragimg)nameId=' hspace=\"5\"'+' name=\"'+po.dragimg+'\" id=\"'+po.dragimg+'\" align=\"middle\" alt=\"Drag Enabled\" title=\"Drag Enabled\"';po.capicon='<img src=\"'+po.capicon+'\"'+nameId+' />';}
if(doClose)
closing='<td '+(po.closefontclass?'class="'+po.closefontclass:'align="RIGHT')+'"><a href="javascript:return '+po.fnRef+'cClick(\''+cTip.id+'\');" '+closeevent+'="return '+po.fnRef+'cClick(\''+cTip.id+'\');">'+(po.closefontclass?'':wrapStr(0,po.closesize,'close'))+po.close+(po.closefontclass?'':wrapStr(1,po.closesize,'close'))+'</a></td>';caption='<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td'+(po.capalign?' align="'+po.capalign+'"': '')+(po.captionfontclass?' class="'+po.captionfontclass+'">':'>')+(po.captionfontclass?'':'<b>'+wrapStr(0,po.captionsize,'caption'))+po.capicon+title+(po.captionfontclass?'':wrapStr(1,po.captionsize)+'</b>')+'</td>'+closing+'</tr></table>';if(!posCap){if(po.scrollbars)text=addWrapTags(text,sHgt);bodyTxt=(po.data||po.src)?text:ctInnerTable(text);if(po.scrollbars)bodyTxt=setScrollbarFormatting(bodyTxt,sHgt);txt='<table width="'+po.width+'" border="0" cellpadding="'+po.border+'" cellspacing="0" '+(po.bgclass?'class="'+po.bgclass+'"':po.bgcolor+' '+po.bgbackground+' '+po.height)+'><tr><td>'+(vPosn=='TOP'?caption:'')+bodyTxt+(vPosn!='TOP'?caption:'')+'</td></tr></table>';}else{caption='<table width="'+po.width+'" border="0" cellpadding="'+po.border+'" cellspacing="0" '+(po.bgclass?'class="'+po.bgclass+'"':po.bgcolor+' '+po.bgbackground+' '+po.height)+'><tr><td>'+caption+'</td></tr></table>';bodyTxt=runHook('ctContentSimple',FALTERNATE,po.css,text);txt='<table border="0" cellpadding="0" cellspacing="0"><tr>'+(posCap=='L'?'<td valign="'+vPosn+'" width="'+po.width+'">'+caption+'</td><td width="'+po.width+'">':'<td width="'+po.width+'">')+bodyTxt+(posCap!='L'?'</td><td valign="'+vPosn+'" width="'+po.width+'">'+caption+'</td>': '</td>')+'</tr></table>'}
set_background("");return txt;}
function checkScrollbars(){if(cNs4&&po.scrollbars)po.scrollbars=0;if(!cNs4&&(po.data||po.src))po.scrollbars=1;if(po.scrollbars){if(po.wrap){po.wrap=0;po.width=cd_width;}
if(!po.sticky){po.sticky=1;po.mouseoff=1;opt_NOCLOSE(' ');}}
return true;}
function cleanUpScrollBars(obj){var po=obj.pop;if(!cNs4&&po.scrollbars)(po.doXml)?removeChildren(obj):obj.innerHTML='';}
function getMinimumHeight(){return(po.height)?parseInt(po.height.match(/(\d+)/)[0]):100;}
function addWrapTags(txt,sHgt){with(po){txt=!(data||src)?txt:((data)?'<object data="'+data+'" width="'+width+'" height="'+sHgt+'" type="text/html"></object>':'<iframe src="'+src+'" width="'+width+'" height="'+sHgt+'" scrolling="auto"'+(noborder?' frameborder="0" border="0"':'')+'></iframe>');height="";}
return txt;}
function setScrollbarFormatting(text,hgt){return /\.s?html?/.test(text)?text:'<div style="position: relative;width: '+po.width+'px;height: '+hgt+'px;overflow: auto;">'+text+'</div>';}
registerRunTimeFunction(setPositionCapVariables);registerCmdLineFunction(parsePositionCapExtras);registerPostParseFunction(checkScrollbars);registerHook("ctContentCaption",ctContentCaptionPosnCap,FREPLACE);registerHook("ctContentSimple",ctContentSimplePosnCap,FREPLACE);registerHook('hideObject',cleanUpScrollBars,FBEFORE);if(cInfo.meets(1.00))registerNoParameterCommands('scrollbars');}
