}
# If you want to move the home/help/pref buttons, override this to be empty
# and then explicitly include _globallinks_ somewhere else
# on the page
_optgloballinks_ {_globallinks_}
# _bannertitle_ is defined in nav_css/ns4.dm, and is either text or
# a banner image
_pagebanner_ {
_optgloballinks_
_bannertitle_
_imagecollection_
_If_("_activateweb20_" eq "2",
_If_("_activatetalkback_" eq "1",_talkback:uploadForm_)
)
}
_pagebanner_[v=1] {
_imagecollection_
_optgloballinks_
_pagebannerextra_
_If_("_activateweb20_" eq "2",
_If_("_activatetalkback_" eq "1",_talkback:uploadForm_)
)
}
# note we no longer close off one of the startspacer tables here!!
_footer_ {
_If_("_cgiargtalkback_" eq "1",_talkback:monitorUpload_)
_pagefooterextra__endspacer__htmlfooter_
}
# v=1 footer: not using startspacer in the header, so dont put it in the footer
_footer_ [v=1]{
_If_("_cgiargtalkback_" eq "1",_talkback:monitorUpload_)
_pagefooterextra_
_htmlfooter_
}
# close off anything opened by startspacer
_endspacer_ {
}
_htmlfooter_ {
}
_loginscript_ {
function appendUsernameArgs(id,addOn)
\{
var a=document.getElementById(id);
var url = a.getAttribute("href");
if (url == "") \{
url = document.location.toString();
\}
//alert("url before = " + url);
// clear out any earlier user name/authentication values
url = url.replace(/(&|\\\\?)uan=\\d\{0,1\}/g,"");
url = url.replace(/(&|\\\\?)un=[a-z0-9:\\-]*/g,"");
url = url.replace(/(&|\\\\?)pw=[a-z0-9:\\-]*/g,"");
//alert("url after = " + url);
var gwcgi = "_gwcgi_";
var tailUrl = url.substr(url.length-gwcgi.length);
url += (tailUrl == "_gwcgi_") ? "?" : "&";
url += addOn;
//alert("url with add on = " + url);
a.setAttribute("href",url);
\}
}
# imagescript only used in nav_ns4.dm
_globalscripts_{
_If_("_activatejquery_" eq "1",_jqueryScriptAndStyle_)
_If_("_activateweb20_" eq "2",
_If_("_activateseaweed_" eq "1",_seaweedscript_)
_If_("_activatetalkback_" eq "1",_talkbackscript_)
)
_If_(_pagescriptfileextra_,_pagescriptfileextra_)
}
_globalscripts_ [v=1] {
_If_("_activatejquery_" eq "1",_jqueryScriptAndStyle_)
_If_("_activateweb20_" eq "2",
_If_("_activateseaweed_" eq "1",_seaweedscript_)
_If_("_activatetalkback_" eq "1",_talkbackscript_)
)
_If_(_pagescriptfileextra_,_pagescriptfileextra_)
}
_scriptdetach_ {
function close\_detach() \{
close();
\}
}
_jqueryScriptAndStyle_ {