var JSTB_shown = "JSTB_shown";
var JSTB_hidden = "JSTB_hidden";
var JSTB_days = 365;
document.write('\n");function JSTB_expand_collapse(targetElement) {
var element = document.getElementById(targetElement);
if (!element) return null;
var ret = "";
if (arguments[1]) {
var preferred = arguments[1];
if (preferred != JSTB_shown) preferred = JSTB_hidden;
element.className = preferred;
ret = preferred;
}
else {
if (element.className == JSTB_shown) {
element.className = JSTB_hidden;
ret = JSTB_hidden;
}
else {
element.className = JSTB_shown;
ret = JSTB_shown;
}
}
return ret;
}
function JSTB_write_cookie(cookieName, cookieValue, daysOfLife) {
if (!cookieName) return null;
if (daysOfLife) {
var date = new Date();
date.setTime(date.getTime() + (daysOfLife*24*60*60*1000));
var expires = "; expires=" + date.toGMTString();
}
else {
var expires = "";
}
document.cookie = cookieName + "=" + cookieValue + expires + "; path=/";
return true;
}
function JSTB_read_cookie(cookieName) {
if (!cookieName) return null;
var cname = cookieName + "=";
var ca = document.cookie.split(';');
for (var i=0; i < ca.length; i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(cname) == 0) {
return c.substring(cname.length, c.length);
}
}
return null;
}
function JSTB_erase_cookie(cookieName) {
if (!cookieName) return null;
JSTB_write_cookie(cookieName,"",-1);
}
function JSTB_special_chars(text) {
s = new Array('<','>','&','"',"'");
d = new Array('<','>','&',''','"');
for (i=0;i