#if $useJS
#include "templates/_pageelem_clickref_useJS.html"
#else
#include "templates/_pageelem_clickref_noJS.html"
#end if
#if $pageElem.showStateImage
${clickRefStart, entityEncoding='skip'}
#if $pageElem.controlType == 201
#include "templates/_serverstatus_graphic.html"
#else if $pageElem.controlType == 3
#else if $pageElem.controlType == 101
#set $refreshImageUrl = _filter($rootPath) + "/refreshingimage?page=" + _filter($pageName, entityEncoding='URL-parm') + "&id=" + str($pageElem.index)
#set $refreshImageID = "refreshImageID" + str($pageElem.index)

#else if $pageElem.imageFilePath
#if $useAlphaImageLoader
## Windows IE5/6 requires using a plugin to properly display PNG transparency
#else
#if $pageElem.targetElemName

#else

#end if
#end if
#end if
${clickRefEnd, entityEncoding='skip'}
#else if $pageElem.showStateText
${clickRefStart, entityEncoding='skip'}
#if $pageElem.controlType == 200
#include "templates/_serverstatus_text.html"
#else if $pageElem.controlValueLong
$pageElem.controlValueLong
#else if $pageElem.controlValueRaw
$pageElem.controlValueRaw
#end if
${clickRefEnd, entityEncoding='skip'}
#end if
#if $pageElem.captionName
${clickRefStart, entityEncoding='skip'}
${pageElem.captionName}
${clickRefEnd, entityEncoding='skip'}
#end if