May not be the most efficient way (or 100% syntactically correct), but I ended up figuring it out...
Code:
<div id="header" class="mod-con">
<h1 id="logo"><a href="/index.cfm"><img src="/image/logo.png" alt="logo" /></a></h1>
<cfset pageList="
/index.cfm|Home,
/idx.cfm|Property Search,
/idx.cfm?action=frm.select-map&load=1&agent=true&listingSystem=austin&state=TX|My Listings,
/exclusives/generic_officesearch.cfm|Featured Listings,
/about.cfm|About,
/contact.cfm|Contact
">
<cfset loopct = 1>
<ul id="main-menu">
<cfloop list="#pageList#" index="q">
<cfoutput>
<cfset thisLink=trim(listFirst(q, '|'))>
<cfset thisLinkText=trim(listLast(q,'|'))>
<li>
<strong>
<a href="#thisLink#"
<cfif cgi.SCRIPT_NAME contains "#thisLinkText#"> class="cur"</cfif>
<cfif (not structKeyExists(url, 'agent') and #thisLink# contains '/idx.cfm' and #thisLinkText# contains 'Property Search')> class="cur"</cfif>
<cfif (structKeyExists(url, 'agent') and trim(url.agent) eq "true") and #thisLinkText# eq 'My Listings'> class="cur"</cfif>
<cfelseif loopCt eq listLen(pageList)></cfif>>
#thisLinkText#</a></strong>
</li>
</cfoutput>
<cfset loopCt = loopCt + 1>
</cfloop>
</ul>
</div>
Bookmarks