
azaa = function(variableName,defaultValue) {if (defaultValue === undefined) {eval("if(window." + variableName + "===undefined)alert('" + variableName + " must be assigned a value.')");} else {if (window[variableName]===undefined) window[variableName] = defaultValue;}
}
var zoo_SHOW_ORIGINAL_LINK = true;var JSWindow_MIN_MENU_USE_CLICK_NOT_OVER = false;var JSWindow_INTERNAL_WINDOW_WIDTH = 650;var JSWindow_INTERNAL_WINDOW_HEIGHT = 550;var JSWindow_DEFAULT_WIN_WIDTH = 500;var JSWindow_DEFAULT_WIN_HEIGHT = 400;var JSWindow_BUBBLE_WIDTH_MIN = 300;var JSWindow_BUBBLE_HEIGHT_MIN = 100;var JSWindow_ICON_EXT = "gif";var JSWindow_CASCADE_OFFSET = 24;var JSWindow_ALLOW_POPOUT = false;var JSWindow_ALLOW_MAXIMIZE = true;var JSWindow_ALLOW_OPTIONS = false;var JSWindow_ALLOW_MINIMIZE = true;var JSWindow_ALLOW_POPIN = true;var JSWindow_ALLOW_BACKBUTTONS = true;var JSWindow_AUTO_MINIMIZE = false;var JSWindow_AUTO_MAXIMIZE = false;var JSWindow_ALWAYS_SHOW_MIN = true;var JSWindow_AUTOSIZE_MAXIMIZE = true;var JSWindow_AUTOSIZE_DOWN = false;var JSWindow_ADJUST_LEVEL = 'move resize';var dataHash = new Object();var defaultSkinName = "black";var zoo_KEEP_ALIVE=false;var azz="http://www.zoowee.com";var zoo_TOKEN_EDITOR="edittoken.jsp";var statusBarLeft = "";var statusBarRight = "";var zoo_SHOW_SEARCH_OPTIONS=false;var zoo_SHOW_NAV_TITLE=true;var ZOO_CLASS_TITLES='by Title';var ZOO_USE_SHIM=false;var mouseIsDown = false;var DesktopX=209;var DesktopY=0;var absPath = "";var zoowee_SHOW_ADDFOLDER=0;var zoo_ADDCUSTOM='';var zoo_NODE_EDITOR="addcat.jsp";var zoo_DEFAULTEDITURL='ABSPATHaddcat.jsp?refresh_winid=REFRESH_WINID&source_zid=SOURCE_ZID';var zoo_DEFAULTDELETEURL='default';var CACHE_ONLOAD_OBJS;var GLOBAL_UNIQ = 1234;var GLOBALTARGET = "_new";var POPOUT_FUNC = '';var SHOW_LOADING = true;var SHOW_DEBUG=false;var SHOW_HIGHLIGHT=false;var SHOW_AUTHOR=false;var HIGHLIGHT_COLOR='#E0E0E0';var SHOW_HOMEPAGE=false;var zoowee_SHOW_SITEMETRICS=false;var zoowee_RSS_DESC_SHOW=false;var SHOW_PROPERTIES=false;var SHOW_IDENTITY=false;var SHOW_TOOLTIP=true;var ALWAYS_SHOW_MIN=true;var AUTO_MINIMIZE=false;var ZOO_SHOW_BUBBLE_TITLES=true;var GRID_TEXT_COUNT=16;var SLIDE_TEXT_COUNT=48;var GRID_CELL_WIDTH=100;var GRID_SHOW_TITLES=true;var STATICWIN_POSX=0;var STATICWIN_POSY=0;var SCROLLER_WIDTH=180;var SEARCH_SOURCES="t";var SHOW_NAVICONS=true;var LOAD_QUICKNAV='';var zoowee_LOAD_WELCOME='';var DEFAULT_OPEN="category";var windowScroller;var default_load_string;var zoowee_ADMIN_TOOL_TITLES;function auto_defaults(){absPath = "http://zoobeast.zoowee.com/drivingone/";CHAT_SERVER = ['zoobeast.zoowee.com','443'];PAGES_DEPLOY_EMBED_CSS = 1;}
if (window.zoo_add_global_func) window.zoo_add_global_func(auto_defaults);auto_defaults();function strip(str) {return str.replace(/^\s+/, '').replace(/\s+$/, '');}
function stripTags(str) {return str.replace(/<\/?[^>]+>/gi, '');}
function unescapeHTML(str) {var div = $azzzl('div');div.innerHTML = stripTags(str);if (!div.childNodes[0]) return "";if (div.childNodes.length == 1) return div.childNodes[0].nodeValue;var ret = "";for (var x = 0;x < div.childNodes.length;x++) ret += div.childNodes[0].nodeValue;return ret;};camelize = function(str) {var parts = str.split('-'), len = parts.length;if (len == 1) return parts[0];var camelized = str.charAt(0) == '-'
? parts[0].charAt(0).toUpperCase() + parts[0].substring(1) : parts[0];for (var i = 1;i < len;i++) camelized += parts[i].charAt(0).toUpperCase() + parts[i].substring(1);return camelized;};if (! window.azzzzi) var azzzzi = new Object();azzzzi.remove = function(arr, val) {var x;for (x = 0;x < arr.length;x++) {if (arr[x] == val) arr.splice(x, 1);}
};azzzzi.append = function(arr, arr2) {for (var x = 0;x < arr2.length;x++) arr[arr.length] = arr2[x];return arr;}
azzzzi.concat = function() {var array = [];for (var i = 0, length = arguments.length;i < length;i++) {if (typeof arguments[i].length != "undefined") {for (var j = 0, arrayLength = arguments[i].length;j < arrayLength;j++) array.push(arguments[i][j]);} else {array.push(arguments[i]);}
}
return array;}
azzzzi.contains = function(arr,val) {for (var i=0;i<arr.length;i++) if (arr[i]==val) return true;return false;}
Function.prototype.azzzzf = function() {if (arguments.length < 2 && (typeof arguments[0] == "undefined")) return this;var __method = this, args = $azzzpaa(arguments), object = args.shift();return function() {return __method.apply(object, azzzzi.concat(args, arguments));};};Function.prototype.azzgaa = function() {var __method = this, args = $azzzpaa(arguments), object = args.shift();return function(event) {return __method.apply(object, azzzzi.concat([event || window.event], args));};};if (! window.azk) var azk = new Object();azk.extend = function(destination, source) {for (var property in source) {if (property != "prototype") destination[property] = source[property];}
return destination;}
if (!window.azznaa) var azznaa = new Object();azznaa.KEY_BACKSPACE = 8;azznaa.KEY_TAB = 9;azznaa.KEY_RETURN = 13;azznaa.KEY_ESC = 27;azznaa.KEY_LEFT = 37;azznaa.KEY_UP = 38;azznaa.KEY_RIGHT = 39;azznaa.KEY_DOWN = 40;azznaa.KEY_DELETE = 46;azznaa.KEY_HOME = 36;azznaa.KEY_END = 35;azznaa.KEY_PAGEUP = 33;azznaa.KEY_PAGEDOWN = 34;azznaa.KEY_QUESTION = 191;azznaa.KEY_BRACKET_LEFT = 219;azznaa.KEY_BRACKET_RIGHT = 221;azznaa.element = function(event) {return event.target || event.srcElement;};azznaa.isLeftClick = function(event) {return (((event.which) && (event.which == 1)) ||
((event.button) && (event.button == 1)));};azznaa.pointerX = function(event) {return event.pageX || (event.clientX +
(document.documentElement.scrollLeft || document.body.scrollLeft));};azznaa.pointerY = function(event) {return event.pageY || (event.clientY +
(document.documentElement.scrollTop || document.body.scrollTop));};azznaa.stop = function(event) {if (event.preventDefault) {event.preventDefault();event.stopPropagation();} else {event.returnValue = false;event.cancelBubble = true;}
};azznaa.observers = false;azznaa._observeAndCache = function(element, name, observer, useCapture) {if (!this.observers) this.observers = [];if (element.addEventListener) {this.observers.push([element, name, observer, useCapture]);element.addEventListener(name, observer, useCapture);} else if (element.attachEvent) {this.observers.push([element, name, observer, useCapture]);element.attachEvent('on' + name, observer);}
};azznaa.unloadCache = function() {if (!azznaa.observers) return;for (var i = 0, length = azznaa.observers.length;i < length;i++) {azznaa.stopObserving.apply(this, azznaa.observers[i]);azznaa.observers[i][0] = null;}
azznaa.observers = false;};azznaa.observe = function(element, name, observer, useCapture) {element = $zej(element);useCapture = useCapture || false;if (name == 'keypress' &&
(navigator.appVersion.match(/Konqueror|Safari|KHTML/) || element.attachEvent)) name = 'keydown';azznaa._observeAndCache(element, name, observer, useCapture);};azznaa.stopObserving = function(element, name, observer, useCapture) {element = $zej(element);useCapture = useCapture || false;if (name == 'keypress' && (navigator.appVersion.match(/Konqueror|Safari|KHTML/) || element.detachEvent)) name = 'keydown';if (element.removeEventListener) {element.removeEventListener(name, observer, useCapture);} else if (element.detachEvent) {try {element.detachEvent('on' + name, observer);} catch (e) {}
}
};function $zej(id) {if (typeof (id) == "object" || typeof (id) == "function")return id;return document.getElementById(id);}
function $azzzpaa(iterable) {if (!iterable) return [];if (iterable.toArray) return iterable.toArray();var length = iterable.length || 0, results = new Array(length);while (length--) results[length] = iterable[length];return results;}
function $azbaaa(name) {var result = $zej(name);if (!result) {result = document.getElementsByName(name);if (result.length > 1) {for (var i = 0;i < result.length;i++) if (result[i].checked) return result[i].value;}
else
result = result[1];}
if (!result) return null;if (result.type && (result.type.toLowerCase() == "checkbox")) return result.checked;else
return result.value;}
if (!window.at) var at = new Object();if (!window.azlaaaa) var azlaaaa = new Object();azzzzma = function() {};azzzzma.easeIn = function(t, b, c, d){return c*t/d + b;}
azzzzma.easeOut = function(t, b, c, d){return c*t/d + b;}
azkaaa = function() {};azkaaa.easeIn = function (t, b, c, d) {return c*(t/=d)*t + b;}
azkaaa.easeOut = function (t, b, c, d) {return -c *(t/=d)*(t-2) + b;}
azkaaa.easeInOut = function(t, b, c, d) {if ((t/=d/2) < 1) return c/2*t*t + b;return -c/2 * ((--t)*(t-2) - 1) + b;}
azzzza = function() {};azzzza.easeIn =function(t, b, c, d) {return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;}
azzzza.easeOut = function (t, b, c, d) {return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;}
azzzza.easeInOut = function (t, b, c, d) {if (t==0) return b;if (t==d) return b+c;if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;}
ap = function() {};ap.easeIn = function (t, b, c, d) {return c * Math.pow (t/d, 3) + b;};ap.easeOut = function (t, b, c, d) {return c * (Math.pow (t/d-1, 3) + 1) + b;};ap.easeInOut = function (t, b, c, d) {if ((t/=d/2) < 1) return c/2 * Math.pow (t, 3) + b;return c/2 * (Math.pow (t-2, 3) + 2) + b;};azpaaa = function() {};azpaaa.easeOut = function(t, b, c, d) {if ((t/=d) < (1/2.75)) {return c*(7.5625*t*t) + b;} else if (t < (2/2.75)) {return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;} else if (t < (2.5/2.75)) {return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;} else {return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;}
}
azpaaa.easeIn = function(t, b, c, d) {return c - azpaaa.easeOut (d-t, 0, c, d) + b;}
azpaaa.easeInOut = function(t, b, c, d) {if (t < d/2) return azpaaa.easeIn (t*2, 0, c, d) * .5 + b;else return azpaaa.easeOut (t*2-d, 0, c, d) * .5 + c*.5 + b;}
azlaaaa.visible = function(element) {return $zej(element).style.display != 'none';};azlaaaa.TRANSITION_DURATION=12;azlaaaa.transition = function(element,prop,content,endFunction) {if (prop==null || prop[0]=="" || prop[0]=="none") {azlaaaa.show(element);if (endFunction) endFunction();return;}
var w = azlaaaa.getWidth(element);var h = azlaaaa.getHeight(element);var start = new Array();var end = new Array();for (var i = 0;i < prop.length;i++) {if (prop[i].indexOf('opacity')>=0) {start[i] = 0;end[i] = 100;}
else
if (prop[i].indexOf('height')>=0) {start[i] = 0;end[i] = h;}
else
if (prop[i].indexOf('width')>=0) {start[i] = 0;end[i] = w;}
else
if (prop[i].indexOf('left')>=0) {start[i] = 0;end[i] = w;}
else
if (prop[i].indexOf('right')>=0) {start[i] = 0;end[i] = w;}
else
if (prop[i].indexOf('top')>=0) {start[i] = 0;end[i] = h;}
else
if (prop[i].indexOf('bottom')>=0) {start[i] = 0;end[i] = h;}
}
azlaaaa.setCSSProp(element,prop,start);azlaaaa.show(element);setTimeout(azlaaaa._nextTransition.azzzzf(azlaaaa,element,prop,0,start,end,content,endFunction),100);}
azlaaaa.setOpacity = function(testObj,value) {if (value==100) {testObj.style.filter=null;testObj.style.opacity=null;} else {testObj.style.opacity = value/100;testObj.style.filter = 'alpha(opacity=' + value+ ')';}
}
azlaaaa.setCSSProp = function(element,prop,value) {var w = azlaaaa.getWidth(element);var h = azlaaaa.getHeight(element);for (var i = 0;i < prop.length;i++) {if (prop[i].indexOf('opacity') >= 0) {azlaaaa.setOpacity(element, value[i]);}
if (prop[i].indexOf('height') >= 0) {element.style.height = value[i] + "px";}
if (prop[i].indexOf('width') >= 0) {element.style.clip = "rect(0px," + value[i] + "px,2000px,0px)";}
if (prop[i].indexOf('left') >= 0) {element.style.clip = "rect(0px," + value[i] + "px,2000px,0px)";element.style.marginLeft = (w - value[i]) + "px";}
if (prop[i].indexOf('right') >= 0) {element.style.clip = "rect(0px,2000px,2000px," + (w - value[i]) + "px)";element.style.marginLeft = (value[i] - w) + "px";}
if (prop[i].indexOf('top') >= 0) {element.style.clip = "rect(" + (h - value[i]) + "px,2000px,2000px,0px)";element.style.marginTop = "-" + (h - value[i]) + "px";}
if (prop[i].indexOf('bottom') >= 0) {element.style.clip = "rect(0px,2000px," + value[i] + "px,0px)";element.style.marginTop = (h - value[i]) + "px";}
}
}
azlaaaa._nextTransition = function(element,prop,t,b,c,content,endFunction) {var val = new Array();for (var i = 0;i < prop.length;i++) {if (prop[i].indexOf("bounce") >= 0) val[i] = azpaaa.easeOut(t, b[i], c[i], azlaaaa.TRANSITION_DURATION);else if (prop[i].indexOf("opacity")>=0) val[i] = azzzzma.easeIn(t,b[i],c[i],azlaaaa.TRANSITION_DURATION);else
val[i] = azzzza.easeOut(t, b[i], c[i], azlaaaa.TRANSITION_DURATION);}
azlaaaa.setCSSProp(element, prop, val);t++;if (t<=azlaaaa.TRANSITION_DURATION) setTimeout(azlaaaa._nextTransition.azzzzf(azlaaaa,element,prop,t,b,c,content,endFunction),45);else
if (endFunction) endFunction();}
azlaaaa.toggle = function(element) {element = $zej(element);azlaaaa[azlaaaa.visible(element) ? 'hide' : 'show'](element);};azlaaaa.hide = function(element) {$zej(element).style.display = 'none';};azlaaaa.focus = function(element) {$zej(element).focus();};azlaaaa.show = function(element) {$zej(element).style.display = '';};azlaaaa.remove = function(element) {element = $zej(element);if (element && element.parentNode) element.parentNode.removeChild(element);};azlaaaa.getHeight = function(element) {return azlaaaa.getDimensions(element).height;};azlaaaa.getWidth = function(element) {return azlaaaa.getDimensions(element).width;};azlaaaa.classNames = function(element) {return new azlaaaa.ClassNames(element);};azlaaaa.hasClassName = function(element, className) {if (!(element = $zej(element))) return;var elementClassName = element.className;if (elementClassName.length == 0) return false;if (elementClassName == className ||
elementClassName.match(new RegExp("(^|\\s)" + className + "(\\s|$)"))) return true;return false;};azlaaaa.addClassName = function(element, className) {if (!(element = $zej(element))) return;azlaaaa.classNames(element).add(className);return element;};azlaaaa.removeClassName = function(element, className) {if (!(element = $zej(element))) return;azlaaaa.classNames(element).remove(className);return element;};azlaaaa.toggleClassName = function(element, className) {if (!(element = $zej(element))) return;azlaaaa.classNames(element)[element.hasClassName(className) ? 'remove' : 'add'](className);return element;};azlaaaa.observe = function() {azznaa.observe.apply(Event, arguments);return $azzzpaa(arguments).first();};azlaaaa.getDimensions = function(element) {element = $zej(element);var display = azlaaaa.getStyle(element, 'display');if (display != 'none' && display != null)return {width: element.offsetWidth, height: element.offsetHeight };var els = element.style;var originalVisibility = els.visibility;var originalPosition = els.position;var originalDisplay = els.display;els.visibility = 'hidden';els.position = 'absolute';els.display = 'block';var originalWidth = element.clientWidth;var originalHeight = element.clientHeight;els.display = originalDisplay;els.position = originalPosition;els.visibility = originalVisibility;return {width: originalWidth, height: originalHeight };};azlaaaa.getStyle = function(element, style) {element = $zej(element);if ('float' == style || 'cssFloat' == style) style = (typeof element.style.styleFloat != 'undefined' ? 'styleFloat' : 'cssFloat');style = camelize(style);var value = element.style[style];if (!value) {if (document.defaultView && document.defaultView.getComputedStyle) {var css = document.defaultView.getComputedStyle(element, null);value = css ? css[style] : null;} else if (element.currentStyle) {value = element.currentStyle[style];}
}
if ((value == 'auto') && ['width', 'height'].include(style) && (element.getStyle('display') != 'none')) value = element['offset' + style.capitalize()] + 'px';if (window.opera && ['left', 'top', 'right', 'bottom'].include(style)) if (azlaaaa.getStyle(element, 'position') == 'static') value = 'auto';if (style == 'opacity') {if (value) return parseFloat(value);value = (element.getStyle('filter') || '').match(/alpha\(opacity=(.*)\)/);if (value && value[1]) return parseFloat(value[1]) / 100;return 1.0;}
return value == 'auto' ? null : value;};azlaaaa.setStyle = function(element, style) {element = $zej(element);for (var name in style) {var value = style[name];if (name == 'opacity') {if (value == 1) {value = (/Gecko/.test(navigator.userAgent) &&
!/Konqueror|Safari|KHTML/.test(navigator.userAgent)) ? 0.999999 : 1.0;if (/MSIE/.test(navigator.userAgent) && !window.opera) element.style.filter = element.getStyle('filter').replace(/alpha\([^\)]*\)/gi, '');} else if (value == '') {if (/MSIE/.test(navigator.userAgent) && !window.opera) element.style.filter = element.getStyle('filter').replace(/alpha\([^\)]*\)/gi, '');} else {if (value < 0.00001) value = 0;if (/MSIE/.test(navigator.userAgent) && !window.opera) element.style.filter = element.getStyle('filter').replace(/alpha\([^\)]*\)/gi, '') +
'alpha(opacity=' + value * 100 + ')';}
} else if (['float', 'cssFloat'].include(name)) name = (typeof element.style.styleFloat != 'undefined') ? 'styleFloat' : 'cssFloat';element.style[camelize(name)] = value;}
return element;};azlaaaa.stopObserving = function() {azznaa.stopObserving.apply(Event, arguments);return $azzzpaa(arguments).first();};azlaaaa.ClassNames = function(element) {this.element = $zej(element);};azlaaaa.ClassNames.prototype._split = function() {return this.element.className.split(/\s+/);};azlaaaa.ClassNames.prototype.set_class = function(className) {this.element.className = className;};azlaaaa.ClassNames.prototype.add = function(classNameToAdd) {this.remove(classNameToAdd);if (this.element.className) this.element.className += " " + classNameToAdd;else
this.element.className = classNameToAdd;};azlaaaa.ClassNames.prototype.remove = function(classNameToRemove) {var newStr = "";var arr = this._split();for (var x = 0;x < arr.length;x++) {if (arr[x] == classNameToRemove) continue;if (newStr) newStr += " ";newStr += arr[x];}
};var zoo_cp_color_grid = [
["ffffff", "ffcccc", "ffcc99", "ffff99", "ffffcc", "99ff99", "99ffff", "ccffff", "ccccff", "ffccff"], ["cccccc", "ff6666", "ff9966", "ffff66", "ffff33", "66ff99", "33ffff", "66ffff", "9999ff", "ff99ff"], ["c0c0c0", "ff0000", "ff9900", "ffcc66", "ffff00", "33ff33", "66cccc", "33ccff", "6666cc", "cc66cc"], ["999999", "cc0000", "ff6600", "ffcc33", "ffcc00", "33cc00", "00cccc", "3366ff", "6633ff", "cc33cc"], ["666666", "990000", "cc6600", "cc9933", "999900", "009900", "339999", "3333ff", "6600cc", "993399"], ["333333", "660000", "993300", "996633", "666600", "006600", "336666", "000099", "333399", "663366"], ["000000", "330000", "663300", "663333", "333300", "003300", "003333", "000066", "330099", "330033"]];var zoo_cp_dom = null;var zoo_cp_caller = null;var zoo_cp_defaultcolour = 'ffffff';var zoo_cp_closePID = null;function zoo_cp_changefg(cid) {$zej("zoo_swatch").style.color="#"+$zej("zoo_fgcolour").value;}
function zoo_cp_changebg(cid) {$zej("zoo_swatch").style.backgroundColor="#"+$zej("zoo_bgcolour").value;}
function zoo_cp_init(id) {var obj = $zej(id);if (!obj) {alert("Colour picker can't find '"+id+"'");return;}
if (!zoo_cp_hex2rgb(obj.value)) {alert("Colour picker can't parse colour code in '"+id+"'");return;}
var newobj = $azzzl("input");newobj.type = "hidden"
newobj.value = obj.value;newobj.name = obj.name;if (obj.onchange) newobj.onchange = obj.onchange;obj.parentNode.insertBefore(newobj, obj);obj.parentNode.removeChild(obj);newobj.id = id;obj = newobj;}
function zoo_cp_open(caller) {if (zoo_cp_dom) {zoo_cp_close();return;}
zoo_cp_caller = caller;zoo_cp_defaultcolour = "ffffff";var posX = 0;var posY = caller.offsetHeight;while (caller) {posX += caller.offsetLeft;posY += caller.offsetTop;caller = caller.offsetParent;}
zoo_cp_dom = $azzzl("div");var table = $azzzl("table");table.setAttribute("border", "1");table.setAttribute("cellpadding","0");table.setAttribute("cellspacing","0");table.style.backgroundColor = "#000000";table.onmouseover = zoo_cp_cancelclose;table.onmouseout = zoo_cp_closesoon;var tbody = $azzzl("tbody");var row, cell;for (var y=0;y<zoo_cp_color_grid.length;y++) {row = $azzzl("tr");tbody.appendChild(row);for (var x=0;x<zoo_cp_color_grid[y].length;x++) {cell = $azzzl("td");row.appendChild(cell);cell.style.backgroundColor = "#"+zoo_cp_color_grid[y][x];cell.label = zoo_cp_color_grid[y][x];cell.style.border = "solid 1px #"+cell.label;cell.style.padding="0px";cell.onmouseover = zoo_cp_onmouseover;cell.onmouseout = zoo_cp_onmouseout;cell.onclick = zoo_cp_onclick;cell.innerHTML = "<IMG border=0 SRC='images/spacer.gif' HEIGHT=10 WIDTH=10>";if (zoo_cp_defaultcolour.toLowerCase() == zoo_cp_color_grid[y][x].toLowerCase()) {cell.onmouseover();cell.onmouseout();}
}
}
table.appendChild(tbody);zoo_cp_dom.appendChild(table);zoo_cp_dom.style.position = "absolute";zoo_cp_dom.style.left = "0px";zoo_cp_dom.style.top = "0px";zoo_cp_dom.style.visibility = "hidden";document.body.appendChild(zoo_cp_dom);if (posX + zoo_cp_dom.offsetWidth > document.body.offsetWidth) posX = document.body.offsetWidth - zoo_cp_dom.offsetWidth;zoo_cp_dom.style.left = posX+"px";zoo_cp_dom.style.top = posY+"px";zoo_cp_dom.style.zIndex="999999";zoo_cp_dom.style.visibility = "visible";}
function zoo_cp_close() {zoo_cp_cancelclose();if (zoo_cp_dom) document.body.removeChild(zoo_cp_dom);zoo_cp_dom = null;zoo_cp_caller = null;}
function zoo_cp_closesoon() {zoo_cp_closePID = window.setTimeout("zoo_cp_close()", 250);}
function zoo_cp_cancelclose() {if (zoo_cp_closePID) window.clearTimeout(zoo_cp_closePID);}
function zoo_cp_onclick() {zoo_cp_caller.style.backgroundColor = "#"+this.label;zoo_cp_caller.label = this.label;zoo_cp_close();var swatch = $zej("zoo_swatch");if (swatch) {var fgc = $zej("zoo_cp_fgcolour").label;if ((! fgc) || (fgc==null)) fgc = "000000";var bgc = $zej("zoo_cp_bgcolour").label;if ((! bgc) || (bgc==null)) bgc = "ffffff";swatch.style.color="#"+fgc;swatch.style.backgroundColor = "#"+bgc;var bembed = $zej("zes").value;var bgi = bembed.indexOf("background-color");$zej("zes").value= (bembed.substring(0,bgi)+"background-color:#"+bgc+"; color:#"+fgc+";"+bembed.substring(bgi+40));}
}
function zoo_cp_onmouseover() {this.style.borderStyle = "solid";var rgb = zoo_cp_hex2rgb(this.label);if (rgb[0]+rgb[1]+rgb[2] > 255*3/2) this.style.borderColor = "black";else
this.style.borderColor = "white";}
function zoo_cp_onmouseout() {if (this.label == zoo_cp_defaultcolour) this.style.borderStyle = "solid";else
this.style.border = "solid 1px #"+this.label;}
function zoo_cp_hex2rgb(hexcode) {var m = hexcode.match(/^([a-f0-9][a-f0-9])([a-f0-9][a-f0-9])([a-f0-9][a-f0-9])$/);if (m) {var r = parseInt(m[1], 16);var g = parseInt(m[2], 16);var b = parseInt(m[3], 16);return [r, g, b];} else {return null;}
}
azznaa.Publisher = function() {}
azk.extend(azznaa.Publisher, {_ls_event_targets: null,_event_source_id: null,_fl_trace_events: false,getEventSourceId: function() {if (typeof this._event_source_id == 'function') return this._event_source_id();else
return this._event_source_id;},getEventTarget: function(event_name) {if (!this._ls_event_targets) this._ls_event_targets = new Array();if (!this._ls_event_targets[event_name]) document.body.appendChild(
this._ls_event_targets[event_name] = $azzzl('A') );return this._ls_event_targets[event_name];},addEventListener: function(event_name, callback_func, capturing) {var targ = this.getEventTarget(event_name);azznaa.observe(targ, 'click', callback_func, capturing);if (this._fl_trace_events) {var data = {publisher: this.getEventSourceId(), event_name: event_name, listener: callback_func, capturing: capturing, event_source_proxy: targ
};this.dispatchEvent('eventListenerAdded', data, true, true);}
},removeEventListener: function(event_name, callback_func, capturing) {var targ = this.getEventTarget(event_name);azznaa.stopObserving(targ, 'click', callback_func, capturing);if (this._fl_trace_events) {var data = {publisher: this.getEventSourceId(), event_name: event_name, listener: callback_func, capturing: capturing, event_source_proxy: targ
};this.dispatchEvent('eventListenerRemoved', data, true, true);}
},dispatchEvent: function(event_name, data, can_bubble, cancelable) {var targ = this.getEventTarget(event_name);var event_data = {event_name: event_name, event_target: this, data: data ? data : null
};if (!can_bubble) can_bubble = false;if (!cancelable) cancelable = false;var event = azznaa.create(event_data, can_bubble, cancelable, true, targ);if (this._fl_trace_events) {if (event_name.match(/event(?:ListenerAdded|ListenerRemoved|Dispatched|Received)/)) return;var data_obj = {publisher: this.getEventSourceId(), event_name: event_name, event_data: event_data, can_bubble: can_bubble, cancelable: cancelable, event_source_proxy: targ, result: event
};this.dispatchEvent('eventDispatched', data_obj, true, true);}
},toggleEventsTrace: function() {var trace = azznaa.Tracer.findTracer();if (!trace || !this._fl_trace_events) {this._fl_trace_events = true;trace = azznaa.Tracer.startTrace();trace.registerPublisher(this);}
else {this._fl_trace_events = false;if (trace) trace.unregisterPublisher(this);}
return this._fl_trace_events;},isEventsTraceActive: function() {return this._fl_trace_events;}
});azznaa.Listener = function() {}
azk.extend(azznaa.Listener,{_listens: null,getEventHandlerName: function(event_name) {var onEvent_name = camelize(event_name.split(/[ _]/).join('-'));return "on" + onEvent_name.charAt(0).toUpperCase() + onEvent_name.substr(1);},listenForEvent: function(event_source, event_name, use_capture, onEvent_name) {if (!onEvent_name) onEvent_name = this.getEventHandlerName(event_name);if (!this._listens) this._listens = new Array();var cb = this[onEvent_name].azfa(this);this._listens.push([event_source, event_name, use_capture, onEvent_name, cb]);event_source.addEventListener(event_name, cb, use_capture);},stopListeningForEvent: function(event_source, event_name, use_capture, onEvent_name) {if (!this._listens) return false;if (!onEvent_name) onEvent_name = this.getEventHandlerName(event_name);var ix_item = -1;var ls = this._listens.detect(function(val, ix) {if ((val[0] == event_source) && (val[1] == event_name) && (val[2] == use_capture) && (val[3] == onEvent_name)) {ix_item = ix;return true;}
});if (ix_item >= 0) {this._listens.splice(ix_item, 1);event_source.removeEventListener(event_name, ls[4], use_capture);return true;}
return false;}
});azk.extend(azznaa,{create: function(event_data, can_bubble, cancelable, fl_dispatch, target) {var event;if (document.createEvent) {if (!can_bubble) can_bubble = false;if (!cancelable) cancelable = false;if (/Konqueror|Safari|KHTML/.test(navigator.userAgent)) {event = document.createEvent('HTMLEvents');event.initEvent('click', can_bubble, cancelable);}
else {event = document.createEvent('MouseEvents');event.initMouseEvent("click", can_bubble, cancelable, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);}
}
else {event = document.createEventObject();if (!event) return;event.event_type = 'onclick';}
event.event_data = event_data;if (fl_dispatch) azznaa.dispatch(target, event);return event;},dispatch: function(target, event) {if (document.createEvent) return target.dispatchEvent(event);else
return target.fireEvent((typeof (event.event_type) != "undefined") ? event.event_type : 'onclick', event);}
});function $azraaaa(text) {return document.createTextNode(text);}
function $azzzl(name) {return document.createElement(name);}
at.selectByName = function(obj, name) {obj = $zej(obj);var x;for (x = 0;x < obj.options.length;x++) {if (obj.options[x].text == name) obj.selectedIndex = x;}
};at.selectByIndex = function(obj, spot) {obj = $zej(obj);obj.selectedIndex = spot;};at.selectByValue = function(obj, value) {obj = $zej(obj);var x;for (x = 0;x < obj.options.length;x++) {if (obj.options[x].value == value) obj.selectedIndex = x;}
};at.selectPopulate = function(obj, arrNames, arrVals) {obj = $zej(obj);var x;var opt;for (x = 0;x < arrNames.length;x++) {opt = $azzzl("option");opt.text = arrNames[x];if (arrVals) opt.value = arrVals[x];else
opt.value = arrNames[x];obj.options[obj.options.length] = opt;}
};if (! window.Zoo) window.Zoo = new Object();Zoo.network = function() {alert("CANNOT CONSTRUCT A STATIC CLASS");};Zoo.network.pendingRequests = [];Zoo.network.processingRequest = false;if (window.azk && window.azk.extend && window.azznaa && window.azznaa.Publisher)azk.extend(Zoo.network, azznaa.Publisher);Zoo.network._count = 0;Zoo.network._requests = new Object();Zoo.network._url = "";Zoo.network._method = "get";Zoo.network._timeout = 180;Zoo.network.azzzbaa = function(method, url, parameters, onSuccess, onFailure,id) {azzba("PUSH NETWORK REQUEST "+url);Zoo.network.pendingRequests.push({"method":method,"url":url,"parameters":parameters,"onSuccess":onSuccess,"onFailure":onFailure,"id":id});};Zoo.network.axaaa = function(method, url, parameters, onSuccess, onFailure,id) {Zoo.network.processingRequest= true;azzba("OPEN NETWORK "+url);var transport = this.azea();if (!transport) return;transport.onreadystatechange = this.aj.azzzzf(this, transport, onSuccess, onFailure);var url_str = url;var params_str = parameters;if (method.toUpperCase() == "GET") {if (parameters) url_str += "?" + parameters;params_str = "";}
transport.open(method.toUpperCase(), url_str);if (method.toUpperCase() == "POST") transport.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');transport.send(params_str);if (this._requests[id]) this._requests[id].transport = transport;return transport;};Zoo.network.azmaaaa = function() {if (Zoo.network.pendingRequests.length>0 && ! Zoo.network.processingRequest) {var req = Zoo.network.pendingRequests.pop();Zoo.network.axaaa(req["method"],req["url"],req["parameters"],req["onSuccess"],req["onFailure"],req["id"]);}
setTimeout(Zoo.network.azmaaaa,200);};Zoo.network.azea = function() {try {return new ActiveXObject('Msxml2.XMLHTTP');} catch (ex) {}
try {return new ActiveXObject('Microsoft.XMLHTTP');} catch (ex) {}
try {return new XMLHttpRequest();} catch (ex) {}
return null;};Zoo.network.aj = function(transport, onSuccess, onFailure) {if (transport.readyState == 4) {azzba("NETWORK REQUEST DONE");if (transport.status == 0 || (transport.status >= 200 && transport.status < 300)) {onSuccess(transport);} else {onFailure(transport);}
Zoo.network.processingRequest = false;}
};Zoo.network.azzzzy = function(req) {if (req && req.statusText == 'Timeout') {return;} else {var d = new Date();var str = "Status is(Time:" + d.getHours() + ":" + d.getMinutes() + ") - " + req.statusText + "(" + req.status + ") Ready State: " + req.readyState + "<BR>Response Text: " + req.responseText;var func = (Zoo.alert) ? Zoo.alert : alert;func("Unable to complete a network request, please verify your network connection and try again<BR>" + str);}
};Zoo.network.azzzma = function(id) {if (!this._requests[id]) return;this._requests[id].timeout = false;if (this._requests[id].ignore) return;if (this._requests[id].done)return;this._requests[id].ignore = true;if (this._requests[id].onFailure) {var reqobj = new Object();reqobj.statusText = "Timeout";reqobj.responseText = this._requests[id].url;this._requests[id].onFailure(reqobj, this._requests[id].obj);}
this.azzvaaa(id);};Zoo.network.azgaa = function(url, opts, obj) {var id = (opts && opts.id) ? opts.id : this._count++;if (this._requests[id]) {if (!this._requests[id].ignore) {this._requests[id].aborted = true;this._requests[id].transport.abort();}
this.ara(id);}
if (! window.acaaaaa) {if ( (url.indexOf("proxy")==0) || (url.indexOf("http://"+location.hostname)==0) || (url.indexOf("http://")<0) ) {} else {url = "proxy?"+url;}
}
if (url.indexOf("http://") != 0)url = absPath + url;this._requests[id] = new Object();this._requests[id].ignore = opts.idIgnore;this._requests[id].obj = obj;this._requests[id].url = url;if (opts.timeout) this._requests[id].timeout = setTimeout(this.azzzma.azzzzf(this, id), opts.timeout * 1000);if (opts.onSuccess) this._requests[id].onSuccess = opts.onSuccess;opts.onSuccess = this.azc.azzzzf(this, "onSuccess", id);if (opts.onFailure) this._requests[id].onFailure = opts.onFailure;else
this._requests[id].onFailure = Zoo.network.azzzzy.azzzzf(this);if (Zoo.network._method && !opts.method) opts.method = Zoo.network._method;opts.onFailure = this.azc.azzzzf(this, "onFailure", id);if (this.dispatchEvent) this.dispatchEvent("aznaa azda", {id: id, url: url, params: opts.parameters });azzba("Zoo.network.azgaa "+url+" "+window.acaaaaa);if (!window.acaaaaa) this.azzzbaa(opts.method, url, opts.parameters, opts.onSuccess, opts.onFailure,id);else
acaaaaa.azkaa(opts.method, url, opts.parameters, opts.onSuccess, opts.onFailure,id);return id;};Zoo.network.azzvaaa = function(id) {if (this._requests[id]) {this._requests[id].aborted = true;if (this._requests[id].transport) this._requests[id].transport.abort();this.ara(id);if (this.dispatchEvent) this.dispatchEvent("azzzzb azda", {id: id });}
};Zoo.network.aziaaaa = function(url, params, onSuccess, obj, id, opts) {if (!opts) opts = new Object();opts.method = "post";if (!opts.timeout) opts.timeout = Zoo.network._timeout;return Zoo.network.azzzzda(url, params, onSuccess, obj, id, opts);};Zoo.network.azzzzda = function(url, params, onSuccess, obj, id, opts) {if (!url) url = Zoo.network._url;if (!opts) opts = new Object();if (params) opts.parameters = params;if (id) opts.id = id;if (onSuccess) opts.onSuccess = onSuccess;if (Zoo.network._method && !opts.method) opts.method = Zoo.network._method;if (!opts.timeout) opts.timeout = Zoo.network._timeout;return Zoo.network.azgaa(url, opts, obj);};Zoo.network.azsaaaa = function(url) {this._url = url;};Zoo.network.aziaaa = function(method) {method.toLowerCase();Zoo.network._method = method;};Zoo.network.ara = function(id) {if (this._requests[id].timeout) clearTimeout(this._requests[id].timeout);for (x in this._requests[id]){this._requests[id][x] = undefined;delete this._requests[id][x];}
this._requests[id] = undefined;delete this._requests[id];};Zoo.network.azc = function(action, id, req) {var x;var more = false;this._requests[id].done = true;if (this._requests[id].aborted) return;if (!this._requests[id] || (this._requests[id].transport && this._requests[id].transport != req)){if (!this._requests[id] || this._requests[id].ignore) return;else
alert("SOMETHING VERY WRONG HAPPENED");return;}
if (this._requests[id][action]) this._requests[id][action](req, this._requests[id].obj);this.ara(id);if (this.dispatchEvent) this.dispatchEvent("auaaaaa azda", {action: action, id: id });};setTimeout("Zoo.network.azmaaaa()",200);if (! window.Zoo) window.Zoo = new Object();Zoo.utils = function() {};azk.extend(Zoo.utils, azznaa.Publisher);var zeros = "00000000000000000000";function azt(str, places) {if (str.length < places) {str = zeros.substring(0, places - str.length) + str;}
return str;}
var hD = '0123456789ABCDEF';function azzzwa(num) {var h = hD.substr(num & 15, 1);while (num > 15) {num >>= 4;h = hD.substr(num & 15, 1) + h;}
return h;}
function zoo_getSpacerPath() {return absPath+"images/spacer.gif";}
function zoo_front_bubble(zid,title) {var rootWin = azqaaa.azzzxaa();if (rootWin!=null) Zoo.broker.azdaaaa(zid, null, rootWin.azu().azzja());else
zoo_make_bubble(zid,title);}
function zoo_make_bubble(zid, title,left, top, width, height,transition) {akaa(zid,title,left, top, width, height,transition,"F");}
function zoo_min_bubble(zid, top, left, width, height) {setTimeout(zoo_make_min_bubble.azzzzf(this, zid, left,top, width, height), 500);}
function zoo_make_min_bubble(zid, left, top, width, height) {akaa(zid, zid,left, top, width, height,null,"M");}
function akaa(zid, _title, _x, _y, _width, _height,_transition, _state) {azzfa(zid,null,_title,_width,_height,_x,_y,_transition,_state);}
function getTextValue(el) {return strip(stripTags(el.innerHTML));}
var _is_IE = (/MSIE/.test(navigator.userAgent) && navigator.platform == "Win32") == true;function aaaaa() {return _is_IE;}
function linkToken(title, token, link, op, exec) {azqaaa.ajaaaa(title, token, link, op, exec);}
function ata() {}
function zoowee_deleteFriend(f) {azia.azhaaaa(f);}
function zoowee_addFriend() {azia.azzzmaa();}
function jcloseWindow(_divid, msg, stat, winid) {azqaaa.azoaaa(_divid, msg, stat, winid);}
function aga() {var s = null;if (window.getSelection) {s = window.getSelection();s.removeAllRanges();} else if (document.selection) {s = document.selection;try {s.empty();} catch (err) {}
}
}
function azzzc(_parent,_action) {if (! _parent) return;var x;var childNodes = _parent.childNodes;var node;var toRemove = new Array();for (x = 0;x < childNodes.length;x++) {if (childNodes[x].tagName && (childNodes[x].tagName.toUpperCase() == "EMBED" || childNodes[x].tagName.toUpperCase() == "OBJECT" || childNodes[x].tagName.toUpperCase() == "IFRAME" || childNodes[x].tagName.toUpperCase()=="APPLET")) {toRemove.push(childNodes[x]);}
else if (childNodes[x].childNodes && childNodes[x].childNodes.length) azzzc(childNodes[x],_action);}
for (x = 0;x < toRemove.length;x++) {if (_action == "hide") toRemove[x].style.visibility="hidden";else if (_action == "show") toRemove[x].style.visibility="visible";else {azlaaaa.remove(toRemove[x]);}
}
}
function azzt(zimg) {azqaaa.azzzf(zimg);}
function azzi(msg) {if (msg || msg == "0") {msg = "" + msg;if (msg != "&nbsp" && msg != "null" && !msg.match("^[ \t\n\r]*$")) return false;}
return true;}
function azzda(gmt) {var result = "";if (gmt == null || gmt == "") {return result;}
var n = new Date();var params = gmt.split(' ');if (params.length > 3 && params[3].length == 2) {if (params[3].charAt(0) == '0' || params[3].charAt(0) == '1') {params[3] = "20" + params[3];} else {params[3] = "19" + params[3];}
}
gmt = "";var sep = "";for (var i = 0;i < params.length;i++) {gmt += sep + params[i];sep = " ";}
var d = Date.parse(gmt);if (d > 0) {var diff = (n.getTime() - d) / 1000;var min = Math.round(diff / 60);var hour = Math.round(diff / 3600);var day = Math.round(diff / 86400);if (min <= 1) {result = ("a minute ago");} else if (min > 1 && min < 60) {result = ("" + min + " minutes ago");} else if (hour == 1) {result = "1 hour ago";} else if (hour > 1 && hour <= 4) {result = ("" + hour + " hours ago");} else if (hour > 4 && hour < 24) {result = (hour + " hours ago");} else if (day == 1) {result = ("yesterday");} else if (day > 1 && day < 7) {result = (day + " days ago");} else {result = ("over a week ago");}
}
return result;}
function aaaaaa(elem) {var x = 0;var oElem = elem;do {if ((elem.currentStyle) && (!isNaN(parseInt(elem.currentStyle.borderLeftWidth))) && (x != 0)) x += parseInt(elem.currentStyle.borderLeftWidth);x += elem.offsetLeft;elem = elem.offsetParent;} while (elem && elem != ZOO_BUBBLE_CONTAINER);return x;}
function ac(_url) {var response = _url;if (_url.indexOf("?")==-1) {response+="?nocache="+(NOCACHE++);} else {response+="&nocache="+(NOCACHE++);}
return response;}
function azzaa(elem) {var x = 0;var oElem = elem;do {if ((elem.currentStyle) && (!isNaN(parseInt(elem.currentStyle.borderLeftWidth))) && (x != 0)) x += parseInt(elem.currentStyle.borderLeftWidth);x += elem.offsetLeft;elem = elem.offsetParent;} while (elem && elem != ZOO_BUBBLE_CONTAINER);elem = oElem;do {if (elem.scrollLeft) y -= parseInt(elem.scrollLeft);elem = elem.parentNode;} while (elem && elem != ZOO_BUBBLE_CONTAINER);return x;}
function azzfaa() {var x, y;if (self.pageYOffset){x = self.pageXOffset;y = self.pageYOffset;}
else if (document.documentElement && document.documentElement.scrollTop){x = document.documentElement.scrollLeft;y = document.documentElement.scrollTop;}
else if (document.body){x = document.body.scrollLeft;y = document.body.scrollTop;}
return [x, y];}
function aaaaaaa(elem) {var x = 0;var oElem = elem;do {if ((elem.currentStyle) && (!isNaN(parseInt(elem.currentStyle.borderTopWidth))) && (x != 0)) x += parseInt(elem.currentStyle.borderTopWidth);x += elem.offsetTop;elem = elem.offsetParent;} while (elem && elem != ZOO_BUBBLE_CONTAINER);return x;}
function azzzaa(elem) {var x = 0;var oElem = elem;do {if ((elem.currentStyle) && (!isNaN(parseInt(elem.currentStyle.borderTopWidth))) && (x != 0)) x += parseInt(elem.currentStyle.borderTopWidth);x += elem.offsetTop;elem = elem.offsetParent;} while (elem && elem != ZOO_BUBBLE_CONTAINER);elem = oElem;do {if (elem.scrollTop) x -= parseInt(elem.scrollTop);elem = elem.parentNode;} while (elem && elem != ZOO_BUBBLE_CONTAINER);return x;}
function azzzlaa() {var frameWidth;if (self.innerWidth) {frameWidth = self.innerWidth;} else if (document.documentElement && document.documentElement.clientWidth) {frameWidth = document.documentElement.clientWidth;} else if (document.body) {frameWidth = document.body.clientWidth;}
return frameWidth;}
function azzzxa() {var frameHeight;if (self.innerHeight) {frameHeight = self.innerHeight;} else if (document.documentElement && document.documentElement.clientHeight) {frameHeight = document.documentElement.clientHeight;} else if (document.body) {frameHeight = document.body.clientHeight;}
return frameHeight;}
function azy(evt) {if (!evt) evt = event;var keyCode = evt.keyCode ? evt.keyCode : evt.which ? evt.which : evt.charCode;return (keyCode == 13);}
function azzzzs(cond, func) {if (cond) func();}
function zoo_doEnterButton(obj, evt) {if (azy(evt)) {obj.parentNode.firstChild.nextSibling.click();return false;}
return true;}
function azzzzh(obj, func) {func = anaaaaa(func);var str = function(evt) {azzzzs(azy(evt), func);return 1 };azca(obj, str);}
function azma(_image, _postfix) {if ((!_postfix) || (_postfix == null) || (_postfix == '')) {_postfix = "_thumb";}
var _ext = _image.substring(_image.lastIndexOf("."));_image = _image.substr(0, _image.lastIndexOf("."));var _thumb = "";if (_image.indexOf(_postfix) < 0) {_thumb = _postfix;}
return _image + _thumb + _ext;}
function ag(node, referenceNode) {referenceNode.parentNode.insertBefore(node, referenceNode.nextSibling);}
function aze(but, propName, value) {if (typeof (but) == 'string') but = $zej(but);but[propName] = value;}
function anaaaaa(func) {if (!func || typeof (func) != "function") {if (func) func = new Function(func);else
func = '';}
return func;}
function aqa(but, func) {func = anaaaaa(func);aze(but, 'ondblclick', func);}
function azzzwaa(but, func) {func = anaaaaa(func);aze(but, 'onclick', func);}
function azzua(but, func) {func = anaaaaa(func);aze(but, 'onfocus', func);}
function azx(but, func) {func = anaaaaa(func);aze(but, 'onblur', func);}
function azzzna(but, func) {func = anaaaaa(func);aze(but, 'onmouseover', func);}
function azw(but, func) {func = anaaaaa(func);aze(but, 'onmouseout', func);}
function azzzzo(but, Class) {aze(but, 'className', Class);}
function azzzzfa(but, func) {func = anaaaaa(func);aze(but, 'onmouseover', func);}
function azwa(but, func) {func = anaaaaa(func);aze(but, 'onmouseout', func);}
function aoa(but, func) {func = anaaaaa(func);aze(but, 'onmousedown', func);}
function azzv(but, func) {func = anaaaaa(func);aze(but, 'onmouseup', func);}
function azca(but, func) {func = anaaaaa(func);aze(but, 'onkeypress', func);}
function azzzzia(but, func) {func = anaaaaa(func);aze(but, 'onkeydown', func);}
function azzvaa(but, func) {func = anaaaaa(func);aze(but, 'onchange', func);}
function azzka(img, path) {img = $zej(img);if (img.src == path) {return;}
img.src = path;}
function azzk(but, path) {but = $zej(but);path = "url(" + path + ")";if (but.style.backgroundImage == path) return;but.style.backgroundImage = path;}
function azzw(str) {return escape(str);}
function adaa(str) {return unescape(str);}
function acaaaa(arr) {var result = "";if (arr) for (var i=0;i<arr.length;i++) result +=arr[i]+", ";return result;}
function aja(allowed, passed){var found = new Object();if (!passed) return false;var x;var y;for (x in passed) {if (allowed[x] == null) {ahaaaaa("Option: " + x + " is not allowed");return false;}
found[x] = 1;}
for (x in allowed) {if (allowed[x] == 1 && found[x] != 1) {ahaaaaa("Required option: " + x + " is not found");return false;}
}
return true;}
function aqaaaa(Class, funcName, arg) {return azzmaaa(afa(Class, funcName), arg);}
function afa(Class, funcName) {if (!Class[funcName]) ahaaaaa("helpers.js: unable to Make Class Function as class does not contain function: " + funcName);return Class[funcName].azzzzf(Class);}
function azzzqaa() {var d = new Date();return asa(d.getTime(), 7);}
function asa(f, max) {var val = f;var result = "";var count = 9999;if (max) count = max;while ((val > 0) && (count > 0)) {result += String.fromCharCode(97 + (val % 26));val = Math.floor(val / 26);count--;}
return result;}
function azzmaaa(func, arg) {return function(a2, a3, a4, a5, a6, a7, a8, a9) {return func(arg, a2, a3, a4, a5, a6, a7, a8, a9);};}
function azzhaaa(func, a1, a2, a3, a4, a5, a6, a7, a8, a9) {return function() {return func(a1, a2, a3, a4, a5, a6, a7, a8, a9);};}
Zoo.utils.return_false = function(func) {return function() {func.apply(this, arguments);return false;};}
function axaaaaa(ruleName, deleteFlag) {if (document.styleSheets) {for (var i = 0;i < document.styleSheets.length;i++) {var styleSheet = document.styleSheets[i];var ii = 0;var cssRule = false;do {if (styleSheet.cssRules) {cssRule = styleSheet.cssRules[ii];} else {cssRule = styleSheet.rules[ii];}
if (cssRule) {if (cssRule.selectorText == ruleName) {if (deleteFlag == 'delete') {if (styleSheet.cssRules) {styleSheet.deleteRule(ii);} else {styleSheet.removeRule(ii);}
return true;} else {return cssRule;}
}
}
ii++;} while (cssRule)}
}
return false;}
function azzzzl(ruleName) {return axaaaaa(ruleName, 'delete');}
function azfaa(ruleName) {if (document.styleSheets) {if (!axaaaaa(ruleName)) {if (document.styleSheets[0].addRule) {document.styleSheets[0].addRule(ruleName, null, document.styleSheets[0].rules.length);} else {document.styleSheets[0].insertRule(ruleName + ' { }', document.styleSheets[0].cssRules.length);}
}
}
return axaaaaa(ruleName);}
function azzzcaa(str, charToRemove) {regExp = new RegExp("[" + charToRemove + "]", "g");return str.replace(regExp, "");}
function zoo_search(term, clazz) {azzfa(term, clazz);}
function azzfa(term, clazz,_title,_width,_height,_x,_y,_transition,_state) {var title = (_title) ? _title : term;if (azzi(term) || term.length>256) return;if (term.indexOf("/eval") == 0) {eval(term.substring(6));return;}
var wparams = null;if (_title || _width) {wparams = {};wparams.title = _title;wparams.width = _width;wparams.height = _height;wparams.y=_y;wparams.x=_x;wparams.transition= _transition;wparams.state = _state;}
if (term.charAt(0)=='*') {azqaaa.azzdaa(term.substring(1),null,_title,_width,_height,_x,_y);return;}
if (term.charAt(0)=='@' || (term.indexOf(".")>0 && term.indexOf(".")==term.lastIndexOf(".") && (term.length-term.indexOf("."))>5)) {Zoo.broker.afaaaaa(term,[],wparams,title);} else {if (azzi(clazz)) {Zoo.broker.afaaaaa(term + ZOO_DEFAULT_SEARCH_SID,[],wparams,title);} else {if (term.indexOf("_")>0 || azzi(clazz)) Zoo.broker.afaaaaa(term + ZOO_DEFAULT_SEARCH_SID,[],wparams,title);else
Zoo.broker.afaaaaa(term+"_"+clazz+ZOO_DEFAULT_SEARCH_SID,[],wparams,title);}
}
}
function azzzzzb(type,data) {if (window.azja) azja.azzzzd(type,data);}
var supported = /MSIE ((5\.5)|[6])/.test(navigator.userAgent) &&
navigator.platform == "Win32";function azvaa(obj) {if (!supported) return;if (typeof (obj) == 'string') obj = $zej(obj);var old = obj.src;obj.src = ayaaaaa() + "icons/spacer.gif";obj.runtimeStyle.filter = "progid:DXImageTransform.Microsoft." +
"AlphaImageLoader(src='" + old + "',sizingMethod='scale')";}
function amaaa(obj) {var result = "";for (var property in obj) {result += property +"="+obj[property]+" \n";}
return result;}
function azzzaaa() {if (azs()) return true;else
return false;}
function azs() {var v = navigator.userAgent.match(/AppleWebKit\/([^ ]*)/);if (v && v[1]) return parseInt(v[1], 10);}
function ayaaaaa(name) {var skinName = (name) ? name : defaultSkinName;if (skinName.indexOf("_") == 0)return absPath + "custom/skins/" + skinName + "/";else
return absPath + "skins/" + skinName + "/";}
Zoo.utils.get_unique_id = function() {if (!Zoo.utils.get_unique_id._current) Zoo.utils.get_unique_id._current = 65536;return ++Zoo.utils.get_unique_id._current;}
function azzpa() {var nocache = new Date();return nocache.getTime() + "-" + Zoo.utils.get_unique_id();}
function zoo_doLogin() {azzj.azzzzea();}
function zoo_doLogout() {azzj.azzzkaa();}
function zoo_add_box(a2, a3, a4, a5, a6, a7, a8, a9) {azsaaa.azxaaa(a2, a3, a4, a5, a6, a7, a8, a9);}
function zoo_proxy_callback(a2, a3, a4, a5, a6, a7, a8, a9) {acaaaaa.azzzzwa(a2, a3, a4, a5, a6, a7, a8, a9);}
function zoo_close_all_windows() {azqaaa.alaaaa();}
function awaa(obj) {if (window.al) {al.azjaaa({webobj: obj });}
}
function ahaaaaa(msg) {if (window.al) al.azjaaa({message: msg });else
alert(msg);}
function azdaaa(msg, on_done, btn1, btn2) {if (!btn1) btn1 = "Yes";if (!btn2) btn2 = "No";var func = azzhaa.azzzzf(this, on_done, btn1);al.azjaaa({message: msg, button_array: [btn1, btn2], on_complete: func });}
function azzhaa(on_done, btn_good, btn_clicked) {if (btn_good == btn_clicked) on_done();}
function ama(string) {var ret;if (aaaaa()) {var xml = $azzzl("xml");xml.innerHTML = string;ZOO_BUBBLE_CONTAINER.appendChild(xml);ret = xml.XMLDocument;ZOO_BUBBLE_CONTAINER.removeChild(xml);}
else {try {var parser = new DOMParser();ret = parser.parseFromString(string, "text/xml");}
catch (err) {ahaaaaa(err);}
}
return ret;}
function azzzzja(u, p) {p = p.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");var regexS = "[\\?&]" + p + "=([^&#]*)";var regex = new RegExp(regexS);var results = regex.exec(u);if (results == null) return null;else
return results[1];}
function zoo_formCheck(obj) {var rows = obj.getElementsByTagName("input");var i;var value;var class_name;var id;for (i = 0;i < rows.length;i++) {value = rows[i].value;class_name = rows[i].className;id = rows[i].id;var typ = rows[i].type;if (class_name == "zoo_required") {if (typ == "radio") {} else {if (azzi(value)) {alert(id.substring(4) + " is a required field.");return false;}
}
}
}
rows = obj.getElementsByTagName("select");rows = obj.getElementsByTagName("textarea");for (i = 0;i < rows.length;i++) {value = rows[i].value;class_name = rows[i].className;id = rows[i].id;if (class_name == "zoo_required") {if (azzi(value)) {alert(id.substring(4) + " is a required field.");return false;}
}
}
return true;}
function zoo_refresh_viewPane(winID, zid, closeID) {var win = azqaaa.azzzzg(winID);if (win) {var view = win.azu().azzzia(zid, true);if (view) view.ajaaa();}
if (closeID) {var close = azqaaa.azzzzg(closeID);if (close) close.azua();}
}
function getFirstElementByTagName(element,name,shallow) {if (shallow) {var children = element.childNodes;for (var i=0;i<children.length;i++) if (children[i].nodeName == name) return children[i];} else {var result = element.getElementsByTagName(name);if (result && result.length > 0) return result[0];}
return null;}
function getNodeValue(node) {if (node) {var data = "";if (aaaaa()) {if (node.childNodes.length > 1) {return node.childNodes[1].nodeValue;} else {if (node.firstChild) {return node.firstChild.nodeValue;} else {return "";}
}
} else {if (node.firstChild != null) {if (node.childNodes.length > 1) {for (var i=0;i<node.childNodes.length;i++) {data += node.childNodes[i].nodeValue;}
} else {data = node.firstChild.nodeValue;}
return data;} else {return "";}
}
} else {return null;}
}
function azze(xmlObj) {if (!window.acaaaaa)return;var func = ayaaa.azzzda("", "functioncall", xmlObj, 0);eval(func);}
function alaa(str) {if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1)) {document.write('<script language="VBscript">');document.write(str);document.write('</scr' + 'ipt>');}
}
function azzx() {var contr = absPath.replace(/.+?:\/\//, "");if (contr.charAt(contr.length - 1) == "/") contr = contr.substr(0, contr.length - 1);return contr;}
function aqaaa(str) {if (!str) return "";str = str.replace(/&/g, "&amp;");str = str.replace(/"/g, "&quot;");str = str.replace(/</g, "&lt;");str = str.replace(/>/g, "&gt;");str = str.replace(/'/g, "&#39;");str = str.replace(/\\/g, "&#92;");return str;}
function azzuaaa(str) {str = str.replace(/&#92;/g, "\\");str = str.replace(/&#39;/g, "'");str = str.replace(/&gt;/g, ">");str = str.replace(/&lt;/g, "<");str = str.replace(/&quot;/g, "\"");str = str.replace(/&amp;/g, "&");return str;}
function zoo_template_override(name, url) {ai.aka(name, url);}
function azeaaaa(str, replaceTerm, newTerm) {var regxp = new RegExp("\\[" + replaceTerm + "\\]", 'g');str = str.replace(regxp, newTerm);return str;}
var debugWindow = null;function azzba(txt) {if (SHOW_DEBUG) {if (! debugWindow) {debugWindow = window.open("", "debugmsgwin", "scrollbars=yes,resizable=1,width=660,height=600");}
debugWindow.document.write(txt + "<br>");}
}
function alaaaaa(txt, wintitle) {if (SHOW_DEBUG) {var msgWindow = window.open("", wintitle, "scrollbars=yes,resizable=1,width=660,height=600'");msgWindow.document.write(txt);msgWindow.document.close();}
}
Zoo.utils.dec2hex = azzzwa;Zoo.utils.zoo_make_bubble = zoo_make_bubble;Zoo.utils.remove_objects_and_embeds = azzzc;Zoo.utils.left_px = aaaaaa;Zoo.utils.verify_options = aja;Zoo.utils.confirm_two_opts = azdaaa;Zoo.utils.html_encode = aqaaa;Zoo.utils.html_decode = azzuaaa;Zoo.utils.is_IE = aaaaa;Zoo.utils.alert = ahaaaaa;Zoo.utils.skin_path = ayaaaaa;Zoo.utils.get_page_height = azzzxa;Zoo.utils.get_page_width = azzzlaa;Zoo.utils.is_server_empty = azzi;azva = Zoo.utils.return_false;Zoo.utils.abs_path = function() {return absPath;};function zooCheckFlash() {var f=document.getElementsByTagName("object");for(var i=0;i<f.length;i++){var id = f[i].id;var src = f[i].getAttribute("movie");var valid = false;var wmode = "";var msg = null;var p = f[i].getElementsByTagName("param");var x = f[i].getAttribute("wmode");if (x && (x=='opaque' || x=='transparent')) msg="Looks like an attribute was assigned to the OBJECT tag of wmode='"+x+"'. Unfortunately we can't assign the wmode as an attribute of the OBJECT. It needs to be a <PARAM>.";for (var j=0;j<p.length;j++) {var n = (p[j].getAttribute("name")+"").toLowerCase();var v = (p[j].getAttribute("value")+"").toLowerCase();if (n=="wmode") {wmode = v;if (v=='opaque' || v=='transparent') msg = " It seems to be set to '"+wmode+"'.";}
}
if (msg) alert("Oops! Zoowee wont be able to float above some elements on this page!\n\nThe flash OBJECT (id="+id+", src="+src+") doesn't have its wmode set correctly.\n\n"+msg+" \n\nPlease add <param name='WMode' value='Opaque'/> to this OBJECT.");}
f=document.getElementsByTagName("embed");for(var i=0;i<f.length;i++){var id = f[i].id;var src = f[i].getAttribute("src");var valid = false;var wmode = "";var p = f[i].attributes;for (var j=0;j<p.length;j++) {var n = (p[j].name+"").toLowerCase();var v = (p[j].value+"").toLowerCase();if (n=="wmode") {wmode = v;if (v=='opaque' || v=='transparent') valid=true;}
}
if (!valid) alert("Oops! Zoowee wont be able to float above some elements on this page!\n\nThe flash EMBED (id="+id+", src="+src+") doesn't have its wmode set correctly.\n\nIt seems to be set to '"+wmode+"'.\n\nPlease add wmode='Opaque' to this EMBED.");}
}
var ai = new Object();
ai.fully_loaded = true;
var PAGES_DEPLOY_EMBED_CSS = true;ai.azzzyaa = {'azzj': [true, true], 'abaaaaa': [true, true], 'aqaaaaa': [false, false], 'azia': [true, true], 'acaaaaa': [false, false], 'asaaaa': [false, false], 'debug': [true, false], 'azza': [false, false], 'azoa': [false, false], 'azja': [false, false], 'ada': [false, false]
};ai.azq = function() {for (var x = 0;x < arguments.length;x++) {var name = arguments[x];var plugin = ai.azzzyaa[name];azzba("ai.azq "+x);if (!plugin) {ahaaaaa("Tried to load a plugin: " + name + " that i don't know about");return;}
if (name == 'azza') this.azuaa("dhtmlHistory", false, false);this.azuaa(name, plugin[0], plugin[1]);}
};ai.inited = false;azk.extend(ai, azznaa.Publisher);ai.azyaa = function(req) {var div = document.createElement("div");div.innerHTML = req.responseText;this.tmpDiv.appendChild(div);this.fetchRemaining--;if (!this.fetchRemaining) ai.azzd();};ai.azpaa = function(req, name) {var div = document.createElement("div");div.innerHTML = req.responseText;this.tmpDiv.appendChild(div);this.asaaa(name, "template");}
ai.azzqaaa = function(name) {azzba("ai.azzqaaa "+name);var obj;if (this.classes) obj = this.classes[name];if (!obj) {if (this.fully_loaded) return;else {alert("Warning code loaded for a class I don't know about (and we arn't fully loaded)");return;}
}
if (obj.fetched_code)return;this.asaaa(name, "code");};ai.asaaa = function(name, type) {azzba("ai.asaaa "+name+" "+type);var obj = this.classes[name];if (!obj) {alert("pages.js: fetched called for something that we arnt aware of");}
if (type == "template") {obj.fetched_template = true;}
else if (type == "code") {obj.fetched_code = true;azzba("ai.asaaa assigned instance "+name);obj.instance = eval(name);}
this.fetchRemaining--;if (!this.fetchRemaining) ai.azzd();};ai.azna = function(name, fetchCode, hasCSS, hasTemplate) {var obj = new Object();if (this.classes[name])return;this.classes[name] = obj;obj.inited = false;azzba("ai.azzu loadRemaining "+this.loadRemaining+" "+name+" code="+fetchCode+" css"+hasCSS+" templ="+hasTemplate);this.loadRemaining++;if (this.fully_loaded) {fetchCode = false;hasCSS = false;hasTemplate = false;}
obj.fetched_template = !hasTemplate;obj.fetched_code = !fetchCode;obj.fetch_name = name.replace(/zej_/, "");obj.fetch_htm_name = name.replace(/zej_/, "");if (fetchCode) {this.fetchRemaining++;this.azbaa(obj.fetch_name + ".js?" + azzpa());}
else
obj.instance = eval(name);if (hasCSS) this.azxa(obj.fetch_name + ".css?" + azzpa());if (hasTemplate && !this.template_overrides[obj.fetch_htm_name] && obj.fetch_htm_name!='box') {this.fetchRemaining++;Zoo.network.azgaa(obj.fetch_htm_name + ".htm?" + azzpa(), {method: 'get', onSuccess: afa(this, "azpaa") }, name);}
else if (this.template_overrides[obj.fetch_name]) obj.fetched_template = true;};ai.azbaa = function(url) {var script = document.createElement('script');script.src = url;this.azzzra(script);};ai.azxa = function(url) {var css = document.createElement('link');css.href = url;css.rel = "StyleSheet";css.type = "text/css";this.azzzra(css);};ai.aka = function(name, url) {this.azzzze();this.template_overrides[name] = url;};ai.ab = function(name, hasCSS, hasTemplate) {this.azzzze();this.azna(name, false, hasCSS, hasTemplate);};ai.azuaa = function(name, hasCSS, hasTemplate) {this.azzzze();this.azna(name, true, hasCSS, hasTemplate);};ai.azzzze = function() {if (this.inited) return;this.inited = true;this.fetchRemaining = 1;this.loadRemaining = 1;this.template_overrides = new Object();this.classes = new Object();this.toRemove = new Array();this.tmpDiv = document.createElement("DIV");this.tmpDiv.id = "pages_tmp";this.tmpDiv.className = "scrapArea";azlaaaa.hide(this.tmpDiv);this.azzzra(this.tmpDiv);};ai.azzzra = function(obj) {if (!this.HEAD) {if (!document.getElementsByTagName("HEAD") || !document.getElementsByTagName("HEAD").length) {alert("Sorry zoowee tried to init before the head was avaliable");return;}
this.HEAD = document.getElementsByTagName("HEAD")[0];}
this.HEAD.appendChild(obj);}
ai.azzoaaa = function(name) {azzba("ai.azzoaaa called by "+name+" "+this.loadRemaining);this.loadRemaining--;var obj = this.classes[name];obj.inited = true;if (!this.loadRemaining) this.apaaa();};ai.azzd = function() {var x;for (x in this.classes){var obj = this.classes[x];if (! obj.instance) alert("Instance not available for "+x);if (obj.instance.azzzze) obj.instance.azzzze();else
this.azzoaaa(x);}
if (this.fully_loaded && PAGES_DEPLOY_EMBED_CSS && window.OUT_FILE_BASE) {this.azxa(absPath + OUT_FILE_BASE + ".css");}
this.azxa(absPath + "skins/" + defaultSkinName + "/overrides.css");Zoo.network.azgaa(absPath+"skins/"+defaultSkinName + "/box.htm?" + azzpa(), {method: 'get', onSuccess: afa(this, "azpaa") }, "azsaaa");for (x = 0;x < this.dyncss && this.dyncss.length;x++) this.azxa(this.dyncss[x] + ".css");};ai.azzzv = function() {var url = "" + document.location;if (url.indexOf("?") == -1) return;var x;var p = /[?&]zp=([a-z_,]+)/ig;var matches = p.exec(url);if (matches) {var plugs = matches[1].split(/,/g);for (x = 0;x < plugs.length;x++) this.azq(plugs[x]);}
var c = /[?&]zc=([^&#]+)/ig;matches = c.exec(url);if (matches) {this.dyncss = matches[1].split(/,/g);for (x = 0;x < this.dyncss.length;x++) {this.dyncss[x] = adaa(this.dyncss[x]);this.dyncss[x] = this.dyncss[x].replace(/\.css/, "");}
}
var j = /[?&]zj=([^&#]+)/ig;matches = j.exec(url);if (matches) {var jss = matches[1].split(/,/g);for (x = 0;x < jss.length;x++) {jss[x] = adaa(jss[x]).replace(/\.js/, "");var string = "<script src='" + jss[x] + ".js' type='text/javascript' language='javascript'></script>";document.write(string);}
}
};ai.azeaaa = function() {var x;for (x in this.template_overrides) {this.fetchRemaining++;Zoo.network.azgaa(this.template_overrides[x] + "?" + azzpa(), {method: 'get', onSuccess: afa(this, "azyaa") });}
};ai.azzbaa = function() {if (this.template_content) {var div = document.createElement("div");div.innerHTML = adaa(this.template_content);this.tmpDiv.appendChild(div);this.template_content = "";}
this.azeaaa();this.fetchRemaining -= 1;if (!this.fetchRemaining) this.azzd();this.loadRemaining -= 1;azzba("ai.azzbaa loadRemaining "+this.loadRemaining);if (!this.loadRemaining)this.apaaa();};ai.apaaa = function() {var x;for (x in this.classes) {var obj = this.classes[x];if (!obj.instance) alert("Object has no instance assigned "+x);if (obj.instance.azwaaaa)obj.instance.azwaaaa();}
for (x = 0;x < this.toRemove.length;x++) azlaaaa.remove(this.toRemove[x]);this.dispatchEvent("azwaaaa", "");};ai.azzdaaa = function(objName, loadVisible, loadArray) {var reqArgs = 1;var obj = this.classes[objName];var x;for (x = reqArgs;x < loadArray.length;x++) {if (!loadArray[x]) continue;var item = obj.html_objects[loadArray[x]];if (!item) {ahaaaaa("Unable to load object, Object Part Not Found: " + loadArray[x]);return;}
if (item.loaded) return;item.loaded = true;if (!loadVisible && azlaaaa.visible(item.div)) {item.isLoadHidden = true;azlaaaa.hide(item.div);}
else {azlaaaa.show(item.div);}
ZOO_BUBBLE_CONTAINER.appendChild(item.div);}
};ai.au = function(objName) {this.azzdaaa(objName, false, arguments);};ai.azzzj = function(objName) {this.azzdaaa(objName, true, arguments);};ai.azzzeaa = function(objName) {var reqArgs = 1;var obj = this.classes[objName];var x;for (x = reqArgs;x < arguments.length;x++) {if (!arguments[x]) continue;var item = obj.html_objects[arguments[x]];if (!item) {ahaaaaa("Unable to load object, Object Part Not Found: " + arguments[x]);return;}
if (!item.loaded) return;item.loaded = false;if (item.div.parentNode){if (item.isLoadHidden) {azlaaaa.remove(item.div);item.isLoadHidden = false;azlaaaa.show(item.div);}
else
azlaaaa.hide(item.div);}
}
};ai.azjaaa = function(name, prefix) {var reqArgs = 2;var x;var obj = this.classes[name];obj.html_objects = new Object();var div;var id;var newObj;for (x = reqArgs;x < arguments.length;x++) {id = prefix + "_" + arguments[x];div = $zej(id);if (!div) ahaaaaa("Unable to create page part: " + id);newObj = new Object();obj.html_objects[arguments[x]] = newObj;newObj.div = div;this.toRemove.push(id);}
};ai.azzzv();Zoo.template = function(name) {this._base = '';if (name) this.azbaaaa(name);};Zoo.template.prototype.value = "";var azzzzz = Zoo.template;ai.ab("azzzzz", false, true);Zoo.template._tested = false;Zoo.template._escape = false;Zoo.template.prototype.azbaaaa = function(name) {if (!Zoo.template._tested) {if (document.getElementById("TEMPLATE_TEST").innerHTML != "<") Zoo.template._escape = true;Zoo.template._tested = true;}
var itm;var id;id = "TEMPLATE_" + name;itm = document.getElementById(id);if (!itm) {ahaaaaa("Unable to load template: " + id);return;}
this._base = itm.innerHTML;if (Zoo.template._escape) this._base = unescapeHTML(this._base);this.aztaa();};Zoo.template.prototype.azzsaaa = function(code) {this._base = code;this.aztaa();};Zoo.template.prototype.aztaa = function(){this.value = this._base;this._dom_pending = null;this._exists = null;this._exists_dom = null;};Zoo.template.prototype.agaaa = function() {this.aztaa();};Zoo.template.prototype.azzkaaa = function(element) {element.innerHTML = this.value;if (!this._dom_pending) return;var appended = false;var doc = element.document;if (!doc) {doc = document;document.getElementById("pages_tmp").appendChild(element);appended = true;}
for (var x = 0;x < this._dom_pending.length;x++) {var id = this._dom_pending[x][0];var elem = this._dom_pending[x][1];var rep = doc.getElementById("temprep_" + id);if (!rep) continue;rep.parentNode.replaceChild(elem, rep);}
if (appended) azlaaaa.remove(element);};Zoo.template.prototype.azzzga = function(key, is_dom_sub) {if (!this._exists) {this._exists = new Object();this._exists_dom = new Object();var reg_extract = /\[([^\]\[]+)\]/g;var reg_extract_dom = /\[\[([^\]\[]+)\]\]/g;var arr;while ((arr = reg_extract_dom.exec(this.value)) != null) {this._exists_dom[arr[1]] = 1;}
while ((arr = reg_extract.exec(this.value)) != null) {if (!this._exists_dom[arr[1]]) this._exists[arr[1]] = 1;}
}
if (is_dom_sub) return this._exists_dom[key];else
return this._exists[key];};Zoo.template.prototype.azyaaaa = function(key, element) {if (!this._dom_pending) this._dom_pending = [];var id = Zoo.utils.get_unique_id();var str = "<div id='temprep_" + id + "'></div>";this.azeaaaa("\\[" + key + "\\]", str);this._dom_pending.push([id, element]);};Zoo.template.prototype.azeaaaa = function() {var key;var val;for (x = 0;x < arguments.length;x += 2) {key = arguments[x];val = arguments[x + 1];var regxp = new RegExp("\\[" + key + "\\]", 'g');this.value = this.value.replace(regxp, val);}
};Zoo.box = function(props) {azk.extend(this, azznaa.Publisher);var _box = Zoo.box;if (!Zoo.utils.verify_options(_box.azzyaa.prototype, props)) return;if (!props.minHeight) props.minHeight = 1;if (!props.minWidth) props.minWidth = 1;var width = parseInt(props.width);var height = parseInt(props.height);var box = _box._boxes[props.box];if (!box) {Zoo.utils.alert("Box Type Not Found: " + props.box);return;}
var id = props.id;var oldDiv = $zej(id);if (!oldDiv) Zoo.utils.alert("Unable to find object with id: " + id + " to box");var div = $azzzl('div');div.className = "";if (props.style) div.className = props.style;azlaaaa.addClassName(div, "box_" + props.box);if (props.boxID) div.id = props.boxID;_box._boxNum++;this._canMaximize = (props.canMaximize);this._maximized = false;this._boxNum = _box._boxNum;this._div = div;this._box = box;this._id = id;this._minHeight = props.minHeight;this._minWidth = props.minWidth;this._adjustLevel = (props.adjustLevel)? props.adjustLevel : "";oldDiv.parentNode.replaceChild(div, oldDiv);if (props.position) div.style.position = props.position;if (props.top != null) div.style.top = props.top + "px";if (props.bottom != null) div.style.bottom = props.bottom + "px";if (props.left != null) div.style.left = props.left + "px";if (props.right != null) div.style.right = props.right + "px";var template2 = new Zoo.template("BOX");template2.azeaaaa("SKINPATH", Zoo.utils.skin_path(props.box), "BOX_NUM", this._boxNum, "BOX_EXTENSION", box._ext);template2.azeaaaa("TOP_HEIGHT", box._heightTop, "BOTTOM_HEIGHT", box._heightBottom, "LEFT_WIDTH", box._widthLeft, "RIGHT_WIDTH", box._widthRight);div.innerHTML = template2.value;this._dDiv = $zej("boxCont" + this._boxNum);this._movebar = $zej("boxContTopMiddle" + this._boxNum);this._controlsDiv = $zej("toolbarControls" +this._boxNum);this._buttonsDiv = $zej("toolbarButtons" + this._boxNum);this._titleDiv = $zej("toolbarTitle" + this._boxNum);this._tabBar = $zej("boxContTabs" + this._boxNum);if (this._canMaximize) aqa(this._movebar, this.azraaa.azzzzf(this));this._footer = $zej("boxContFooter" + this._boxNum);this._topLeftGFX = $zej("boxContTopLeftGFX" + this._boxNum);this._topRightGFX = $zej("boxContTopRightGFX" + this._boxNum);this._topMiddleGFX = $zej("boxContTopMiddle" + this._boxNum);this._bottomRightGFX = $zej("boxContBottomRight" + this._boxNum);this._isIE = Zoo.utils.is_IE();aoa(div, this.ayaaaa.azzzzf(this));if (props.autoFront) this.ayaaaa();if (this._adjustLevel.indexOf("move")!=-1) {azlaaaa.addClassName(div, "boxMove");aoa(this._movebar, this.azzzzya.azzzzf(this));}
var resizeDiv = $zej("boxResize" + this._boxNum);if (this._adjustLevel.indexOf("resize")!=-1) {aoa("boxContBottomMiddle" + this._boxNum, this.azzga.azzzzf(this, 'BottomMiddle'));aoa("boxContMiddleLeft" + this._boxNum, this.azzga.azzzzf(this, 'MiddleLeft'));aoa("boxContMiddleRight" + this._boxNum, this.azzga.azzzzf(this, 'MiddleRight'));aoa("boxContBottomLeft" + this._boxNum, this.azzga.azzzzf(this, 'BottomLeft'));aoa("boxContBottomRight" + this._boxNum, this.azzga.azzzzf(this, 'BottomRight'));aoa("boxContTopLeft" + this._boxNum, this.azzga.azzzzf(this, 'TopLeft'));aoa("boxContTopRight" + this._boxNum, this.azzga.azzzzf(this, 'TopRight'));azlaaaa.addClassName(div, "boxResize");}
if (this._adjustLevel.indexOf("scroll")!=-1) {this._dDiv.style.overflow="auto";}
this._dummyShield = $azzzl('IMG');this._dummyShield.src = ayaaaaa() + "images/spacer.gif";this._dummyShield.className = "dummy";azlaaaa.hide(this._dummyShield);this._dDiv.appendChild(this._dummyShield);this.azzzgaa(props.title);this.azzza(height, width);this._mouseUpBind = this.azzzzca.azzzzf(this);this._mouseMoveBind = this.azzzea.azzzzf(this);$zej("boxCont" + this._boxNum).appendChild(oldDiv);var img = $azzzl('IMG');return this;}
var azsaaa = Zoo.box;Zoo.box.azzyaa = function() {}
Zoo.box.azzyaa.prototype = {id: 1, box: 1, height: 1, width: 1, style: 0, position: 0, top: 0, left: 0, bottom: 0, right: 0, boxID: 0, adjustLevel: 0, minHeight: 0, minWidth: 0, title: 0, canMaximize: 0, autoFront: 0 };ai.ab("azsaaa", true, true);var box_MINI_LOGO_NAME = "";Zoo.box.prototype.azm = function(maximized) {if (!this._canMaximize) return;var path = Zoo.utils.skin_path(this._box._name) + "box/";if (maximized) {if (this.azzzva()) return;this.azzzuaa();this.azzqaa(Zoo.box._maxTop, Zoo.box._maxLeft);var height = Zoo.utils.get_page_height() - Zoo.box._maxTop - Zoo.box._maxBottom - Zoo.box._maxOffsetTop;var width = Zoo.utils.get_page_width() - Zoo.box._maxLeft - Zoo.box._maxRight - Zoo.box._maxOffsetLeft;azzk(this._bottomRightGFX, path + "BottomRight." + this._box._ext);this.azzza(height, width);this._maximized = true;azlaaaa.removeClassName(this._div, "boxMove");azlaaaa.removeClassName(this._div, "boxResize");this.dispatchEvent("azya", this);}
else {if (!this.azzzva()) return;this._maximized = false;azzk(this._bottomRightGFX, path + "BottomRight_Resize." + this._box._ext);azlaaaa.addClassName(this._div, "boxResize");azlaaaa.addClassName(this._div, "boxMove");this.azzqaa(this._saveY, this._saveX);this.azzza(this._saveHeight, this._saveWidth);this.dispatchEvent("ajaaaaa", this);}
}
Zoo.box.prototype.azraaa = function() {this.azm(!this.azzzva());}
Zoo.box._maxTop = 10;Zoo.box._maxLeft = 10;Zoo.box._maxRight = 10;Zoo.box._maxBottom = 10;Zoo.box._maxOffsetLeft = 0;Zoo.box._maxOffsetTop = 0;Zoo.box.azziaa = function(props) {Zoo.utils.verify_options(Zoo.box.azziaa.azzyaa.prototype, props);if (props.top || props.top == "0") this._maxTop = props.top;if (props.right || props.right == "0") this._maxRight = props.right;if (props.left || props.left == "0") this._maxLeft = props.left;if (props.bottom || props.bottom == "0") this._maxBottom = props.bottom;if (props.offsetTop || props.offsetTop == "0") this._maxOffsetTop = props.offsetTop;if (props.offsetLeft || props.offsetLeft == "0") this._maxOffsetLeft = props.offsetLeft;}
Zoo.box.azziaa.azzyaa = function() {}
Zoo.box.azziaa.azzyaa.prototype = {top: 0, left: 0, bottom: 0, right: 0, offsetTop: 0, offsetLeft: 0 };Zoo.box._inited = false;Zoo.box.azzzze = function() {this._inited = true;if (!this._boxes) this._boxes = new Object();this._boxNum = 0;this._resizeValues = {'BottomLeft': 0, 'BottomRight': 1, 'BottomMiddle': 2, 'MiddleRight': 3, 'MiddleLeft': 4, 'TopLeft': 5, 'TopRight': 6 };this._frontBox;this._frontIndex = 11111111;if (ZOO_USE_SHIM) {this._shimFrame = document.createElement("iframe");this._shimFrame.id='zoo_shimframe';this._shimFrame.style.position='absolute';this._shimFrame.style.width='0px';this._shimFrame.style.height='0px';this._shimFrame.style.top='0px';this._shimFrame.style.left='0px';this._shimFrame.style.zIndex=this._frontIndex-1;this._shimFrame.setAttribute('frameborder','0');this._shimFrame.setAttribute('src','javascript:false;');ZOO_BUBBLE_CONTAINER.appendChild(this._shimFrame);}
ai.azzoaaa("azsaaa");}
Zoo.box.aznaaa = function(evt) {var e = window.event ? window.event : evt;var box = e.event_data.data.boxObj;if (!box._isDown)box.azzzn();azzzc(box.azzzo(),"show");}
Zoo.box.azzjaaa = function(evt) {var e = window.event ? window.event : evt;var box = e.event_data.data.boxObj;if (!e.event_data.data.pane) box.azzzzn();azzzc(box.azzzo(),"hide");}
Zoo.box.azwaaaa = function() {azqaaa.addEventListener("awa azmaa", this.aznaaa.azzzzf(this) );azqaaa.addEventListener("asaa azmaa", this.azzjaaa.azzzzf(this) );}
Zoo.box.prototype.ah = function(msg) {this._footer.innerHTML = msg;azlaaaa.show(this._footer);}
Zoo.box.prototype.azzzn = function() {azlaaaa.hide(this._dummyShield);}
Zoo.box.prototype.azzzzn = function() {azlaaaa.show(this._dummyShield);}
Zoo.box.prototype.azzzzca = function() {this.azzzn();this.akaaaaa();azznaa.stopObserving(document, 'mouseup', this._mouseUpBind);azznaa.stopObserving(document, 'mousemove', this._mouseMoveBind);this._isDown = false;this.dispatchEvent("ak", this);return false;}
Zoo.box.prototype.azzaaaa = function() {return parseInt(this._div.style.zIndex, 10);}
Zoo.box.prototype.ayaa = function() {return (this == Zoo.box._frontBox);}
Zoo.box.prototype.ayaaaa = function() {if (this != Zoo.box._frontBox) {this._div.style.zIndex = ++Zoo.box._frontIndex;if (Zoo.utils.is_IE()) azlaaaa.removeClassName(this._div, "backwindow");this.dispatchEvent("awa azmaa", this);var frontBox = Zoo.box._frontBox;if (frontBox) {if (Zoo.utils.is_IE()) azlaaaa.addClassName(frontBox._div, "backwindow");frontBox.dispatchEvent("asaa azmaa", Zoo.box._frontBox);frontBox.axaaaa(true);}
this.axaaaa(false);Zoo.box._frontBox = this;this.akaaaaa();}
}
Zoo.box.prototype.axaaaa = function(inactive) {var box = this._box;if (!box._inactive) return;var ina = "";if (inactive) ina = "_Inactive";var path = ayaaaaa(box._name) + "box/";azzk(this._topRightGFX, path + "TopRight" + ina + "." + box._ext);azzk(this._topMiddleGFX, path + "TopMiddle" + ina + "." + box._ext);azzk(this._topLeftGFX, path + "TopLeft" + ina + "." + box._ext);}
Zoo.box.prototype.azzga = function(loc, evt) {if (!evt) evt = event;if (this._isDown) this.azzzzca();if (this.azzzva()) return false;this.azzzzn();this._mouseIsMove = false;this._resizeLocation = Zoo.box._resizeValues[loc];this._isDown = true;this._everyOtherMove = 0;azznaa.observe(document, 'mouseup', this._mouseUpBind);this.azzzuaa(evt);azznaa.observe(document, 'mousemove', this._mouseMoveBind);return false;}
Zoo.box.prototype.azzzzya = function(evt) {if (!evt) evt = event;if (this._isDown) this.azzzzca();if (this.azzzva()) return false;this.azzzzn();this._mouseIsMove = true;this._isDown = true;azznaa.observe(document, 'mouseup', this._mouseUpBind);this.azzzuaa(evt);azznaa.observe(document, 'mousemove', this._mouseMoveBind);return false;}
Zoo.box.prototype.azzzuaa = function(evt) {if (evt) {this._startX = evt.clientX;this._startY = evt.clientY;}
var curDiv = this._div;this._saveX = this.asaaaaa();this._saveY = this.azzzoa();this._saveWidth = this.azxaa();this._saveHeight = this.aztaaaa();}
Zoo.box.prototype.azzzea = function(e) {var evt = window.event ? window.event : e;if (this._maximized) return;if (this._isIE && evt.button != 1) {this.azzzzca();return;}
var curDiv = this._div;if (this._mouseIsMove) {var l = this._saveX + (evt.clientX - this._startX);var t = this._saveY + (evt.clientY - this._startY);if (l < 0) l = 0;if (t < 0) t = 0;curDiv.style.left = l + "px";curDiv.style.top = t + "px";return false;}
else {if (this._everyOtherMove) this._everyOtherMove = 0;else {this._everyOtherMove = 1;return false;}
var w;var h;var dx;var dy;switch (this._resizeLocation) {case 0:
dx = this._saveX + (evt.clientX - this._startX);w = this._saveWidth + (this._startX - evt.clientX);h = this._saveHeight + (evt.clientY - this._startY);break;case 1:
w = this._saveWidth + (evt.clientX - this._startX);h = this._saveHeight + (evt.clientY - this._startY);break;case 2:
h = this._saveHeight + (evt.clientY - this._startY);break;case 3:
w = this._saveWidth + (evt.clientX - this._startX);break;case 4:
w = this._saveWidth + (this._startX - evt.clientX);dx = this._saveX + (evt.clientX - this._startX);break;case 5:
dy = this._saveY + (evt.clientY - this._startY);dx = this._saveX + (evt.clientX - this._startX);w = this._saveWidth + (this._startX - evt.clientX);h = this._saveHeight - (evt.clientY - this._startY);break;case 6:
dy = this._saveY + (evt.clientY - this._startY);w = this._saveWidth - (this._startX - evt.clientX);h = this._saveHeight - (evt.clientY - this._startY);break;}
if (dx < 0) {dx = "";w = "";}
if (dy < 0) {dy = "";h = "";}
if (h) {if (h < this._minHeight) {h = this._minHeight;dy = "";}
this._dDiv.style.height = h + 'px';}
if (w) {if (w < this._minWidth) {w = this._minWidth;dx = "";}
this._dDiv.style.width = w + 'px';this._titleDiv.style.width = '100%';this._div.style.width = (w + this._box._widthLeft + this._box._widthRight) + "px";}
if (dx) curDiv.style.left = dx + "px";if (dy) curDiv.style.top = dy + "px";return false;}
}
Zoo.box.azka = function(name) {return [this._boxes[name]._heightTop + this._boxes[name]._heightBottom, this._boxes[name]._widthLeft + this._boxes[name]._widthRight];}
Zoo.box.azxaaa = function(name, ext, TOP_HEIGHT, BOTTOM_HEIGHT, LEFT_WIDTH, RIGHT_WIDTH, INACTIVE_GFX) {if (!this._boxes) this._boxes = new Object();if (!this._boxes[name])this._boxes[name] = new Object();this._boxes[name]._heightTop = TOP_HEIGHT;this._boxes[name]._heightBottom = BOTTOM_HEIGHT;this._boxes[name]._widthLeft = LEFT_WIDTH;this._boxes[name]._widthRight = RIGHT_WIDTH;this._boxes[name]._name = name;this._boxes[name]._ext = ext;this._boxes[name]._inactive = INACTIVE_GFX;}
Zoo.box.prototype.azcaaaa = function(imgSrc, onClick, toolTip) {var img = $azzzl("IMG");img.src = imgSrc;img.className = "icon";if (toolTip) img.title = toolTip;azzzwaa(img, onClick);this._buttonsDiv.appendChild(img);return img;}
Zoo.box.prototype.azztaaa = function(imgSrc, onClick, toolTip) {var img = $azzzl("IMG");img.src = imgSrc;img.className = "zoo_control";if (toolTip) img.title = toolTip;img.onclick=onClick;this._controlsDiv.appendChild(img);return img;}
Zoo.box.prototype.azzzgaa = function(str) {if (ZOO_SHOW_BUBBLE_TITLES) {if (Zoo.utils.is_server_empty(str))str = '&nbsp;';this._titleDiv.innerHTML = str;}
}
Zoo.box.prototype.azzzzzf = function(newheight) {this._dDiv.scrollTop = newheight;}
Zoo.box.prototype.azzqaa = function(newTop, newLeft) {if (this.azzzva()) this.azm(false);if (newTop || newTop == "0") this._div.style.top = newTop + "px";if (newLeft || newLeft == "0") this._div.style.left = newLeft + "px";this.akaaaaa();}
Zoo.box.prototype.azzza = function(newHeight, newWidth) {if (this.azzzva()) this.azm(false);if (newWidth && newWidth > 0) {var box = this._box;this._dDiv.style.width = newWidth + 'px';this._titleDiv.style.width = '100%';this._div.style.width = (newWidth + box._widthLeft + box._widthRight) + "px";}
if (newHeight && newHeight > 0) this._dDiv.style.height = newHeight + 'px';this.akaaaaa();}
Zoo.box.prototype.azzxaa = function() {return this._boxNum;}
Zoo.box.prototype.akaaaaa = function() {if (! Zoo.box._shimFrame) return;ZOO_BUBBLE_CONTAINER.removeChild(Zoo.box._shimFrame);Zoo.box._shimFrame = document.createElement("iframe");Zoo.box._shimFrame.id='zoo_shimframe';Zoo.box._shimFrame.style.position='absolute';Zoo.box._shimFrame.setAttribute('frameborder','0');Zoo.box._shimFrame.style.width=azlaaaa.getWidth(this._div)+'px';Zoo.box._shimFrame.style.height=this.aztaaaa()+'px';Zoo.box._shimFrame.style.top=(this.azzzoa())+'px';Zoo.box._shimFrame.style.left=(this.asaaaaa())+'px';Zoo.box._shimFrame.style.backgroundColor="#ff0000";Zoo.box._shimFrame.style.zIndex=Zoo.box._frontIndex-1;Zoo.box._shimFrame.setAttribute('src','javascript:false;');ZOO_BUBBLE_CONTAINER.appendChild(Zoo.box._shimFrame);}
Zoo.box.prototype.azzzva = function() {return this._maximized;}
Zoo.box.prototype.azxaa = function() {return azlaaaa.getWidth(this._dDiv);}
Zoo.box.prototype.aztaaaa = function() {return azlaaaa.getHeight(this._dDiv);}
Zoo.box.prototype.asaaaaa = function() {return parseInt(this._div.style.left, 10);}
Zoo.box.prototype.azzzoa = function() {return parseInt(this._div.style.top, 10);}
Zoo.box.prototype.aaa = function() {return this._div;}
Zoo.box.prototype.azzzo = function() {return this._dDiv;}
azsaaa.azxaaa("blue", "gif", 33, 21, 15, 15, true);azsaaa.azxaaa("bluegreen", "gif", 34, 31, 25, 25, true);azsaaa.azxaaa("news", "gif", 30, 30, 16, 16, true);azsaaa.azxaaa("denim", "gif", 26, 12, 12, 12, true);azsaaa.azxaaa("black", "png", 30, 34, 15, 19, true);azsaaa.azxaaa("gray", "png", 32, 33, 7, 7, true);azsaaa.azxaaa("bubble","gif",24,14,14,14,true);var al = new Object();al.azzxa = false;al.azzzze = function() {if (!this.azzxa) this.azzgaaa();ai.azzoaaa("al");}
al.azzgaaa = function() {if (this.azzxa) return;this.azzxa = true;this.dialog_div = $azzzl("div");azzzzo(this.dialog_div, "zoo_dialog_box");document.body.appendChild(this.dialog_div);this.dialog_div_holder = $azzzl("table");azzzzo(this.dialog_div_holder, "zoo_dialog_table");this.dialog_div.appendChild(this.dialog_div_holder);var tbody = $azzzl("tbody");this.dialog_div_holder.appendChild(tbody);var tr = $azzzl("tr");tbody.appendChild(tr);this.icon_holder = $azzzl("td");tr.appendChild(this.icon_holder);this.icon = $azzzl("img");this.icon_holder.appendChild(this.icon);azzzzo(this.icon, "zoo_dialog_icon");this.dialog_title = $azzzl("td");tr.appendChild(this.dialog_title);azzzzo(this.dialog_title, "zoo_dialog_title");tr = $azzzl("tr");tbody.appendChild(tr);this.dialog_input_holder = $azzzl("td");this.dialog_input = $azzzl("input");tr.appendChild($azzzl("td"));tr.appendChild(this.dialog_input_holder);azzzzo(this.dialog_input, "zoo_dialog_input");this.dialog_input_holder.appendChild(this.dialog_input);tr = $azzzl("tr");tbody.appendChild(tr);this.button_holder = $azzzl("td");tr.appendChild($azzzl("td"));tr.appendChild(this.button_holder);azzzzo(this.button_holder, "zoo_dialog_button_holder");this.showing = false;this.pending = new Array();xy = azzfaa();this.dialog_div.style.width = "375px";this.dialog_div.style.height = "210px";this.dialog_div.style.left = xy[0] + "px";this.dialog_div.style.top = xy[1] + "px";azlaaaa.show(this.dialog_div);this.box_width = azlaaaa.getWidth(this.dialog_div);this.box_height = azlaaaa.getHeight(this.dialog_div);azlaaaa.hide(this.dialog_div);}
al.azjaaa = function(props) {this.azzgaaa();if (this.showing) {this.pending.push(props);return;}
if (!aja({type: 0, default_value: 0, width: 0, get_input: 0, message: 0, icon: 0, button_array: 0, on_complete: 0, do_verify: 0, webobj: 0 }, props)) return;if (!props.width) props.width = 200;if (!props.default_value) props.default_value = "";if (!props.type) props.type = "text";if (!props.icon) if (props.get_input) props.icon = "question.gif";else
props.icon = "info.gif";if (!props.button_array) props.button_array = new Array("OK");this.icon.src = ayaaaaa() + "icons/" + props.icon;this.dialog_input.style.width = props.width + "px";this.dialog_input.type = props.type;this.dialog_input.value = props.default_value;if (props.get_input) {azlaaaa.show(this.dialog_input);this.dialog_div.style.height = this.box_height + "px";} else {azlaaaa.hide(this.dialog_input);this.dialog_div.style.height = (this.box_height - 25) + "px";}
xy = azzfaa();var lpos = (xy[0] + ((azzzlaa() / 2) - this.box_width / 2));this.dialog_div.style.left = (xy[0] + ((azzzlaa() / 2) - this.box_width / 2)) + "px";this.dialog_div.style.top = (xy[1] + ((azzzxa() / 2) - this.box_height / 2)) + "px";this.button_holder.innerHTML = "";var firstBtn;for (var x = 0;x < props.button_array.length;x++) {var btn = $azzzl("input");btn.type = "button";if (!firstBtn) firstBtn = btn;btn.value = props.button_array[x];azzzwaa(btn, azzmaaa(afa(this, "azzoa"), btn.value));this.button_holder.appendChild(btn);}
this.dialog_title.innerHTML = "";if (props.message) {var msg = props.message;this.dialog_title.innerHTML = msg;} else if (props.webobj) {this.dialog_title.appendChild(props.webobj);}
this.do_verify = props.do_verify;this.on_complete = props.on_complete;azlaaaa.show(this.dialog_div);azzzzh(this.dialog_input, azzmaaa(afa(this, "azzoa"), firstBtn.value));this.showing = true;if (props.get_input) azlaaaa.focus(this.dialog_input);else
azlaaaa.focus(firstBtn);}
al.azzoa = function(name, evt) {if (evt || event) {if (!evt) evt = event;azznaa.stop(evt);}
var err;if (this.do_verify) err = this.do_verify(name, this.dialog_input.value);if (!err) {azlaaaa.hide(this.dialog_div);if (this.on_complete) this.on_complete(name, this.dialog_input.value);this.showing = false;if (this.pending.length) this.azjaaa(this.pending.shift());}
else
alert(err);}
ai.ab("al", true, false);Zoo.monitors = function() {};Zoo.monitors._mouse_is_down = false;Zoo.monitors.azzztaa = function(evt) {this._mouse_down = true;};Zoo.monitors.ay = function(evt) {this._mouse_down = false;};Zoo.monitors.azzzzza = function(evt) {if (!evt) evt = event;if (!window.azqaaa) return;if (evt.ctrlKey) {if (evt.keyCode == azznaa.KEY_TAB || evt.keyCode == azznaa.KEY_BRACKET_RIGHT) {azqaaa.azhaa(0);azznaa.stop(evt);}
else if (evt.keyCode == azznaa.KEY_BRACKET_LEFT) {azqaaa.azhaa(1);azznaa.stop(evt);}
else if (evt.keyCode == azznaa.KEY_QUESTION) {if (!window.azzj) return;if (azzj.username) {var func = azqaaa.azzdaa.azzzzf(azqaaa, 'dologout.jsp', 'ZOO_LOGOUT', 'Logout', 480, 280);Zoo.utils.confirm_two_opts("You are currently logged in as '" + azzj.username + "' do you want to log out?", func);}
else
azqaaa.azzdaa('dologin.jsp', 'ZOO_LOGIN', 'Login', 480, 280);azznaa.stop(evt);}
}
};Zoo.monitors.azzzya = function(evt) {if (!evt) evt = event;if (!evt.ctrlKey) azqaaa.cntrlFirst = 1;};Zoo.monitors._mouseX = 0;Zoo.monitors._mouseY = 0;Zoo.monitors.azzzzu = function(x, y, msg) {if (!Zoo.utils.is_server_empty(msg)) {var xy = azzfaa();$zej("tooltip").style.display = "";$zej("tooltip").innerHTML = msg;$zej("tooltip").style.top = (y) + "px";$zej("tooltip").style.left = (xy[0] + x - DesktopX) + "px";}
};Zoo.monitors.azga = function() {azlaaaa.hide("tooltip");};Zoo.monitors.azj = function(evt) {if (this._mouse_is_down) return;var e = window.event ? window.event : evt;var obj = e.event_data.data;var tooltip = (obj.azzzoaa) ? obj.azzzoaa() : "";if (!Zoo.utils.is_server_empty(tooltip)) this.azzzzu(this._mouseX + 8, this._mouseY + 8, tooltip);};Zoo.monitors.aeaaaa = function(evt) {if (this._mouse_is_down) return;var e = window.event ? window.event : evt;this.azga();};Zoo.monitors.akaaa = function(evt) {this._mouseX = evt.clientX;this._mouseY = evt.clientY;};Zoo.monitors.getMouseX = function() {return this._mouseX;}
Zoo.monitors.getMouseY = function() {return this._mouseY;}
Zoo.monitors.azzzze = function() {document.onmouseup = this.ay.azzgaa();document.onmousedown = this.azzztaa.azzgaa();document.onkeydown = this.azzzzza.azzgaa();document.onkeyup = this.azzzya.azzgaa();SHOW_TOOLTIP = true;if (SHOW_TOOLTIP) {ZooAtom.addEventListener("anaaa azzzx", this.azj.azzgaa(this));ZooAtom.addEventListener("anaaa azzzx azzb", this.aeaaaa.azzgaa(this));}
azznaa.observe(document.body, "mousemove", this.akaaa.azzgaa(this));if (SHOW_HIGHLIGHT) {ZooItem.addEventListener("azn azzzx", this.azzzzj.azzgaa(this));ZooItem.addEventListener("azn azzzx azzb", this.afaaaa.azzgaa(this));}
var div = $azzzl("DIV");div.id = "tooltip";div.className = "tooltip";ZOO_BUBBLE_CONTAINER.appendChild(div);this.azga();};Zoo.monitors.azzn = function() {try {if (this._highlighted_item) this._highlighted_item.style.backgroundColor = this._highlighted_item_oldcolor;this._highlighted_item = null;} catch (err) {}
}
Zoo.monitors.azzzzj = function(evt) {this.azzn();if (evt.currentTarget) {this._highlighted_item = evt.currentTarget;this._highlighted_item_oldcolor = this._highlighted_item.style.backgroundColor;this._highlighted_item.style.backgroundColor = HIGHLIGHT_COLOR;}
};Zoo.monitors.afaaaa = function(evt) {this.azzn();};var azaaaaa = new Object();ai.ab("azaaaaa", true, false);var nav_NAVIGATION_DIV;azaaaaa.inited = false;azaaaaa.azzzze = function() {if (this.inited) return;this.inited = true;if (!nav_NAVIGATION_DIV) nav_NAVIGATION_DIV = "zoo_navigation";this.div = $zej(nav_NAVIGATION_DIV);if (!this.div) {var navdiv = $azzzl("DIV");navdiv.id = nav_NAVIGATION_DIV;document.body.appendChild(navdiv);this.div = $zej(nav_NAVIGATION_DIV);this.div.className = "zoo";azlaaaa.hide(this.div);} else {this.div.className = "zoo";}
this.sections = new Object();ai.azzoaaa("azaaaaa");}
azaaaaa.azh = function() {return this.div;}
azaaaaa.azxaaaa = function(section) {if (!this.ad(section, "azxaaaa")) return;return this.sections[section].div;}
azaaaaa.azzzjaa = function(section) {if (!this.ad(section, "azxaaaa")) return;return this.sections[section].container;}
azaaaaa.azuaaa = function(name) {this.azzzze();if (this.sections[name]) {this.azcaaa("Section: " + name + " already exists");return;}
var div = $azzzl("DIV");this.sections[name] = new Object();this.sections[name].div = div;div.innerHTML = name;if (SHOW_NAVICONS) {div.innerHTML = "<img src='" + ayaaaaa() + "icons/" + name + ".gif'> " + name;}
div.className = "nav_header";this.div.appendChild(div);div = $azzzl("DIV");div.className = "nav_container";this.sections[name].container = div;this.div.appendChild(div);}
azaaaaa.ad = function(section, msg) {if ((!this.sections) || (!this.sections[section])) {this.azcaaa("nav.js: The section: " + section + " did not exist so cannot: " + msg);return false;}
return true;}
azaaaaa.azcaa = function(section, name, msg) {if ((!this.sections) || (!this.sections[section][name])) {this.azcaaa("nav.js: The section does not contain button named: " + name + " so cannot: " + msg);return false;}
return true;}
azaaaaa.aznaaaa = function(section, name, onClick, icon) {if (!onClick) {this.azcaaa("nav.js: Cannot add link: " + name + " to section: " + section + " as onClick doesn't exist");return;}
var div = $azzzl("DIV");div.className = "nav_link";if (!icon) {icon = "icons/arrow_right.gif";} else {icon = "url('" + icon + "')";div.style.backgroundImage = icon;}
div.innerHTML = name;azzzwaa(div, onClick);this.azqaa(section, name, div);}
azaaaaa.awaaaaa = function(section, name, title) {var msg = "Changing section: " + section + " name: " + name;if (!this.ad(section, msg)) {return;}
this.sections[section][name].div.innerHTML = title;}
azaaaaa.azgaaa = function(section, name, doFast) {var msg = "Showing section: " + section + " name: " + name;if (!this.ad(section, msg)) return;if (!this.azcaa(section, name, msg)) return;azlaaaa.show(this.sections[section][name].div);}
azaaaaa.azzta = function(section, name, doFast) {var msg = "Hiding section: " + section + " name: " + name;if (!this.ad(section, msg)) return;if (!this.azcaa(section, name, msg)) return;azlaaaa.hide(this.sections[section][name].div);}
azaaaaa.azqaa = function(section, name, div) {var msg = "Add Special section: " + section + " name: " + name + " div: " + div;if (!this.ad(section, msg)) return;if (!div) {this.azcaaa("nav.js: Cannot add link: " + name + " to section: " + section + " as div doesn't exist");return;}
this.sections[section][name] = new Object();this.sections[section][name].div = div;azlaaaa.addClassName(div, "nav_item");this.sections[section].container.appendChild(div);azlaaaa.hide(div);}
azaaaaa.azzzzc = function(section, name) {var msg = "Removing section: " + section + " name: " + name;if (!this.ad(section, msg)) return;if (!this.azcaa(section, name, msg)) return;azlaaaa.remove(this.sections[section][name].div);delete this.sections[section][name];}
azaaaaa.azcaaa = function(str){if (! window.log) return;log(str);}
var _ZooActiveWindows = [];function azqaaa(props) {var x;if (!aja({title: 0, divID: 1, innerHTML: 0, dom_obj: 0, x: 0, y: 0, width: 0, height: 0, canMinimize: 0, state: 0, canMaximize: 0, pane: 0, historyNav: 0, disableAutosize: 0, hideOnClose: 0, bubbleid: 0, bubblelink: 0, bubblethumb: 0,transition:0,adjustLevel:0 }, props)) return;this.activeDoc = document;if (!props.historyNav) props.historyNav = new Array();this.mtitle = (props.title == null) ? "" : props.title;var defaultSpecs = azqaaa.azba();if (!props.x && props.x != "0") props.x = defaultSpecs.left;if (!props.y && props.y != "0") props.y = defaultSpecs.top;if (!props.width && props.width != "0") props.width = defaultSpecs.width;if (!props.height && props.height != "0") props.height = defaultSpecs.height;if (!props.adjustLevel && props.adjustLevel!="0") props.adjustLevel = JSWindow_ADJUST_LEVEL;this.canMaximize = (props.canMaximize) ? props.canMaximize : JSWindow_ALLOW_MAXIMIZE;this.canMinimize = (props.canMinimize) ? props.canMinimize : JSWindow_ALLOW_MINIMIZE;this.hideOnClose = props.hideOnClose;this.winID = props.divID;if (props.pane) {this.pane = props.pane;this.pane.af(this.winID, this);this.pane.araa("WINHOOK_" + this.winID);this.oContent = this.pane.azzzzzh();if (this.pane.azzlaa() != null) this.mtitle = this.pane.azzlaa();this.backHistory = new Array();this.backHistory.push(this.pane.azzzb());} else {if (props.innerHTML) {div = $azzzl("DIV");div.innerHTML = props.innerHTML;div.id = this.winID;this.oContent = div;} else if (props.dom_obj) {div = $azzzl("DIV");div.appendChild(props.dom_obj);div.id = this.winID;this.oContent = div;} else
this.oContent = $zej(this.winID);}
if (props.x < 1) props.x = 1;if (props.y < 1) props.y = 1;this.mx = 0;this.my = 0;this.mwidth = props.width;this.mheight = props.height;if (props.state) {this.state = props.state;} else {this.state = "F";}
if (this.state == "E") {this.oTable = $azzzl("div");this.azi();return;}
var navTitle = "";var minTitle = "";if (zoo_SHOW_NAV_TITLE) {for (x = 0;x < props.historyNav.length;x++) {var itm = props.historyNav[x];navTitle += "<a class=navTitle href='javascript:azqaaa.azzziaa(\"" + azzw(itm[0]) + "\",\"" + itm[1] + "\")'>" + itm[0] + "</a>";navTitle += "::";minTitle += itm[0] + "::";}
}
navTitle += this.mtitle;minTitle += this.mtitle;var template = new Zoo.template();if (this.canMinimize || JSWindow_ALWAYS_SHOW_MIN) {this.sTable = $azzzl("div");this.sTable.id = 'MIN_' + this.winID;template.azbaaaa("MINIMIZED_ITEM");template.azeaaaa("SKINPATH", ayaaaaa());template.azeaaaa("ID", this.winID);var smtit = this.mtitle;if (azzi(smtit)) smtit = "&nbsp;";template.azeaaaa("TITLE", smtit);this.sTable.innerHTML = template.value;this.sTable.title = minTitle;azzzzo(this.sTable, "min_item");azaaaaa.azqaa("Bubbles", "WIN" + this.winID, this.sTable);azzzwaa("MIN_" + this.winID + "_MAX", afa(this, "azoaaaa"));azzzwaa("MIN_" + this.winID + "_TEXT", afa(this, "azoaaaa"));azzzzfa("MIN_" + this.winID, afa(this, "aq"));azwa("MIN_" + this.winID, afa(this, "aeaa"));this.azzs("normal");}
this.boxID = 'WIN_' + this.winID;this.bTable = $azzzl("div");this.bTable.id = "WIN_" + this.winID + "_BODY";azzzzo(this.bTable, "mainBodyHolder");template.azbaaaa("WINDOW");template.azeaaaa("ID", this.winID);this.bTable.innerHTML = template.value;ZOO_BUBBLE_CONTAINER.appendChild(this.bTable);obj = $zej("WINHOOK_" + this.winID);obj.winID = this.winID;if (this.pane) obj.zid = this.pane.azzzb();obj.appendChild(this.oContent);var jswin = this;var subNode_count = 0;var pos = 0;var searchText = this.oContent.innerHTML;do {var loc = searchText.indexOf("arrow_right", pos);if (loc != -1) subNode_count++;pos = loc + 1;} while (loc != -1 && subNode_count < 15);var contentWidth = 0;var contentHeight = 0;if (this.oContent) {contentWidth = azlaaaa.getWidth(this.oContent);contentHeight = azlaaaa.getHeight(this.oContent);if (!aaaaa() && !contentWidth){contentWidth = 0;var childs = this.oContent.childNodes;for (x = 0;x < childs.length;x++) {if (childs[x].clientWidth) contentWidth += childs[x].clientWidth;}
}
}
if (subNode_count == 0 && contentWidth && contentHeight && JSWindow_AUTOSIZE_DOWN && !props.disableAutosize){var newWidth = contentWidth + 20;var newHeight = contentHeight + 20;if (newWidth < props.width) props.width = newWidth;if (newHeight < props.height) props.height = newHeight;}
if (props.width < JSWindow_BUBBLE_WIDTH_MIN) props.width = JSWindow_BUBBLE_WIDTH_MIN;if (props.height < JSWindow_BUBBLE_HEIGHT_MIN) props.height = JSWindow_BUBBLE_HEIGHT_MIN;var autoMaximize = (subNode_count >= 8 && JSWindow_AUTOSIZE_MAXIMIZE) || JSWindow_AUTO_MAXIMIZE;if (!autoMaximize && (contentWidth > props.width || contentHeight > props.height) && JSWindow_AUTOSIZE_MAXIMIZE && !props.disableAutosize) autoMaximize = true;var scrollxy = azzfaa();this.boxObj = new azsaaa({id: this.bTable.id, box: defaultSkinName, height: props.height, width: props.width, style: "window", position: "absolute", top: props.y + scrollxy[1], left: props.x + scrollxy[0], boxID: this.boxID, adjustLevel: props.adjustLevel, canMaximize: this.canMaximize, minWidth: JSWindow_BUBBLE_WIDTH_MIN, minHeight: JSWindow_BUBBLE_HEIGHT_MIN, autoFront: (this.state == "F") });var arr = azsaaa.azka(defaultSkinName);var boxBorderHeight = arr[0];var boxBorderWidth = arr[1];var boxCorner = azlaaaa.getWidth(this.azfaaa().aaa()) + props.x;var overflow = boxCorner - (azzzlaa() - 5 - DesktopX);if (overflow > 0) this.azfaaa().azzqaa("", props.x - overflow);this.boxObj.addEventListener("ak", afa(this, "azzo"));this.boxObj.addEventListener("awa azmaa", afa(this, "azzzzk"));this.boxObj.addEventListener("asaa azmaa", afa(this, "azvaaaa"));if (this.canMaximize && autoMaximize && this.state == "F") {this.boxObj.azm(true);}
azlaaaa.hide(this.azfaaa().aaa());this.azfaaa().aaa().jsWindow = this;this.saveX = aaaaaa(this.azfaaa().aaa());this.saveY = aaaaaaa(this.azfaaa().aaa());this.saveWidth = props.width;this.saveHeight = props.height;if (props.bubblelink) {this.bubblelink = props.bubblelink;this.bubbleid = props.bubbleid;this.bubblethumb = props.bubblethumb;}
var obj;obj = $zej("WIN_" + this.winID + "_CLOSE");if (this.canMinimize) this.boxObj.azcaaaa(azqaaa.azlaaa('MIN'), afa(this, "acaaa"), "Minimize");if ((this.pane) && (JSWindow_ALLOW_POPOUT)) this.boxObj.azcaaaa(azqaaa.azlaaa('POPOUT'), afa(this, "azi"), "Pop Out");if (this.canMaximize) this.boxObj.azcaaaa(azqaaa.azlaaa('MAX'), afa(this.boxObj, "azraaa"), "Toggle Maximize");if (JSWindow_ALLOW_OPTIONS && (this.pane || this.bubblelink)) this.boxObj.azcaaaa(azqaaa.azlaaa('OPTIONS'), afa(this, "azlaa"), "Options Menu");if (JSWindow_ALLOW_BACKBUTTONS && this.pane) {this.backControl = this.boxObj.azztaaa(azqaaa.azlaaa('BACK'),this.aziaa.azzzzf(this),"Back one page");azlaaaa.hide(this.backControl);}
this.boxObj.azcaaaa(azqaaa.azlaaa('CLOSE'), afa(this, "azua"), "Close");this.boxObj.azzzgaa(navTitle);_ZooActiveWindows.push(this);this.azfaaa().aaa().style.overflow = "hidden";var transition = (props.transition);if (this.state == 'M') azaaaaa.azgaaa("Bubbles", "WIN" + this.winID);else {if (JSWindow_ALWAYS_SHOW_MIN) azaaaaa.azgaaa("Bubbles", "WIN" + this.winID);azlaaaa.transition(this.azfaaa().aaa(),transition,this.oContent);if (this.state == "F") this.azzzzk();}
this.azfaaa().ayaaaa();azqaaa.dispatchEvent("azra", this);}
ai.ab("azqaaa", true, false);azqaaa._ICONS = {OPTIONS: "options", REFRESH: "refresh", MAX: "win_max", CLOSE: "close", POPOUT: "win_up", POPIN: "win_down", MIN: "dock",BACK:"back" };azqaaa.azlaaa = function(name) {return ayaaaaa() + 'icons/' + this._ICONS[name] + "." + JSWindow_ICON_EXT;}
azk.extend(azqaaa, azznaa.Publisher);azqaaa.azwaaaa = function() {if (window.azzj) {azzj.addEventListener("abaaaa agaaaaa", this.azzzzx.azzzzf(this));azzj.addEventListener("abaaaa azzzzm", this.azzzzx.azzzzf(this));}
azqaaa.frontWin = null;azaaaaa.aznaaaa("Workspace", "Cascade All Bubbles", afa(this, "aiaaaa"));azaaaaa.azgaaa("Workspace", "Cascade All Bubbles");var func = afa(this, "azzzu");azaaaaa.aznaaaa("Workspace", "Maximize All Bubbles", azzmaaa(func, true));azaaaaa.azgaaa("Workspace", "Maximize All Bubbles");azaaaaa.aznaaaa("Workspace", "Unmaximize All Bubbles", azzmaaa(func, false));func = afa(this, "azzp");azaaaaa.aznaaaa("Workspace", "Minimize All Bubbles", azzmaaa(func, false));azaaaaa.azgaaa("Workspace", "Minimize All Bubbles");azaaaaa.aznaaaa("Workspace", "Unminimize All Bubbles", azzmaaa(func, true));azaaaaa.aznaaaa("Workspace", "Close All Bubbles", afa(this, "alaaaa"));azaaaaa.azgaaa("Workspace", "Close All Bubbles");this.cntrlFirst = 1;}
azqaaa.aza = function() {var activeWins = _ZooActiveWindows;for (var x = 0;x < activeWins.length;x++) {var jswin = activeWins[x];if (jswin.azfaaa().azzzva()) {jswin.azfaaa().azm(false);jswin.azfaaa().azm(true);}
}
}
azqaaa.azzzu = function(maximize) {var activeWins = _ZooActiveWindows;for (var x = 0;x < activeWins.length;x++) {var jswin = activeWins[x];if (jswin.state != 'M') jswin.azfaaa().azm(maximize);}
if (maximize) {azaaaaa.azzta("Tools", "Maximize All Bubbles", true);azaaaaa.azgaaa("Tools", "Unmaximize All Bubbles");}
else {azaaaaa.azzta("Tools", "Unmaximize All Bubbles", true);azaaaaa.azgaaa("Tools", "Maximize All Bubbles");}
}
azqaaa.azzzp = function(win, dataid, tokenq) {}
azqaaa.aiaaaa = function() {var foreWindow;var x;var skippedCount = 0;var amt = JSWindow_CASCADE_OFFSET;var activeWins = _ZooActiveWindows;for (x = 0;x < activeWins.length;x++) {if (activeWins[x].state == 'F') {foreWindow = activeWins[x];}
}
for (x = 0;x < activeWins.length;x++) {var jswin = activeWins[x];if (jswin.state == 'M' || jswin == foreWindow) {skippedCount++;continue;}
jswin.ana('F', (x - skippedCount + 1) * amt, (x - skippedCount + 1) * amt, 500, 500);}
if (!foreWindow) {return;}
foreWindow.ana('F', (x - skippedCount + 1) * amt, (x - skippedCount + 1) * amt, 500, 500);}
azqaaa.azzziaa = function(title, token) {title = adaa(title);var current = ZooPane.azzzzt(token);if (current) current.apaaaa().azoaaaa();else
this.ajaaaa(title, token);}
azqaaa.ajaaaa = function(title, token, link, op, execer) {var obj = this;var wins = token + "!" + azqaaa.azzha();if (op == 'X') azqaaa.azzfaaa(wins, token, title, execer);else
azqaaa.azzfaaa(wins, token, title);if (op == 'C') {obj = document.lastClickedElement;while (!obj.jsWindow && obj.parentNode) obj = obj.parentNode;if ((obj.jsWindow) && (JSWindow_AUTO_MINIMIZE)) obj.jsWindow.acaaa();}
}
azqaaa.azzzzg = function(divid) {var obj = $zej("WIN_" + divid);if (obj) return obj.jsWindow;}
azqaaa.azoaaa = function(divid, msg, status, winid) {if (!status) {status = "";}
if (status.indexOf('nomsg') < 0 && msg) {ahaaaaa(msg);}
var ctWindow = this.azzzzg(divid);if (ctWindow) {ctWindow.azua();}
if (status.indexOf('noreload') < 0) {if (winid) {azqaaa.azzzqa(winid);} else {azqaaa.azzzzx();}
}
}
azqaaa.azqa = function(num, padding) {if (!padding) {padding = "";}
if (num < 0) {return null;} else if (num < 26) {return String.fromCharCode(65 + num) + padding;} else if (num < 702) {return String.fromCharCode(64 + (num / 26), 65 + (num % 26));}
return null;}
azqaaa.awaaaa = function() {var winID = "";var valid = false;while (!valid) {this.azd();winID = azqaaa.azqa(this.winCounter, "_");if (!this.azzzzg(winID)) valid = true;}
return winID;}
azqaaa.azba = function(opts) {var allowed = {top: 0, left: 0, width: 0, height: 0 };if (!opts) opts = new Object();if (!aja(allowed, opts)) return;var width = opts.width;var height = opts.height;var dx = opts.left;var dy = opts.top;var winID = azqaaa.awaaaa();if (STATICWIN_POSX) dx = STATICWIN_POSX;else if (!dx) dx = azqaaa.ataaaaa(this.winCounter);if (STATICWIN_POSY) dy = STATICWIN_POSY;else if (!dy) dy = azqaaa.ataaaaa(this.winCounter);if (!width) if (azqaaa.frontWin != null && azqaaa.frontWin.azfaaa().azxaa() > JSWindow_BUBBLE_WIDTH_MIN) width = azqaaa.frontWin.azfaaa().azxaa();else
width = (JSWindow_DEFAULT_WIN_WIDTH < 1) ? azzzlaa() * JSWindow_DEFAULT_WIN_WIDTH : JSWindow_DEFAULT_WIN_WIDTH;if (!height) if (azqaaa.frontWin != null && azqaaa.frontWin.azfaaa().aztaaaa() > JSWindow_BUBBLE_HEIGHT_MIN) height = azqaaa.frontWin.azfaaa().aztaaaa();else
height = (JSWindow_DEFAULT_WIN_HEIGHT < 1) ? azzzxa() * JSWindow_DEFAULT_WIN_HEIGHT : JSWindow_DEFAULT_WIN_HEIGHT;return {top: dy, left: dx, height: height, width: width };}
azqaaa.azzha = function(opts) {var allowed = {windowMode: 0, top: 0, left: 0, width: 0, height: 0 };if (!opts) opts = new Object();if (!aja(allowed, opts)) return;var specs = this.azba({top: opts.top, left: opts.left, width: opts.width, height: opts.height });var winID = azqaaa.azqa(this.winCounter, "_");var windowMode = opts.windowMode;if (!windowMode) {windowMode = "F";}
var dx = specs.left;var dy = specs.top;var width = specs.width;var height = specs.height;var hexValw = azt(azzzwa(dx), 3);var hexValh = azt(azzzwa(dy), 3);width = azt(azzzwa(width), 3);height = azt(azzzwa(height), 3);return winID + windowMode + hexValw + hexValh + width + height;}
azqaaa.ataaaaa = function(wcnt) {return (wcnt % 5) * 20;}
azqaaa.azd = function() {if (!this.winCounter) this.winCounter = 0;if (this.winCounter > 702) this.winCounter = 0;else
this.winCounter++;}
azqaaa.prototype.ah = function(msg) {this.boxObj.ah(msg);}
azqaaa.prototype.azzlaa = function() {return this.mtitle;}
azqaaa.prototype.azlaa = function(evt) {if (!evt) evt = event;var bid = this.pane.azzzb();if (evt.ctrlKey) {window.open(Zoo.broker.azr(bid), "_blank");return;}
var top = evt.clientY;var left = evt.clientX - DesktopX;var menu = new azaaaa("Options", ZOO_BUBBLE_CONTAINER, false);var func = "";var blink;if (this.bubblelink) {bid = this.bubbleid + "." + azzx();var bl = this.bubblelink.replace(/'/g, "\\'");var text = aqaaa(this.azzlaa()) + " ";if (this.bubblethumb) {text = this.bubblethumb;}
blink = "<a href=\\\"#javascript:" + bl + "\\\">" + text + "</a>";func = 'azqaaa.ahaaaa("' + bid + '","' + blink + '")';} else {var addStr = "zoo_make_bubble(\"" + bid + "\",10,10,410,450)";blink = "<a href=\"#javascript:" + addStr + "\">" + aqaaa(this.pane.azzlaa())+"</a>";var bembed = "<div class=zoo><div class=\\'mainBody\\' zoo_token=\\'" + bid + "\\' name=\\'zoo_embed\\' id=\\'zoo_embed\\' style=\\'width:420px; height:450px; background-color:#000000; color:#ffffff;\\'></div></div>";func = "azqaaa.ahaaaa('" + bid + "','" + blink + "','" + bembed + "')";}
if (this.pane) menu.aznaaaa("Refresh", this.pane.ajaaa.azzzzf(this.pane));menu.aznaaaa("Bubble Info", anaaaaa(func));menu.azgaaa({'left': left, 'top': top });}
function zoo_doAlert(bid, blink, bembed) {azqaaa.ahaaaa(bid, blink, bembed);}
azqaaa.ahaaaa = function(bid, blink, bembed) {var tdiv = $azzzl("TABLE");tdiv.setAttribute('border', 0);tdiv.setAttribute('cellPadding', 4);tdiv.setAttribute('cellSpacing', 4);var tbody = $azzzl('TBODY');tdiv.appendChild(tbody);var trow = $azzzl("TR");tbody.appendChild(trow);var td = $azzzl("TD");if (bid != null) {td.innerHTML = "BubbleID ";trow.appendChild(td);td = $azzzl("TD");td.innerHTML = "<input type=text value='"+bid+"'>";trow.appendChild(td);trow = $azzzl("TR");tbody.appendChild(trow);td = $azzzl("TD");}
td.innerHTML = "Link";trow.appendChild(td);td = $azzzl("TD");var tinput = $azzzl("INPUT");tinput.id = "zqs";tinput.onclick = function() {$zej('zqs').focus();$zej('zqs').select();};tinput.value = blink;td.appendChild(tinput);trow.appendChild(td);if (bembed) {trow = $azzzl("TR");tbody.appendChild(trow);td = $azzzl("TD");td.innerHTML = "Embed";trow.appendChild(td);td = $azzzl("TD");tinput = $azzzl("INPUT");tinput.id = "zes";tinput.onclick = function() {$zej('zes').focus();$zej('zes').select();};tinput.value = bembed;td.appendChild(tinput);trow.appendChild(td);td = $azzzl("TD");td.innerHTML = '<table><tr><td rowspan=2 id=zoo_swatch style="border: solid 1px #000000; width: 50px; height: 25px; color: #ffffff; background-color: #222222; font-family:Arial, Helvetica; font-size: 11px;"><center>Color</center></td><td><img style="border: solid 1px #000000; width: 10px; height: 10px; background-color:#ffffff" src="images/spacer.gif" label="ffffff" onclick="zoo_cp_open(this)" onmouseover="zoo_cp_cancelclose()" onmouseout="zoo_cp_closesoon()" ID="zoo_cp_fgcolour" NAME="zoo_cp_fgcolour"></td></tr><tr><td><img style="border: solid 1px #000000; width: 10px; height: 10px; background-color:#000000" src="images/spacer.gif" label="000000" onclick="zoo_cp_open(this)" onmouseover="zoo_cp_cancelclose()" onmouseout="zoo_cp_closesoon()" ID="zoo_cp_bgcolour" NAME="zoo_cp_bgcolour"></td></tr></table>';trow.appendChild(td);}
new azqaaa({dom_obj: tdiv, divID: this.awaaaa(), width: 300, height: 200, title: "Bubble Info", canMinimize: JSWindow_ALLOW_MINIMIZE, state: "F", canMaximize: false });}
azqaaa.aqaa = function(id) {var object = $zej(id);object.jsWindow.acaaa();}
azqaaa.azzzzx = function() {var sigs = azqaaa.ao(azqaaa.azzzzoa());azqaaa.alaaaa();setTimeout(azqaaa.azzraaa.azzzzf(azqaaa,sigs),250);}
azqaaa.prototype.auaaaa = function() {return this.winID;}
azqaaa.azzzqa = function(winid) {var win = this.azzzzg(winid);var sig = win.azzra();win.azua();var func = afa(this, "azsa");func = azzmaaa(func, sig);setTimeout(func, 250);}
azqaaa.azzzf = function(zimg) {if (!zimg) return;var myImage = new Image();var zsrc = zimg.src;var _ext;if (zsrc.indexOf("_thumb") > 0) {_ext = zsrc.substring(zsrc.lastIndexOf("."));zsrc = zsrc.substring(0, zsrc.indexOf("_thumb")) + _ext;}
if (zsrc.indexOf("_sig") > 0) {_ext = zsrc.substring(zsrc.lastIndexOf("."));zsrc = zsrc.substring(0, zsrc.indexOf("_sig")) + _ext;}
myImage.src = zsrc;var divid = zimg.src;var ctView = $zej(divid);if (!ctView) {var cdiv = $azzzl("div");cdiv.id = divid;zsrc = zimg.src;if (zsrc.indexOf("_thumb") > 0) {_ext = zsrc.substring(zsrc.lastIndexOf("."));zsrc = zsrc.substring(0, zsrc.indexOf("_thumb")) + _ext;}
if (zsrc.indexOf("_sig") > 0) {_ext = zsrc.substring(zsrc.lastIndexOf("."));zsrc = zsrc.substring(0, zsrc.indexOf("_sig")) + _ext;}
cdiv.innerHTML = "<center><img src='" + zsrc + "'></center>";document.body.appendChild(cdiv);var zw = myImage.width;var zh = myImage.height;if (zw < 250) {zw = 250;}
if (zh < 250) {zh = 250;}
var xpos = ((azzzlaa() - zw) / 2) - 36;var ypos = ((azzzxa() - zh) / 2) - 18;new azqaaa({title: "Zoom", divID: divid, x: xpos, y: ypos, width: zw + 36, height: zh + 18, canMinimize: JSWindow_ALLOW_MINIMIZE, state: "F", canMaximize: false });} else {var ctWindow = this.azzzzg(divid);if (ctWindow) ctWindow.azfaaa().ayaaaa();}
}
zoo_open_nodewindow = function(zid, zimg, ztitle, zdescr, _width, _height) {azqaaa.abaa(zid, zimg, ztitle, zdescr, _width, _height);}
azqaaa.abaa = function(zid, zimg, ztitle, zdescr, _noMaximize, _width, _height) {if (!zimg) return;var myImage = new Image();if (typeof zimg == 'string') {myImage.src = zimg;} else {myImage.src = zimg.src;}
var divid = zid;var ctView = $zej(divid);if (!ctView) {var cdiv = $azzzl("div");cdiv.id = divid;if (window.azja) azja.azzzzd("hit image", zid);var origText = "";if (zoo_SHOW_ORIGINAL_LINK) {origText = "<a target=_new href='" + azma(myImage.src, '_orig') + "'>Click here to view the original size photo</a>";}
cdiv.innerHTML = "<center><img class=album style='cursor: default;' src='" + myImage.src + "'><br><div class='albumzoom'>" + zdescr + "</div>" + origText + "</center>";document.body.appendChild(cdiv);azqaaa.azd();ztitle = ztitle.replace(/'/g, "");zdescr = zdescr.replace(/'/g, "");var w = myImage.width + 25;if (w < 350) w = 350;if (_width) w = _width;var h = myImage.height + 80;if (h < 350) h = 350;if (_height) h = _height;new azqaaa({title: " " + ztitle, divID: divid, x: this.ataaaaa(this.winCounter), y: this.ataaaaa(this.winCounter), width: w, height: h, canMinimize: JSWindow_ALLOW_MINIMIZE, state: "F", canMaximize: !_noMaximize, bubbleid: zid, bubblelink: "zoo_open_nodewindow('" + zid + "." + azzx() + "','" + myImage.src + "','" + aqaaa(aqaaa(ztitle)) + "','" + zdescr + "')", bubblethumb: "<img src='" + azma(myImage.src) + "'>"
});} else {var ctWindow = this.azzzzg(divid);if (ctWindow) ctWindow.azfaaa().ayaaaa();}
}
zoo_openWindow = function(link, divid, title, _width, _height, _x, _y) {azqaaa.azzdaa(link, divid, title, _width, _height, _x, _y);}
azqaaa.azzdaa = function(link, divid, title, _width, _height, _x, _y) {if (link.indexOf("http://") == -1)link = absPath + link;var ctView = $zej(divid);if (!ctView) {azzzzzb("iframe",link);var cdiv = $azzzl("div");cdiv.style.height = "100%";cdiv.style.width = "100%";var qdivid = "";if (divid) {qdivid = "editor_winid=" + divid;if (link.indexOf("?") == -1) qdivid = "?" + qdivid;else
qdivid = "&" + qdivid;}
else
divid = "W$" + GLOBAL_UNIQ++;cdiv.id = divid;if (!_width || (typeof(_width)!='number' && typeof(_width)!='string')) {_width = JSWindow_INTERNAL_WINDOW_WIDTH;}
if (!_height || (typeof(_height)!='number' && typeof(_width)!='string')) {_height = JSWindow_INTERNAL_WINDOW_HEIGHT;}
if (!_x) _x = 5;else if (_x == -1) _x = Zoo.monitors.getMouseX();if (!_y) _y = 5;else if (_y == -1) _y = Zoo.monitors.getMouseY();cdiv.innerHTML = "<iframe width='100%' height='100%' style='width:100%;height:100%' frameborder=0 src='" + link + qdivid + "' border=0></iframe>";document.body.appendChild(cdiv);new azqaaa({title: title, divID: divid, x: _x, y: _y, width: _width + 30, height: _height, canMinimize: JSWindow_ALLOW_MINIMIZE, canMaximize: 1 });}
else {var ctWindow = this.azzzzg(divid);if (ctWindow) ctWindow.boxObj.ayaaaa();}
}
azqaaa.adaaaa = function(tokenID) {for (var x = 0;x < _ZooActiveWindows.length;x++) {if (_ZooActiveWindows[x].pane && _ZooActiveWindows[x].pane.azdaa() == tokenID) _ZooActiveWindows[x].acaaa();}
}
azqaaa.azua = function(tokenID) {for (var x = 0;x < _ZooActiveWindows.length;x++) {if (_ZooActiveWindows[x].pane && _ZooActiveWindows[x].pane.azdaa() == tokenID) _ZooActiveWindows[x].azua();}
}
azqaaa.azzp = function(doUnminimize) {for (var x = 0;x < _ZooActiveWindows.length;x++) {if (!doUnminimize && _ZooActiveWindows[x].get_state() != "M") _ZooActiveWindows[x].acaaa();else if (doUnminimize && _ZooActiveWindows[x].get_state() == "M") _ZooActiveWindows[x].azoaaaa();}
if (doUnminimize) {azaaaaa.azzta("Tools", "Unminimize All Bubbles", true);azaaaaa.azgaaa("Tools", "Minimize All Bubbles");}
else {azaaaaa.azzta("Tools", "Minimize All Bubbles", true);azaaaaa.azgaaa("Tools", "Unminimize All Bubbles");}
}
azqaaa.alaaaa = function() {var skip = 0;while (_ZooActiveWindows.length > skip) {var jswin = _ZooActiveWindows[skip];if (this.hideOnClose)skip++;jswin.azua();}
}
azqaaa.azuaaaa = function(paneContainerID) {var s = _ZooActiveWindows;for (var i = 0;i < s.length;i++) {var v = s[i];if (v.azu() && v.azu().azzja() == paneContainerID) return s[i];}
return null;}
azqaaa.azzfaaa = function(wins, dataid, title, execAtComplete, historyNav, dataRefreshOnly, isPop) {azzba("jswindow.ax " + wins + "::" + dataid + " " + title);var connector = new azpa(wins, title, false, execAtComplete, historyNav, dataRefreshOnly);var type;var isUser = (dataid.charAt(0) == dataid.charAt(0).toLowerCase());switch (dataid.charAt(0).toLowerCase()) {case "x":
type = "category proxy";break;case "y":
type = "comments";break;case "s":
type = "search";break;case "o":
type = "open search";break;case "t":
type = "token";break;case "c":
type = "category";break;default:
type = "unknown type";break;}
if ((dataid.charAt(0) == 'X') || (dataid.charAt(0) == 'x')) {if (isPop) connector.ahaaa('catproxy?d=' + dataid + "&is_pop=1");else
connector.ahaaa('catproxy?' + dataid);}
else if ((dataid.charAt(0) == 'Y') || (dataid.charAt(0) == 'y')) connector.ahaaa('commentfeed?yid=' + dataid);else if (dataid.charAt(0) == 'S') {term = dataid.substring(1);connector.ahaaa('zsearch?q=' + azzw(term) + '&z=' + SEARCH_SOURCES);} else if (dataid.charAt(0) == 'O') {term = dataid.substring(1);connector.ahaaa('zsearch?q=' + azzw(term) + '&z=' + SEARCH_SOURCES + "&action=full");} else if (dataid.charAt(0) == '@') {connector.ahaaa(dataid.substring(1));} else {connector.ahaaa('token.jsp?q=' + dataid);}
if (window.azja) azja.azzzzd(type, dataid);return connector.reqID;}
azqaaa.prototype.azu = function() {return this.pane;}
azqaaa.prototype.azzf = function(zid) {if (zid == null) return;if (this.azu().azzzb() == zid) {this.azua();} else {this.azu().azzzzla(zid);}
}
azqaaa.prototype.azfaaa = function() {return this.boxObj;}
azqaaa.prototype.azzo = function() {this.saveX = this.azfaaa().asaaaaa();this.saveY = this.azfaaa().azzzoa();this.saveWidth = this.azfaaa().azxaa();this.saveHeight = this.azfaaa().aztaaaa();azqaaa.dispatchEvent("ak", this);}
azqaaa.prototype.azzzzk = function() {this.state = "F";azqaaa.dispatchEvent("awa azmaa", this);azqaaa.frontWin = this;this.aeaa();}
azqaaa.prototype.azvaaaa = function() {if (this.state != "M") this.state = "B";azqaaa.dispatchEvent("asaa azmaa", this);if (this == azqaaa.frontWin) azqaaa.frontWin = null;this.aeaa();}
azqaaa.prototype.azzra = function() {if (this.azu()) {if ( (this.azu().azzzb().charAt(0) == '@') ||
(! this.azu().azzzzzd().axa())) return "";var w = azt(azzzwa(this.saveWidth), 3);var h = azt(azzzwa(this.saveHeight), 3);var x = azt(azzzwa(this.saveX), 3);var y = azt(azzzwa(this.saveY), 3);var winsig = this.azu().azzzb() + "!" + this.winID + this.state + x + y + w + h;var viewIDs = this.azjaa();for (var i = 0;i < viewIDs.length;i++) {if (viewIDs[i] != this.azu().azzzb()) winsig += "&" + viewIDs[i] + "!" + this.winID + "N";}
azzba("azzra "+winsig);return winsig;}
else
return "";}
azqaaa.prototype.azzca = function(vid) {if (!this.azu()) return;if (this.azu().azzzzga() == vid) return this.azu();var views = this.azjaa(null, true);for (var i = 0;i < views.length;i++) {if (views[i].azzzzga() == vid) return views[i];}
}
azqaaa.ao = function(sigString) {if (!sigString) return new Array();else {var ret = new Array();var arr = sigString.split("&");for (var x = 0;x < arr.length;x++) {if (arr[x].substr(arr[x].length - 1, 1) == 'N') ret[ret.length - 1] += "&" + arr[x];else
ret.push(arr[x]);}
return ret;}
}
azqaaa.azzzxaa = function() {return azqaaa.frontWin;}
azqaaa.azzzzoa = function() {var s = _ZooActiveWindows;var result = "";var seperator = "";for (var i = 0;i < s.length;i++) {var jsWin = s[i];if (!jsWin.azu()) continue;var sig = jsWin.azzra();if ((sig) && (sig.length > 1)) {result += seperator + sig;seperator = "&";}
azzba("azzzzoa "+sig);}
return result;}
azqaaa.azzraaa = function(arr) {if (arr && arr.length>0 && window.azza) {azza.azgaaaa(false);}
for (var x = 0;x < arr.length;x++) {this.azsa(arr[x]);}
}
azqaaa.azsa = function(sig) {var historyFunc;if (sig.indexOf("&") != -1) {var ret = sig.split("&");sig = ret.shift();historyFunc = this.azsa.azzzzf(this,ret.join("&"));} else {if (window.azza) historyFunc = azza.azgaaaa.azzzzf(azza,true);}
var newparts = sig.split("!");var zid = newparts[0];var newwin = newparts[1];var winParams = {};winParams.divID = newwin.substring(0, 2);winParams.state = newwin.substring(2, 3);var win = this.azzzzg(winParams.divID);azzba("loadwinSignature winid="+winParams.divID+" zid="+zid+" win="+win);if (newwin.length >= 15) {winParams.x = parseInt(newwin.substring(3, 6), 16);winParams.y = parseInt(newwin.substring(6, 9), 16);winParams.width = parseInt(newwin.substring(9, 12), 16);winParams.height = parseInt(newwin.substring(12, 15), 16);}
if (win) {win.ana(winParams.state,winParams.x,winParams.y,winParams.width,winParams.height);if (win.azu().azzzia(zid,true)==null) {var item = win.azu().azzzzzk(zid);if (item) {var parentPane = item.azzoaa();azzba("loadWinSignature item=" + item.azoaa());Zoo.broker.azdaaaa(zid, parentPane, parentPane.azzy(item), null, historyFunc);parentPane.azzq(item);}
} else {}
} else {Zoo.broker.afaaaaa(zid,historyFunc,winParams);}
}
azqaaa.prototype.azjaa = function(activeDoc, returnObjects) {var result = new Array();if (activeDoc == null) {if (this.popout) {try {activeDoc = this.popout.document;} catch (e) {return result;}
}
else
activeDoc = document;}
var s = activeDoc.getElementsByTagName("DIV");for (var i = 0;i < s.length;i++) {if (s[i].id.indexOf('_zoo_children') > 0) {var v = s[i];if (v.winID == this.winID) {if (returnObjects) result.push(v);else
result.push(v.zid);}
}
}
return result;}
azqaaa.prototype.azziaaa = function() {alert("Not supported");return;}
azqaaa.prototype.azzzzka = function() {if (this.popout) {this.azziaaa();}
}
azqaaa.prototype.azi = function() {alert("Not supported");return;}
azqaaa.prototype.ar = function(evt) {if (!this.azu() || !this.azu().azzzzze()) return;var menu = this.azu().azzzzze();if (menu.an()) return;var e = window.event ? window.event : evt;var left = 0;var top = 0;top = (e.clientY - DesktopY);top -= menu.azg() / 2;left = -10;var overflow = azzzxa() - (top + menu.azg());overflow -= 10;if (overflow < 0) top += overflow;menu.azgaaa({'left': left, 'top': top });}
azqaaa.prototype.acaaa = function() {var obj = this.azfaaa().aaa();obj.style.overflow = "hidden";this.saveX = aaaaaa(this.azfaaa().aaa());this.saveY = aaaaaaa(this.azfaaa().aaa());this.saveWidth = azlaaaa.getWidth(this.bTable);this.saveHeight = azlaaaa.getHeight(this.bTable);this.state = "M";azlaaaa.hide(this.azfaaa().aaa());this.azzzua();if (!JSWindow_ALWAYS_SHOW_MIN) azaaaaa.azgaaa("Bubbles", "WIN" + this.winID);}
azqaaa.prototype.aq = function(evt) {this.ar(evt);this.azzs("hover");}
azqaaa.prototype.azzs = function(state){var postfix = "";if (state == 'hover') postfix = "_over";else if (state == "active") postfix = "_active";azzk("MIN_" + this.winID + "_TEXT", ayaaaaa() + "images/min_bg" + postfix + ".gif");azzka("MIN_" + this.winID + "_MAX", ayaaaaa() + "images/minl_edge" + postfix + ".gif");azzka("MIN_" + this.winID + "_EXPAND", ayaaaaa() + "images/minr_edge" + postfix + ".gif");}
azqaaa.prototype.aeaa = function() {var active = (this.state == "F") ? "_active" : "";if (!$zej("MIN_" + this.winID + "_TEXT") || !$zej("MIN_" + this.winID + "_MAX")) return;if (this.state == "F") this.azzs("active");else
this.azzs("normal");if (this.azu()) {return;var menu = this.azu().azzzzze();if (menu) menu.azzta();}
}
azqaaa.prototype.azzta = function() {if (this.hidden) return;azlaaaa.hide(this.azfaaa().aaa());if (this.canMinimize) azaaaaa.azzta("Bubbles", "WIN" + this.winID);azzzzi.remove(_ZooActiveWindows, this);this.hidden = true;}
azqaaa.prototype.azgaaa = function() {if (!this.hidden) return;if (this.state != 'M') azlaaaa.show(this.azfaaa().aaa());if (this.canMinimize) if (JSWindow_ALWAYS_SHOW_MIN || this.state == 'M') azaaaaa.azgaaa("Bubbles", "WIN" + this.winID);_ZooActiveWindows.push(this);this.hidden = false;}
azqaaa.prototype.azzzua = function() {azlaaaa.hide(this.azfaaa().aaa());azqaaa.dispatchEvent("azzzd", this);}
azqaaa.prototype.azoaaaa = function() {azlaaaa.show(this.azfaaa().aaa());if (this.canMinimize) {if (!JSWindow_ALWAYS_SHOW_MIN) azaaaaa.azzta("Bubbles", "WIN" + this.winID);}
var isMinimized = (this.state == 'M');this.azfaaa().ayaaaa();if (isMinimized) {azlaaaa.show(this.azfaaa().aaa());this.azzzzna();}
this.state = "F";}
azqaaa.prototype.get_state = function() {return this.state;}
azqaaa.prototype.azzzzna = function() {azqaaa.dispatchEvent("ajaaaaa", this);}
azqaaa.prototype.ana = function(_state, _x, _y, _w, _h) {this.state = _state;this.azfaaa().azzqaa(_y, _x);this.azfaaa().azzza(_h, _w);if (this.state == 'M') this.acaaa();else {azlaaaa.show(this.azfaaa().aaa());if (!JSWindow_ALWAYS_SHOW_MIN) azaaaaa.azzta("Bubbles", "WIN" + this.winID);if (this.state == 'F') this.azfaaa().ayaaaa();}
}
azqaaa.prototype.azzzzzf = function(_h) {this.azfaaa().azzzzzf(_h);}
azqaaa.azhaa = function(isForward) {if (this.cntrlFirst) {this.nextArray = new Array();var highest;var highestOne;var ceiling = azsaaa.frontIndex + 1;do {highest = 0;highestOne = 0;for (var x = 0;x < _ZooActiveWindows.length;x++) {if (_ZooActiveWindows[x].state != 'M' && _ZooActiveWindows[x].azfaaa().azzaaaa() < ceiling && (!highest || highest < _ZooActiveWindows[x].azfaaa().azzaaaa())) {highest = _ZooActiveWindows[x].azfaaa().azzaaaa();highestOne = _ZooActiveWindows[x].azfaaa();}
}
ceiling = highest;if (highestOne) this.nextArray.push(highestOne);} while (highestOne);this.nextPos = 0;this.cntrlFirst = 0;}
if (!this.nextArray.length) return;if (isForward) this.nextPos++;else
this.nextPos--;if (this.nextPos >= this.nextArray.length) this.nextPos = 0;if (this.nextPos < 0) this.nextPos = this.nextArray.length - 1;this.nextArray[this.nextPos].ayaaaa();}
azqaaa.prototype.azua = function() {if (this.hideOnClose) {this.azzta();return;}
this.azf();}
azqaaa.prototype.azf = function() {var x;if (this.active_queries) {for (x = 0;x < this.active_queries.length;x++) Zoo.network.azzvaaa(this.active_queries[x]);}
if (this.popout != null) {this.popout.close();this.popout = null;}
if (this.pane) azzzzzb("close",this.pane.azzzb());if (this.azu()) {var menu = this.azu().azzzzze();if (menu) menu.azzta();this.pane = null;}
azzzzi.remove(_ZooActiveWindows, this);azzzc(this.oContent);azzzc(this.azfaaa().aaa());this.oContent.parentNode.removeChild(this.oContent);this.azfaaa().aaa().parentNode.removeChild(this.azfaaa().aaa());if (this.sTable) azaaaaa.azzzzc("Bubbles", "WIN" + this.winID);azqaaa.dispatchEvent("araaa", this);var highest;var makeFront;for (x = 0;x < _ZooActiveWindows.length;x++) {if (_ZooActiveWindows[x].state != 'M' && (!highest || highest < _ZooActiveWindows[x].azfaaa().azzaaaa())) {highest = _ZooActiveWindows[x].azfaaa().azzaaaa();makeFront = _ZooActiveWindows[x].azfaaa();}
}
if (makeFront) makeFront.ayaaaa();}
azqaaa.prototype.aziaa = function() {if (this.backHistory && this.backHistory.length>0) {var x = this.backHistory.pop();this.forwardHistory.push(x);this.backForwardButton = true;Zoo.broker.azdaaaa(x, null, "WINHOOK_"+this.winID);}
}
azqaaa.prototype.azzzzpa = function() {if (this.forwardHistory && this.forwardHistory.length>0) {var x = this.forwardHistory.pop();this.backHistory.push(x);this.backForwardButton = true;Zoo.broker.azdaaaa(x, null, "WINHOOK_"+this.winID);}
}
azqaaa.prototype.azzwaa = function(_pane,transition) {if (!this.pane) return;if (this.pane.azzzb()!=_pane.azzzb()) {if (this.backForwardButton) {this.backForwardButton=false;} else {var lastHistory = null;if (this.backHistory.length>0) lastHistory = this.backHistory[this.backHistory.length-1];if (lastHistory!=this.pane.azzzb()) this.backHistory.push(this.pane.azzzb());this.forwardHistory = new Array();}
}
if (this.backHistory.length>0) azlaaaa.show(this.backControl);else
azlaaaa.hide(this.backControl);this.pane = _pane;this.pane.af(this.winID,this);this.pane.araa("WINHOOK_"+this.winID);var _div = $azzzl("div");_div.className = 'boxCont';_div.style.position="absolute";var x = aaaaaa(this.oContent);var w = azlaaaa.getWidth(this.oContent);var y = aaaaaaa(this.oContent);var h = azlaaaa.getHeight(this.oContent);_div.style.left =x+"px";_div.style.top = y+"px";_div.style.width = w+"px";_div.style.height = h+"px";_div.style.zIndex = Zoo.box._frontIndex+100;var content = this.pane.azzzzzh();_div.appendChild(content);ZOO_BUBBLE_CONTAINER.appendChild(_div);azlaaaa.transition(_div,transition,content,this.azzpaaa.azzzzf(this,_div));}
azqaaa.prototype.azzpaaa = function(_div) {var oldContent = this.oContent;this.oContent = _div.firstChild;azzzc(oldContent);var obj = $zej("WINHOOK_" + this.winID);while (obj.childNodes.length) obj.removeChild(obj.firstChild);obj.appendChild(this.oContent);ZOO_BUBBLE_CONTAINER.removeChild(_div);};Zoo.broker = function() {};var SID_NOT_FOUND="not found";var NOCACHE=11111111;azaa("RESOLVER_URL",absPath+"responderlookup?title=");azaa("ZOO_DEFAULT_SEARCH_SID",".localsearch");Zoo.broker.alaaa = function(sid, url) {if (!this._sids) this._sids = {};this._sids[sid] = url;};Zoo.broker.alaaa("local",absPath+"userresponder?q=[ZID]");Zoo.broker.alaaa('localsearch', absPath+"usersearch?q=[ZID]");Zoo.broker.azzva = function(sid,func) {var result = "";azzba("resolving sid="+sid);if (!this._sids) this._sids={};if (this._sids[sid]) result = this._sids[sid];else
Zoo.network.azzzzda(RESOLVER_URL+sid, "", this.azmaaa.azzzzf(this, sid,func));return result;};Zoo.broker.azmaaa = function(sid,func,req) {azzba("azmaaa sid="+sid);var channel = req.responseXML.getElementsByTagName("zoowee")[0];var resp = channel.getElementsByTagName("responder")[0];var url = '';if (resp) url = getNodeValue(resp);if (!url) url = SID_NOT_FOUND;this.alaaa(sid,url);if (func) func();azzba("azmaaa "+sid+"="+url);};Zoo.broker.azzr = function(url) {var template = new Zoo.template();template.azzsaaa(url);var browser = "browser_";browser += Zoo.utils.is_IE() ? "IE" : "FIREFOX";template.azeaaaa("ABSPATH", Zoo.utils.abs_path(), "OS", "windows", "TARGET", browser);var x;for (x = 1;x < arguments.length;x += 2) template.azeaaaa(arguments[x], arguments[x + 1]);return template.value;};Zoo.broker.azr = function(zid,func) {azzba("azr "+zid);if (zid.charAt(0)=='@')if (zid.indexOf("http://")<0) return absPath+zid.substr(1);else
return zid.substr(1);var parts = $azzzpaa(zid.split("."));var sid = parts.pop();var p_zid = parts.join(".");var url = this.azzva(sid,func);if (!url) return "";if (url==SID_NOT_FOUND) return SID_NOT_FOUND;url = this.azzr(url, "ZID", p_zid);return url;};Zoo.broker.pendingRequests = [];Zoo.broker.afaaaaa = function(zid, history_nav, JSWindow_params, title,secondTry) {if (!secondTry) azzzzzb("hit new",zid);azzba("Getting new bubble zid="+zid);if (!zid) return;if (!JSWindow_params) JSWindow_params = {};if (zid.charAt(0)=='@') {return Zoo.network.azzzzda(ac(zid.substring(1)), "", this.axaa.azzzzf(this, zid, history_nav, JSWindow_params, title));}
func = (secondTry) ? null : this.afaaaaa.azzzzf(this,zid,history_nav,JSWindow_params,title,true);var url = this.azr(zid,func);if (!url) {if (secondTry) alert("Unable to resolve URL for zid "+zid);return;}
if (url==SID_NOT_FOUND) {azzba("Sid not found "+zid);this.axaa(zid,history_nav,JSWindow_params,title,"Could not resolve source for content :: "+zid);return;}
return Zoo.network.azzzzda(ac(url), "", this.axaa.azzzzf(this, zid, history_nav, JSWindow_params, title));};Zoo.broker.axaa = function(zid, history_nav, JSWindow_params, title, req) {var branch = new Zoo.branch();branch.azzzgaa(title);branch.azyaaa(zid);if (typeof(req)=="string") {branch.azzzgaa("No results.");branch.azb(req);} else {if (req.responseXML.childNodes[0].nodeName == "zoowee" || req.responseXML.childNodes[0].nodeName == "xml" && req.responseXML.childNodes[1].nodeName == "zoowee") branch.azzzzva(req.responseXML);else
branch.azzznaa(req.responseXML);}
if (branch.azzlaa()) JSWindow_params.title = branch.azzlaa();if (! JSWindow_params.divID) JSWindow_params.divID = azqaaa.awaaaa();var view_type = branch.azzia("view_type");var view = ZooPane.araaaaa(view_type, branch);var transition = branch.azzia("transition");if (! azzi(transition)) {var trans = transition.split(" ");JSWindow_params.transition = trans;}
if (branch.azxaa()) JSWindow_params.width = branch.azxaa();if (branch.aztaaaa()) JSWindow_params.height = branch.aztaaaa();JSWindow_params.pane = view;new azqaaa(JSWindow_params);if (history_nav!=null && typeof(history_nav) == "function") history_nav();};Zoo.broker.pendingRequest = false;Zoo.broker.azdaaaa = function(zid, parent_pane, id, title,history_nav,secondTry) {if (!secondTry) azzzzzb("hit current",zid);azzba("Getting current bubble zid="+zid+" id="+id);if (!zid) return;func = (secondTry) ? null : this.azdaaaa.azzzzf(this,zid,parent_pane,id,title,history_nav,true);var url = this.azr(zid,func);if (!url) {if (secondTry) alert("Unable to resolve URL for zid "+zid);return;}
if (url==SID_NOT_FOUND) {this.aha(zid,parent_pane,id,title,history_nav,"Could not resolve source for content :: "+zid);return;}
return Zoo.network.azzzzda(ac(url), "", this.aha.azzzzf(this, zid, parent_pane, id, title,history_nav));};Zoo.broker.aha = function(zid, parent_pane, id, title,history_nav,req) {var branch = new Zoo.branch();branch.azzzgaa(title);branch.azyaaa(zid);if (typeof(req) == "string") {branch.azzzgaa("No Results");branch.azb(req);} else {if (req.responseXML.childNodes[0].nodeName == "zoowee" || req.responseXML.childNodes[0].nodeName == "xml" && req.responseXML.childNodes[1].nodeName == "zoowee") branch.azzzzva(req.responseXML);else
branch.azzznaa(req.responseXML);}
azzba(branch.azoaa());var view_type = branch.azzia("view_type");var transition = branch.azzia("transition");var trans = null;if (! azzi(transition)) {trans = transition.split(" ");}
var pane = ZooPane.araaaaa(view_type, branch);if (parent_pane != null) {parent_pane.ava(zid, id, pane);} else {var jswin = azqaaa.azuaaaa(id);if (jswin) jswin.azzwaa(pane,trans);}
Zoo.broker.pendingRequest = false;if (history_nav!=null && typeof(history_nav) == "function") history_nav();};ZooPane = function() {this._zid = "";this._id = "";this._title = "";this._branch = null;this._jswin = null;this._menu = null;this._jswin_id = "";this._children = [];this._items = [];this._authoring = null;this._contentPrepared = false;this._parent_pane = null;this._type = null;}
azk.extend(ZooPane, azznaa.Publisher);var _ZooPanes = {};ZooPane.prototype.azzzze = function(branch) {this._menu = new Zoo.menu(this.azzlaa(), ZOO_BUBBLE_CONTAINER, true);this._branch = branch;this.azzzgaa(branch.azzlaa());this.azyaaa(branch.azzzb());};ZooPane.prototype.azoaa = function() {var result = "  Pane :: "+this._zid+" elementID="+this._id+" "+this._title+"\n";for( var i=0;i<this._items.length;i++) {result += "  ITEM: "+this._items[i]._zid+" "+this._items[i]._title+"\n";}
for( var i=0;i<this._children.length;i++) {result += this._children[i].azoaa()+"\n";}
return result;}
ZooPane.araaaaa = function(pane_type, branch) {if (pane_type && pane_type.indexOf(" ")>0) {pane_type = pane_type.substring(0,pane_type.indexOf(" "));}
if (!_ZooPanes[pane_type]) pane_type = "view";var pane = new _ZooPanes[pane_type];pane.azzzze(branch);return pane;};ZooPane.prototype.azzzzzd = function() {return this._branch;}
ZooPane.prototype.azwaa = function(type) {this._type = type;};ZooPane.prototype.avaa = function(type) {return this._type;};ZooPane.azzma = function(pane_type, pane_class) {_ZooPanes[pane_type] = pane_class;};ZooPane.prototype.aia = function(pane) {this._parent_pane = pane;};ZooPane.prototype.azzoaa = function() {return this._parent_pane;};ZooPane.prototype.af = function(winID, jswin) {this._jswin = jswin;this._jswin_id = winID;};ZooPane.prototype.azzeaaa = function() {return this._jswin;};ZooPane.prototype.auaaaa = function() {return this._jswin_id;};ZooPane.prototype.azzzb = function() {return this._zid;};ZooPane.prototype.azyaaa = function(zid) {this._zid = zid;};ZooPane.prototype.azzlaa = function() {return this._title;};ZooPane.prototype.azzzgaa = function(title) {this._title = title;};ZooPane.prototype.azzzzze = function() {return this._menu;};ZooPane.prototype.acaa = function(item) {var id = item.azp();var zid = item.azzzb();var img = $zej(id + "_arrow");if (img.isOpen) {img.src = ayaaaaa() + "icons/arrow_right.gif";this.azzzzla(zid);img.isOpen = false;ZooPane.dispatchEvent("akaaaa araaa", zid);ZooPane.dispatchEvent("ayaaa azzzzzl", zid);} else {this.azzq(item);Zoo.broker.azdaaaa(zid, this, id);}
};ZooPane.prototype.azzq = function(item) {var id = item.azp();var img = $zej(id + "_arrow");img.isOpen = true;img.src = ayaaaaa() + "icons/arrow_down.gif";ZooPane.dispatchEvent("akaaaa ae", item.azzzb());}
ZooPane.prototype.avaaa = function(id, item) {var img = $azzzl("IMG");img.id = id + "_arrow";img.isOpen = false;img.src = ayaaaaa() + "icons/arrow_right.gif";azzzzo(img, "clickable_arrow_button");azzzwaa(img, this.acaa.azzzzf(this, item));return img;};ZooPane.prototype.adaaa = function(zid) {Zoo.broker.afaaaaa(zid);}
ZooPane.prototype.amaaaa = function(id, item) {var img = $azzzl("IMG");img.id = id + "_newwin";img.isOpen = false;img.src = ayaaaaa() + "icons/application.gif";azzzzo(img, "clickable_newwin_button");azzzwaa(img, this.adaaa.azzzzf(this, item.azzzb()));return img;};ZooPane.azv = function() {if (!this._cur_id) this._cur_id = 1;return "pane_" + this._cur_id++;};ZooPane.prototype.aba = function(id, actions, item) {this._items.push(item);};ZooPane.prototype.azzzzzk = function(_zid,_deep) {for (var i=0;i<this._items.length;i++) if (this._items[i].azzzb()==_zid) return this._items[i];if (_deep) {for (var i=0;i<this._children.length;i++) {var p = this._children[i].azzzzzk(_zid,_deep);if (p!=null) return p;}
}
return null;};ZooPane.prototype.azzzzua = function() {this._contentPrepared = true;}
ZooPane.prototype.azzfaaa = function() {var item;var id;var actions;var menu = this._menu;while ((item = this._branch.azzbaaa()) != null) {actions = [];id = ZooPane.azv();item.am(id);item.aia(this);if (item.azzzzv() != "Baren") {menu.aznaaaa(item.azzlaa(),this.adaaa.azzzzf(this, item.azzzb()));var newwin = this.amaaaa(id,item);actions.push(newwin);var arrow = this.avaaa(id, item);actions.push(arrow);}
this.aba(id, actions, item);}
};ZooPane.prototype.azzzzzh = function() {if (! this._contentPrepared) this.azzzzua();this._fullContent = $azzzl("DIV");if (this.azzoaa()==null) if (this._branch._authoring) this._fullContent.appendChild(this._branch._authoring.azzfaaa(this,this._branch.azzzb()));if (this._branch.azzzh()!=null) {this._fullHeader = $azzzl("DIV");this._fullHeader.innerHTML = this._branch.azzzh();this._fullContent.appendChild(this._fullHeader);}
this._fullContent.appendChild(this.azzfaaa());return this._fullContent;}
ZooPane.prototype.azzcaaa = function(item,atom,element) {return true;}
ZooPane.prototype.azzm = function() {return this._children.length>0;}
ZooPane.prototype.ajaa = function (pane) {if (this.azzzia(pane.azzzb())==null) this._children.push(pane);};ZooPane.prototype.azzzia = function(zid,deep) {if (this._zid==zid) {return this;}
for (var i=0;i<this._children.length;i++) {var p = this._children[i];azzba("getChildPane "+zid+" found "+p.azzzb()+"X");if (p.azzzb()==zid) return p;if (deep && p.azzm()) {var c = p.azzzia(zid);if (c!=null) return c;}
}
return null;};ZooPane.prototype.azzzzla = function(zid) {for (var i=0;i<this._children.length;i++) {var p = this._children[i];if (p.azzzb()==zid) {var containerID = p.azzja();if (containerID) {var view = $zej(containerID);if (view) {view.innerHTML = "";}
}
this._children.splice(i,1);}
}
}
ZooPane.prototype.araa = function(_id) {this._id = _id;}
ZooPane.prototype.azzja = function () {return this._id;}
ZooPane.prototype.azzy = function(_item) {return _item.azp();}
ZooPane.prototype.ava = function(zid, id, pane, skip_append) {if (id.indexOf("_zoo_children")<0) id = id+"_zoo_children";pane.aia(this);pane.af(this.auaaaa(), this.azzeaaa());this.ajaa(pane);pane.azyaaa(zid);if (! pane.raceCondition) pane.raceCondition = 0;azzba("appendPane "+zid+" parent="+this.azzzb()+" "+skip_append);if (!skip_append) {var par_dom = $zej(id);if (par_dom) {pane.araa(id);while (par_dom.firstChild) {Zoo.utils.remove_objects_and_embeds(par_dom.firstChild);par_dom.removeChild(par_dom.firstChild);}
var content = pane.azzzzzh();par_dom.winID = this.auaaaa();par_dom.zid = zid;par_dom.pane = pane;par_dom.appendChild(content);ZooPane.dispatchEvent("ayaaa azzzzzl", zid);} else {if (pane.raceCondition>0) {alert("Race condition - "+id+" has not been constructed yet.");} else {pane.raceCondition ++;setTimeout(this.ava.azzzzf(this,zid,id,pane,skip_append),1000);}
}
}
};ZooPane.prototype.ajaaa = function() {if (this.azzoaa()!=null) this._parent_pane.azzzzla(this._zid);Zoo.broker.azdaaaa(this._zid, this._parent_pane, this._id);}
ZooPane.prototype.azzzzq = function(dom) {azzzzo(dom, "zoo_pane_" + this.avaa());};Zoo.authoring = function() {this.content = null;this.addUrl = null;this.addText = null;this.editUrl = null;this.editText = null;this.deleteUrl = null;this.deleteText = null;}
Zoo.authoring.prototype.as = function(_url){this.addUrl = _url;}
Zoo.authoring.prototype.apaaaaa = function(_text){this.addText = _text;}
Zoo.authoring.prototype.afaaa = function(_url){this.editUrl = _url;}
Zoo.authoring.prototype.aztaaa = function(_text){this.editText = _text;}
Zoo.authoring.prototype.azzzzra = function( _url){this.deleteUrl = _url;}
Zoo.authoring.prototype.auaa = function(_text){this.deleteText = _text;}
Zoo.authoring.azpaaaa = function(_url,_refreshwinid,_refreshzid,_sourcezid) {_url=_url.replace("ABSPATH",absPath);_url=_url.replace("REFRESH_WINID",_refreshwinid);_url=_url.replace("REFRESH_ZID",_refreshzid);_url=_url.replace("SOURCE_ZID",_sourcezid);return _url;}
Zoo.authoring.prototype.azzfaaa = function(pane,_sourcezid){this.content = $azzzl('DIV');var divid = "W$" + GLOBAL_UNIQ++;if (this.addUrl != null) {var addDOM = $azzzl('SPAN');addDOM.className = 'zoo_authoring_link';var href = Zoo.authoring.azpaaaa(this.addUrl,pane.auaaaa(),_sourcezid,_sourcezid);if (href) {if (href.indexOf("javascript:") < 0) addDOM.onclick = azqaaa.azzdaa.azzzzf(azqaaa, href,divid,this.addText);else
addDOM.onclick = new Function(href.substring(11));}
addDOM.appendChild($azraaaa(this.addText));this.content.appendChild(addDOM);this.content.appendChild($azraaaa(" "));}
if (this.editUrl != null) {var editDOM = $azzzl('SPAN');editDOM.className = 'zoo_authoring_link';var href = Zoo.authoring.azpaaaa(this.editUrl,pane.auaaaa(),pane.azzzb(),_sourcezid);if (href) {if (href.indexOf("javascript:") < 0) editDOM.onclick = azqaaa.azzdaa.azzzzf(azqaaa, href,divid,this.editText);else
editDOM.onclick = new Function(href.substring(11));}
editDOM.appendChild($azraaaa(this.editText));this.content.appendChild(editDOM);this.content.appendChild($azraaaa(" "));}
if (this.deleteUrl != null) {var deleteDOM = $azzzl('SPAN');deleteDOM.className = 'zoo_authoring_link';href = Zoo.authoring.azpaaaa(this.deleteUrl,pane.auaaaa(),pane.azzzb(),_sourcezid);if (href) {if (href.indexOf("javascript:") < 0) deleteDOM.onclick = azqaaa.azzdaa.azzzzf(azqaaa, href,divid,this.deleteText);else
deleteDOM.onclick = new Function(href.substring(11));}
deleteDOM.appendChild($azraaaa(this.deleteText));this.content.appendChild(deleteDOM);}
return this.content;}
Zoo.authoring.removeNode = function(refresh_winid,source_zid,refresh_zid) {if (confirm("Are you sure you want to delete this?")) Zoo.network.azzzzda('removecat?source_zid='+source_zid+'&refresh_winid='+refresh_winid + '&refresh_zid=' + refresh_zid, "", Zoo.authoring.azzzzaa.azzzzf(Zoo.authoring));}
Zoo.authoring.azzzzaa = function(req){var items = getFirstElementByTagName(req.responseXML,"response");if (items) {var output = getNodeValue(getFirstElementByTagName(items,"output"));var status = getNodeValue(getFirstElementByTagName(items,"status"));if (!status) status = "";if (status.indexOf("nomsg") < 0) alert(output);var reload = getNodeValue(getFirstElementByTagName(items,"reload"));var winid = getNodeValue(getFirstElementByTagName(items,"refresh_winid"));var rviewid = getNodeValue(getFirstElementByTagName(items,"refresh_zid"));if (rviewid) {zoo_refresh_viewPane(winid, rviewid);return;}
if (!azzi(reload)) {if (reload == 'all') azqaaa.azzzzx();}
}
}
ZooAtom = function() {this._num = 0;this._name = "";this._value = "";this._hidden = false;this._type = "";this._children = [];this._params = {};this._item = null;this._ready = false;};azk.extend(ZooAtom, azznaa.Publisher);var _ZooAtomTypes = {};ZooAtom.prototype.azzzzq = function(dom) {var name = this.azzeaa();if (name) name = " zoo_atom_name_" + name;else
name = "";azzzzo(dom, "zoo_atom_" + this.avaa() + name);};ZooAtom.azzzzxa = function(type, atom) {if (!_ZooAtomTypes) _ZooAtomTypes = new Object();_ZooAtomTypes[type] = atom;};ZooAtom.prototype.apaa = function(){this._ready = true;};ZooAtom.azzzzha = function(type) {if (!_ZooAtomTypes[type]) return null;return new _ZooAtomTypes[type]();};ZooAtom.prototype.aca = function(type) {this._type = type;};ZooAtom.prototype.azqaaaa = function(name, value) {this._params[name] = value;};ZooAtom.prototype.azta = function(value) {this._value = value;this._children = [];};ZooAtom.prototype.agaa = function(atom) {this._children.push(atom);this._value = undefined;};ZooAtom.prototype.azfaaaa = function(name) {this._name = name;};ZooAtom.prototype.avaaaa = function(item) {this._item = item;}
ZooAtom.prototype.azzzzba = function() {return this._item;}
ZooAtom.prototype.azzzhaa = function(name) {for (var x = 0;x < this._children.length;x++) {var child = this._children[x];if (child.azzeaa() == name) return child;}
return null;};ZooAtom.prototype.azzzzzi = function(type) {for (var x = 0;x < this._children.length;x++) {var child = this._children[x];if (child.avaa() == type) return child;}
return null;};ZooAtom.prototype.azzzka = function(name) {delete this._params[name];}
ZooAtom.prototype.azzfaaa = function(view_type) {if (! this._ready) this.apaa();};ZooAtom.prototype.azzeaa = function() {return this._name;};ZooAtom.prototype.avaa = function() {return this._type;};ZooAtom.prototype.azzzm = function() {return this._value;};ZooAtom.prototype.azzlaaa = function(name) {return this._params[name];};ZooAtom.prototype.azzc = function() {if (this._children.length) return this._children;else
return null;};ZooAtom.prototype.anaa = function() {return this._hidden;};ZooAtom.prototype.azwaaa = function(is_hidden) {this._hidden = is_hidden;};ZooAtom.prototype.azzzfa = function(dom) {azzzzfa(dom, ZooAtom.dispatchEvent.azzzzf(ZooAtom,"anaaa azzzx", this));azwa(dom, ZooAtom.dispatchEvent.azzzzf(ZooAtom,"anaaa azzzx azzb", this));};ZooAtom.prototype.adaaaaa = function(tip) {this._tooltip = tip;};ZooAtom.prototype.azzzoaa = function() {return this._tooltip;};ZooAtom.prototype.aeaaaaa = function() {return this._value;};ZooAtom.prototype.azoaa = function() {var result = "    Atom :: "+this._name+" ("+this._type+") "+this._value;return result;};ZooItem = function() {this._zid = "";this._type = "";this._atoms = [];this._attributes = [];this._params = [];this._class = "";this._userclass = "";this._children = "";this._ready = false;this._elementID = "";this._parentPane = "";this._pos = 0;this._authoring = null;};_ZooItemTypes = new Object();azk.extend(ZooItem, azznaa.Publisher);ZooItem.cast = function(item) {return item;};ZooItem.prototype.apaa = function() {var x;for (x = 0;x < this._atoms.length;x++) this._atoms[x].apaa();this._ready = true;};ZooItem.av = function(type, item) {if (!_ZooItemTypes) _ZooItemTypes= new Object();_ZooItemTypes[type]=item;};ZooItem.prototype.azp = function() {return this._elementID;}
ZooItem.prototype.am = function(_id) {this._elementID = _id;}
ZooItem.azzzr = function(type) {if (!_ZooItemTypes[type]) return null;return new _ZooItemTypes[type]();};ZooItem.prototype.azzoaa = function() {return this._parentPane;};ZooItem.prototype.aia = function(_pane) {this._parentPane = _pane;};ZooItem.prototype.azzla = function(name) {for (var x = 0;x < this._atoms.length;x++) {var atom = this._atoms[x];if (atom.azzeaa() == name) return atom;}
return null;};ZooItem.prototype.azzlaa = function() {var title = this.azzla("title");if (title!=null) return title.azzzm();else
return null;}
ZooItem.prototype.azzpaa = function(type) {for (var x = 0;x < this._atoms.length;x++) {var atom = this._atoms[x];if (atom.avaa() == type) return atom;}
return null;};ZooItem.prototype.avaa = function() {return this._type;};ZooItem.prototype.azhaaa = function() {return this._atoms;};ZooItem.prototype.azzzt = function(atom) {this._atoms.push(atom);atom.avaaaa(this);};ZooItem.prototype.azwaa = function(type) {this._type = type;};ZooItem.prototype.azyaaa = function(zid) {this._zid = zid;};ZooItem.prototype.azzzzo = function(new_class) {this._class = new_class;};ZooItem.prototype.azztaa = function(new_class) {this._userclass = new_class;};ZooItem.prototype.anaaaa = function() {return this._class;};ZooItem.prototype.azzzq = function() {return this._userclass;};ZooItem.prototype.azzzb = function() {return this._zid;};ZooItem.prototype.azzm = function() {return (this._children=="true" || this._children=="Yes");}
ZooItem.prototype.azzzzv = function() {var val = this._children;if (!val) return "Baren";else
return val;};ZooItem.prototype.azzwaaa = function(info) {this._children = info;};ZooItem.prototype.azla = function() {var clone = ZooItem.azzzr(this._type);clone._zid = this._zid;clone._class = this._class;clone._userclass = this._userclass;clone._children = this._children;for (var i=0;i<this._atoms.length;i++) {var atom = this._atoms[i];var catom = ZooAtom.azzzzha(atom.avaa());catom.azfaaaa(atom.azzeaa());for (var property in atom) {catom[property] = atom[property];}
catom.azta(atom.azzzm());clone.azzzt(catom);}
return clone;}
ZooItem.prototype.azzzzzg = function() {while (this._atoms.length > this._pos) {if (!this._atoms[this._pos].anaa()) return this._atoms[this._pos++];else
this._pos++;}
return null;};ZooItem.prototype.azzzraa = function() {this._pos = 0;};ZooItem.prototype.azqaaaa = function(name, value) {this._params[name] = value;};ZooItem.prototype.azzlaaa = function(name) {return this._params[name];};ZooItem.prototype.azzzfa = function(dom) {};ZooItem.prototype.azzzzq = function(dom) {azzzzo(dom, "zoo_item_" + this.avaa() + " " + this.anaaaa() + " " + this.azzzq());};ZooItem.prototype.azzfaaa = function(pane) {if (! this._ready) this.apaa();var atom;var ret = $azzzl("DIV");if (this._authoring) ret.appendChild(this._authoring.azzfaaa(pane,this.azzzb()));var x;this.azzzraa();while ((atom = this.azzzzzg()) != null) {var atomDOM = atom.azzfaaa(pane.avaa());var shouldAppend = pane.azzcaaa(this,atom,atomDOM);if (shouldAppend) ret.appendChild(atomDOM);}
this.azzzfa(ret);this.azzzzq(ret);return ret;};ZooItem.prototype.azoaa = function() {var result = "  Item :: "+this._zid+" elementID="+this._elementID+" "+this._type+"\n";if (this._atoms) for( var i=0;i<this._atoms.length;i++) {result += this._atoms[i].azoaa()+"\n";}
return result;};Zoo.branch = function() {this._items = [];this._styles = {};this._pos = 0;this._items = [];this._styles = {};this._zid = "";this._title = "";this._header = null;this._authoring = null;this._history = true;this._width = 0;this._height = 0;};Zoo.branch.cast = function(branch) {return branch;};Zoo.branch.prototype.azxaa = function() {return this._width;}
Zoo.branch.prototype.aztaaaa = function() {return this._height;}
Zoo.branch.prototype.azzzgaa = function(title) {this._title = title;};Zoo.branch.prototype.azyaaa = function(zid) {this._zid = zid;};Zoo.branch.prototype.axa = function() {return this._history;}
Zoo.branch.prototype.azzzha = function(bool) {this._history = bool;}
Zoo.branch.prototype.azzsaa = function(_hdr) {this._header = _hdr;}
Zoo.branch.prototype.azzzh = function() {return this._header;}
Zoo.branch.prototype.aba = function(item) {this._items.push(item);};Zoo.branch.prototype.ataa = function(name, value) {this._styles[name] = value;};Zoo.branch.prototype.azzlaa = function() {return this._title;};Zoo.branch.prototype.azzzb = function() {return this._zid;};Zoo.branch.prototype.azzzzzj = function() {return this._items;};Zoo.branch.prototype.azzbaaa = function() {if (this._items.length > this._pos) return this._items[this._pos++];else
return null;};Zoo.branch.prototype.resetItemPos = function() {this._pos = 0;};Zoo.branch.prototype.azzia = function(name) {return this._styles[name];};Zoo.branch.prototype.azzzs = function() {var names = [];for (var i=0;i<this._items.length;i++) {var atoms = this._items[i].azhaaa();for (var j=0;j<atoms.length;j++) if (! azzzzi.contains(names,atoms[j].azzeaa())) names.push(atoms[j].azzeaa());}
return names;}
Zoo.branch.prototype.azzh = function(xml, type) {for (var x = 0;x < xml.childNodes.length;x++) {if (xml.childNodes[x].nodeName == type) return xml.childNodes[x];}
return null;};Zoo.branch.prototype.azzzzva = function(xmlDoc) {var branch = xmlDoc.getElementsByTagName("branch")[0];if (! branch) {this.azb("No Data Returned","The source returned no available channel.");return;}
var zid = branch.getAttribute("zid");var title = branch.getAttribute("title");if (zid) this.azyaaa(zid);if (title) this.azzzgaa(title);var xml_styles = getFirstElementByTagName(branch, "style");var xml_header = getFirstElementByTagName(branch,"header");var xml_items = getFirstElementByTagName(branch,"items");var xml_authoring = getFirstElementByTagName(branch,"authoring",true);var xml_item;var item;var x;var auth;if (xml_authoring) {this._authoring = new Zoo.authoring();auth = getFirstElementByTagName(xml_authoring,"add_url");if (auth) this._authoring.as(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"add_text");if (auth) this._authoring.apaaaaa(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"edit_url");if (auth) this._authoring.afaaa(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"edit_text");if (auth) this._authoring.aztaaa(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"del_url");if (auth) this._authoring.azzzzra(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"del_text");if (auth) this._authoring.auaa(getNodeValue(auth));}
if (xml_header) {var headerContent = getFirstElementByTagName(xml_header,"html");if (headerContent) this.azzsaa(getNodeValue(headerContent));}
if (xml_styles) {this._width = xml_styles.getAttribute("width");this._height = xml_styles.getAttribute("height");for (x = 0;x < xml_styles.childNodes.length;x++) this.ataa(xml_styles.childNodes[x].nodeName, getNodeValue(xml_styles.childNodes[x]));}
if (xml_items) {for (x = 0;x < xml_items.childNodes.length;x++) {xml_item = xml_items.childNodes[x];item = this.azzzzsa(xml_item);if (item) this.aba(item);}
}
};Zoo.branch.prototype.azb = function(_title,_desc) {this.ataa("view_type","view");var item = ZooItem.azzzr("node");item.azzzzo("label");item.azyaaa("item_");if (_title) {var atom = ZooAtom.azzzzha("text");atom.azfaaaa("title");atom.azta(_title);item.azzzt(atom);}
if (_desc) {var atom = ZooAtom.azzzzha("text");atom.azfaaaa("description");atom.azta(_desc);item.azzzt(atom);}
this.aba(item);}
Zoo.branch.prototype.azzzzsa = function(xmlNode) {var item;var attribute;var xml_type = xmlNode.nodeName;item = ZooItem.azzzr(xml_type);if (!item) return null;var zid = xmlNode.getAttribute("zid");if (zid) item.azyaaa(zid);var xml_param;for (x = 0;x < xmlNode.attributes.length;x++) {xml_param = xmlNode.attributes[x];if (xml_param.name != "name") item.azqaaaa(xml_param.name, xml_param.value);if (xml_param.name == "class") item.azzzzo(xml_param.value);if (xml_param.name=="userclass") item.azztaa(xml_param.value);}
var xml_authoring = getFirstElementByTagName(xmlNode,"authoring");var auth;if (xml_authoring) {item._authoring = new Zoo.authoring();auth = getFirstElementByTagName(xml_authoring,"add_url");if (auth) item._authoring.as(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"add_text");if (auth) item._authoring.apaaaaa(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"edit_url");if (auth) item._authoring.afaaa(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"edit_text");if (auth) item._authoring.aztaaa(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"del_url");if (auth) item._authoring.azzzzra(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"del_text");if (auth) item._authoring.auaa(getNodeValue(auth));}
var xml_atoms = this.azzh(xmlNode, "atoms");var x;var xml_atom;var atom;var kid_status = xmlNode.getAttribute("has_children");if (kid_status == "Yes" || kid_status == "No" || kid_status == "true" || kid_status == "false") item.azzwaaa(kid_status);for (x = 0;x < xml_atoms.childNodes.length;x++) {xml_atom = xml_atoms.childNodes[x];atom = this.azo(xml_atom);if (atom) {item.azzzt(atom);}
}
return item;};Zoo.branch.prototype.azzzk = function(xml_node) {if (xml_node.childNodes && xml_node.childNodes.length && xml_node.childNodes[0].nodeValue == null) return true;return false;};Zoo.branch.prototype.azo = function(xmlNode) {var xml_type = xmlNode.nodeName;var atom = ZooAtom.azzzzha(xml_type);if (!atom) return null;var name = xmlNode.getAttribute("name");if (name) atom.azfaaaa(name);var x;var y;var params;var xml_param;for (x = 0;x < xmlNode.attributes.length;x++) {xml_param = xmlNode.attributes[x];if (xml_param.name != "name") atom.azqaaaa(xml_param.name, xml_param.value);if (xml_param.name=="tooltip") atom.adaaaaa(xml_param.value);}
var xml_child;var child_atom;if (this.azzzk(xmlNode)) {for (x = 0;x < xmlNode.childNodes.length;x++) {xml_child = xmlNode.childNodes[x];child_atom = this.azo(xml_child);atom.agaa(child_atom);}
}
else
atom.azta(getNodeValue(xmlNode));return atom;};Zoo.branch.prototype.azzznaa = function(xmlDoc) {var x;var channel = xmlDoc.getElementsByTagName("channel")[0];if (! channel) {this.azb("No Data Returned","The source returned no available channel.");return;}
var title = getNodeValue(channel.getElementsByTagName("title")[0]);if (title) this.azzzgaa(title);var xml_items = xmlDoc.getElementsByTagName("item");var xml_item;var item;var xml_title;var xml_link;var xml_pubDate;var xml_description;for (x = 0;x < xml_items.length;x++) {xml_item = xml_items[x];xml_title = getNodeValue(xml_item.getElementsByTagName("title")[0]);xml_link = getNodeValue(xml_item.getElementsByTagName("link")[0]);xml_pubDate = getNodeValue(xml_item.getElementsByTagName("pubDate")[0]);xml_description = getNodeValue(xml_item.getElementsByTagName("description")[0]);item = ZooItem.azzzr("node");item.azzzzo("rsslink");var atom = ZooAtom.azzzzha("link");if (xml_title) atom.azta(xml_title);if (xml_link) {atom.azqaaaa("src", xml_link);atom.azqaaaa("type", "http");}
if (xml_description) atom.adaaaaa(xml_description);item.azzzt(atom);if (xml_pubDate) {atom = ZooAtom.azzzzha("text");atom.azta(azzda(xml_pubDate));item.azzzt(atom);}
this.aba(item);}
};Zoo.branch.prototype.azoaa = function() {var result = "Branch :: "+this._zid+" "+this._title+"\n";for (var i=0;i<this._items.length;i++) {result += this._items[i].azoaa();}
return result;}
ZooTextAtom = function() {ZooAtom.call(this);this._type='text';};ZooTextAtom.prototype = new ZooAtom;ZooAtom.azzzzxa("text", ZooTextAtom);ZooTextAtom.prototype.apaa = function() {ZooAtom.prototype.apaa.call(this);this._node = $azzzl("SPAN");var max_len = this.azzlaaa("default_length");if (!max_len || max_len==null || max_len==0) max_len = 300;this._original_str = this.azzzm().replace("\n","<br>");if (max_len && this._original_str && this._original_str.length > max_len) {this._less_desc = $azraaaa(this._original_str.substr(0, max_len) + " ");this._more_link = $azzzl("a");this._is_in_less = false;azzzwaa(this._more_link, this.azraa.azzzzf(this));this.azraa();} else {this._node.appendChild($azraaaa(this.azzzm()));}
};ZooTextAtom.prototype.azraa = function() {while (this._node.childNodes.length) this._node.removeChild(this._node.firstChild);if (this._is_in_less) {this._node.appendChild($azraaaa(this.azzzm() + " "));this._more_link.innerHTML = " less";this._node.appendChild(this._more_link);}
else {this._node.appendChild(this._less_desc);this._more_link.innerHTML = " more...";this._node.appendChild(this._more_link);}
this._is_in_less = !this._is_in_less;return false;}
ZooTextAtom.prototype.azzfaaa = function(view_type) {if (view_type=="grid" && this._original_str.length>20) {this._node.innerHTML = this._original_str.substring(0,20);}
if (view_type=="edit") {var firstNode = this._node.firstChild;var atomTitle = $azzzl("span");atomTitle.innerHTML = this.azzeaa()+" :: ";this._node.insertBefore(atomTitle,firstNode);var br = $azzzl("br");this._node.appendChild(br);}
this.azzzfa(this._node);this.azzzzq(this._node);return this._node;};ZooRatingAtom = function() {this._type='rating';};ZooRatingAtom.prototype = new ZooAtom;ZooRatingAtom.prototype._type="rating";ZooAtom.azzzzxa("rating", ZooRatingAtom);ZooRatingAtom.prototype.apaa = function() {ZooAtom.prototype.apaa.call(this);this._node = $azzzl("img");var rating_image_src = this.azzlaaa("image_src");this._node.src = rating_image_src.replace("[RATING]",this.azzzm());this.azzzfa(this._node);this.azzzzq(this._node);};ZooRatingAtom.prototype.azzfaaa = function(view_type) {this.azzzfa(this._node);this.azzzzq(this._node);return this._node;};ZooHTMLAtom = function() {ZooAtom.call(this);this._type = 'html';};ZooHTMLAtom.prototype = new ZooAtom;azk.extend(ZooHTMLAtom.prototype,ZooAtom.prototype);ZooAtom.azzzzxa("html", ZooHTMLAtom);ZooHTMLAtom.prototype.apaa = function() {ZooAtom.prototype.apaa.call(this);this._node = $azzzl("div");this._node.innerHTML = this.azzzm();this.azzzfa(this._node);this.azzzzq(this._node);};ZooHTMLAtom.prototype.azzfaaa = function(view_type) {if (view_type=="edit") {var firstNode = this._node.firstChild;var atomTitle = $azzzl("span");atomTitle.innerHTML = this.azzeaa()+" :: ";this._node.insertBefore(atomTitle,firstNode);var br = $azzzl("br");this._node.appendChild(br);}
return this._node;};ZooLinkAtom = function() {ZooAtom.call(this);this._type = "link";};ZooLinkAtom.prototype = new ZooAtom;ZooAtom.azzzzxa("link", ZooLinkAtom);ZooLinkAtom.prototype.apaa = function() {ZooAtom.prototype.apaa.call(this);var kids = this.azzc();if (kids) {for (var x = 0;x < kids.length;x++) kids[x].apaa();}
}
ZooLinkAtom.prototype.aeaaaaa = function() {return this.azzlaaa("src");};ZooLinkAtom._plugins = {};ZooLinkAtom.auaaa = function(proto, func) {this._plugins[proto] = func;};ZooLinkAtom.prototype.azzfaaa = function(view_type) {var src = this.azzlaaa("src");var type = this.azzlaaa("type");var target = this.azzlaaa("target");this._element = $azzzl("span");if (view_type=='edit') {var _title = $azzzl("span");_title.innerHTML = this.azzeaa()+" :: ";this._element.appendChild(_title);}
this._link = $azzzl("A");this._link.style.cursor = "pointer";switch (type) {case "http":
case "href":
if (target != "inline") {this._link.href = src;this._link.target = "_blank";} else {var title = this.azzlaaa("inline_title");var width = this.azzlaaa("inline_width");var height = this.azzlaaa("inline_height");azzzwaa(this._link, azva(azqaaa.azzdaa.azzzzf(azqaaa, src, "", title, width, height)));}
break;case "zid":
azzzwaa(this._link, azva(akaa.azzzzf(this, src)));break;case "inlinezid":
var rootWin = this.azzzzba().azzoaa().azzeaaa();this._link.onclick=Zoo.broker.azdaaaa.azzzzf(Zoo.broker, src, null, rootWin.azu().azzja());break;default:
for (var proto in ZooLinkAtom._plugins) if (proto == type) this._type_func = ZooItem_link._plugins[proto];if (this._type_func) this._type_func(this._link, view_type, this);break;}
if (!this.azzc()) {var textVal = this.azzzm();if (view_type=="edit") {textVal = src+" ("+textVal+")";} else if (view_type=="grid" && textVal.length>18) {textVal = textVal.substring(0,18);}
this._link.innerHTML = textVal;}
this.azzzfa(this._link);this.azzzzq(this._link);var kids = this.azzc();if (kids) {for (var x = 0;x < kids.length;x++) this._link.appendChild(kids[x].azzfaaa(view_type));}
this._element.appendChild(this._link);if (view_type=="edit") {var br = $azzzl("br");this._element.appendChild(br);}
return this._element;};ZooImageAtom = function() {ZooAtom.call(this);this._type ='image';};ZooImageAtom.prototype = new ZooAtom;ZooAtom.azzzzxa("image", ZooImageAtom);ZooImageAtom.aua = function(src) {if (src && (src.length < 4 || src.substr(0,4) != "http" ) ) src = Zoo.utils.abs_path() + src;return src;};ZooImageAtom.prototype.apaa = function() {ZooAtom.prototype.apaa.call(this);this._thumb = ZooImageAtom.aua(this.azzlaaa("thumb_source"));this._web = ZooImageAtom.aua(this.azzlaaa("web_source"));this._original = ZooImageAtom.aua(this.azzlaaa("original_source"));this._title = this.azzlaaa("title");this._img = $azzzl("img");if (this._title) {this._img.title = this._title;this._img.alt = this._title;}
if (this._thumb) this._img.src = this._thumb;if (this._web) {if (this._img.src) this._next = this._web;else
this._img.src = this._web;}
if (this._original) {if (this._img.src && this._next) this._final = this._original;else if (this._img.src) this._next = this._original;else
this._img.src = this._original;}
this._img.style.cursor="pointer";this.azzzfa(this._img);};ZooImageAtom.prototype.aiaaa = function() {var div = $azzzl("div");div.style.textAlign="center";var img = $azzzl("img");img.src = this._next;img.title = this._title;img.alt = this._title;div.appendChild(img);azzzzzb("image",img.src);var divid=img.src;var ctView = $zej(divid);if (!ctView) {new azqaaa({title: "", dom_obj: div, divID: divid,adjustLevel:"move resize scroll" });} else {var ctWindow = azqaaa.azzzzg(divid);if (ctWindow) ctWindow.azfaaa().ayaaaa();}
};ZooImageAtom.prototype.aeaaaaa = function() {return this._img.src;};ZooImageAtom.prototype.azzfaaa = function(view_type) {if (view_type == "slide" && this._next) {this._img.src = this._next;this._next = this._final;}
this._element = this._img;if (view_type=="edit") {this._element = $azzzl("SPAN");var _title = $azzzl("SPAN");_title.innerHTML = this.azzeaa()+" :: ";this._element.appendChild(_title);this._element.appendChild(this._img);}
this._element.onclick = this.aiaaa.azzzzf(this);this.azzzzq(this._img);return this._element;};ZooNodeItem = function(){ZooItem.call(this);this._type = "node";};ZooNodeItem.prototype = new ZooItem();ZooItem.av("node", ZooNodeItem);ZooNodeItem.prototype.azzfaaa = function(pane) {var temp_name = this.azzlaaa("template");if (!temp_name) return ZooItem.prototype.azzfaaa.call(this,pane);var template = new Zoo.template(temp_name);var atom;while ((atom = this.azzzzzg()) != null) {atom.apaa();var name = atom.azzeaa();if (!name) continue;name = name.toUpperCase();if (template.azzzga(name, true)) {var elem = atom.azzfaaa(pane.avaa());template.azyaaaa(name, elem);}
else if (template.azzzga(name, false)) template.azeaaaa(name, atom.aeaaaaa());}
this._have_ret = true;this._html_atom = $azzzl("div");template.azzkaaa(this._html_atom);this.azzzfa(this._html_atom);this.azzzzq(this._html_atom);return this._html_atom;};ZooViewPane = function() {ZooPane.call(this);this._type = "view";}
ZooViewPane.prototype = new ZooPane();ZooPane.azzma("view", ZooViewPane);ZooViewPane.prototype.azzzze = function(branch) {ZooPane.prototype.azzzze.call(this,branch);this._table = $azzzl("table");this._tableb = $azzzl("tbody");this._table.appendChild(this._tableb);};ZooViewPane.prototype.aba = function(id, actions, item) {ZooPane.prototype.aba.call(this,id,actions,item);var tr = $azzzl("TR");var td = $azzzl("TD");tr.appendChild(td);tr.id = id;var x;azzzzo(td, "action_cell");var atable = $azzzl("TABLE");var atbody = $azzzl("TBODY");atable.appendChild(atbody);var atr = $azzzl("TR");atbody.appendChild(atr);for (x = 0;x < actions.length;x++) {var atd = $azzzl("TD");atd.appendChild(actions[x]);atr.appendChild(atd);}
td.appendChild(atable);td = $azzzl("TD");tr.appendChild(td);td.appendChild( item.azzfaaa(this) );this._tableb.appendChild(tr);tr = $azzzl("TR");td = $azzzl("TD");tr.appendChild(td);td = $azzzl("TD");tr.appendChild(td);var contentDiv = $azzzl("DIV");contentDiv.id = id + "_zoo_children";td.appendChild(contentDiv);this._tableb.appendChild(tr);};ZooViewPane.prototype.azzcaaa = function(item,atom,element) {if (item && item.azzm() && atom.azzeaa()=="title") {element.style.cursor = "pointer";azzzwaa(element,Zoo.broker.afaaaaa.azzzzf(Zoo.broker,item.azzzb()));}
return true;}
ZooViewPane.prototype.azzfaaa = function() {ZooPane.prototype.azzfaaa.call(this);this.azzzzq(this._table);return this._table;};ZooTabPane = function() {ZooPane.call(this);this._type = "tab";}
ZooTabPane.prototype = new ZooPane();ZooPane.azzma("tab", ZooTabPane);ZooTabPane.prototype.azzjaa = function(zid) {if (! zid) return;while (this._main_content.childNodes.length) this._main_content.removeChild(this._main_content.firstChild);if (zid != this._overview_zid) {Zoo.broker.azdaaaa(zid, this, this._main_id);} else {this._main_content.appendChild(this._overview_content);}
azzzzo(this._tabs[zid], "clickable_button selected");if (this._cur_zid) azzzzo(this._tabs[this._cur_zid], "clickable_button");this._cur_zid = zid;ZooPane.dispatchEvent("ayaaa azzzzzl", zid);}
ZooTabPane.prototype.azzq = function(item) {var zid = item.azzzb();while (this._main_content.childNodes.length) this._main_content.removeChild(this._main_content.firstChild);azzzzo(this._tabs[zid], "clickable_button selected");if (this._cur_zid) azzzzo(this._tabs[this._cur_zid], "clickable_button");this._cur_zid = zid;ZooPane.dispatchEvent("ayaaa azzzzzl", zid);}
ZooTabPane.prototype.avaaaaa = function(dom, zid) {var td = $azzzl("TD");td.style.cursor = "pointer";td.appendChild(dom);azzzzo(td, "clickable_button");azzzwaa(td, this.azzjaa.azzzzf(this, zid));this._tabs[zid] = td;this._header_row.appendChild(td);this._tabCount++;};ZooTabPane.prototype.azzzze = function(branch){ZooPane.prototype.azzzze.call(this,branch);this._overview_zid = "__OVERVIEW__";this._tabs = new Object();}
ZooTabPane.prototype.azzzzua = function() {ZooPane.prototype.azzzzua.call(this);this._content = $azzzl("div");this._table = $azzzl("table");this._table.setAttribute("cellSpacing",1);this._tabCount = 0;this._content.appendChild(this._table);this._tableb = $azzzl("tbody");this._table.appendChild(this._tableb);this._header_row = $azzzl("TR");this._cur_zid;this._first_zid;azzzzo(this._header_row, "header_row");this._tableb.appendChild(this._header_row);this._main_content = $azzzl("DIV");this._main_id = ZooPane.azv();this._main_content.id = this._main_id + "_zoo_children";this._overview_content = $azzzl("DIV");this._content.appendChild(this._main_content);var span = $azzzl("span");span.appendChild($azraaaa("Overview"));this.avaaaaa(span, this._overview_zid);};ZooTabPane.prototype.azzy = function () {return this._main_id;}
ZooTabPane.prototype.aba = function(id, actions, item) {ZooPane.prototype.aba.call(this,id,actions,item);var dom = item.azzfaaa(this);if (item.azzzzv() != "Baren") {if (! this._first_zid) this._first_zid=item.azzzb();this.avaaaaa(dom, item.azzzb());return;}
this._first_zid = this._overview_zid;this._overview_content.appendChild(dom);};ZooTabPane.prototype.azzfaaa = function() {ZooPane.prototype.azzfaaa.call(this);if (this._first_zid != this._overview_zid) azlaaaa.hide(this._tabs[this._overview_zid]);azzzzo(this._table, "tabpane");if (this._tabCount>0) this.azzjaa(this._first_zid);this.azzzzq(this._content);return this._content;};ZooSlidePane = function() {ZooPane.call(this);this._type = "slide";this._timer = null;this._transition_delay = 0;this._is_paused = true;this._button_pauseplay = null;this._button_next = null;this._button_prev = null;this._label_image_counter = null;this._content_win = null;this._item_doms = new Array();this._cur_item = 0;this._cache_function_on_timer_fire = this.apa.azzzzf(this,this.araaaa.azzzzf(this));};ZooSlidePane.prototype = new ZooPane();ZooPane.azzma("slide", ZooSlidePane);ZooSlidePane.prototype.aea = function() {this._is_paused = !this._is_paused;if (this._is_paused) {this._button_pauseplay.innerHTML = " Play ";this.amaaaaa();}
else {this._button_pauseplay.innerHTML = " Pause ";this.azzz();}
};ZooSlidePane.prototype.azzzta = function() {if (this._cur_item == 0) azlaaaa.hide(this._button_prev);else
azlaaaa.show(this._button_prev);if (this._cur_item == this._item_doms.length - 1) azlaaaa.hide(this._button_next);else
azlaaaa.show(this._button_next);this._label_image_counter.innerHTML = "( " + (this._cur_item + 1) + " of " + this._item_doms.length + " )";while (this._content_win.childNodes.length) this._content_win.removeChild(this._content_win.firstChild);this._content_win.appendChild(this._item_doms[this._cur_item]);azlaaaa.show(this._content_win);};ZooSlidePane.prototype.aoaaa = function() {this._cur_item--;if (this._cur_item < 0) this._cur_item = this._item_doms.length - 1;this.apa(this.azzzta.azzzzf(this));};ZooSlidePane.prototype.araaaa = function() {this._cur_item++;if (this._cur_item == this._item_doms.length) this._cur_item = 0;this.apa(this.azzzta.azzzzf(this));};ZooSlidePane.prototype.amaaaaa = function() {if (this._timer) clearTimeout(this._timer);this._timer = null;};ZooSlidePane.prototype.apa = function(onDone) {azlaaaa.hide(this._content_win);onDone();};ZooSlidePane.prototype.azzz = function() {if (this._timer)this.amaaaaa();this._timer = setTimeout( this._cache_function_on_timer_fire, 1000 * this._transition_delay);};ZooSlidePane.prototype.azzzze = function(branch) {ZooPane.prototype.azzzze.call(this,branch);this._content = $azzzl("div");this._button_pauseplay = $azzzl("SPAN");this._button_pauseplay.innerHTML = " Play ";azzzwaa(this._button_pauseplay, this.aea.azzzzf(this));azzzzo(this._button_pauseplay, "clickable_button");this._button_next = $azzzl("IMG");this._button_next.src = ayaaaaa() + "icons/arrow_right.gif";this._button_next.title = "Next";azzzwaa(this._button_next, this.araaaa.azzzzf(this));azzzzo(this._button_next, "clickable_button") ;this._button_prev = $azzzl("IMG");this._button_prev.src = ayaaaaa() + "icons/arrow_left.gif";this._button_prev.title = "Prev";azzzwaa(this._button_prev, this.aoaaa.azzzzf(this));azzzzo(this._button_prev, "clickable_button");this._label_image_counter = $azzzl("DIV");this._content_win = $azzzl("DIV");this._content.appendChild(this._button_prev);if (this._transition_delay) this._content.appendChild(this._button_pauseplay);this._content.appendChild(this._button_next);this._content.appendChild($azzzl("BR"));this._content.appendChild(this._label_image_counter);this._content.appendChild(this._content_win);this._item_doms = new Array();}
ZooSlidePane.prototype.aba = function(id, actions, item) {ZooPane.prototype.azzzze.call(this,id,actions,item);item = ZooItem.cast(item);if (item.azzzzv() != "Baren") return;var dom = item.azzfaaa(this);this._item_doms.push(dom);};ZooSlidePane.prototype.azzfaaa = function() {ZooPane.prototype.azzfaaa.call(this);this.azzzta();this.azzzzq(this._content);return this._content;};ZooGridPane = function() {ZooPane.call(this);this._type = "grid";}
ZooGridPane.prototype = new ZooPane();ZooPane.azzma("grid", ZooGridPane);azaa("GRID_PANE_PER_ROW",4);ZooGridPane.prototype.azzzze = function(branch) {ZooPane.prototype.azzzze.call(this,branch);this._table = $azzzl("table");this._table.setAttribute("cellSpacing",4);this._tableb = $azzzl("tbody");this._table.appendChild(this._tableb);this._cur_row;this.azzea();};ZooGridPane.prototype.azzcaaa = function(item,atom,element) {var shouldAppend = false;if (atom.azzeaa()=='title') shouldAppend = true;if (atom.avaa()=='image') shouldAppend = true;if (item && item.azzm()) {element.style.cursor = "pointer";azzzwaa(element,Zoo.broker.afaaaaa.azzzzf(Zoo.broker,item.azzzb()));} else if ( (atom.avaa() == 'image') || (atom.azzeaa() == 'title') ) {element.style.cursor = "pointer";element.className += " clickable_button";azzzwaa(element, this.aiaaa.azzzzf(this,item));}
return shouldAppend;}
ZooGridPane.prototype.azzea = function() {this._cur_row = $azzzl("TR");this._tableb.appendChild(this._cur_row);this._row_count = 0;};ZooGridPane.prototype.aba = function(id, actions, item) {ZooPane.prototype.aba.call(this,id,actions,item);var td = $azzzl("TD");td.className = "grid_cell";var tdWidthSpacer = $azzzl("IMG");tdWidthSpacer.className="grid_width_spacer";tdWidthSpacer.src=zoo_getSpacerPath();td.appendChild(tdWidthSpacer);td.appendChild($azzzl("BR"));td.setAttribute("valign","top");td.appendChild(item.azzfaaa(this));this._cur_row.appendChild(td);if (++this._row_count == GRID_PANE_PER_ROW) this.azzea();};ZooGridPane.prototype.aiaaa = function(_item) {var branch = new Zoo.branch();branch.azyaaa(_item.azzzb());branch.azzzgaa(_item.azzlaa());branch.azzzha(false);var bitem = _item.azla();for (var i=0;i<bitem._atoms.length;i++) {var atom = bitem._atoms[i];atom.azzzka("thumb_source");if (atom.avaa() == "image") {var catom = ZooAtom.azzzzha("link");catom.azfaaaa(atom.azzeaa()+"_orig");var src = ZooImageAtom.aua(atom.azzlaaa("original_source"));catom.azqaaaa("type","href");catom.azqaaaa("src",src);catom.azta("Click here to view the original size photo");bitem.azzzt(catom);}
}
branch.aba(bitem);var winParams = {};winParams.title = branch.azzlaa();winParams.divID = azqaaa.awaaaa();var view = ZooPane.araaaaa("view", branch);winParams.pane = view;new azqaaa(winParams);};ZooGridPane.prototype.azzfaaa = function() {ZooPane.prototype.azzfaaa.call(this);this.azzzzq(this._table);return this._table;};ZooListPane = function() {ZooPane.call(this);this._type = "list";};ZooListPane.prototype = new ZooPane();ZooPane.azzma("list", ZooListPane);azaa("LIST_COL_WIDTH",5);ZooListPane.prototype.azzzze = function(branch) {ZooPane.prototype.azzzze.call(this,branch);this._table = $azzzl("table");this._tableBody = $azzzl("tbody");this._table.appendChild(this._tableBody);var htr = $azzzl("tr");this._tableBody.appendChild(htr);var htd = $azzzl("TD");htd.className = "list_header";this.divFirst = $azzzl("SPAN");this.divFirst.innerHTML = "first ";this.divFirst.onclick=this.ataaaa.azzzzf(this);this.divFirst.className = "list_header_cell_inactive";this.divFirst.style.cursor = "pointer";htd.appendChild(this.divFirst);this.divPrev = $azzzl("SPAN");this.divPrev.innerHTML = "prev ";this.divPrev.onclick=this.azznaaa.azzzzf(this);this.divPrev.className = "list_header_cell_inactive";this.divPrev.style.cursor = "pointer";htd.appendChild(this.divPrev);this.divCount = $azzzl("SPAN");this.divCount.innerHTML = "[ <b>1</b>-<b>20</b> of 100 ]";this.divCount.className="list_header_cell_inactive";htd.appendChild(this.divCount);this.divNext = $azzzl("SPAN");this.divNext.innerHTML = "next ";this.divNext.onclick=this.azzzla.azzzzf(this);this.divNext.style.cursor = "pointer";this.divNext.className = "list_header_cell";htd.appendChild(this.divNext);this.divLast = $azzzl("SPAN");this.divLast.innerHTML = "last ";this.divLast.onclick=this.az.azzzzf(this);this.divLast.style.cursor = "pointer";this.divLast.className = "list_header_cell";htd.appendChild(this.divLast);htr.appendChild(htd);htr = $azzzl("TR");htd = $azzzl("TD");this._dataTable = $azzzl("table");this._dataTable.setAttribute("cellSpacing",1);this._dataTableBody = $azzzl("tbody");this._dataTable.appendChild(this._dataTableBody);this._headerRow = $azzzl("TR");this._dataTableBody.appendChild(this._headerRow);this._columnNames = branch.azzzs();this._columnRef = {};for (var i=0;i<this._columnNames.length;i++) {var td = $azzzl("td");td.style.cursor = "pointer";td.title = this._columnNames[i];td.className = "list_column_header";var colText = $azraaaa(this._columnNames[i]);td.appendChild(colText);this._headerRow.appendChild(td);this._columnRef[this._columnNames[i]] = i;td.onclick=this.azzzba.azzzzf(this,i);}
htd.appendChild(this._dataTable);htr.appendChild(htd);this._tableBody.appendChild(htr);this.listRows = new Array();this.pageSize = 20;this.currentLine = 0;};ZooListPane.prototype.ataaaa = function() {this.currentLine = 0;this.ahaa(0,this.pageSize);}
ZooListPane.prototype.az = function() {this.currentLine = this.listRows.length-this.pageSize-1;if (this.currentLine < 0) this.currentLine = 0;this.ahaa(this.currentLine,this.listRows.length);}
ZooListPane.prototype.azzzla = function() {if (this.currentLine+this.pageSize>=this.listRows.length) {return;} else {this.currentLine += this.pageSize;}
this.ahaa(this.currentLine,this.currentLine+this.pageSize);}
ZooListPane.prototype.azznaaa = function() {if (this.currentLine - this.pageSize<0) {this.currentLine = 0;} else {this.currentLine -= this.pageSize;}
this.ahaa(this.currentLine,this.currentLine+this.pageSize);}
ZooListPane.prototype.azl = function(a,b) {azzba("ListPane.prototype.sortFn "+ZooListPane.SORT_COL);var aa = getTextValue(a.childNodes[ZooListPane.SORT_COL]);var bb = getTextValue(b.childNodes[ZooListPane.SORT_COL]);if (aa==bb) return 0;if (aa<bb) return -1;return 1;}
ZooListPane.SORT_COL = 0;ZooListPane.SORT_DESC = false;ZooListPane.prototype.azzzba = function(_col) {if (ZooListPane.SORT_COL==_col) {ZooListPane.SORT_DESC = ! ZooListPane.SORT_DESC;} else {ZooListPane.SORT_DESC = false;}
ZooListPane.SORT_COL = _col;azzba("ListPane.sort "+_col);this.listRows.sort(this.azl);if (ZooListPane.SORT_DESC) {this.listRows.reverse();}
this.ahaa(this.currentLine,this.currentLine+this.pageSize);}
ZooListPane.prototype.azzmaa = function() {var tbody = this._dataTableBody;if (tbody) {while (tbody.rows.length>1) {tbody.removeChild(tbody.rows[tbody.rows.length-1]);}
}
}
ZooListPane.prototype.ahaa = function(_start,_end) {if (this.listRows.length==0) {return;}
this.azzmaa();var i = _start;for (i=_start;i<_end;i++) {if (i>=this.listRows.length) {break;}
this._dataTableBody.appendChild(this.listRows[i]);}
if (_end>=this.listRows.length) {this.divNext.className="list_header_cell_inactive";this.divLast.className="list_header_cell_inactive";} else {this.divNext.className="list_header_cell";this.divLast.className="list_header_cell";}
if (_start<=0) {this.divPrev.className="list_header_cell_inactive";this.divFirst.className="list_header_cell_inactive";} else {this.divPrev.className="list_header_cell";this.divFirst.className="list_header_cell";}
var hdr = this._headerRow.childNodes;for (var j=0;j<hdr.length;j++) {var img = "<img width=13 height=13 border=0 src='images/spacer.gif'>";if (ZooListPane.SORT_COL==j) {if (ZooListPane.SORT_DESC) {img = "&#9652; &nbsp;";} else {img = "&#9662; &nbsp;";}
}
hdr[j].innerHTML = img+hdr[j].title;}
if (this.divCount) {this.divCount.innerHTML = "[ <b>"+(_start+1)+"</b>-<b>"+i+"</b> of "+this.listRows.length+" ]";}
}
ZooListPane.prototype.azzzdaa = function() {this._curRow = $azzzl("TR");for (var i=0;i<this._columnNames.length;i++) {var td = $azzzl("TD");td.className = "list_cell";this._curRow.appendChild(td);}
this.listRows.push(this._curRow);}
ZooListPane.prototype.azzcaaa = function(item,atom,atomDOM) {var colNum = this._columnRef[atom.azzeaa()];this._curRow.childNodes[colNum].appendChild(atomDOM);return false;}
ZooListPane.prototype.aba = function(id, actions, item) {ZooPane.prototype.azzzze.call(this,id,actions,item);this.azzzdaa();item.azzfaaa(this);};ZooListPane.prototype.azzfaaa = function() {ZooPane.prototype.azzfaaa.call(this);this.ahaa(0,20);this.azzzzq(this._table);return this._table;};ZooTemplatePane = function() {ZooPane.call(this);this._type = "template";this._template = "";}
ZooTemplatePane.prototype = new ZooPane();ZooPane.azzma("template", ZooTemplatePane);ZooTemplatePane.prototype.azzzze = function(branch) {ZooPane.prototype.azzzze.call(this,branch);this._div = $azzzl("div");this._template = this.azzzzzd().azzia("template");if (this._template!=null) {this._div.innerHTML = this._template;}
var t = this._div.getElementsByTagName("table");for (var i=0;i<t.length;i++) {var el = t[i];if (el.getAttribute) {var placement = el.getAttribute("zoo_component");if (placement=='table') azzzzzc(el);}
}
};ZooTemplatePane.prototype.aba = function(id, actions, item) {ZooPane.prototype.aba.call(this,id,actions,item);item.azzfaaa(this);var atoms = item.azhaaa();for (var i=0;i<atoms.length;i++) {var name = atoms[i].azzeaa();var content = atoms[i].azzfaaa();var placed = this.azzzz(name,content,this._div);if (! placed) {var loopPlaced = this.azzg(name,content,this._div);if (loopPlaced) this.azzzz(name,content,this._div);}
}
};ZooTemplatePane.prototype.azzg = function(_name,_content,_container) {var el = _container.firstChild;var placed = false;while (el) {if (el.getAttribute) {var placement = el.getAttribute("zoo_atom");if (placement ==_name) {var element = el;var loopazlaaaa = null;while (element.parentNode) {if (element.getAttribute("zoo_loop")!=null) {loopazlaaaa = element;break;}
element = element.parentNode;}
if (loopazlaaaa!=null) {var newazlaaaa = loopazlaaaa.cloneNode(true);ZooTemplatePane.abaaa(newazlaaaa);loopazlaaaa.parentNode.appendChild(newazlaaaa);return true;}
}
}
if (el.hasChildNodes()) placed = this.azzg(_name,_content,el);if (placed) return true;el = el.nextSibling;}
return false;}
ZooTemplatePane.prototype.azzzz = function(_name,_content,_container) {var el = _container.firstChild;var placed = false;while (el) {if (el.getAttribute) {var placement = el.getAttribute("zoo_atom");if (placement ==_name) {var status = el.getAttribute("zoo_status");if (azzi(status)) {el.appendChild(_content);el.setAttribute("zoo_status","on");return true;}
}
}
if (el.hasChildNodes()) placed = this.azzzz(_name,_content,el);if (placed) return true;el = el.nextSibling;}
return false;}
ZooTemplatePane.abaaa = function(_container) {var el = _container.firstChild;while (el) {if (el.getAttribute) {var placement = el.getAttribute("zoo_atom");if (placement!=null) {el.removeAttribute("zoo_status");var node = el.firstChild;while (node) {var nextNode = node.nextSibling;el.removeChild(node);node = nextNode;}
}
}
if (el.hasChildNodes()) this.abaaa(el);el = el.nextSibling;}
}
ZooTemplatePane.prototype.azzcaaa = function(item,atom,element) {return true;}
ZooTemplatePane.prototype.azzfaaa = function() {ZooPane.prototype.azzfaaa.call(this);this.azzzzq(this._div);return this._div;};Zoo.menu = function(name, attach_obj, no_auto_hide) {attach_obj = $zej(attach_obj);this._div = $azzzl("DIV");azzzzo(this._div, "menu");$zej(this._div);this._noAutoHide = no_auto_hide;azlaaaa.hide(this._div);attach_obj.appendChild(this._div);this._id = Zoo.menu._total++;this._div.id = "menu_" + this._id;var template = new Zoo.template("MENU");template.azeaaaa("ID", this._id);template.azeaaaa("TITLE", name);this._div.innerHTML = template.value;this._linksDiv = $zej("menu_" + this._id + "_links");this._mouseOut = this.ataaa.azzzzf(this);this._mouseUp = this.azzzzca.azzzzf(this);this._fade_mouseOverEvt = this.azkaaaa.azzzzf(this);this._showing = false;this._empty = true;this._links = new Object();};var azaaaa = Zoo.menu;ai.ab("azaaaa", true, true);Zoo.menu._currentActive = undefined;Zoo.menu._total = 0;Zoo.menu.prototype.an = function() {return this._empty;};Zoo.menu.prototype.azaaa = function(title) {if (!this._links["a_" + title]) {Zoo.utils.alert("Cannot hide link of: " + title + " as doesn't exist");return;}
azlaaaa.hide(this._links["a_" + title]);azlaaaa.hide(this._links["b_" + title]);};Zoo.menu.prototype.azzzzp = function(title) {if (!this.links["a_" + title]) {Zoo.utils.alert("Cannot hide link of: " + title + " as doesn't exist");return;}
azlaaaa.show(this._links["a_" + title]);azlaaaa.show(this._links["b_" + title]);};Zoo.menu.prototype.aznaaaa = function(title, onClick) {this._empty = false;var div = this._linksDiv;var a = $azzzl("A");a.href = "#";a.innerHTML = title;azzzwaa(a, Zoo.utils.return_false(onClick));div.appendChild(a);var br = $azzzl("BR");div.appendChild(br);this._links["a_" + title] = a;this._links["b_" + title] = br;};Zoo.menu.prototype.aeaaa = function(links) {var div = this._linksDiv;for (var link in links) this.aznaaaa(link, links[link]);};Zoo.menu.prototype.azkaaaa = function() {if (this._autoHide) clearTimeout(this._autoHide);this._autoHide = false;azznaa.stopObserving(this._div, "mouseover", this._azeaa);azlaaaa.show(this._div);azznaa.observe(this._div, "mouseout", this._mouseOut);this._showing = true;if (Zoo.menu._currentActive && Zoo.menu._currentActive != this) {Zoo.menu._currentActive.azzta();Zoo.menu._currentActive = this;}
}
Zoo.menu.prototype.azzta = function() {if (!this._showing) return;if (this._autoHide) clearTimeout(this._autoHide);this._autoHide = false;this._showing = false;azznaa.stopObserving(this._div, "mouseout", this._mouseOut);azlaaaa.hide(this._div);azznaa.observe(this._div, "mouseover", this._fade_mouseOverEvt);Zoo.menu._currentActive = this;};Zoo.menu.prototype.azzya = function(position) {if (!Zoo.utils.verify_options({top: 0, left: 0, right: 0, bottom: 0 }, position)) return;var xy = azzfaa();if (position.top) this._div.style.top = (position.top + xy[1]) + "px";else
this._div.style.top = "";if (position.left) this._div.style.left = (position.left + xy[0]) + "px";else
this._div.style.left = "";if (position.right) this._div.style.right = position.right + "px";else
this._div.style.right = "";if (position.bottom) this._div.style.bottom = position.bottom + "px";else
this._div.style.bottom = "";};Zoo.menu.prototype.azgaaa = function(position) {if (position) this.azzya(position);if (this.showing) return;if (Zoo.menu._currentActive && Zoo.menu._currentActive != this) Zoo.menu._currentActive.azzta();Zoo.menu._currentActive = this;this._showing = true;azlaaaa.show(this._div);azznaa.observe(this._div, "mouseout", this._mouseOut);azznaa.observe(this._div, "mouseup", this._mouseUp);azznaa.observe(this._div, "mouseover", this._fade_mouseOverEvt);if (!this._noAutoHide) this._autoHide = setTimeout(this.azzta.azzzzf(this), 5000);};Zoo.menu.prototype.azzzzca = function(evt) {this.azzta();};Zoo.menu.prototype.ataaa = function(evt) {var e = window.event ? window.event : evt;var toElem = e.toElement ? e.toElement : e.relatedTarget;if (toElem) {if (toElem == this._linksDiv || toElem == this._div) return;if (toElem.parentNode == this._div || toElem.parentNode == this._linksDiv) return;}
this.azzta();};Zoo.menu.prototype.azzqa = function() {return azlaaaa.getWidth(this._div);};Zoo.menu.prototype.azg = function() {return azlaaaa.getHeight(this._div);};var afaa = new Object();ai.ab("afaa",false,false);zoowee_TITLBAR_ACTIVE = false;zoowee_SHOW_HOMEPAGE = false;afaa.azzzze = function() {ai.azzoaaa("afaa");if (zoowee_SHOW_SITEMETRICS) {azaaaaa.aznaaaa("Tools","Site Metrics",anaaaaa("azqaaa.azzfaaa('@sitemetrics!'+azqaaa.azzha(),'@sitemetrics','Site Metrics',false)"));azaaaaa.azgaaa("Tools","Site Metrics");}
if (zoowee_LOAD_WELCOME) {azaaaaa.aznaaaa("Session","Welcome",anaaaaa("azqaaa.azzfaaa('@welcome!'+azqaaa.azzha(),'@"+zoowee_LOAD_WELCOME+"','Welcome',false)"));azaaaaa.azgaaa("Session","Welcome");azqaaa.azzfaaa('@welcome!'+azqaaa.azzha(),'@'+zoowee_LOAD_WELCOME,'Welcome',false);}
}
afaa.azwaaaa = function(){azqaaa.addEventListener("awa azmaa",afa(this,"azzl"));this.azzsa();if (window.azzj) {azzj.addEventListener("abaaaa agaaaaa",afa(this,"azzraa"));azzj.addEventListener("abaaaa azzzzm",afa(this,"azzzfaa"));}
}
afaa.azzsa = function(){if (zoowee_SHOW_HOMEPAGE) azaaaaa.aznaaaa("Session","My Profile",anaaaaa("azqaaa.azzfaaa('tUSER*'+azzj.agaaaa()+'!'+azqaaa.azzha(),'tUSER*'+azzj.agaaaa(),'My Profile',false)"));if (zoowee_ADMIN_TOOL_TITLES) {for (var x=0;x<zoowee_ADMIN_TOOL_TITLES.length;x++) azaaaaa.aznaaaa("Tools",zoowee_ADMIN_TOOL_TITLES[x],anaaaaa(zoowee_ADMIN_TOOL_ACTIONS[x]));}
if (LOAD_QUICKNAV) {azaaaaa.aznaaaa("Session","My Quick Nav",anaaaaa("azqaaa.azzfaaa('@quicknav_'+azzj.azzxaaa()+'!'+azqaaa.azzha(),'@"+LOAD_QUICKNAV+"?username='+azzj.azzxaaa(),'Quick Nav',false)"));}
}
afaa.azzraa = function(){if (zoowee_SHOW_HOMEPAGE) {azqaaa.azzfaaa('tUSER*'+azzj.agaaaa()+'!'+azqaaa.azzha(),'tUSER*'+azzj.agaaaa(),'My Profile',false);azaaaaa.azgaaa("Session","My Profile");}
if (LOAD_QUICKNAV) {azqaaa.azzfaaa('@quicknav_'+azzj.azzxaaa()+'!'+azqaaa.azzha(),'@'+LOAD_QUICKNAV+'?username='+azzj.azzxaaa(),'Quick Nav',false);azaaaaa.azgaaa("Session","My Quick Nav");}
if (zoowee_ADMIN_TOOL_TITLES) {if ((azzj.groups) && (azzj.groups.indexOf("ADMINISTRATOR")>=0)) {for (var x=0;x<zoowee_ADMIN_TOOL_TITLES.length;x++) azaaaaa.azgaaa("Tools",zoowee_ADMIN_TOOL_TITLES[x]);}
}
}
afaa.azzzfaa = function(){if (zoowee_SHOW_HOMEPAGE) azaaaaa.azzta("Session","My Profile");if (LOAD_QUICKNAV) {azaaaaa.azzta("Session","My Quick Nav");}
if (zoowee_ADMIN_TOOL_TITLES) {if ((azzj.groups) && (azzj.groups.indexOf("ADMINISTRATOR")>=0)) {for (var x=0;x<zoowee_ADMIN_TOOL_TITLES.length;x++) azaaaaa.azzta("Tools",zoowee_ADMIN_TOOL_TITLES[x]);}
}
}
afaa.azzl = function(evt){var e = window.event ? window.event : evt;var win = e.event_data.data;if (this.TITLBAR_ACTIVE) {if (win.pane) {$zej("titletext").innerHTML = win.mtitle;$zej("titlemenu").onclick = azzmaaa(afa(win,"ar"),false);}
}
}
afaa.azzze = function(force){if (force) this.resizeTooSoon = false;if (this.resizeTooSoon) return;this.resizeTooSoon = true;setTimeout("afaa.resizeTooSoon=false",100);document.body.style.height=azzzxa() + "px";azqaaa.aza();}
var scroller_MIN_SCROLL;function aiaa(props){aja({obj:1,width:1,height:1},props);var obj = $zej(props.obj);obj.style.width = props.width + "px";obj.style.height = props.height + "px";obj.style.overflow = "hidden";this.div = obj;this.MIN_SCROLL = scroller_MIN_SCROLL;}
aya = 5;azsaa = 5;aiaa.prototype.azzzzzm = function(height){this.div.style.height = height + "px";}
aiaa.prototype.azzzzqa = function(width){this.div.style.width = width + "px";}
aiaa.prototype.ala = function(how,amt,speed){this.speed = (speed) ? speed : scroller_SPEED;this.azha();var curPos = this.div.scrollTop;var newPos;switch (how) {case 'f':
newPos = curPos + amt;break;case 'b':
newPos = curPos - amt;break;case 'abs':
newPos = amt;break;default:
ahaaaaa("Unable to scroll in way: " + how);return;}
if (newPos < 0) newPos = 0;if (newPos > this.div.scrollHeight) newPos = this.div.scrollHeight;this.newPos = newPos;this.awaaa();}
aiaa.prototype.azzzca = function(isForward,amt){this.azha();this.const_amt = amt;this.const_fw = isForward;this.azzzzta();}
aiaa.prototype.azzzzta = function(){if (this.const_fw) this.div.scrollTop += this.const_amt;else
this.div.scrollTop -= this.const_amt;if(this.div.scrollTop > this.div.scrollHeight || this.div.scrollTop < 0) this.timer = false;else
this.timer = setTimeout(afa(this,"azzzzta"),100);}
aiaa.prototype.awaaa = function(){var curPos = this.div.scrollTop;var amt = Math.abs(curPos - this.newPos);var change = amt / this.speed;if (change < this.MIN_SCROLL) change = (amt > this.MIN_SCROLL) ? this.MIN_SCROLL : amt;if (curPos < this.newPos) this.div.scrollTop += change;else
this.div.scrollTop -= change;if (amt > 10) this.timer = setTimeout(afa(this,"awaaa"),100);else
this.timer = false;}
aiaa.prototype.azha = function(){if (this.timer) clearTimeout(this.timer);this.timer = false;}
var SORT_COLUMN_INDEX;function aiaaaaa() {if (!document.getElementsByTagName) return;tbls = document.getElementsByTagName("table");for (ti=0;ti<tbls.length;ti++) {thisTbl = tbls[ti];if (((' '+thisTbl.className+' ').indexOf("sortable") != -1) && (thisTbl.id)) {azzzzzc(thisTbl);}
}
}
function azzzzzc(table) {if (table.rows && table.rows.length > 0) {var firstRow = table.rows[0];}
if (!firstRow) return;for (var i=0;i<firstRow.cells.length;i++) {var cell = firstRow.cells[i];var txt = aaaa(cell);cell.innerHTML = '<a href="#" class="sortheader" '+
'onclick="azzwa(this, '+i+');return false;">' +
txt+'<span class="sortarrow">&nbsp;.&nbsp;&nbsp;</span></a>';}
}
function aaaa(el) {if (typeof el == "string") return el;if (typeof el == "undefined") {return el };if (el.innerText) return el.innerText;var str = "";var cs = el.childNodes;var l = cs.length;for (var i = 0;i < l;i++) {switch (cs[i].nodeType) {case 1:
str += aaaa(cs[i]);break;case 3:
str += cs[i].nodeValue;break;}
}
return str;}
function azzyaaa(el) {return parseFloat(aaaa(el));}
function azzwa(lnk,clid) {var span;for (var ci=0;ci<lnk.childNodes.length;ci++) {if (lnk.childNodes[ci].tagName && lnk.childNodes[ci].tagName.toLowerCase() == 'span') span = lnk.childNodes[ci];}
var spantext = aaaa(span);var td = lnk.parentNode;var column = clid || td.cellIndex;var table = azjaaaa(td,'TABLE');if (table.rows.length <= 1) return;var itm = aaaa(table.rows[1].cells[column]);sortfn = azzzvaa;if (itm.match(/^\d\d[\/-]\d\d[\/-]\d\d\d\d$/)) sortfn = aoaa;if (itm.match(/^\d\d[\/-]\d\d[\/-]\d\d$/)) sortfn = aoaa;if (itm.match(/^[£$]/)) sortfn = azzzi;if (itm.match(/^[\d\.]+$/)) sortfn = azzzzr;SORT_COLUMN_INDEX = column;var firstRow = new Array();var newRows = new Array();for (i=0;i<table.rows[0].length;i++) {firstRow[i] = table.rows[0][i];}
for (j=1;j<table.rows.length;j++) {newRows[j-1] = table.rows[j];}
newRows.sort(sortfn);if (span.getAttribute("sortdir") == 'down') {ARROW = '&nbsp;&nbsp;&uarr;';newRows.reverse();span.setAttribute('sortdir','up');} else {ARROW = '&nbsp;&nbsp;&darr;';span.setAttribute('sortdir','down');}
for (i=0;i<newRows.length;i++) {if (!newRows[i].className || (newRows[i].className && (newRows[i].className.indexOf('sortbottom') == -1))) table.tBodies[0].appendChild(newRows[i]);}
for (i=0;i<newRows.length;i++) {if (newRows[i].className && (newRows[i].className.indexOf('sortbottom') != -1)) table.tBodies[0].appendChild(newRows[i]);}
var allspans = document.getElementsByTagName("span");for (var ci=0;ci<allspans.length;ci++) {if (allspans[ci].className == 'sortarrow') {if (azjaaaa(allspans[ci],"table") == azjaaaa(lnk,"table")) {allspans[ci].innerHTML = '&nbsp;.&nbsp;&nbsp;';}
}
}
span.innerHTML = ARROW;}
function azjaaaa(el, pTagName) {if (el == null) return null;else if (el.nodeType == 1 && el.tagName.toLowerCase() == pTagName.toLowerCase())return el;else
return azjaaaa(el.parentNode, pTagName);}
function aoaa(a,b) {aa = aaaa(a.cells[SORT_COLUMN_INDEX]);bb = aaaa(b.cells[SORT_COLUMN_INDEX]);if (aa.length == 10) {dt1 = aa.substr(6,4)+aa.substr(3,2)+aa.substr(0,2);} else {yr = aa.substr(6,2);if (parseInt(yr) < 50) {yr = '20'+yr;} else {yr = '19'+yr;}
dt1 = yr+aa.substr(3,2)+aa.substr(0,2);}
if (bb.length == 10) {dt2 = bb.substr(6,4)+bb.substr(3,2)+bb.substr(0,2);} else {yr = bb.substr(6,2);if (parseInt(yr) < 50) {yr = '20'+yr;} else {yr = '19'+yr;}
dt2 = yr+bb.substr(3,2)+bb.substr(0,2);}
if (dt1==dt2) return 0;if (dt1<dt2) return -1;return 1;}
function azzzi(a,b) {aa = aaaa(a.cells[SORT_COLUMN_INDEX]).replace(/[^0-9.]/g,'');bb = aaaa(b.cells[SORT_COLUMN_INDEX]).replace(/[^0-9.]/g,'');return parseFloat(aa) - parseFloat(bb);}
function azzzzr(a,b) {aa = parseFloat(aaaa(a.cells[SORT_COLUMN_INDEX]));if (isNaN(aa)) aa = 0;bb = parseFloat(aaaa(b.cells[SORT_COLUMN_INDEX]));if (isNaN(bb)) bb = 0;return aa-bb;}
function azzzvaa(a,b) {aa = aaaa(a.cells[SORT_COLUMN_INDEX]).toLowerCase();bb = aaaa(b.cells[SORT_COLUMN_INDEX]).toLowerCase();if (aa==bb) return 0;if (aa<bb) return -1;return 1;}
function aoaaaa(a,b) {aa = aaaa(a.cells[SORT_COLUMN_INDEX]);bb = aaaa(b.cells[SORT_COLUMN_INDEX]);if (aa==bb) return 0;if (aa<bb) return -1;return 1;}
function zoo_doInit(){if (window.ZOO_BUBBLE_CONTAINER)return;ZOO_BUBBLE_CONTAINER = $azzzl("DIV");ZOO_BUBBLE_CONTAINER.id = "zoo_Desktop";ZOO_BUBBLE_CONTAINER.className = "zoo";if (! window.ZOO_WORKSPACE) ZOO_WORKSPACE=document.body;ZOO_WORKSPACE.appendChild(ZOO_BUBBLE_CONTAINER);DesktopX = aaaaaa(ZOO_BUBBLE_CONTAINER);DesktopY = aaaaaaa(ZOO_BUBBLE_CONTAINER);azaaaaa.azuaaa("Tools");azaaaaa.azuaaa("Session");azaaaaa.azuaaa("Bubbles");ai.addEventListener("azwaaaa",azzaaa);ai.azzbaa();azznaa.observe(document.body,"mousemove",azzzsa);if (CACHE_ONLOAD_OBJS) {for (var x = 0;x < CACHE_ONLOAD_OBJS.length;x++) azzcaa(CACHE_ONLOAD_OBJS[x]);}
}
function azzaaa(){Zoo.monitors.azzzze();aoaaaaa();azzzzzb("init bubbles","["+navigator.platform+"]["+navigator.userAgent+"]");var elems = document.getElementsByTagName("A");for (var x = 0;x < elems.length;x++) {var pos = elems[x].href.indexOf("javascript:zoo");if (pos!=-1) elems[x].href="javascript:"+elems[x].href.substring(pos+11);}
}
function azzzsaa(req,name){dataHash[name]=req.responseText;}
var mouseX;var mouseY;function azzzsa(evt){var e = window.event ? window.event : evt;mouseX = evt.clientX;mouseY = evt.clientY;}
function azzcaa(dataid){var sURL = 'token.jsp?q='+dataid;if (sURL.indexOf("http://") == -1)sURL = absPath + sURL;var opts = new Object();opts.method = "POST";Zoo.network.azgaa(sURL,opts);}
function ajaaaa(title,token,link,op){azqaaa.ajaaaa(title,token,link,op);}
function aoaaaaa(){var str = window.location.hash;var reg = /zoo_([a-z0-9]+)/i;var ret = str.match(reg);if (! ret || ret.length != 2) return;akaa(ret[1],azzzlaa()/2-250,azzzxa()/2-250,500,300);}
azznaa.observe(window,"load", zoo_doInit);azsaaa.azxaaa("ford", "png", 32, 33, 7, 7, true);JSWindow_ALLOW_MINIMIZE = false;JSWindow_ALLOW_POPOUT=false;JSWindow_ADJUST_LEVEL = 'move';user_LOGIN=true;ZOO_SHOW_BUBBLE_TITLES=false;user_ACCOUNT_MANAGE=true;SCROLLER_WIDTH=200;gridpane_SHOW_PROPERTIES=["AMG Rating","Release Date","Rating"];box_MINI_LOGO_NAME = "zoowee_logo.gif";loading_status_bar = false;JSWindow_AUTOSIZE_MAXIMIZE=false;JSWindow_ALLOW_MAXIMIZE=false;defaultSkinName = "ford";
var abaaaaa = new Object();var loading_status_bar = true;abaaaaa.azwaaaa = function() {if (loading_status_bar) {this.statusDiv = $azzzl("DIV");azzzzo(this.statusDiv, "loading_bar");var template = new Zoo.template("LOADBAR");template.azeaaaa("SKINPATH", ayaaaaa());
this.statusDiv.innerHTML = template.value;azaaaaa.azh().appendChild(this.statusDiv);azlaaaa.hide(this.statusDiv);}
else {var img = $azzzl("IMG");img.src = ayaaaaa() + "images/loader.gif";azzzzo(img, "loading_icon");azlaaaa.hide(img);this.statusDiv = img;ZOO_BUBBLE_CONTAINER.appendChild(this.statusDiv);}
this.shown = false;this.pending = 0;this.timer = false;this.new_urls = new Object();Zoo.network.addEventListener("azzzzb azda", afa(this, "azzzzw"));Zoo.network.addEventListener("auaaaaa azda", afa(this, "azzzzw"));Zoo.network.addEventListener("aznaa azda", afa(this, "amaa"));ai.azzoaaa("abaaaaa");}
abaaaaa.amaa = function(evt) {var e = window.event ? window.event : evt;if ((e.event_data.data.params && e.event_data.data.params.indexOf("keepalive") != -1) || e.event_data.data.url.indexOf("logger") != -1 || e.event_data.data.url.indexOf("/chat") != -1)
return;this.pending++;this.azzna();azlaaaa.show(this.statusDiv);this.new_urls[e.event_data.data.id] = 1;}
abaaaaa.aw = function() {for (var x in this.new_urls) {if (this.new_urls[x] != 1) continue;Zoo.network.azzvaaa(x);}
}
abaaaaa.azzzzw = function(evt) {var e = window.event ? window.event : evt;if (!this.new_urls[e.event_data.data.id]) return;this.new_urls[e.event_data.data.id] = 2;this.pending--;this.azzna();}
abaaaaa.azzna = function() {if (this.timer) {clearTimeout(this.timer);this.timer = false;}
if (this.pending && !this.shown) {azlaaaa.show(this.statusDiv);this.shown = true;}
else if (!this.pending && this.shown) {this.shown = false;this.timer = setTimeout(afa(this, "azzuaa"), 500);}
}
abaaaaa.azzuaa = function() {azlaaaa.hide(this.statusDiv);this.timer = false;}
ai.azzqaaa("abaaaaa");
var acaaaaa = new Object();acaaaaa.inited = false;var PROXY_POOL_START = 1;acaaaaa.azzzze = function() {if (this.inited) return;this.inited = true;this.tmpDiv = document.createElement("DIV");this.tmpDiv.id = "proxy_tmp";this.tmpDiv.className = "scrapArea";azlaaaa.hide(this.tmpDiv);document.body.appendChild(this.tmpDiv);this.totalReqs = 1;this.requests = new Object();if (!aaaaa()) {this.pool = new Array();for (var x = 0;x < PROXY_POOL_START;x++) this.azzkaa();}
ai.azzoaaa("acaaaaa");}
acaaaaa.azzkaa = function(useIt) {var frame = document.createElement("iframe");azlaaaa.hide(frame);this.tmpDiv.appendChild(frame);this.pool.push(frame);this.pool.used = useIt;return frame;}
acaaaaa.azkaa = function(method, url, parameters, onSuccess, onFailure) {if (parameters) url += "?" + parameters;return this.azda(url, onSuccess);};acaaaaa.azda = function(url, callback) {this.azzzze();if (url.indexOf("http://") != 0)
url = absPath + url;url = azzw(url);if (window.asaaaa) {var cacheKey = url;var cacheObj = asaaaa.azvaaa(cacheKey);if (cacheObj) {callback(cacheObj);return;}
}
var id = this.totalReqs++;var time = new Date();this.requests[id] = new Object();var reqObj = new Object();reqObj.id = id;this.requests[id].url = url;reqObj.transport = new Object();reqObj.transport.abort = azzmaaa(afa(this, "azzzpa"), id);this.requests[id].callback = callback;this.requests[id].reqObj = reqObj;var obj;if (!aaaaa()) {for (var x = 0;x < this.pool.length;x++) {if (!this.pool[x].used) {this.requests[id].pool = this.pool[x];this.pool[x].used = true;x = this.pool.length;}
}
if (!this.requests[id].pool) this.requests[id].pool = this.azzkaa(true);obj = this.requests[id].pool.contentWindow.document.createElement('script');}
else
obj = document.createElement("script");obj.src = absPath + "proxy.jsp?url=" + url + "&id=" + id + "&date=" + time.getTime();azzba("PROXY NETWORK REQUEST "+obj.src);if (aaaaa()) this.tmpDiv.appendChild(obj);else
setTimeout(this.azzzja.azzzzf(this,this.requests[id].pool,obj),200);
return this.requests[id].reqObj.transport;
}
acaaaaa.azzzja = function(frame,dom){frame.contentDocument.body.appendChild(dom);}
acaaaaa.azzzpa = function(id, code) {this.requests[id].aborted = true;}
acaaaaa.azzzzwa = function(id, code) {if (this.requests[id].aborted) {if (!aaaaa()) this.requests[id].pool.used = false;return;}
azzba("PROXY CALLBACK "+id+" ");var req = this.requests[id].reqObj.transport;req.responseText = adaa(code);if (req.responseText.charAt(0) == '<') {req.responseXML = ama(req.responseText);if (!req.responseXML) return;}
if (!aaaaa()) this.requests[id].pool.used = false;this.requests[id].reqObj.transport = req;if (window.asaaaa) asaaaa.azzzw(this.requests[id].url, req);
if (this.requests[id].callback) this.requests[id].callback(req);
this.requests[id].reqObj.transport = undefined;delete this.requests[id].reqObj.transport;this.requests[id].url = undefined;delete this.requests[id].url;this.requests[id].callback = undefined;delete this.requests[id].callback;this.requests[id] = undefined;delete this.requests[id];}
if (window.ai) ai.azzqaaa("acaaaaa");
var azja = new Object();azja.loadedDate = "";azja.clientID = (new Date()).getTime()+"_"+Math.floor(Math.random()*1000000);azja.azzzzd = function(type, data) {if (!type) type = "";if (!data) data = "";var params = "";if (window.azzj && azzj.username) params += "username=" + azzw(azzj.username) + "&";var host = "" + window.location;params += "page=" + azzw(host.substr(0, 120)) + "&";params += "type=" + azzw(type) + "&data=" + azzw(data);params += "&date=" + this.loadedDate;params +="&clientid="+azja.clientID;Zoo.network.azzzzda(absPath + "logger", params, azja.azzzy.azzzzf(this));}
azja.azwaaaa = function() {var dt = new Date();this.loadedDate = azzw(dt.getTime());
}
azja.azzzg = function(type, evt) {var e = window.event ? window.event : evt;var jsWin = e.event_data.data;var token;var pane = jsWin.azu();if (pane && pane.azzzb) token = pane.azzzb();this.azzzzd(type, token);}
azja.azzzy = function(req, obj) {}
ai.azzqaaa("azja");
ai.template_content = "%3Cxmp%20id%3D%22TEMPLATE_SEARCH%22%20class%3D%22template%22%3E%0A%09%3Cinput%20id%3D%22search_field%22%3E%3Ca%20class%3Dnav_item%20href%3D'javascript%3Aazzfa(%24F(%22search_field%22)%2C%24F(%22search_class_title%22))%3B'%3ELookup%3C%2Fa%3E%0A%09%3CBR%3E%0A%09%3Cdiv%20id%3D%22search_class_div%22%20name%3D%22search_class_div%22%20class%3Dsearch_class_div%3E%3C%2Fdiv%3E%26nbsp%3B%0A%3C%2Fxmp%3E%0A%3Cxmp%20id%3D%22TEMPLATE_MINIMIZED_ITEM%22%20class%3D%22template%22%3E%3Ctable%20border%3D0%20cellpadding%3D0%20cellspacing%3D0%3E%3Ctr%3E%3Ctd%3E%3Cimg%20class%3D'left_icon'%20src%3D%22%5BSKINPATH%5Dimages%2Fminl_edge.gif%22%20id%3D%22MIN_%5BID%5D_MAX%22%3E%3C%2Ftd%3E%3Ctd%20class%3D%22title%22%20id%3D%22MIN_%5BID%5D_TEXT%22%3E%5BTITLE%5D%3C%2Ftd%3E%3Ctd%3E%3Cimg%20class%3D'right_icon'%20src%3D%22%5BSKINPATH%5Dimages%2Fminr_edge.gif%22%20id%3D%22MIN_%5BID%5D_EXPAND%22%3E%3C%2Ftd%3E%3C%2Ftr%3E%3C%2Ftable%3E%3C%2Fxmp%3E%0A%3Cxmp%20id%3D%22TEMPLATE_WINDOW%22%20class%3D%22template%22%3E%0A%09%3Cdiv%20class%3D%22mainBody%22%20id%3D%22WINHOOK_%5BID%5D%22%3E%20%3C%2Fdiv%3E%0A%3C%2Fxmp%3E%0A%0A%3Cxmp%20id%3D%22TEMPLATE_POPVIDEO%22%20class%3D%22template%22%3E%0A%3C!DOCTYPE%20html%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20XHTML%201.0%20Transitional%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-transitional.dtd%22%3E%0A%3Chtml%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%3E%0A%3Chead%3E%0A%3Cstyle%3E%0A*%20%7B%0A%09padding%3A%200%3B%0A%09margin%3A%200%3B%0A%7D%0A%3C%2Fstyle%3E%3C%2Fhead%3E%3Cbody%3E%0A%3Cembed%20type%3D'application%2Fx-mplayer2'%20id%3D'MediaPlayer2'%20name%3D'MediaPlayer2'%20width%3D320%20height%3D240%20ShowControls%3D1%20ShowDisplay%3D1%20AutoStart%3D1%20ShowStatusBar%3D1%20filename%3D%22%5BSRC%5D%22%3E%3C%2Fembed%3E%0A%3C%2Fbody%3E%0A%3C%2Fxmp%3E%0A%3Cxmp%20id%3D%22TEMPLATE_POPCODE%22%20class%3D%22template%22%3E%0A%3C!DOCTYPE%20html%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20XHTML%201.0%20Transitional%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FTR%2Fxhtml1%2FDTD%2Fxhtml1-transitional.dtd%22%3E%0A%3Chtml%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%3E%0A%3Chead%3E%0A%3Cstyle%3E%0A*%20%7B%0A%09padding%3A%200%3B%0A%09margin%3A%200%3B%0A%7D%0A%3C%2Fstyle%3E%3C%2Fhead%3E%3Cbody%3E%0A%5BCODE%5D%0A%3C%2Fbody%3E%0A%3C%2Fxmp%3E%0A%0A%0A%3Cxmp%20id%3D%22TEMPLATE_POP%22%20class%3D%22template%22%3E%0A%09%3CHTML%20class%3D%22zoo%22%3E%0A%09%3CHEAD%20id%3Dzhead%3E%0A%09%09%3Ctitle%3E%5BTITLE%5D%3C%2Ftitle%3E%0A%09%09%3Clink%20%20href%3D%22%5BABSPATH%5Drpop.html.css%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%20%2F%3E%0A%09%09%3Cscript%20src%3D'%5BABSPATH%5Drpop.html.js'%09%09type%3D'text%2Fjavascript'%20language%3D%22javascript%22%3E%3C%2Fscript%3E%0A%09%09%3Cbase%20src%3D%22%5BSRC%5D%22%2F%3E%0A%0A%09%3C%2FHEAD%3E%0A%09%3CBODY%20class%3D%22popout%22%3E%0A%09%5BBODY%5D%0A%09%3C%2FBODY%3E%0A%09%3C%2FHTML%3E%0A%3C%2Fxmp%3E%0A%3Cxmp%20id%3D%22TEMPLATE_TEST%22%20class%3D%22template%22%3E%3C%3C%2Fxmp%3E%0A%3Cxmp%20id%3D%22TEMPLATE_ZSIG%22%20class%3D%22template%22%3E%0A%3Ctable%3E%3Ctr%3E%3Ctd%3E%5B%5BPIC%5D%5D%3C%2Ftd%3E%3Ctd%3E%5B%5BDESCRIPTION%5D%5D%3C%2Ftd%3E%3C%2Ftr%3E%3C%2Ftable%3E%0A%3C%2Fxmp%3E%0A%3Cxmp%20id%3D%22TEMPLATE_sig%22%20class%3D%22template%22%3E%0A%3Ctable%3E%0A%09%3Ctr%3E%3Ctd%20valign%3D%22top%22%3E%5B%5BPROFILE%5D%5D%3C%2Ftd%3E%0A%09%3Ctd%3E%0A%09%09%5B%5BDESCRIPTION%5D%5D%0A%09%3C%2Ftd%3E%0A%09%3C%2Ftr%3E%0A%3C%2Ftable%3E%0A%3C%2Fxmp%3E%0A%0A%0A%3Cxmp%20id%3D%22TEMPLATE_MENU%22%20class%3D%22template%22%3E%0A%3Cdiv%20class%3D%22title%22%3E%5BTITLE%5D%3C%2Fdiv%3E%0A%3Cdiv%20class%3D%22links%22%20id%3D%22menu_%5BID%5D_links%22%3E%3C%2Fdiv%3E%0A%3C%2Fxmp%3E%0A%3Cxmp%20id%3D%22TEMPLATE_LOADBAR%22%20class%3D%22template%22%3E%0A%3Cimg%20src%3D%22%5BSKINPATH%5Dimages%2Floader.gif%22%3E%20%3Cp%3ELoading....%3C%2Fp%3E%20%3Ca%20href%3D%22javascript%3Aabaaaaa.aw()%22%3ECancel%3C%2Fa%3E%0A%3C%2Fxmp%3E%0A";
ai.azq("abaaaaa","acaaaaa","azja");function launchEnhanced360(id) {var loc = "";window_options = "'toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=no,copyhistory=no,height=318,width=714,top=50,left=50,screenX=100,screenY=100'";switch(id) {case 9139: loc="http://www.fordvehicles.com/crossovers/flex/gallery/colors/";break;case 9145: loc="http://www.fordvehicles.com/trucks/f150/gallery/colors/";break;case 9152: loc="http://www.fordvehicles.com/cars/mustang/gallery/colors/";break;default: break;} var sWin = window.open(loc,"COLOR",window_options);sWin.focus();} function openDiscovaryLayer() {window.location.href='http://www.fordvehicles.com/crossovers/flex/?v=html&discL=1';} function mFVSectionLoad() {} function sectionChange(sSection) {gIVI_section = sSection;}
var OUT_FILE_BASE = "rbubble.html";