//\/////
//\  coolTip Exclusive Plugin
//\  This file requires coolTip 1.50 or later.
//\  Modified August 21, 2006
//\
//\  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.50 or later is required for the Exclusive Plugin.');else{registerCommands('exclusive,exclusivestatus,exclusiveoverride');var cOverrideIsSet;
setDefaultVariables('exclusive|0|exclusivestatus|Please close open popup first.');
function setExclusiveVariables(obj){obj.exclusive=cd_exclusive;obj.exclusivestatus=cd_exclusivestatus;}
function parseExclusiveExtras(pf,i,ar){var k=i,v;cOverrideIsSet=false;if(k<ar.length){if(ar[k]==EXCLUSIVEOVERRIDE){if(pf!='cd_')cOverrideIsSet=true;return k;}
if(ar[k]==EXCLUSIVE){eval(pf+'exclusive=('+pf+'exclusive==0)?1:0');return k;}
if(ar[k]==EXCLUSIVESTATUS){eval(pf+"exclusivestatus='"+escSglQuote(ar[++k])+"'");return k;}}
return-1;}
function isExclusive(args){var rtnVal=false;if(args!=null)rtnVal=(hasCommand(0,args,EXCLUSIVEOVERRIDE)>-1);if(rtnVal)rtnVal=false;else{if(po){po.sticknow=1;self.status=(po.exclusive)?po.exclusivestatus:'';rtnVal=po.exclusive;}}
return rtnVal;}
function clearExclusive(){po.exclusive=0;}
function setExclusive(){po.exclusive=(po.showingsticky&&po.exclusive);}
function chkForExclusive(){if(cOverrideIsSet)po.exclusive=0;return true;}
registerRunTimeFunction(setExclusiveVariables);registerCmdLineFunction(parseExclusiveExtras);registerPostParseFunction(chkForExclusive);registerHook("ctCreatePopup",setExclusive,FBEFORE);registerHook("hideObject",clearExclusive,FAFTER);if(cInfo.meets(1.00))registerNoParameterCommands('exclusive');}
