
av = 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 azma="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/fordpromotion/";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 = $azzwa('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.azzc) var azzc = new Object();azzc.remove = function(arr, val) {var x;for (x = 0;x < arr.length;x++) {if (arr[x] == val) arr.splice(x, 1);}
};azzc.append = function(arr, arr2) {for (var x = 0;x < arr2.length;x++) arr[arr.length] = arr2[x];return arr;}
azzc.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;}
azzc.contains = function(arr,val) {for (var i=0;i<arr.length;i++) if (arr[i]==val) return true;return false;}
Function.prototype.awaaaa = function() {if (arguments.length < 2 && (typeof arguments[0] == "undefined")) return this;var __method = this, args = $azzxaaa(arguments), object = args.shift();return function() {return __method.apply(object, azzc.concat(args, arguments));};};Function.prototype.aaaa = function() {var __method = this, args = $azzxaaa(arguments), object = args.shift();return function(event) {return __method.apply(object, azzc.concat([event || window.event], args));};};if (! window.azzr) var azzr = new Object();azzr.extend = function(destination, source) {for (var property in source) {if (property != "prototype") destination[property] = source[property];}
return destination;}
if (!window.azhaaa) var azhaaa = new Object();azhaaa.KEY_BACKSPACE = 8;azhaaa.KEY_TAB = 9;azhaaa.KEY_RETURN = 13;azhaaa.KEY_ESC = 27;azhaaa.KEY_LEFT = 37;azhaaa.KEY_UP = 38;azhaaa.KEY_RIGHT = 39;azhaaa.KEY_DOWN = 40;azhaaa.KEY_DELETE = 46;azhaaa.KEY_HOME = 36;azhaaa.KEY_END = 35;azhaaa.KEY_PAGEUP = 33;azhaaa.KEY_PAGEDOWN = 34;azhaaa.KEY_QUESTION = 191;azhaaa.KEY_BRACKET_LEFT = 219;azhaaa.KEY_BRACKET_RIGHT = 221;azhaaa.element = function(event) {return event.target || event.srcElement;};azhaaa.isLeftClick = function(event) {return (((event.which) && (event.which == 1)) ||
((event.button) && (event.button == 1)));};azhaaa.pointerX = function(event) {return event.pageX || (event.clientX +
(document.documentElement.scrollLeft || document.body.scrollLeft));};azhaaa.pointerY = function(event) {return event.pageY || (event.clientY +
(document.documentElement.scrollTop || document.body.scrollTop));};azhaaa.stop = function(event) {if (event.preventDefault) {event.preventDefault();event.stopPropagation();} else {event.returnValue = false;event.cancelBubble = true;}
};azhaaa.observers = false;azhaaa._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);}
};azhaaa.unloadCache = function() {if (!azhaaa.observers) return;for (var i = 0, length = azhaaa.observers.length;i < length;i++) {azhaaa.stopObserving.apply(this, azhaaa.observers[i]);azhaaa.observers[i][0] = null;}
azhaaa.observers = false;};azhaaa.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';azhaaa._observeAndCache(element, name, observer, useCapture);};azhaaa.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 $azzxaaa(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 $aziaaa(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.azi) var azi = new Object();if (!window.abaa) var abaa = new Object();azzpaaa = function() {};azzpaaa.easeIn = function(t, b, c, d){return c*t/d + b;}
azzpaaa.easeOut = function(t, b, c, d){return c*t/d + b;}
azzzza = function() {};azzzza.easeIn = function (t, b, c, d) {return c*(t/=d)*t + b;}
azzzza.easeOut = function (t, b, c, d) {return -c *(t/=d)*(t-2) + b;}
azzzza.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;}
adaaaaa = function() {};adaaaaa.easeIn =function(t, b, c, d) {return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;}
adaaaaa.easeOut = function (t, b, c, d) {return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;}
adaaaaa.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;}
apa = function() {};apa.easeIn = function (t, b, c, d) {return c * Math.pow (t/d, 3) + b;};apa.easeOut = function (t, b, c, d) {return c * (Math.pow (t/d-1, 3) + 1) + b;};apa.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;};aiaaaa = function() {};aiaaaa.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;}
}
aiaaaa.easeIn = function(t, b, c, d) {return c - aiaaaa.easeOut (d-t, 0, c, d) + b;}
aiaaaa.easeInOut = function(t, b, c, d) {if (t < d/2) return aiaaaa.easeIn (t*2, 0, c, d) * .5 + b;else return aiaaaa.easeOut (t*2-d, 0, c, d) * .5 + c*.5 + b;}
abaa.visible = function(element) {return $zej(element).style.display != 'none';};abaa.TRANSITION_DURATION=12;abaa.transition = function(element,prop,content,endFunction) {if (prop==null || prop[0]=="" || prop[0]=="none") {abaa.show(element);if (endFunction) endFunction();return;}
var w = abaa.getWidth(element);var h = abaa.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;}
}
abaa.setCSSProp(element,prop,start);abaa.show(element);setTimeout(abaa._nextTransition.awaaaa(abaa,element,prop,0,start,end,content,endFunction),100);}
abaa.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+ ')';}
}
abaa.setCSSProp = function(element,prop,value) {var w = abaa.getWidth(element);var h = abaa.getHeight(element);for (var i = 0;i < prop.length;i++) {if (prop[i].indexOf('opacity') >= 0) {abaa.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";}
}
}
abaa._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] = aiaaaa.easeOut(t, b[i], c[i], abaa.TRANSITION_DURATION);else if (prop[i].indexOf("opacity")>=0) val[i] = azzpaaa.easeIn(t,b[i],c[i],abaa.TRANSITION_DURATION);else
val[i] = adaaaaa.easeOut(t, b[i], c[i], abaa.TRANSITION_DURATION);}
abaa.setCSSProp(element, prop, val);t++;if (t<=abaa.TRANSITION_DURATION) setTimeout(abaa._nextTransition.awaaaa(abaa,element,prop,t,b,c,content,endFunction),45);else
if (endFunction) endFunction();}
abaa.toggle = function(element) {element = $zej(element);abaa[abaa.visible(element) ? 'hide' : 'show'](element);};abaa.hide = function(element) {$zej(element).style.display = 'none';};abaa.focus = function(element) {$zej(element).focus();};abaa.show = function(element) {$zej(element).style.display = '';};abaa.remove = function(element) {element = $zej(element);if (element && element.parentNode) element.parentNode.removeChild(element);};abaa.getHeight = function(element) {return abaa.getDimensions(element).height;};abaa.getWidth = function(element) {return abaa.getDimensions(element).width;};abaa.classNames = function(element) {return new abaa.ClassNames(element);};abaa.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;};abaa.addClassName = function(element, className) {if (!(element = $zej(element))) return;abaa.classNames(element).add(className);return element;};abaa.removeClassName = function(element, className) {if (!(element = $zej(element))) return;abaa.classNames(element).remove(className);return element;};abaa.toggleClassName = function(element, className) {if (!(element = $zej(element))) return;abaa.classNames(element)[element.hasClassName(className) ? 'remove' : 'add'](className);return element;};abaa.observe = function() {azhaaa.observe.apply(Event, arguments);return $azzxaaa(arguments).first();};abaa.getDimensions = function(element) {element = $zej(element);var display = abaa.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 };};abaa.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 (abaa.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;};abaa.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;};abaa.stopObserving = function() {azhaaa.stopObserving.apply(Event, arguments);return $azzxaaa(arguments).first();};abaa.ClassNames = function(element) {this.element = $zej(element);};abaa.ClassNames.prototype._split = function() {return this.element.className.split(/\s+/);};abaa.ClassNames.prototype.set_class = function(className) {this.element.className = className;};abaa.ClassNames.prototype.add = function(classNameToAdd) {this.remove(classNameToAdd);if (this.element.className) this.element.className += " " + classNameToAdd;else
this.element.className = classNameToAdd;};abaa.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 = $azzwa("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 = $azzwa("div");var table = $azzwa("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 = $azzwa("tbody");var row, cell;for (var y=0;y<zoo_cp_color_grid.length;y++) {row = $azzwa("tr");tbody.appendChild(row);for (var x=0;x<zoo_cp_color_grid[y].length;x++) {cell = $azzwa("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;}
}
azhaaa.Publisher = function() {}
azzr.extend(azhaaa.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] = $azzwa('A') );return this._ls_event_targets[event_name];},addEventListener: function(event_name, callback_func, capturing) {var targ = this.getEventTarget(event_name);azhaaa.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);azhaaa.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 = azhaaa.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 = azhaaa.Tracer.findTracer();if (!trace || !this._fl_trace_events) {this._fl_trace_events = true;trace = azhaaa.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;}
});azhaaa.Listener = function() {}
azzr.extend(azhaaa.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].azv(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;}
});azzr.extend(azhaaa,{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) azhaaa.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 $azzzzv(text) {return document.createTextNode(text);}
function $azzwa(name) {return document.createElement(name);}
azi.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;}
};azi.selectByIndex = function(obj, spot) {obj = $zej(obj);obj.selectedIndex = spot;};azi.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;}
};azi.selectPopulate = function(obj, arrNames, arrVals) {obj = $zej(obj);var x;var opt;for (x = 0;x < arrNames.length;x++) {opt = $azzwa("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.azzr && window.azzr.extend && window.azhaaa && window.azhaaa.Publisher)azzr.extend(Zoo.network, azhaaa.Publisher);Zoo.network._count = 0;Zoo.network._requests = new Object();Zoo.network._url = "";Zoo.network._method = "get";Zoo.network._timeout = 180;Zoo.network.azc = function(method, url, parameters, onSuccess, onFailure,id) {azzzraa("PUSH NETWORK REQUEST "+url);Zoo.network.pendingRequests.push({"method":method,"url":url,"parameters":parameters,"onSuccess":onSuccess,"onFailure":onFailure,"id":id});};Zoo.network.aoa = function(method, url, parameters, onSuccess, onFailure,id) {Zoo.network.processingRequest= true;azzzraa("OPEN NETWORK "+url);var transport = this.azvaaa();if (!transport) return;transport.onreadystatechange = this.azzw.awaaaa(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.azzdaaa = function() {if (Zoo.network.pendingRequests.length>0 && ! Zoo.network.processingRequest) {var req = Zoo.network.pendingRequests.pop();Zoo.network.aoa(req["method"],req["url"],req["parameters"],req["onSuccess"],req["onFailure"],req["id"]);}
setTimeout(Zoo.network.azzdaaa,200);};Zoo.network.azvaaa = 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.azzw = function(transport, onSuccess, onFailure) {if (transport.readyState == 4) {azzzraa("NETWORK REQUEST DONE");if (transport.status == 0 || (transport.status >= 200 && transport.status < 300)) {onSuccess(transport);} else {onFailure(transport);}
Zoo.network.processingRequest = false;}
};Zoo.network.azzg = 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.akaaaaa = 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.azzzh(id);};Zoo.network.azcaaaa = 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.azzzfaa(id);}
if (! window.azdaaaa) {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.akaaaaa.awaaaa(this, id), opts.timeout * 1000);if (opts.onSuccess) this._requests[id].onSuccess = opts.onSuccess;opts.onSuccess = this.azoaaaa.awaaaa(this, "onSuccess", id);if (opts.onFailure) this._requests[id].onFailure = opts.onFailure;else
this._requests[id].onFailure = Zoo.network.azzg.awaaaa(this);if (Zoo.network._method && !opts.method) opts.method = Zoo.network._method;opts.onFailure = this.azoaaaa.awaaaa(this, "onFailure", id);if (this.dispatchEvent) this.dispatchEvent("ar azzkaa", {id: id, url: url, params: opts.parameters });azzzraa("Zoo.network.azcaaaa "+url+" "+window.azdaaaa);if (!window.azdaaaa) this.azc(opts.method, url, opts.parameters, opts.onSuccess, opts.onFailure,id);else
azdaaaa.azzzzda(opts.method, url, opts.parameters, opts.onSuccess, opts.onFailure,id);return id;};Zoo.network.azzzh = function(id) {if (this._requests[id]) {this._requests[id].aborted = true;if (this._requests[id].transport) this._requests[id].transport.abort();this.azzzfaa(id);if (this.dispatchEvent) this.dispatchEvent("azzp azzkaa", {id: id });}
};Zoo.network.azzzua = 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.azraa(url, params, onSuccess, obj, id, opts);};Zoo.network.azraa = 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.azcaaaa(url, opts, obj);};Zoo.network.azzzk = function(url) {this._url = url;};Zoo.network.azzzaa = function(method) {method.toLowerCase();Zoo.network._method = method;};Zoo.network.azzzfaa = 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.azoaaaa = 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.azzzfaa(id);if (this.dispatchEvent) this.dispatchEvent("acaaaa azzkaa", {action: action, id: id });};setTimeout("Zoo.network.azzdaaa()",200);if (! window.Zoo) window.Zoo = new Object();Zoo.utils = function() {};azzr.extend(Zoo.utils, azhaaa.Publisher);var zeros = "00000000000000000000";function azzziaa(str, places) {if (str.length < places) {str = zeros.substring(0, places - str.length) + str;}
return str;}
var hD = '0123456789ABCDEF';function azda(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 = azzmaa.azyaa();if (rootWin!=null) Zoo.broker.azzzia(zid, null, rootWin.axaaaaa().azzzta());else
zoo_make_bubble(zid,title);}
function zoo_make_bubble(zid, title,left, top, width, height,transition) {azsa(zid,title,left, top, width, height,transition,"F");}
function zoo_min_bubble(zid, top, left, width, height) {setTimeout(zoo_make_min_bubble.awaaaa(this, zid, left,top, width, height), 500);}
function zoo_make_min_bubble(zid, left, top, width, height) {azsa(zid, zid,left, top, width, height,null,"M");}
function azsa(zid, _title, _x, _y, _width, _height,_transition, _state) {auaaaa(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 azl() {return _is_IE;}
function linkToken(title, token, link, op, exec) {azzmaa.azzzzsa(title, token, link, op, exec);}
function abaaaaa() {}
function zoowee_deleteFriend(f) {ataaaa.azzzz(f);}
function zoowee_addFriend() {ataaaa.azuaaaa();}
function jcloseWindow(_divid, msg, stat, winid) {azzmaa.amaaaa(_divid, msg, stat, winid);}
function azsaaaa() {var s = null;if (window.getSelection) {s = window.getSelection();s.removeAllRanges();} else if (document.selection) {s = document.selection;try {s.empty();} catch (err) {}
}
}
function azzzra(_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) azzzra(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 {abaa.remove(toRemove[x]);}
}
}
function ava(zimg) {azzmaa.azzzzg(zimg);}
function apaaaaa(msg) {if (msg || msg == "0") {msg = "" + msg;if (msg != "&nbsp" && msg != "null" && !msg.match("^[ \t\n\r]*$")) return false;}
return true;}
function aya(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 azzz(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 aztaa(_url) {var response = _url;if (_url.indexOf("?")==-1) {response+="?nocache="+(NOCACHE++);} else {response+="&nocache="+(NOCACHE++);}
return response;}
function azzkaaa(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 azzlaaa() {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 alaa(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 an(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 azha() {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 azzx() {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 alaaaaa(evt) {if (!evt) evt = event;var keyCode = evt.keyCode ? evt.keyCode : evt.which ? evt.which : evt.charCode;return (keyCode == 13);}
function azzoa(cond, func) {if (cond) func();}
function zoo_doEnterButton(obj, evt) {if (alaaaaa(evt)) {obj.parentNode.firstChild.nextSibling.click();return false;}
return true;}
function azzuaa(obj, func) {func = amaaa(func);var str = function(evt) {azzoa(alaaaaa(evt), func);return 1 };azziaaa(obj, str);}
function azkaa(_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 azzvaa(node, referenceNode) {referenceNode.parentNode.insertBefore(node, referenceNode.nextSibling);}
function aeaaaa(but, propName, value) {if (typeof (but) == 'string') but = $zej(but);but[propName] = value;}
function amaaa(func) {if (!func || typeof (func) != "function") {if (func) func = new Function(func);else
func = '';}
return func;}
function azkaaa(but, func) {func = amaaa(func);aeaaaa(but, 'ondblclick', func);}
function amaaaaa(but, func) {func = amaaa(func);aeaaaa(but, 'onclick', func);}
function azzea(but, func) {func = amaaa(func);aeaaaa(but, 'onfocus', func);}
function azzzf(but, func) {func = amaaa(func);aeaaaa(but, 'onblur', func);}
function ap(but, func) {func = amaaa(func);aeaaaa(but, 'onmouseover', func);}
function aiaaaaa(but, func) {func = amaaa(func);aeaaaa(but, 'onmouseout', func);}
function asaaaaa(but, Class) {aeaaaa(but, 'className', Class);}
function awa(but, func) {func = amaaa(func);aeaaaa(but, 'onmouseover', func);}
function ada(but, func) {func = amaaa(func);aeaaaa(but, 'onmouseout', func);}
function acaa(but, func) {func = amaaa(func);aeaaaa(but, 'onmousedown', func);}
function azzzmaa(but, func) {func = amaaa(func);aeaaaa(but, 'onmouseup', func);}
function azziaaa(but, func) {func = amaaa(func);aeaaaa(but, 'onkeypress', func);}
function azzd(but, func) {func = amaaa(func);aeaaaa(but, 'onkeydown', func);}
function azzna(but, func) {func = amaaa(func);aeaaaa(but, 'onchange', func);}
function azzzv(img, path) {img = $zej(img);if (img.src == path) {return;}
img.src = path;}
function azzjaaa(but, path) {but = $zej(but);path = "url(" + path + ")";if (but.style.backgroundImage == path) return;but.style.backgroundImage = path;}
function ana(str) {return escape(str);}
function azlaaa(str) {return unescape(str);}
function azva(arr) {var result = "";if (arr) for (var i=0;i<arr.length;i++) result +=arr[i]+", ";return result;}
function azzzpa(allowed, passed){var found = new Object();if (!passed) return false;var x;var y;for (x in passed) {if (allowed[x] == null) {auaaaaa("Option: " + x + " is not allowed");return false;}
found[x] = 1;}
for (x in allowed) {if (allowed[x] == 1 && found[x] != 1) {auaaaaa("Required option: " + x + " is not found");return false;}
}
return true;}
function amaa(Class, funcName, arg) {return azuaa(azzzt(Class, funcName), arg);}
function azzzt(Class, funcName) {if (!Class[funcName]) auaaaaa("helpers.js: unable to Make Class Function as class does not contain function: " + funcName);return Class[funcName].awaaaa(Class);}
function azzzzpa() {var d = new Date();return azh(d.getTime(), 7);}
function azh(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 azuaa(func, arg) {return function(a2, a3, a4, a5, a6, a7, a8, a9) {return func(arg, a2, a3, a4, a5, a6, a7, a8, a9);};}
function azze(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 azvaa(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 azzzcaa(ruleName) {return azvaa(ruleName, 'delete');}
function awaaaaa(ruleName) {if (document.styleSheets) {if (!azvaa(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 azvaa(ruleName);}
function azzbaa(str, charToRemove) {regExp = new RegExp("[" + charToRemove + "]", "g");return str.replace(regExp, "");}
function zoo_search(term, clazz) {auaaaa(term, clazz);}
function auaaaa(term, clazz,_title,_width,_height,_x,_y,_transition,_state) {var title = (_title) ? _title : term;if (apaaaaa(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)=='*') {azzmaa.ag(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.azbaaaa(term,[],wparams,title);} else {if (apaaaaa(clazz)) {Zoo.broker.azbaaaa(term + ZOO_DEFAULT_SEARCH_SID,[],wparams,title);} else {if (term.indexOf("_")>0 || apaaaaa(clazz)) Zoo.broker.azbaaaa(term + ZOO_DEFAULT_SEARCH_SID,[],wparams,title);else
Zoo.broker.azbaaaa(term+"_"+clazz+ZOO_DEFAULT_SEARCH_SID,[],wparams,title);}
}
}
function adaaa(type,data) {if (window.azxaaa) azxaaa.azzta(type,data);}
var supported = /MSIE ((5\.5)|[6])/.test(navigator.userAgent) &&
navigator.platform == "Win32";function azja(obj) {if (!supported) return;if (typeof (obj) == 'string') obj = $zej(obj);var old = obj.src;obj.src = azraaa() + "icons/spacer.gif";obj.runtimeStyle.filter = "progid:DXImageTransform.Microsoft." +
"AlphaImageLoader(src='" + old + "',sizingMethod='scale')";}
function ad(obj) {var result = "";for (var property in obj) {result += property +"="+obj[property]+" \n";}
return result;}
function azzzi() {if (azzzuaa()) return true;else
return false;}
function azzzuaa() {var v = navigator.userAgent.match(/AppleWebKit\/([^ ]*)/);if (v && v[1]) return parseInt(v[1], 10);}
function azraaa(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 azzzdaa() {var nocache = new Date();return nocache.getTime() + "-" + Zoo.utils.get_unique_id();}
function zoo_doLogin() {aj.azzzp();}
function zoo_doLogout() {aj.azqaaa();}
function zoo_add_box(a2, a3, a4, a5, a6, a7, a8, a9) {azza.azzzzzf(a2, a3, a4, a5, a6, a7, a8, a9);}
function zoo_proxy_callback(a2, a3, a4, a5, a6, a7, a8, a9) {azdaaaa.azzda(a2, a3, a4, a5, a6, a7, a8, a9);}
function zoo_close_all_windows() {azzmaa.aca();}
function aznaa(obj) {if (window.azzzzga) {azzzzga.azzzze({webobj: obj });}
}
function auaaaaa(msg) {if (window.azzzzga) azzzzga.azzzze({message: msg });else
alert(msg);}
function azr(msg, on_done, btn1, btn2) {if (!btn1) btn1 = "Yes";if (!btn2) btn2 = "No";var func = azzpaa.awaaaa(this, on_done, btn1);azzzzga.azzzze({message: msg, button_array: [btn1, btn2], on_complete: func });}
function azzpaa(on_done, btn_good, btn_clicked) {if (btn_good == btn_clicked) on_done();}
function asa(string) {var ret;if (azl()) {var xml = $azzwa("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) {auaaaaa(err);}
}
return ret;}
function azzh(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 (apaaaaa(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 (apaaaaa(value)) {alert(id.substring(4) + " is a required field.");return false;}
}
}
return true;}
function zoo_refresh_viewPane(winID, zid, closeID) {var win = azzmaa.azzya(winID);if (win) {var view = win.axaaaaa().azfaaa(zid, true);if (view) view.azzzca();}
if (closeID) {var close = azzmaa.azzya(closeID);if (close) close.azzzzma();}
}
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 (azl()) {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 azwaaa(xmlObj) {if (!window.azdaaaa)return;var func = ajaaaa.anaaaaa("", "functioncall", xmlObj, 0);eval(func);}
function azznaa(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 aznaaa() {var contr = absPath.replace(/.+?:\/\//, "");if (contr.charAt(contr.length - 1) == "/") contr = contr.substr(0, contr.length - 1);return contr;}
function azx(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 azzqaaa(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) {azzznaa.anaa(name, url);}
function azzzu(str, replaceTerm, newTerm) {var regxp = new RegExp("\\[" + replaceTerm + "\\]", 'g');str = str.replace(regxp, newTerm);return str;}
var debugWindow = null;function azzzraa(txt) {if (SHOW_DEBUG) {if (! debugWindow) {debugWindow = window.open("", "debugmsgwin", "scrollbars=yes,resizable=1,width=660,height=600");}
debugWindow.document.write(txt + "<br>");}
}
function ayaa(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 = azda;Zoo.utils.zoo_make_bubble = zoo_make_bubble;Zoo.utils.remove_objects_and_embeds = azzzra;Zoo.utils.left_px = azzz;Zoo.utils.verify_options = azzzpa;Zoo.utils.confirm_two_opts = azr;Zoo.utils.html_encode = azx;Zoo.utils.html_decode = azzqaaa;Zoo.utils.is_IE = azl;Zoo.utils.alert = auaaaaa;Zoo.utils.skin_path = azraaa;Zoo.utils.get_page_height = azzx;Zoo.utils.get_page_width = azha;Zoo.utils.is_server_empty = apaaaaa;azzdaa = 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 azzznaa = new Object();
azzznaa.fully_loaded = true;
var PAGES_DEPLOY_EMBED_CSS = true;azzznaa.azzzzq = {'aj': [true, true], 'azzb': [true, true], 'azra': [false, false], 'ataaaa': [true, true], 'azdaaaa': [false, false], 'azyaaa': [false, false], 'debug': [true, false], 'aeaaaaa': [false, false], 'azzsaa': [false, false], 'azxaaa': [false, false], 'aztaaaa': [false, false]
};azzznaa.araaaa = function() {for (var x = 0;x < arguments.length;x++) {var name = arguments[x];var plugin = azzznaa.azzzzq[name];azzzraa("azzznaa.araaaa "+x);if (!plugin) {auaaaaa("Tried to load a plugin: " + name + " that i don't know about");return;}
if (name == 'aeaaaaa') this.azzzzia("dhtmlHistory", false, false);this.azzzzia(name, plugin[0], plugin[1]);}
};azzznaa.inited = false;azzr.extend(azzznaa, azhaaa.Publisher);azzznaa.azzza = function(req) {var div = document.createElement("div");div.innerHTML = req.responseText;this.tmpDiv.appendChild(div);this.fetchRemaining--;if (!this.fetchRemaining) azzznaa.azmaaaa();};azzznaa.azzzs = function(req, name) {var div = document.createElement("div");div.innerHTML = req.responseText;this.tmpDiv.appendChild(div);this.azzzjaa(name, "template");}
azzznaa.aoaaaa = function(name) {azzzraa("azzznaa.aoaaaa "+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.azzzjaa(name, "code");};azzznaa.azzzjaa = function(name, type) {azzzraa("azzznaa.azzzjaa "+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;azzzraa("azzznaa.azzzjaa assigned instance "+name);obj.instance = eval(name);}
this.fetchRemaining--;if (!this.fetchRemaining) azzznaa.azmaaaa();};azzznaa.azhaaaa = function(name, fetchCode, hasCSS, hasTemplate) {var obj = new Object();if (this.classes[name])return;this.classes[name] = obj;obj.inited = false;azzzraa("azzznaa.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.azvaaaa(obj.fetch_name + ".js?" + azzzdaa());}
else
obj.instance = eval(name);if (hasCSS) this.aw(obj.fetch_name + ".css?" + azzzdaa());if (hasTemplate && !this.template_overrides[obj.fetch_htm_name] && obj.fetch_htm_name!='box') {this.fetchRemaining++;Zoo.network.azcaaaa(obj.fetch_htm_name + ".htm?" + azzzdaa(), {method: 'get', onSuccess: azzzt(this, "azzzs") }, name);}
else if (this.template_overrides[obj.fetch_name]) obj.fetched_template = true;};azzznaa.azvaaaa = function(url) {var script = document.createElement('script');script.src = url;this.azna(script);};azzznaa.aw = function(url) {var css = document.createElement('link');css.href = url;css.rel = "StyleSheet";css.type = "text/css";this.azna(css);};azzznaa.anaa = function(name, url) {this.aeaaa();this.template_overrides[name] = url;};azzznaa.azuaaa = function(name, hasCSS, hasTemplate) {this.aeaaa();this.azhaaaa(name, false, hasCSS, hasTemplate);};azzznaa.azzzzia = function(name, hasCSS, hasTemplate) {this.aeaaa();this.azhaaaa(name, true, hasCSS, hasTemplate);};azzznaa.aeaaa = 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";abaa.hide(this.tmpDiv);this.azna(this.tmpDiv);};azzznaa.azna = 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);}
azzznaa.azzzzzh = function(name) {azzzraa("azzznaa.azzzzzh called by "+name+" "+this.loadRemaining);this.loadRemaining--;var obj = this.classes[name];obj.inited = true;if (!this.loadRemaining) this.azjaaaa();};azzznaa.azmaaaa = 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.aeaaa) obj.instance.aeaaa();else
this.azzzzzh(x);}
if (this.fully_loaded && PAGES_DEPLOY_EMBED_CSS && window.OUT_FILE_BASE) {this.aw(absPath + OUT_FILE_BASE + ".css");}
this.aw(absPath + "skins/" + defaultSkinName + "/overrides.css");Zoo.network.azcaaaa(absPath+"skins/"+defaultSkinName + "/box.htm?" + azzzdaa(), {method: 'get', onSuccess: azzzt(this, "azzzs") }, "azza");for (x = 0;x < this.dyncss && this.dyncss.length;x++) this.aw(this.dyncss[x] + ".css");};azzznaa.axa = 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.araaaa(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] = azlaaa(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] = azlaaa(jss[x]).replace(/\.js/, "");var string = "<script src='" + jss[x] + ".js' type='text/javascript' language='javascript'></script>";document.write(string);}
}
};azzznaa.apaaa = function() {var x;for (x in this.template_overrides) {this.fetchRemaining++;Zoo.network.azcaaaa(this.template_overrides[x] + "?" + azzzdaa(), {method: 'get', onSuccess: azzzt(this, "azzza") });}
};azzznaa.azzzzb = function() {if (this.template_content) {var div = document.createElement("div");div.innerHTML = azlaaa(this.template_content);this.tmpDiv.appendChild(div);this.template_content = "";}
this.apaaa();this.fetchRemaining -= 1;if (!this.fetchRemaining) this.azmaaaa();this.loadRemaining -= 1;azzzraa("azzznaa.azzzzb loadRemaining "+this.loadRemaining);if (!this.loadRemaining)this.azjaaaa();};azzznaa.azjaaaa = 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.aeaa)obj.instance.aeaa();}
for (x = 0;x < this.toRemove.length;x++) abaa.remove(this.toRemove[x]);this.dispatchEvent("aeaa", "");};azzznaa.ah = 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) {auaaaaa("Unable to load object, Object Part Not Found: " + loadArray[x]);return;}
if (item.loaded) return;item.loaded = true;if (!loadVisible && abaa.visible(item.div)) {item.isLoadHidden = true;abaa.hide(item.div);}
else {abaa.show(item.div);}
ZOO_BUBBLE_CONTAINER.appendChild(item.div);}
};azzznaa.aha = function(objName) {this.ah(objName, false, arguments);};azzznaa.azzq = function(objName) {this.ah(objName, true, arguments);};azzznaa.azdaaa = 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) {auaaaaa("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) {abaa.remove(item.div);item.isLoadHidden = false;abaa.show(item.div);}
else
abaa.hide(item.div);}
}
};azzznaa.azzzze = 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) auaaaaa("Unable to create page part: " + id);newObj = new Object();obj.html_objects[arguments[x]] = newObj;newObj.div = div;this.toRemove.push(id);}
};azzznaa.axa();Zoo.template = function(name) {this._base = '';if (name) this.azmaaa(name);};Zoo.template.prototype.value = "";var azia = Zoo.template;azzznaa.azuaaa("azia", false, true);Zoo.template._tested = false;Zoo.template._escape = false;Zoo.template.prototype.azmaaa = 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) {auaaaaa("Unable to load template: " + id);return;}
this._base = itm.innerHTML;if (Zoo.template._escape) this._base = unescapeHTML(this._base);this.azzzj();};Zoo.template.prototype.azzga = function(code) {this._base = code;this.azzzj();};Zoo.template.prototype.azzzj = function(){this.value = this._base;this._dom_pending = null;this._exists = null;this._exists_dom = null;};Zoo.template.prototype.aua = function() {this.azzzj();};Zoo.template.prototype.azzk = 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) abaa.remove(element);};Zoo.template.prototype.azzfaa = 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.azzuaaa = 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.azzzu("\\[" + key + "\\]", str);this._dom_pending.push([id, element]);};Zoo.template.prototype.azzzu = 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) {azzr.extend(this, azhaaa.Publisher);var _box = Zoo.box;if (!Zoo.utils.verify_options(_box.azsaa.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 = $azzwa('div');div.className = "";if (props.style) div.className = props.style;abaa.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.azzzu("SKINPATH", Zoo.utils.skin_path(props.box), "BOX_NUM", this._boxNum, "BOX_EXTENSION", box._ext);template2.azzzu("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) azkaaa(this._movebar, this.azzzoaa.awaaaa(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();acaa(div, this.azzfa.awaaaa(this));if (props.autoFront) this.azzfa();if (this._adjustLevel.indexOf("move")!=-1) {abaa.addClassName(div, "boxMove");acaa(this._movebar, this.alaaaa.awaaaa(this));}
var resizeDiv = $zej("boxResize" + this._boxNum);if (this._adjustLevel.indexOf("resize")!=-1) {acaa("boxContBottomMiddle" + this._boxNum, this.azzeaa.awaaaa(this, 'BottomMiddle'));acaa("boxContMiddleLeft" + this._boxNum, this.azzeaa.awaaaa(this, 'MiddleLeft'));acaa("boxContMiddleRight" + this._boxNum, this.azzeaa.awaaaa(this, 'MiddleRight'));acaa("boxContBottomLeft" + this._boxNum, this.azzeaa.awaaaa(this, 'BottomLeft'));acaa("boxContBottomRight" + this._boxNum, this.azzeaa.awaaaa(this, 'BottomRight'));acaa("boxContTopLeft" + this._boxNum, this.azzeaa.awaaaa(this, 'TopLeft'));acaa("boxContTopRight" + this._boxNum, this.azzeaa.awaaaa(this, 'TopRight'));abaa.addClassName(div, "boxResize");}
if (this._adjustLevel.indexOf("scroll")!=-1) {this._dDiv.style.overflow="auto";}
this._dummyShield = $azzwa('IMG');this._dummyShield.src = azraaa() + "images/spacer.gif";this._dummyShield.className = "dummy";abaa.hide(this._dummyShield);this._dDiv.appendChild(this._dummyShield);this.araa(props.title);this.azzzm(height, width);this._mouseUpBind = this.azn.awaaaa(this);this._mouseMoveBind = this.azzka.awaaaa(this);$zej("boxCont" + this._boxNum).appendChild(oldDiv);var img = $azzwa('IMG');return this;}
var azza = Zoo.box;Zoo.box.azsaa = function() {}
Zoo.box.azsaa.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 };azzznaa.azuaaa("azza", true, true);var box_MINI_LOGO_NAME = "";Zoo.box.prototype.afaaa = function(maximized) {if (!this._canMaximize) return;var path = Zoo.utils.skin_path(this._box._name) + "box/";if (maximized) {if (this.azzzqa()) return;this.azzzq();this.azzeaaa(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;azzjaaa(this._bottomRightGFX, path + "BottomRight." + this._box._ext);this.azzzm(height, width);this._maximized = true;abaa.removeClassName(this._div, "boxMove");abaa.removeClassName(this._div, "boxResize");this.dispatchEvent("auaa", this);}
else {if (!this.azzzqa()) return;this._maximized = false;azzjaaa(this._bottomRightGFX, path + "BottomRight_Resize." + this._box._ext);abaa.addClassName(this._div, "boxResize");abaa.addClassName(this._div, "boxMove");this.azzeaaa(this._saveY, this._saveX);this.azzzm(this._saveHeight, this._saveWidth);this.dispatchEvent("azhaa", this);}
}
Zoo.box.prototype.azzzoaa = function() {this.afaaa(!this.azzzqa());}
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.ala = function(props) {Zoo.utils.verify_options(Zoo.box.ala.azsaa.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.ala.azsaa = function() {}
Zoo.box.ala.azsaa.prototype = {top: 0, left: 0, bottom: 0, right: 0, offsetTop: 0, offsetLeft: 0 };Zoo.box._inited = false;Zoo.box.aeaaa = 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);}
azzznaa.azzzzzh("azza");}
Zoo.box.azjaaa = function(evt) {var e = window.event ? window.event : evt;var box = e.event_data.data.boxObj;if (!box._isDown)box.azzzzxa();azzzra(box.azzbaaa(),"show");}
Zoo.box.azua = function(evt) {var e = window.event ? window.event : evt;var box = e.event_data.data.boxObj;if (!e.event_data.data.pane) box.asaaaa();azzzra(box.azzbaaa(),"hide");}
Zoo.box.aeaa = function() {azzmaa.addEventListener("aba azzzha", this.azjaaa.awaaaa(this) );azzmaa.addEventListener("azga azzzha", this.azua.awaaaa(this) );}
Zoo.box.prototype.azjaa = function(msg) {this._footer.innerHTML = msg;abaa.show(this._footer);}
Zoo.box.prototype.azzzzxa = function() {abaa.hide(this._dummyShield);}
Zoo.box.prototype.asaaaa = function() {abaa.show(this._dummyShield);}
Zoo.box.prototype.azn = function() {this.azzzzxa();this.acaaa();azhaaa.stopObserving(document, 'mouseup', this._mouseUpBind);azhaaa.stopObserving(document, 'mousemove', this._mouseMoveBind);this._isDown = false;this.dispatchEvent("aiaa", this);return false;}
Zoo.box.prototype.at = function() {return parseInt(this._div.style.zIndex, 10);}
Zoo.box.prototype.azyaaaa = function() {return (this == Zoo.box._frontBox);}
Zoo.box.prototype.azzfa = function() {if (this != Zoo.box._frontBox) {this._div.style.zIndex = ++Zoo.box._frontIndex;if (Zoo.utils.is_IE()) abaa.removeClassName(this._div, "backwindow");this.dispatchEvent("aba azzzha", this);var frontBox = Zoo.box._frontBox;if (frontBox) {if (Zoo.utils.is_IE()) abaa.addClassName(frontBox._div, "backwindow");frontBox.dispatchEvent("azga azzzha", Zoo.box._frontBox);frontBox.azca(true);}
this.azca(false);Zoo.box._frontBox = this;this.acaaa();}
}
Zoo.box.prototype.azca = function(inactive) {var box = this._box;if (!box._inactive) return;var ina = "";if (inactive) ina = "_Inactive";var path = azraaa(box._name) + "box/";azzjaaa(this._topRightGFX, path + "TopRight" + ina + "." + box._ext);azzjaaa(this._topMiddleGFX, path + "TopMiddle" + ina + "." + box._ext);azzjaaa(this._topLeftGFX, path + "TopLeft" + ina + "." + box._ext);}
Zoo.box.prototype.azzeaa = function(loc, evt) {if (!evt) evt = event;if (this._isDown) this.azn();if (this.azzzqa()) return false;this.asaaaa();this._mouseIsMove = false;this._resizeLocation = Zoo.box._resizeValues[loc];this._isDown = true;this._everyOtherMove = 0;azhaaa.observe(document, 'mouseup', this._mouseUpBind);this.azzzq(evt);azhaaa.observe(document, 'mousemove', this._mouseMoveBind);return false;}
Zoo.box.prototype.alaaaa = function(evt) {if (!evt) evt = event;if (this._isDown) this.azn();if (this.azzzqa()) return false;this.asaaaa();this._mouseIsMove = true;this._isDown = true;azhaaa.observe(document, 'mouseup', this._mouseUpBind);this.azzzq(evt);azhaaa.observe(document, 'mousemove', this._mouseMoveBind);return false;}
Zoo.box.prototype.azzzq = function(evt) {if (evt) {this._startX = evt.clientX;this._startY = evt.clientY;}
var curDiv = this._div;this._saveX = this.ae();this._saveY = this.azzja();this._saveWidth = this.ahaa();this._saveHeight = this.acaaaaa();}
Zoo.box.prototype.azzka = function(e) {var evt = window.event ? window.event : e;if (this._maximized) return;if (this._isIE && evt.button != 1) {this.azn();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.azzzzja = function(name) {return [this._boxes[name]._heightTop + this._boxes[name]._heightBottom, this._boxes[name]._widthLeft + this._boxes[name]._widthRight];}
Zoo.box.azzzzzf = 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.azzzzwa = function(imgSrc, onClick, toolTip) {var img = $azzwa("IMG");img.src = imgSrc;img.className = "icon";if (toolTip) img.title = toolTip;amaaaaa(img, onClick);this._buttonsDiv.appendChild(img);return img;}
Zoo.box.prototype.aqaa = function(imgSrc, onClick, toolTip) {var img = $azzwa("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.araa = function(str) {if (ZOO_SHOW_BUBBLE_TITLES) {if (Zoo.utils.is_server_empty(str))str = '&nbsp;';this._titleDiv.innerHTML = str;}
}
Zoo.box.prototype.azzzzf = function(newheight) {this._dDiv.scrollTop = newheight;}
Zoo.box.prototype.azzeaaa = function(newTop, newLeft) {if (this.azzzqa()) this.afaaa(false);if (newTop || newTop == "0") this._div.style.top = newTop + "px";if (newLeft || newLeft == "0") this._div.style.left = newLeft + "px";this.acaaa();}
Zoo.box.prototype.azzzm = function(newHeight, newWidth) {if (this.azzzqa()) this.afaaa(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.acaaa();}
Zoo.box.prototype.ajaaa = function() {return this._boxNum;}
Zoo.box.prototype.acaaa = 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=abaa.getWidth(this._div)+'px';Zoo.box._shimFrame.style.height=this.acaaaaa()+'px';Zoo.box._shimFrame.style.top=(this.azzja())+'px';Zoo.box._shimFrame.style.left=(this.ae())+'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.azzzqa = function() {return this._maximized;}
Zoo.box.prototype.ahaa = function() {return abaa.getWidth(this._dDiv);}
Zoo.box.prototype.acaaaaa = function() {return abaa.getHeight(this._dDiv);}
Zoo.box.prototype.ae = function() {return parseInt(this._div.style.left, 10);}
Zoo.box.prototype.azzja = function() {return parseInt(this._div.style.top, 10);}
Zoo.box.prototype.azba = function() {return this._div;}
Zoo.box.prototype.azzbaaa = function() {return this._dDiv;}
azza.azzzzzf("blue", "gif", 33, 21, 15, 15, true);azza.azzzzzf("bluegreen", "gif", 34, 31, 25, 25, true);azza.azzzzzf("news", "gif", 30, 30, 16, 16, true);azza.azzzzzf("denim", "gif", 26, 12, 12, 12, true);azza.azzzzzf("black", "png", 30, 34, 15, 19, true);azza.azzzzzf("gray", "png", 32, 33, 7, 7, true);azza.azzzzzf("bubble","gif",24,14,14,14,true);var azzzzga = new Object();azzzzga.azzzl = false;azzzzga.aeaaa = function() {if (!this.azzzl) this.axaa();azzznaa.azzzzzh("azzzzga");}
azzzzga.axaa = function() {if (this.azzzl) return;this.azzzl = true;this.dialog_div = $azzwa("div");asaaaaa(this.dialog_div, "zoo_dialog_box");document.body.appendChild(this.dialog_div);this.dialog_div_holder = $azzwa("table");asaaaaa(this.dialog_div_holder, "zoo_dialog_table");this.dialog_div.appendChild(this.dialog_div_holder);var tbody = $azzwa("tbody");this.dialog_div_holder.appendChild(tbody);var tr = $azzwa("tr");tbody.appendChild(tr);this.icon_holder = $azzwa("td");tr.appendChild(this.icon_holder);this.icon = $azzwa("img");this.icon_holder.appendChild(this.icon);asaaaaa(this.icon, "zoo_dialog_icon");this.dialog_title = $azzwa("td");tr.appendChild(this.dialog_title);asaaaaa(this.dialog_title, "zoo_dialog_title");tr = $azzwa("tr");tbody.appendChild(tr);this.dialog_input_holder = $azzwa("td");this.dialog_input = $azzwa("input");tr.appendChild($azzwa("td"));tr.appendChild(this.dialog_input_holder);asaaaaa(this.dialog_input, "zoo_dialog_input");this.dialog_input_holder.appendChild(this.dialog_input);tr = $azzwa("tr");tbody.appendChild(tr);this.button_holder = $azzwa("td");tr.appendChild($azzwa("td"));tr.appendChild(this.button_holder);asaaaaa(this.button_holder, "zoo_dialog_button_holder");this.showing = false;this.pending = new Array();xy = azzlaaa();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";abaa.show(this.dialog_div);this.box_width = abaa.getWidth(this.dialog_div);this.box_height = abaa.getHeight(this.dialog_div);abaa.hide(this.dialog_div);}
azzzzga.azzzze = function(props) {this.axaa();if (this.showing) {this.pending.push(props);return;}
if (!azzzpa({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 = azraaa() + "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) {abaa.show(this.dialog_input);this.dialog_div.style.height = this.box_height + "px";} else {abaa.hide(this.dialog_input);this.dialog_div.style.height = (this.box_height - 25) + "px";}
xy = azzlaaa();var lpos = (xy[0] + ((azha() / 2) - this.box_width / 2));this.dialog_div.style.left = (xy[0] + ((azha() / 2) - this.box_width / 2)) + "px";this.dialog_div.style.top = (xy[1] + ((azzx() / 2) - this.box_height / 2)) + "px";this.button_holder.innerHTML = "";var firstBtn;for (var x = 0;x < props.button_array.length;x++) {var btn = $azzwa("input");btn.type = "button";if (!firstBtn) firstBtn = btn;btn.value = props.button_array[x];amaaaaa(btn, azuaa(azzzt(this, "azzzzzl"), 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;abaa.show(this.dialog_div);azzuaa(this.dialog_input, azuaa(azzzt(this, "azzzzzl"), firstBtn.value));this.showing = true;if (props.get_input) abaa.focus(this.dialog_input);else
abaa.focus(firstBtn);}
azzzzga.azzzzzl = function(name, evt) {if (evt || event) {if (!evt) evt = event;azhaaa.stop(evt);}
var err;if (this.do_verify) err = this.do_verify(name, this.dialog_input.value);if (!err) {abaa.hide(this.dialog_div);if (this.on_complete) this.on_complete(name, this.dialog_input.value);this.showing = false;if (this.pending.length) this.azzzze(this.pending.shift());}
else
alert(err);}
azzznaa.azuaaa("azzzzga", true, false);Zoo.monitors = function() {};Zoo.monitors._mouse_is_down = false;Zoo.monitors.ahaaaa = function(evt) {this._mouse_down = true;};Zoo.monitors.azqaa = function(evt) {this._mouse_down = false;};Zoo.monitors.azzzma = function(evt) {if (!evt) evt = event;if (!window.azzmaa) return;if (evt.ctrlKey) {if (evt.keyCode == azhaaa.KEY_TAB || evt.keyCode == azhaaa.KEY_BRACKET_RIGHT) {azzmaa.azk(0);azhaaa.stop(evt);}
else if (evt.keyCode == azhaaa.KEY_BRACKET_LEFT) {azzmaa.azk(1);azhaaa.stop(evt);}
else if (evt.keyCode == azhaaa.KEY_QUESTION) {if (!window.aj) return;if (aj.username) {var func = azzmaa.ag.awaaaa(azzmaa, 'dologout.jsp', 'ZOO_LOGOUT', 'Logout', 480, 280);Zoo.utils.confirm_two_opts("You are currently logged in as '" + aj.username + "' do you want to log out?", func);}
else
azzmaa.ag('dologin.jsp', 'ZOO_LOGIN', 'Login', 480, 280);azhaaa.stop(evt);}
}
};Zoo.monitors.azzzzu = function(evt) {if (!evt) evt = event;if (!evt.ctrlKey) azzmaa.cntrlFirst = 1;};Zoo.monitors._mouseX = 0;Zoo.monitors._mouseY = 0;Zoo.monitors.azzzzc = function(x, y, msg) {if (!Zoo.utils.is_server_empty(msg)) {var xy = azzlaaa();$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.azxaaaa = function() {abaa.hide("tooltip");};Zoo.monitors.azzzzw = function(evt) {if (this._mouse_is_down) return;var e = window.event ? window.event : evt;var obj = e.event_data.data;var tooltip = (obj.azzcaaa) ? obj.azzcaaa() : "";if (!Zoo.utils.is_server_empty(tooltip)) this.azzzzc(this._mouseX + 8, this._mouseY + 8, tooltip);};Zoo.monitors.azwaa = function(evt) {if (this._mouse_is_down) return;var e = window.event ? window.event : evt;this.azxaaaa();};Zoo.monitors.azzzr = 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.aeaaa = function() {document.onmouseup = this.azqaa.aaaa();document.onmousedown = this.ahaaaa.aaaa();document.onkeydown = this.azzzma.aaaa();document.onkeyup = this.azzzzu.aaaa();SHOW_TOOLTIP = true;if (SHOW_TOOLTIP) {ZooAtom.addEventListener("azzzzka azzzfa", this.azzzzw.aaaa(this));ZooAtom.addEventListener("azzzzka azzzfa azzzxaa", this.azwaa.aaaa(this));}
azhaaa.observe(document.body, "mousemove", this.azzzr.aaaa(this));if (SHOW_HIGHLIGHT) {ZooItem.addEventListener("azya azzzfa", this.agaaa.aaaa(this));ZooItem.addEventListener("azya azzzfa azzzxaa", this.adaa.aaaa(this));}
var div = $azzwa("DIV");div.id = "tooltip";div.className = "tooltip";ZOO_BUBBLE_CONTAINER.appendChild(div);this.azxaaaa();};Zoo.monitors.azzsa = function() {try {if (this._highlighted_item) this._highlighted_item.style.backgroundColor = this._highlighted_item_oldcolor;this._highlighted_item = null;} catch (err) {}
}
Zoo.monitors.agaaa = function(evt) {this.azzsa();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.adaa = function(evt) {this.azzsa();};var azsaaa = new Object();azzznaa.azuaaa("azsaaa", true, false);var nav_NAVIGATION_DIV;azsaaa.inited = false;azsaaa.aeaaa = 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 = $azzwa("DIV");navdiv.id = nav_NAVIGATION_DIV;document.body.appendChild(navdiv);this.div = $zej(nav_NAVIGATION_DIV);this.div.className = "zoo";abaa.hide(this.div);} else {this.div.className = "zoo";}
this.sections = new Object();azzznaa.azzzzzh("azsaaa");}
azsaaa.azzzzzg = function() {return this.div;}
azsaaa.azraaaa = function(section) {if (!this.afa(section, "azraaaa")) return;return this.sections[section].div;}
azsaaa.agaa = function(section) {if (!this.afa(section, "azraaaa")) return;return this.sections[section].container;}
azsaaa.alaaa = function(name) {this.aeaaa();if (this.sections[name]) {this.azzzzz("Section: " + name + " already exists");return;}
var div = $azzwa("DIV");this.sections[name] = new Object();this.sections[name].div = div;div.innerHTML = name;if (SHOW_NAVICONS) {div.innerHTML = "<img src='" + azraaa() + "icons/" + name + ".gif'> " + name;}
div.className = "nav_header";this.div.appendChild(div);div = $azzwa("DIV");div.className = "nav_container";this.sections[name].container = div;this.div.appendChild(div);}
azsaaa.afa = function(section, msg) {if ((!this.sections) || (!this.sections[section])) {this.azzzzz("nav.js: The section: " + section + " did not exist so cannot: " + msg);return false;}
return true;}
azsaaa.azzcaa = function(section, name, msg) {if ((!this.sections) || (!this.sections[section][name])) {this.azzzzz("nav.js: The section does not contain button named: " + name + " so cannot: " + msg);return false;}
return true;}
azsaaa.adaaaa = function(section, name, onClick, icon) {if (!onClick) {this.azzzzz("nav.js: Cannot add link: " + name + " to section: " + section + " as onClick doesn't exist");return;}
var div = $azzwa("DIV");div.className = "nav_link";if (!icon) {icon = "icons/arrow_right.gif";} else {icon = "url('" + icon + "')";div.style.backgroundImage = icon;}
div.innerHTML = name;amaaaaa(div, onClick);this.azzzzea(section, name, div);}
azsaaa.azaaa = function(section, name, title) {var msg = "Changing section: " + section + " name: " + name;if (!this.afa(section, msg)) {return;}
this.sections[section][name].div.innerHTML = title;}
azsaaa.azzba = function(section, name, doFast) {var msg = "Showing section: " + section + " name: " + name;if (!this.afa(section, msg)) return;if (!this.azzcaa(section, name, msg)) return;abaa.show(this.sections[section][name].div);}
azsaaa.azzzzla = function(section, name, doFast) {var msg = "Hiding section: " + section + " name: " + name;if (!this.afa(section, msg)) return;if (!this.azzcaa(section, name, msg)) return;abaa.hide(this.sections[section][name].div);}
azsaaa.azzzzea = function(section, name, div) {var msg = "Add Special section: " + section + " name: " + name + " div: " + div;if (!this.afa(section, msg)) return;if (!div) {this.azzzzz("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;abaa.addClassName(div, "nav_item");this.sections[section].container.appendChild(div);abaa.hide(div);}
azsaaa.azzl = function(section, name) {var msg = "Removing section: " + section + " name: " + name;if (!this.afa(section, msg)) return;if (!this.azzcaa(section, name, msg)) return;abaa.remove(this.sections[section][name].div);delete this.sections[section][name];}
azsaaa.azzzzz = function(str){if (! window.log) return;log(str);}
var _ZooActiveWindows = [];function azzmaa(props) {var x;if (!azzzpa({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 = azzmaa.azzt();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.azeaaa(this.winID, this);this.pane.azzzzy("WINHOOK_" + this.winID);this.oContent = this.pane.azzzw();if (this.pane.azzzhaa() != null) this.mtitle = this.pane.azzzhaa();this.backHistory = new Array();this.backHistory.push(this.pane.azzha());} else {if (props.innerHTML) {div = $azzwa("DIV");div.innerHTML = props.innerHTML;div.id = this.winID;this.oContent = div;} else if (props.dom_obj) {div = $azzwa("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 = $azzwa("div");this.azbaaa();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:azzmaa.azzqa(\"" + ana(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 = $azzwa("div");this.sTable.id = 'MIN_' + this.winID;template.azmaaa("MINIMIZED_ITEM");template.azzzu("SKINPATH", azraaa());template.azzzu("ID", this.winID);var smtit = this.mtitle;if (apaaaaa(smtit)) smtit = "&nbsp;";template.azzzu("TITLE", smtit);this.sTable.innerHTML = template.value;this.sTable.title = minTitle;asaaaaa(this.sTable, "min_item");azsaaa.azzzzea("Bubbles", "WIN" + this.winID, this.sTable);amaaaaa("MIN_" + this.winID + "_MAX", azzzt(this, "azzzzn"));amaaaaa("MIN_" + this.winID + "_TEXT", azzzt(this, "azzzzn"));awa("MIN_" + this.winID, azzzt(this, "azzqaa"));ada("MIN_" + this.winID, azzzt(this, "aq"));this.azp("normal");}
this.boxID = 'WIN_' + this.winID;this.bTable = $azzwa("div");this.bTable.id = "WIN_" + this.winID + "_BODY";asaaaaa(this.bTable, "mainBodyHolder");template.azmaaa("WINDOW");template.azzzu("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.azzha();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 = abaa.getWidth(this.oContent);contentHeight = abaa.getHeight(this.oContent);if (!azl() && !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 = azzlaaa();this.boxObj = new azza({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 = azza.azzzzja(defaultSkinName);var boxBorderHeight = arr[0];var boxBorderWidth = arr[1];var boxCorner = abaa.getWidth(this.ata().azba()) + props.x;var overflow = boxCorner - (azha() - 5 - DesktopX);if (overflow > 0) this.ata().azzeaaa("", props.x - overflow);this.boxObj.addEventListener("aiaa", azzzt(this, "azzo"));this.boxObj.addEventListener("aba azzzha", azzzt(this, "azzzea"));this.boxObj.addEventListener("azga azzzha", azzzt(this, "azo"));if (this.canMaximize && autoMaximize && this.state == "F") {this.boxObj.afaaa(true);}
abaa.hide(this.ata().azba());this.ata().azba().jsWindow = this;this.saveX = azzz(this.ata().azba());this.saveY = alaa(this.ata().azba());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.azzzzwa(azzmaa.asaaa('MIN'), azzzt(this, "azf"), "Minimize");if ((this.pane) && (JSWindow_ALLOW_POPOUT)) this.boxObj.azzzzwa(azzmaa.asaaa('POPOUT'), azzzt(this, "azbaaa"), "Pop Out");if (this.canMaximize) this.boxObj.azzzzwa(azzmaa.asaaa('MAX'), azzzt(this.boxObj, "azzzoaa"), "Toggle Maximize");if (JSWindow_ALLOW_OPTIONS && (this.pane || this.bubblelink)) this.boxObj.azzzzwa(azzmaa.asaaa('OPTIONS'), azzzt(this, "azzzla"), "Options Menu");if (JSWindow_ALLOW_BACKBUTTONS && this.pane) {this.backControl = this.boxObj.aqaa(azzmaa.asaaa('BACK'),this.azzzzzb.awaaaa(this),"Back one page");abaa.hide(this.backControl);}
this.boxObj.azzzzwa(azzmaa.asaaa('CLOSE'), azzzt(this, "azzzzma"), "Close");this.boxObj.araa(navTitle);_ZooActiveWindows.push(this);this.ata().azba().style.overflow = "hidden";var transition = (props.transition);if (this.state == 'M') azsaaa.azzba("Bubbles", "WIN" + this.winID);else {if (JSWindow_ALWAYS_SHOW_MIN) azsaaa.azzba("Bubbles", "WIN" + this.winID);abaa.transition(this.ata().azba(),transition,this.oContent);if (this.state == "F") this.azzzea();}
this.ata().azzfa();azzmaa.dispatchEvent("azlaa", this);}
azzznaa.azuaaa("azzmaa", true, false);azzmaa._ICONS = {OPTIONS: "options", REFRESH: "refresh", MAX: "win_max", CLOSE: "close", POPOUT: "win_up", POPIN: "win_down", MIN: "dock",BACK:"back" };azzmaa.asaaa = function(name) {return azraaa() + 'icons/' + this._ICONS[name] + "." + JSWindow_ICON_EXT;}
azzr.extend(azzmaa, azhaaa.Publisher);azzmaa.aeaa = function() {if (window.aj) {aj.addEventListener("azqaaaa azzwaa", this.azea.awaaaa(this));aj.addEventListener("azqaaaa azzzga", this.azea.awaaaa(this));}
azzmaa.frontWin = null;azsaaa.adaaaa("Workspace", "Cascade All Bubbles", azzzt(this, "aztaaa"));azsaaa.azzba("Workspace", "Cascade All Bubbles");var func = azzzt(this, "azzwaaa");azsaaa.adaaaa("Workspace", "Maximize All Bubbles", azuaa(func, true));azsaaa.azzba("Workspace", "Maximize All Bubbles");azsaaa.adaaaa("Workspace", "Unmaximize All Bubbles", azuaa(func, false));func = azzzt(this, "akaaa");azsaaa.adaaaa("Workspace", "Minimize All Bubbles", azuaa(func, false));azsaaa.azzba("Workspace", "Minimize All Bubbles");azsaaa.adaaaa("Workspace", "Unminimize All Bubbles", azuaa(func, true));azsaaa.adaaaa("Workspace", "Close All Bubbles", azzzt(this, "aca"));azsaaa.azzba("Workspace", "Close All Bubbles");this.cntrlFirst = 1;}
azzmaa.azwa = function() {var activeWins = _ZooActiveWindows;for (var x = 0;x < activeWins.length;x++) {var jswin = activeWins[x];if (jswin.ata().azzzqa()) {jswin.ata().afaaa(false);jswin.ata().afaaa(true);}
}
}
azzmaa.azzwaaa = function(maximize) {var activeWins = _ZooActiveWindows;for (var x = 0;x < activeWins.length;x++) {var jswin = activeWins[x];if (jswin.state != 'M') jswin.ata().afaaa(maximize);}
if (maximize) {azsaaa.azzzzla("Tools", "Maximize All Bubbles", true);azsaaa.azzba("Tools", "Unmaximize All Bubbles");}
else {azsaaa.azzzzla("Tools", "Unmaximize All Bubbles", true);azsaaa.azzba("Tools", "Maximize All Bubbles");}
}
azzmaa.azzua = function(win, dataid, tokenq) {}
azzmaa.aztaaa = 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.azzzzzk('F', (x - skippedCount + 1) * amt, (x - skippedCount + 1) * amt, 500, 500);}
if (!foreWindow) {return;}
foreWindow.azzzzzk('F', (x - skippedCount + 1) * amt, (x - skippedCount + 1) * amt, 500, 500);}
azzmaa.azzqa = function(title, token) {title = azlaaa(title);var current = ZooPane.asaa(token);if (current) current.azzzda().azzzzn();else
this.azzzzsa(title, token);}
azzmaa.azzzzsa = function(title, token, link, op, execer) {var obj = this;var wins = token + "!" + azzmaa.azzzaaa();if (op == 'X') azzmaa.azzzzj(wins, token, title, execer);else
azzmaa.azzzzj(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.azf();}
}
azzmaa.azzya = function(divid) {var obj = $zej("WIN_" + divid);if (obj) return obj.jsWindow;}
azzmaa.amaaaa = function(divid, msg, status, winid) {if (!status) {status = "";}
if (status.indexOf('nomsg') < 0 && msg) {auaaaaa(msg);}
var ctWindow = this.azzya(divid);if (ctWindow) {ctWindow.azzzzma();}
if (status.indexOf('noreload') < 0) {if (winid) {azzmaa.aaaaaaa(winid);} else {azzmaa.azea();}
}
}
azzmaa.azs = 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;}
azzmaa.azzzb = function() {var winID = "";var valid = false;while (!valid) {this.araaaaa();winID = azzmaa.azs(this.winCounter, "_");if (!this.azzya(winID)) valid = true;}
return winID;}
azzmaa.azzt = function(opts) {var allowed = {top: 0, left: 0, width: 0, height: 0 };if (!opts) opts = new Object();if (!azzzpa(allowed, opts)) return;var width = opts.width;var height = opts.height;var dx = opts.left;var dy = opts.top;var winID = azzmaa.azzzb();if (STATICWIN_POSX) dx = STATICWIN_POSX;else if (!dx) dx = azzmaa.azzaa(this.winCounter);if (STATICWIN_POSY) dy = STATICWIN_POSY;else if (!dy) dy = azzmaa.azzaa(this.winCounter);if (!width) if (azzmaa.frontWin != null && azzmaa.frontWin.ata().ahaa() > JSWindow_BUBBLE_WIDTH_MIN) width = azzmaa.frontWin.ata().ahaa();else
width = (JSWindow_DEFAULT_WIN_WIDTH < 1) ? azha() * JSWindow_DEFAULT_WIN_WIDTH : JSWindow_DEFAULT_WIN_WIDTH;if (!height) if (azzmaa.frontWin != null && azzmaa.frontWin.ata().acaaaaa() > JSWindow_BUBBLE_HEIGHT_MIN) height = azzmaa.frontWin.ata().acaaaaa();else
height = (JSWindow_DEFAULT_WIN_HEIGHT < 1) ? azzx() * JSWindow_DEFAULT_WIN_HEIGHT : JSWindow_DEFAULT_WIN_HEIGHT;return {top: dy, left: dx, height: height, width: width };}
azzmaa.azzzaaa = function(opts) {var allowed = {windowMode: 0, top: 0, left: 0, width: 0, height: 0 };if (!opts) opts = new Object();if (!azzzpa(allowed, opts)) return;var specs = this.azzt({top: opts.top, left: opts.left, width: opts.width, height: opts.height });var winID = azzmaa.azs(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 = azzziaa(azda(dx), 3);var hexValh = azzziaa(azda(dy), 3);width = azzziaa(azda(width), 3);height = azzziaa(azda(height), 3);return winID + windowMode + hexValw + hexValh + width + height;}
azzmaa.azzaa = function(wcnt) {return (wcnt % 5) * 20;}
azzmaa.araaaaa = function() {if (!this.winCounter) this.winCounter = 0;if (this.winCounter > 702) this.winCounter = 0;else
this.winCounter++;}
azzmaa.prototype.azjaa = function(msg) {this.boxObj.azjaa(msg);}
azzmaa.prototype.azzzhaa = function() {return this.mtitle;}
azzmaa.prototype.azzzla = function(evt) {if (!evt) evt = event;var bid = this.pane.azzha();if (evt.ctrlKey) {window.open(Zoo.broker.azzra(bid), "_blank");return;}
var top = evt.clientY;var left = evt.clientX - DesktopX;var menu = new anaaaa("Options", ZOO_BUBBLE_CONTAINER, false);var func = "";var blink;if (this.bubblelink) {bid = this.bubbleid + "." + aznaaa();var bl = this.bubblelink.replace(/'/g, "\\'");var text = azx(this.azzzhaa()) + " ";if (this.bubblethumb) {text = this.bubblethumb;}
blink = "<a href=\\\"#javascript:" + bl + "\\\">" + text + "</a>";func = 'azzmaa.azpaa("' + bid + '","' + blink + '")';} else {var addStr = "zoo_make_bubble(\"" + bid + "\",10,10,410,450)";blink = "<a href=\"#javascript:" + addStr + "\">" + azx(this.pane.azzzhaa())+"</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 = "azzmaa.azpaa('" + bid + "','" + blink + "','" + bembed + "')";}
if (this.pane) menu.adaaaa("Refresh", this.pane.azzzca.awaaaa(this.pane));menu.adaaaa("Bubble Info", amaaa(func));menu.azzba({'left': left, 'top': top });}
function zoo_doAlert(bid, blink, bembed) {azzmaa.azpaa(bid, blink, bembed);}
azzmaa.azpaa = function(bid, blink, bembed) {var tdiv = $azzwa("TABLE");tdiv.setAttribute('border', 0);tdiv.setAttribute('cellPadding', 4);tdiv.setAttribute('cellSpacing', 4);var tbody = $azzwa('TBODY');tdiv.appendChild(tbody);var trow = $azzwa("TR");tbody.appendChild(trow);var td = $azzwa("TD");if (bid != null) {td.innerHTML = "BubbleID ";trow.appendChild(td);td = $azzwa("TD");td.innerHTML = "<input type=text value='"+bid+"'>";trow.appendChild(td);trow = $azzwa("TR");tbody.appendChild(trow);td = $azzwa("TD");}
td.innerHTML = "Link";trow.appendChild(td);td = $azzwa("TD");var tinput = $azzwa("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 = $azzwa("TR");tbody.appendChild(trow);td = $azzwa("TD");td.innerHTML = "Embed";trow.appendChild(td);td = $azzwa("TD");tinput = $azzwa("INPUT");tinput.id = "zes";tinput.onclick = function() {$zej('zes').focus();$zej('zes').select();};tinput.value = bembed;td.appendChild(tinput);trow.appendChild(td);td = $azzwa("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 azzmaa({dom_obj: tdiv, divID: this.azzzb(), width: 300, height: 200, title: "Bubble Info", canMinimize: JSWindow_ALLOW_MINIMIZE, state: "F", canMaximize: false });}
azzmaa.azzzxa = function(id) {var object = $zej(id);object.jsWindow.azf();}
azzmaa.azea = function() {var sigs = azzmaa.azgaaa(azzmaa.azzzzt());azzmaa.aca();setTimeout(azzmaa.am.awaaaa(azzmaa,sigs),250);}
azzmaa.prototype.aziaa = function() {return this.winID;}
azzmaa.aaaaaaa = function(winid) {var win = this.azzya(winid);var sig = win.ak();win.azzzzma();var func = azzzt(this, "aznaaaa");func = azuaa(func, sig);setTimeout(func, 250);}
azzmaa.azzzzg = 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 = $azzwa("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 = ((azha() - zw) / 2) - 36;var ypos = ((azzx() - zh) / 2) - 18;new azzmaa({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.azzya(divid);if (ctWindow) ctWindow.ata().azzfa();}
}
zoo_open_nodewindow = function(zid, zimg, ztitle, zdescr, _width, _height) {azzmaa.ax(zid, zimg, ztitle, zdescr, _width, _height);}
azzmaa.ax = 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 = $azzwa("div");cdiv.id = divid;if (window.azxaaa) azxaaa.azzta("hit image", zid);var origText = "";if (zoo_SHOW_ORIGINAL_LINK) {origText = "<a target=_new href='" + azkaa(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);azzmaa.araaaaa();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 azzmaa({title: " " + ztitle, divID: divid, x: this.azzaa(this.winCounter), y: this.azzaa(this.winCounter), width: w, height: h, canMinimize: JSWindow_ALLOW_MINIMIZE, state: "F", canMaximize: !_noMaximize, bubbleid: zid, bubblelink: "zoo_open_nodewindow('" + zid + "." + aznaaa() + "','" + myImage.src + "','" + azx(azx(ztitle)) + "','" + zdescr + "')", bubblethumb: "<img src='" + azkaa(myImage.src) + "'>"
});} else {var ctWindow = this.azzya(divid);if (ctWindow) ctWindow.ata().azzfa();}
}
zoo_openWindow = function(link, divid, title, _width, _height, _x, _y) {azzmaa.ag(link, divid, title, _width, _height, _x, _y);}
azzmaa.ag = function(link, divid, title, _width, _height, _x, _y) {if (link.indexOf("http://") == -1)link = absPath + link;var ctView = $zej(divid);if (!ctView) {adaaa("iframe",link);var cdiv = $azzwa("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 azzmaa({title: title, divID: divid, x: _x, y: _y, width: _width + 30, height: _height, canMinimize: JSWindow_ALLOW_MINIMIZE, canMaximize: 1 });}
else {var ctWindow = this.azzya(divid);if (ctWindow) ctWindow.boxObj.azzfa();}
}
azzmaa.ab = function(tokenID) {for (var x = 0;x < _ZooActiveWindows.length;x++) {if (_ZooActiveWindows[x].pane && _ZooActiveWindows[x].pane.azzzya() == tokenID) _ZooActiveWindows[x].azf();}
}
azzmaa.azzzzma = function(tokenID) {for (var x = 0;x < _ZooActiveWindows.length;x++) {if (_ZooActiveWindows[x].pane && _ZooActiveWindows[x].pane.azzzya() == tokenID) _ZooActiveWindows[x].azzzzma();}
}
azzmaa.akaaa = function(doUnminimize) {for (var x = 0;x < _ZooActiveWindows.length;x++) {if (!doUnminimize && _ZooActiveWindows[x].get_state() != "M") _ZooActiveWindows[x].azf();else if (doUnminimize && _ZooActiveWindows[x].get_state() == "M") _ZooActiveWindows[x].azzzzn();}
if (doUnminimize) {azsaaa.azzzzla("Tools", "Unminimize All Bubbles", true);azsaaa.azzba("Tools", "Minimize All Bubbles");}
else {azsaaa.azzzzla("Tools", "Minimize All Bubbles", true);azsaaa.azzba("Tools", "Unminimize All Bubbles");}
}
azzmaa.aca = function() {var skip = 0;while (_ZooActiveWindows.length > skip) {var jswin = _ZooActiveWindows[skip];if (this.hideOnClose)skip++;jswin.azzzzma();}
}
azzmaa.azaaaaa = function(paneContainerID) {var s = _ZooActiveWindows;for (var i = 0;i < s.length;i++) {var v = s[i];if (v.axaaaaa() && v.axaaaaa().azzzta() == paneContainerID) return s[i];}
return null;}
azzmaa.azzzzj = function(wins, dataid, title, execAtComplete, historyNav, dataRefreshOnly, isPop) {azzzraa("jswindow.azeaaaa " + wins + "::" + dataid + " " + title);var connector = new ajaaaaa(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.azaaaa('catproxy?d=' + dataid + "&is_pop=1");else
connector.azaaaa('catproxy?' + dataid);}
else if ((dataid.charAt(0) == 'Y') || (dataid.charAt(0) == 'y')) connector.azaaaa('commentfeed?yid=' + dataid);else if (dataid.charAt(0) == 'S') {term = dataid.substring(1);connector.azaaaa('zsearch?q=' + ana(term) + '&z=' + SEARCH_SOURCES);} else if (dataid.charAt(0) == 'O') {term = dataid.substring(1);connector.azaaaa('zsearch?q=' + ana(term) + '&z=' + SEARCH_SOURCES + "&action=full");} else if (dataid.charAt(0) == '@') {connector.azaaaa(dataid.substring(1));} else {connector.azaaaa('token.jsp?q=' + dataid);}
if (window.azxaaa) azxaaa.azzta(type, dataid);return connector.reqID;}
azzmaa.prototype.axaaaaa = function() {return this.pane;}
azzmaa.prototype.azpaaaa = function(zid) {if (zid == null) return;if (this.axaaaaa().azzha() == zid) {this.azzzzma();} else {this.axaaaaa().azu(zid);}
}
azzmaa.prototype.ata = function() {return this.boxObj;}
azzmaa.prototype.azzo = function() {this.saveX = this.ata().ae();this.saveY = this.ata().azzja();this.saveWidth = this.ata().ahaa();this.saveHeight = this.ata().acaaaaa();azzmaa.dispatchEvent("aiaa", this);}
azzmaa.prototype.azzzea = function() {this.state = "F";azzmaa.dispatchEvent("aba azzzha", this);azzmaa.frontWin = this;this.aq();}
azzmaa.prototype.azo = function() {if (this.state != "M") this.state = "B";azzmaa.dispatchEvent("azga azzzha", this);if (this == azzmaa.frontWin) azzmaa.frontWin = null;this.aq();}
azzmaa.prototype.ak = function() {if (this.axaaaaa()) {if ( (this.axaaaaa().azzha().charAt(0) == '@') ||
(! this.axaaaaa().azla().azzzzd())) return "";var w = azzziaa(azda(this.saveWidth), 3);var h = azzziaa(azda(this.saveHeight), 3);var x = azzziaa(azda(this.saveX), 3);var y = azzziaa(azda(this.saveY), 3);var winsig = this.axaaaaa().azzha() + "!" + this.winID + this.state + x + y + w + h;var viewIDs = this.azzm();for (var i = 0;i < viewIDs.length;i++) {if (viewIDs[i] != this.axaaaaa().azzha()) winsig += "&" + viewIDs[i] + "!" + this.winID + "N";}
azzzraa("ak "+winsig);return winsig;}
else
return "";}
azzmaa.prototype.azkaaaa = function(vid) {if (!this.axaaaaa()) return;if (this.axaaaaa().au() == vid) return this.axaaaaa();var views = this.azzm(null, true);for (var i = 0;i < views.length;i++) {if (views[i].au() == vid) return views[i];}
}
azzmaa.azgaaa = 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;}
}
azzmaa.azyaa = function() {return azzmaa.frontWin;}
azzmaa.azzzzt = function() {var s = _ZooActiveWindows;var result = "";var seperator = "";for (var i = 0;i < s.length;i++) {var jsWin = s[i];if (!jsWin.axaaaaa()) continue;var sig = jsWin.ak();if ((sig) && (sig.length > 1)) {result += seperator + sig;seperator = "&";}
azzzraa("azzzzt "+sig);}
return result;}
azzmaa.am = function(arr) {if (arr && arr.length>0 && window.aeaaaaa) {aeaaaaa.azzzzr(false);}
for (var x = 0;x < arr.length;x++) {this.aznaaaa(arr[x]);}
}
azzmaa.aznaaaa = function(sig) {var historyFunc;if (sig.indexOf("&") != -1) {var ret = sig.split("&");sig = ret.shift();historyFunc = this.aznaaaa.awaaaa(this,ret.join("&"));} else {if (window.aeaaaaa) historyFunc = aeaaaaa.azzzzr.awaaaa(aeaaaaa,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.azzya(winParams.divID);azzzraa("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.azzzzzk(winParams.state,winParams.x,winParams.y,winParams.width,winParams.height);if (win.axaaaaa().azfaaa(zid,true)==null) {var item = win.axaaaaa().aziaaaa(zid);if (item) {var parentPane = item.as();azzzraa("loadWinSignature item=" + item.azzv());Zoo.broker.azzzia(zid, parentPane, parentPane.ai(item), null, historyFunc);parentPane.azfaaaa(item);}
} else {}
} else {Zoo.broker.azbaaaa(zid,historyFunc,winParams);}
}
azzmaa.prototype.azzm = 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;}
azzmaa.prototype.avaaa = function() {alert("Not supported");return;}
azzmaa.prototype.azzzwaa = function() {if (this.popout) {this.avaaa();}
}
azzmaa.prototype.azbaaa = function() {alert("Not supported");return;}
azzmaa.prototype.azzzx = function(evt) {if (!this.axaaaaa() || !this.axaaaaa().azzze()) return;var menu = this.axaaaaa().azzze();if (menu.azzzyaa()) return;var e = window.event ? window.event : evt;var left = 0;var top = 0;top = (e.clientY - DesktopY);top -= menu.azzn() / 2;left = -10;var overflow = azzx() - (top + menu.azzn());overflow -= 10;if (overflow < 0) top += overflow;menu.azzba({'left': left, 'top': top });}
azzmaa.prototype.azf = function() {var obj = this.ata().azba();obj.style.overflow = "hidden";this.saveX = azzz(this.ata().azba());this.saveY = alaa(this.ata().azba());this.saveWidth = abaa.getWidth(this.bTable);this.saveHeight = abaa.getHeight(this.bTable);this.state = "M";abaa.hide(this.ata().azba());this.azzf();if (!JSWindow_ALWAYS_SHOW_MIN) azsaaa.azzba("Bubbles", "WIN" + this.winID);}
azzmaa.prototype.azzqaa = function(evt) {this.azzzx(evt);this.azp("hover");}
azzmaa.prototype.azp = function(state){var postfix = "";if (state == 'hover') postfix = "_over";else if (state == "active") postfix = "_active";azzjaaa("MIN_" + this.winID + "_TEXT", azraaa() + "images/min_bg" + postfix + ".gif");azzzv("MIN_" + this.winID + "_MAX", azraaa() + "images/minl_edge" + postfix + ".gif");azzzv("MIN_" + this.winID + "_EXPAND", azraaa() + "images/minr_edge" + postfix + ".gif");}
azzmaa.prototype.aq = function() {var active = (this.state == "F") ? "_active" : "";if (!$zej("MIN_" + this.winID + "_TEXT") || !$zej("MIN_" + this.winID + "_MAX")) return;if (this.state == "F") this.azp("active");else
this.azp("normal");if (this.axaaaaa()) {return;var menu = this.axaaaaa().azzze();if (menu) menu.azzzzla();}
}
azzmaa.prototype.azzzzla = function() {if (this.hidden) return;abaa.hide(this.ata().azba());if (this.canMinimize) azsaaa.azzzzla("Bubbles", "WIN" + this.winID);azzc.remove(_ZooActiveWindows, this);this.hidden = true;}
azzmaa.prototype.azzba = function() {if (!this.hidden) return;if (this.state != 'M') abaa.show(this.ata().azba());if (this.canMinimize) if (JSWindow_ALWAYS_SHOW_MIN || this.state == 'M') azsaaa.azzba("Bubbles", "WIN" + this.winID);_ZooActiveWindows.push(this);this.hidden = false;}
azzmaa.prototype.azzf = function() {abaa.hide(this.ata().azba());azzmaa.dispatchEvent("azqa", this);}
azzmaa.prototype.azzzzn = function() {abaa.show(this.ata().azba());if (this.canMinimize) {if (!JSWindow_ALWAYS_SHOW_MIN) azsaaa.azzzzla("Bubbles", "WIN" + this.winID);}
var isMinimized = (this.state == 'M');this.ata().azzfa();if (isMinimized) {abaa.show(this.ata().azba());this.ac();}
this.state = "F";}
azzmaa.prototype.get_state = function() {return this.state;}
azzmaa.prototype.ac = function() {azzmaa.dispatchEvent("azhaa", this);}
azzmaa.prototype.azzzzzk = function(_state, _x, _y, _w, _h) {this.state = _state;this.ata().azzeaaa(_y, _x);this.ata().azzzm(_h, _w);if (this.state == 'M') this.azf();else {abaa.show(this.ata().azba());if (!JSWindow_ALWAYS_SHOW_MIN) azsaaa.azzzzla("Bubbles", "WIN" + this.winID);if (this.state == 'F') this.ata().azzfa();}
}
azzmaa.prototype.azzzzf = function(_h) {this.ata().azzzzf(_h);}
azzmaa.azk = function(isForward) {if (this.cntrlFirst) {this.nextArray = new Array();var highest;var highestOne;var ceiling = azza.frontIndex + 1;do {highest = 0;highestOne = 0;for (var x = 0;x < _ZooActiveWindows.length;x++) {if (_ZooActiveWindows[x].state != 'M' && _ZooActiveWindows[x].ata().at() < ceiling && (!highest || highest < _ZooActiveWindows[x].ata().at())) {highest = _ZooActiveWindows[x].ata().at();highestOne = _ZooActiveWindows[x].ata();}
}
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].azzfa();}
azzmaa.prototype.azzzzma = function() {if (this.hideOnClose) {this.azzzzla();return;}
this.azzva();}
azzmaa.prototype.azzva = function() {var x;if (this.active_queries) {for (x = 0;x < this.active_queries.length;x++) Zoo.network.azzzh(this.active_queries[x]);}
if (this.popout != null) {this.popout.close();this.popout = null;}
if (this.pane) adaaa("close",this.pane.azzha());if (this.axaaaaa()) {var menu = this.axaaaaa().azzze();if (menu) menu.azzzzla();this.pane = null;}
azzc.remove(_ZooActiveWindows, this);azzzra(this.oContent);azzzra(this.ata().azba());this.oContent.parentNode.removeChild(this.oContent);this.ata().azba().parentNode.removeChild(this.ata().azba());if (this.sTable) azsaaa.azzl("Bubbles", "WIN" + this.winID);azzmaa.dispatchEvent("az", this);var highest;var makeFront;for (x = 0;x < _ZooActiveWindows.length;x++) {if (_ZooActiveWindows[x].state != 'M' && (!highest || highest < _ZooActiveWindows[x].ata().at())) {highest = _ZooActiveWindows[x].ata().at();makeFront = _ZooActiveWindows[x].ata();}
}
if (makeFront) makeFront.azzfa();}
azzmaa.prototype.azzzzzb = function() {if (this.backHistory && this.backHistory.length>0) {var x = this.backHistory.pop();this.forwardHistory.push(x);this.backForwardButton = true;Zoo.broker.azzzia(x, null, "WINHOOK_"+this.winID);}
}
azzmaa.prototype.azzzzya = function() {if (this.forwardHistory && this.forwardHistory.length>0) {var x = this.forwardHistory.pop();this.backHistory.push(x);this.backForwardButton = true;Zoo.broker.azzzia(x, null, "WINHOOK_"+this.winID);}
}
azzmaa.prototype.aaaaaa = function(_pane,transition) {if (!this.pane) return;if (this.pane.azzha()!=_pane.azzha()) {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.azzha()) this.backHistory.push(this.pane.azzha());this.forwardHistory = new Array();}
}
if (this.backHistory.length>0) abaa.show(this.backControl);else
abaa.hide(this.backControl);this.pane = _pane;this.pane.azeaaa(this.winID,this);this.pane.azzzzy("WINHOOK_"+this.winID);var _div = $azzwa("div");_div.className = 'boxCont';_div.style.position="absolute";var x = azzz(this.oContent);var w = abaa.getWidth(this.oContent);var y = alaa(this.oContent);var h = abaa.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.azzzw();_div.appendChild(content);ZOO_BUBBLE_CONTAINER.appendChild(_div);abaa.transition(_div,transition,content,this.ataa.awaaaa(this,_div));}
azzmaa.prototype.ataa = function(_div) {var oldContent = this.oContent;this.oContent = _div.firstChild;azzzra(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;av("RESOLVER_URL",absPath+"responderlookup?title=");av("ZOO_DEFAULT_SEARCH_SID",".localsearch");Zoo.broker.azzztaa = function(sid, url) {if (!this._sids) this._sids = {};this._sids[sid] = url;};Zoo.broker.azzztaa("local",absPath+"userresponder?q=[ZID]");Zoo.broker.azzztaa('localsearch', absPath+"usersearch?q=[ZID]");Zoo.broker.agaaaa = function(sid,func) {var result = "";azzzraa("resolving sid="+sid);if (!this._sids) this._sids={};if (this._sids[sid]) result = this._sids[sid];else
Zoo.network.azraa(RESOLVER_URL+sid, "", this.azzmaaa.awaaaa(this, sid,func));return result;};Zoo.broker.azzmaaa = function(sid,func,req) {azzzraa("azzmaaa 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.azzztaa(sid,url);if (func) func();azzzraa("azzmaaa "+sid+"="+url);};Zoo.broker.azzlaa = function(url) {var template = new Zoo.template();template.azzga(url);var browser = "browser_";browser += Zoo.utils.is_IE() ? "IE" : "FIREFOX";template.azzzu("ABSPATH", Zoo.utils.abs_path(), "OS", "windows", "TARGET", browser);var x;for (x = 1;x < arguments.length;x += 2) template.azzzu(arguments[x], arguments[x + 1]);return template.value;};Zoo.broker.azzra = function(zid,func) {azzzraa("azzra "+zid);if (zid.charAt(0)=='@')if (zid.indexOf("http://")<0) return absPath+zid.substr(1);else
return zid.substr(1);var parts = $azzxaaa(zid.split("."));var sid = parts.pop();var p_zid = parts.join(".");var url = this.agaaaa(sid,func);if (!url) return "";if (url==SID_NOT_FOUND) return SID_NOT_FOUND;url = this.azzlaa(url, "ZID", p_zid);return url;};Zoo.broker.pendingRequests = [];Zoo.broker.azbaaaa = function(zid, history_nav, JSWindow_params, title,secondTry) {if (!secondTry) adaaa("hit new",zid);azzzraa("Getting new bubble zid="+zid);if (!zid) return;if (!JSWindow_params) JSWindow_params = {};if (zid.charAt(0)=='@') {return Zoo.network.azraa(aztaa(zid.substring(1)), "", this.ataaa.awaaaa(this, zid, history_nav, JSWindow_params, title));}
func = (secondTry) ? null : this.azbaaaa.awaaaa(this,zid,history_nav,JSWindow_params,title,true);var url = this.azzra(zid,func);if (!url) {if (secondTry) alert("Unable to resolve URL for zid "+zid);return;}
if (url==SID_NOT_FOUND) {azzzraa("Sid not found "+zid);this.ataaa(zid,history_nav,JSWindow_params,title,"Could not resolve source for content :: "+zid);return;}
return Zoo.network.azraa(aztaa(url), "", this.ataaa.awaaaa(this, zid, history_nav, JSWindow_params, title));};Zoo.broker.ataaa = function(zid, history_nav, JSWindow_params, title, req) {var branch = new Zoo.branch();branch.araa(title);branch.ao(zid);if (typeof(req)=="string") {branch.araa("No results.");branch.azzzzl(req);} else {if (req.responseXML.childNodes[0].nodeName == "zoowee" || req.responseXML.childNodes[0].nodeName == "xml" && req.responseXML.childNodes[1].nodeName == "zoowee") branch.axaaa(req.responseXML);else
branch.azy(req.responseXML);}
if (branch.azzzhaa()) JSWindow_params.title = branch.azzzhaa();if (! JSWindow_params.divID) JSWindow_params.divID = azzmaa.azzzb();var view_type = branch.azwaaaa("view_type");var view = ZooPane.azb(view_type, branch);var transition = branch.azwaaaa("transition");if (! apaaaaa(transition)) {var trans = transition.split(" ");JSWindow_params.transition = trans;}
if (branch.ahaa()) JSWindow_params.width = branch.ahaa();if (branch.acaaaaa()) JSWindow_params.height = branch.acaaaaa();JSWindow_params.pane = view;new azzmaa(JSWindow_params);if (history_nav!=null && typeof(history_nav) == "function") history_nav();};Zoo.broker.pendingRequest = false;Zoo.broker.azzzia = function(zid, parent_pane, id, title,history_nav,secondTry) {if (!secondTry) adaaa("hit current",zid);azzzraa("Getting current bubble zid="+zid+" id="+id);if (!zid) return;func = (secondTry) ? null : this.azzzia.awaaaa(this,zid,parent_pane,id,title,history_nav,true);var url = this.azzra(zid,func);if (!url) {if (secondTry) alert("Unable to resolve URL for zid "+zid);return;}
if (url==SID_NOT_FOUND) {this.azzzzze(zid,parent_pane,id,title,history_nav,"Could not resolve source for content :: "+zid);return;}
return Zoo.network.azraa(aztaa(url), "", this.azzzzze.awaaaa(this, zid, parent_pane, id, title,history_nav));};Zoo.broker.azzzzze = function(zid, parent_pane, id, title,history_nav,req) {var branch = new Zoo.branch();branch.araa(title);branch.ao(zid);if (typeof(req) == "string") {branch.araa("No Results");branch.azzzzl(req);} else {if (req.responseXML.childNodes[0].nodeName == "zoowee" || req.responseXML.childNodes[0].nodeName == "xml" && req.responseXML.childNodes[1].nodeName == "zoowee") branch.axaaa(req.responseXML);else
branch.azy(req.responseXML);}
azzzraa(branch.azzv());var view_type = branch.azwaaaa("view_type");var transition = branch.azwaaaa("transition");var trans = null;if (! apaaaaa(transition)) {trans = transition.split(" ");}
var pane = ZooPane.azb(view_type, branch);if (parent_pane != null) {parent_pane.azzma(zid, id, pane);} else {var jswin = azzmaa.azaaaaa(id);if (jswin) jswin.aaaaaa(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;}
azzr.extend(ZooPane, azhaaa.Publisher);var _ZooPanes = {};ZooPane.prototype.aeaaa = function(branch) {this._menu = new Zoo.menu(this.azzzhaa(), ZOO_BUBBLE_CONTAINER, true);this._branch = branch;this.araa(branch.azzzhaa());this.ao(branch.azzha());};ZooPane.prototype.azzv = 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].azzv()+"\n";}
return result;}
ZooPane.azb = 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.aeaaa(branch);return pane;};ZooPane.prototype.azla = function() {return this._branch;}
ZooPane.prototype.azaa = function(type) {this._type = type;};ZooPane.prototype.ay = function(type) {return this._type;};ZooPane.azzzoa = function(pane_type, pane_class) {_ZooPanes[pane_type] = pane_class;};ZooPane.prototype.aza = function(pane) {this._parent_pane = pane;};ZooPane.prototype.as = function() {return this._parent_pane;};ZooPane.prototype.azeaaa = function(winID, jswin) {this._jswin = jswin;this._jswin_id = winID;};ZooPane.prototype.ayaaaa = function() {return this._jswin;};ZooPane.prototype.aziaa = function() {return this._jswin_id;};ZooPane.prototype.azzha = function() {return this._zid;};ZooPane.prototype.ao = function(zid) {this._zid = zid;};ZooPane.prototype.azzzhaa = function() {return this._title;};ZooPane.prototype.araa = function(title) {this._title = title;};ZooPane.prototype.azzze = function() {return this._menu;};ZooPane.prototype.azq = function(item) {var id = item.azzzzzm();var zid = item.azzha();var img = $zej(id + "_arrow");if (img.isOpen) {img.src = azraaa() + "icons/arrow_right.gif";this.azu(zid);img.isOpen = false;ZooPane.dispatchEvent("aze az", zid);ZooPane.dispatchEvent("ajaaaa azzzo", zid);} else {this.azfaaaa(item);Zoo.broker.azzzia(zid, this, id);}
};ZooPane.prototype.azfaaaa = function(item) {var id = item.azzzzzm();var img = $zej(id + "_arrow");img.isOpen = true;img.src = azraaa() + "icons/arrow_down.gif";ZooPane.dispatchEvent("aze azzzbaa", item.azzha());}
ZooPane.prototype.al = function(id, item) {var img = $azzwa("IMG");img.id = id + "_arrow";img.isOpen = false;img.src = azraaa() + "icons/arrow_right.gif";asaaaaa(img, "clickable_arrow_button");amaaaaa(img, this.azq.awaaaa(this, item));return img;};ZooPane.prototype.azcaaa = function(zid) {Zoo.broker.azbaaaa(zid);}
ZooPane.prototype.azpa = function(id, item) {var img = $azzwa("IMG");img.id = id + "_newwin";img.isOpen = false;img.src = azraaa() + "icons/application.gif";asaaaaa(img, "clickable_newwin_button");amaaaaa(img, this.azcaaa.awaaaa(this, item.azzha()));return img;};ZooPane.ahaaa = function() {if (!this._cur_id) this._cur_id = 1;return "pane_" + this._cur_id++;};ZooPane.prototype.azzzka = function(id, actions, item) {this._items.push(item);};ZooPane.prototype.aziaaaa = function(_zid,_deep) {for (var i=0;i<this._items.length;i++) if (this._items[i].azzha()==_zid) return this._items[i];if (_deep) {for (var i=0;i<this._children.length;i++) {var p = this._children[i].aziaaaa(_zid,_deep);if (p!=null) return p;}
}
return null;};ZooPane.prototype.aqa = function() {this._contentPrepared = true;}
ZooPane.prototype.azzzzj = function() {var item;var id;var actions;var menu = this._menu;while ((item = this._branch.azzzy()) != null) {actions = [];id = ZooPane.ahaaa();item.azzzeaa(id);item.aza(this);if (item.azzzba() != "Baren") {menu.adaaaa(item.azzzhaa(),this.azcaaa.awaaaa(this, item.azzha()));var newwin = this.azpa(id,item);actions.push(newwin);var arrow = this.al(id, item);actions.push(arrow);}
this.azzzka(id, actions, item);}
};ZooPane.prototype.azzzw = function() {if (! this._contentPrepared) this.aqa();this._fullContent = $azzwa("DIV");if (this.as()==null) if (this._branch._authoring) this._fullContent.appendChild(this._branch._authoring.azzzzj(this,this._branch.azzha()));if (this._branch.aqaaaaa()!=null) {this._fullHeader = $azzwa("DIV");this._fullHeader.innerHTML = this._branch.aqaaaaa();this._fullContent.appendChild(this._fullHeader);}
this._fullContent.appendChild(this.azzzzj());return this._fullContent;}
ZooPane.prototype.agaaaaa = function(item,atom,element) {return true;}
ZooPane.prototype.azoaa = function() {return this._children.length>0;}
ZooPane.prototype.azfaa = function (pane) {if (this.azfaaa(pane.azzha())==null) this._children.push(pane);};ZooPane.prototype.azfaaa = function(zid,deep) {if (this._zid==zid) {return this;}
for (var i=0;i<this._children.length;i++) {var p = this._children[i];azzzraa("getChildPane "+zid+" found "+p.azzha()+"X");if (p.azzha()==zid) return p;if (deep && p.azoaa()) {var c = p.azfaaa(zid);if (c!=null) return c;}
}
return null;};ZooPane.prototype.azu = function(zid) {for (var i=0;i<this._children.length;i++) {var p = this._children[i];if (p.azzha()==zid) {var containerID = p.azzzta();if (containerID) {var view = $zej(containerID);if (view) {view.innerHTML = "";}
}
this._children.splice(i,1);}
}
}
ZooPane.prototype.azzzzy = function(_id) {this._id = _id;}
ZooPane.prototype.azzzta = function () {return this._id;}
ZooPane.prototype.ai = function(_item) {return _item.azzzzzm();}
ZooPane.prototype.azzma = function(zid, id, pane, skip_append) {if (id.indexOf("_zoo_children")<0) id = id+"_zoo_children";pane.aza(this);pane.azeaaa(this.aziaa(), this.ayaaaa());this.azfaa(pane);pane.ao(zid);if (! pane.raceCondition) pane.raceCondition = 0;azzzraa("appendPane "+zid+" parent="+this.azzha()+" "+skip_append);if (!skip_append) {var par_dom = $zej(id);if (par_dom) {pane.azzzzy(id);while (par_dom.firstChild) {Zoo.utils.remove_objects_and_embeds(par_dom.firstChild);par_dom.removeChild(par_dom.firstChild);}
var content = pane.azzzw();par_dom.winID = this.aziaa();par_dom.zid = zid;par_dom.pane = pane;par_dom.appendChild(content);ZooPane.dispatchEvent("ajaaaa azzzo", zid);} else {if (pane.raceCondition>0) {alert("Race condition - "+id+" has not been constructed yet.");} else {pane.raceCondition ++;setTimeout(this.azzma.awaaaa(this,zid,id,pane,skip_append),1000);}
}
}
};ZooPane.prototype.azzzca = function() {if (this.as()!=null) this._parent_pane.azu(this._zid);Zoo.broker.azzzia(this._zid, this._parent_pane, this._id);}
ZooPane.prototype.azzzzoa = function(dom) {asaaaaa(dom, "zoo_pane_" + this.ay());};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.azzia = function(_url){this.addUrl = _url;}
Zoo.authoring.prototype.azzzna = function(_text){this.addText = _text;}
Zoo.authoring.prototype.azz = function(_url){this.editUrl = _url;}
Zoo.authoring.prototype.avaaaaa = function(_text){this.editText = _text;}
Zoo.authoring.prototype.azzzzzj = function( _url){this.deleteUrl = _url;}
Zoo.authoring.prototype.ara = function(_text){this.deleteText = _text;}
Zoo.authoring.anaaa = 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.azzzzj = function(pane,_sourcezid){this.content = $azzwa('DIV');var divid = "W$" + GLOBAL_UNIQ++;if (this.addUrl != null) {var addDOM = $azzwa('SPAN');addDOM.className = 'zoo_authoring_link';var href = Zoo.authoring.anaaa(this.addUrl,pane.aziaa(),_sourcezid,_sourcezid);if (href) {if (href.indexOf("javascript:") < 0) addDOM.onclick = azzmaa.ag.awaaaa(azzmaa, href,divid,this.addText);else
addDOM.onclick = new Function(href.substring(11));}
addDOM.appendChild($azzzzv(this.addText));this.content.appendChild(addDOM);this.content.appendChild($azzzzv(" "));}
if (this.editUrl != null) {var editDOM = $azzwa('SPAN');editDOM.className = 'zoo_authoring_link';var href = Zoo.authoring.anaaa(this.editUrl,pane.aziaa(),pane.azzha(),_sourcezid);if (href) {if (href.indexOf("javascript:") < 0) editDOM.onclick = azzmaa.ag.awaaaa(azzmaa, href,divid,this.editText);else
editDOM.onclick = new Function(href.substring(11));}
editDOM.appendChild($azzzzv(this.editText));this.content.appendChild(editDOM);this.content.appendChild($azzzzv(" "));}
if (this.deleteUrl != null) {var deleteDOM = $azzwa('SPAN');deleteDOM.className = 'zoo_authoring_link';href = Zoo.authoring.anaaa(this.deleteUrl,pane.aziaa(),pane.azzha(),_sourcezid);if (href) {if (href.indexOf("javascript:") < 0) deleteDOM.onclick = azzmaa.ag.awaaaa(azzmaa, href,divid,this.deleteText);else
deleteDOM.onclick = new Function(href.substring(11));}
deleteDOM.appendChild($azzzzv(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.azraa('removecat?source_zid='+source_zid+'&refresh_winid='+refresh_winid + '&refresh_zid=' + refresh_zid, "", Zoo.authoring.abaaa.awaaaa(Zoo.authoring));}
Zoo.authoring.abaaa = 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 (!apaaaaa(reload)) {if (reload == 'all') azzmaa.azea();}
}
}
ZooAtom = function() {this._num = 0;this._name = "";this._value = "";this._hidden = false;this._type = "";this._children = [];this._params = {};this._item = null;this._ready = false;};azzr.extend(ZooAtom, azhaaa.Publisher);var _ZooAtomTypes = {};ZooAtom.prototype.azzzzoa = function(dom) {var name = this.azzzgaa();if (name) name = " zoo_atom_name_" + name;else
name = "";asaaaaa(dom, "zoo_atom_" + this.ay() + name);};ZooAtom.aoaaaaa = function(type, atom) {if (!_ZooAtomTypes) _ZooAtomTypes = new Object();_ZooAtomTypes[type] = atom;};ZooAtom.prototype.azzzzh = function(){this._ready = true;};ZooAtom.aiaaa = function(type) {if (!_ZooAtomTypes[type]) return null;return new _ZooAtomTypes[type]();};ZooAtom.prototype.azxa = function(type) {this._type = type;};ZooAtom.prototype.azzzg = function(name, value) {this._params[name] = value;};ZooAtom.prototype.azzzzna = function(value) {this._value = value;this._children = [];};ZooAtom.prototype.azzzzha = function(atom) {this._children.push(atom);this._value = undefined;};ZooAtom.prototype.azzzzk = function(name) {this._name = name;};ZooAtom.prototype.azzzzzi = function(item) {this._item = item;}
ZooAtom.prototype.azzpa = function() {return this._item;}
ZooAtom.prototype.azzca = function(name) {for (var x = 0;x < this._children.length;x++) {var child = this._children[x];if (child.azzzgaa() == name) return child;}
return null;};ZooAtom.prototype.azzzzca = function(type) {for (var x = 0;x < this._children.length;x++) {var child = this._children[x];if (child.ay() == type) return child;}
return null;};ZooAtom.prototype.azxaa = function(name) {delete this._params[name];}
ZooAtom.prototype.azzzzj = function(view_type) {if (! this._ready) this.azzzzh();};ZooAtom.prototype.azzzgaa = function() {return this._name;};ZooAtom.prototype.ay = function() {return this._type;};ZooAtom.prototype.aqaaaa = function() {return this._value;};ZooAtom.prototype.azzraaa = function(name) {return this._params[name];};ZooAtom.prototype.azzraa = function() {if (this._children.length) return this._children;else
return null;};ZooAtom.prototype.aea = function() {return this._hidden;};ZooAtom.prototype.azw = function(is_hidden) {this._hidden = is_hidden;};ZooAtom.prototype.azzgaa = function(dom) {awa(dom, ZooAtom.dispatchEvent.awaaaa(ZooAtom,"azzzzka azzzfa", this));ada(dom, ZooAtom.dispatchEvent.awaaaa(ZooAtom,"azzzzka azzzfa azzzxaa", this));};ZooAtom.prototype.azzj = function(tip) {this._tooltip = tip;};ZooAtom.prototype.azzcaaa = function() {return this._tooltip;};ZooAtom.prototype.azzzzzc = function() {return this._value;};ZooAtom.prototype.azzv = 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();azzr.extend(ZooItem, azhaaa.Publisher);ZooItem.cast = function(item) {return item;};ZooItem.prototype.azzzzh = function() {var x;for (x = 0;x < this._atoms.length;x++) this._atoms[x].azzzzh();this._ready = true;};ZooItem.azfa = function(type, item) {if (!_ZooItemTypes) _ZooItemTypes= new Object();_ZooItemTypes[type]=item;};ZooItem.prototype.azzzzzm = function() {return this._elementID;}
ZooItem.prototype.azzzeaa = function(_id) {this._elementID = _id;}
ZooItem.azzyaaa = function(type) {if (!_ZooItemTypes[type]) return null;return new _ZooItemTypes[type]();};ZooItem.prototype.as = function() {return this._parentPane;};ZooItem.prototype.aza = function(_pane) {this._parentPane = _pane;};ZooItem.prototype.aia = function(name) {for (var x = 0;x < this._atoms.length;x++) {var atom = this._atoms[x];if (atom.azzzgaa() == name) return atom;}
return null;};ZooItem.prototype.azzzhaa = function() {var title = this.aia("title");if (title!=null) return title.aqaaaa();else
return null;}
ZooItem.prototype.azdaa = function(type) {for (var x = 0;x < this._atoms.length;x++) {var atom = this._atoms[x];if (atom.ay() == type) return atom;}
return null;};ZooItem.prototype.ay = function() {return this._type;};ZooItem.prototype.azzyaa = function() {return this._atoms;};ZooItem.prototype.azzla = function(atom) {this._atoms.push(atom);atom.azzzzzi(this);};ZooItem.prototype.azaa = function(type) {this._type = type;};ZooItem.prototype.ao = function(zid) {this._zid = zid;};ZooItem.prototype.asaaaaa = function(new_class) {this._class = new_class;};ZooItem.prototype.azmaa = function(new_class) {this._userclass = new_class;};ZooItem.prototype.azg = function() {return this._class;};ZooItem.prototype.azzsaaa = function() {return this._userclass;};ZooItem.prototype.azzha = function() {return this._zid;};ZooItem.prototype.azoaa = function() {return (this._children=="true" || this._children=="Yes");}
ZooItem.prototype.azzzba = function() {var val = this._children;if (!val) return "Baren";else
return val;};ZooItem.prototype.azzzzi = function(info) {this._children = info;};ZooItem.prototype.azztaaa = function() {var clone = ZooItem.azzyaaa(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.aiaaa(atom.ay());catom.azzzzk(atom.azzzgaa());for (var property in atom) {catom[property] = atom[property];}
catom.azzzzna(atom.aqaaaa());clone.azzla(catom);}
return clone;}
ZooItem.prototype.azm = function() {while (this._atoms.length > this._pos) {if (!this._atoms[this._pos].aea()) return this._atoms[this._pos++];else
this._pos++;}
return null;};ZooItem.prototype.azzzzva = function() {this._pos = 0;};ZooItem.prototype.azzzg = function(name, value) {this._params[name] = value;};ZooItem.prototype.azzraaa = function(name) {return this._params[name];};ZooItem.prototype.azzgaa = function(dom) {};ZooItem.prototype.azzzzoa = function(dom) {asaaaaa(dom, "zoo_item_" + this.ay() + " " + this.azg() + " " + this.azzsaaa());};ZooItem.prototype.azzzzj = function(pane) {if (! this._ready) this.azzzzh();var atom;var ret = $azzwa("DIV");if (this._authoring) ret.appendChild(this._authoring.azzzzj(pane,this.azzha()));var x;this.azzzzva();while ((atom = this.azm()) != null) {var atomDOM = atom.azzzzj(pane.ay());var shouldAppend = pane.agaaaaa(this,atom,atomDOM);if (shouldAppend) ret.appendChild(atomDOM);}
this.azzgaa(ret);this.azzzzoa(ret);return ret;};ZooItem.prototype.azzv = 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].azzv()+"\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.ahaa = function() {return this._width;}
Zoo.branch.prototype.acaaaaa = function() {return this._height;}
Zoo.branch.prototype.araa = function(title) {this._title = title;};Zoo.branch.prototype.ao = function(zid) {this._zid = zid;};Zoo.branch.prototype.azzzzd = function() {return this._history;}
Zoo.branch.prototype.azzzqaa = function(bool) {this._history = bool;}
Zoo.branch.prototype.azzzzp = function(_hdr) {this._header = _hdr;}
Zoo.branch.prototype.aqaaaaa = function() {return this._header;}
Zoo.branch.prototype.azzzka = function(item) {this._items.push(item);};Zoo.branch.prototype.awaa = function(name, value) {this._styles[name] = value;};Zoo.branch.prototype.azzzhaa = function() {return this._title;};Zoo.branch.prototype.azzha = function() {return this._zid;};Zoo.branch.prototype.ataaaaa = function() {return this._items;};Zoo.branch.prototype.azzzy = 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.azwaaaa = function(name) {return this._styles[name];};Zoo.branch.prototype.af = function() {var names = [];for (var i=0;i<this._items.length;i++) {var atoms = this._items[i].azzyaa();for (var j=0;j<atoms.length;j++) if (! azzc.contains(names,atoms[j].azzzgaa())) names.push(atoms[j].azzzgaa());}
return names;}
Zoo.branch.prototype.azzzja = 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.axaaa = function(xmlDoc) {var branch = xmlDoc.getElementsByTagName("branch")[0];if (! branch) {this.azzzzl("No Data Returned","The source returned no available channel.");return;}
var zid = branch.getAttribute("zid");var title = branch.getAttribute("title");if (zid) this.ao(zid);if (title) this.araa(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.azzia(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"add_text");if (auth) this._authoring.azzzna(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"edit_url");if (auth) this._authoring.azz(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"edit_text");if (auth) this._authoring.avaaaaa(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"del_url");if (auth) this._authoring.azzzzzj(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"del_text");if (auth) this._authoring.ara(getNodeValue(auth));}
if (xml_header) {var headerContent = getFirstElementByTagName(xml_header,"html");if (headerContent) this.azzzzp(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.awaa(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.aaa(xml_item);if (item) this.azzzka(item);}
}
};Zoo.branch.prototype.azzzzl = function(_title,_desc) {this.awaa("view_type","view");var item = ZooItem.azzyaaa("node");item.asaaaaa("label");item.ao("item_");if (_title) {var atom = ZooAtom.aiaaa("text");atom.azzzzk("title");atom.azzzzna(_title);item.azzla(atom);}
if (_desc) {var atom = ZooAtom.aiaaa("text");atom.azzzzk("description");atom.azzzzna(_desc);item.azzla(atom);}
this.azzzka(item);}
Zoo.branch.prototype.aaa = function(xmlNode) {var item;var attribute;var xml_type = xmlNode.nodeName;item = ZooItem.azzyaaa(xml_type);if (!item) return null;var zid = xmlNode.getAttribute("zid");if (zid) item.ao(zid);var xml_param;for (x = 0;x < xmlNode.attributes.length;x++) {xml_param = xmlNode.attributes[x];if (xml_param.name != "name") item.azzzg(xml_param.name, xml_param.value);if (xml_param.name == "class") item.asaaaaa(xml_param.value);if (xml_param.name=="userclass") item.azmaa(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.azzia(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"add_text");if (auth) item._authoring.azzzna(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"edit_url");if (auth) item._authoring.azz(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"edit_text");if (auth) item._authoring.avaaaaa(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"del_url");if (auth) item._authoring.azzzzzj(getNodeValue(auth));auth = getFirstElementByTagName(xml_authoring,"del_text");if (auth) item._authoring.ara(getNodeValue(auth));}
var xml_atoms = this.azzzja(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.azzzzi(kid_status);for (x = 0;x < xml_atoms.childNodes.length;x++) {xml_atom = xml_atoms.childNodes[x];atom = this.ayaaa(xml_atom);if (atom) {item.azzla(atom);}
}
return item;};Zoo.branch.prototype.ahaaaaa = function(xml_node) {if (xml_node.childNodes && xml_node.childNodes.length && xml_node.childNodes[0].nodeValue == null) return true;return false;};Zoo.branch.prototype.ayaaa = function(xmlNode) {var xml_type = xmlNode.nodeName;var atom = ZooAtom.aiaaa(xml_type);if (!atom) return null;var name = xmlNode.getAttribute("name");if (name) atom.azzzzk(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.azzzg(xml_param.name, xml_param.value);if (xml_param.name=="tooltip") atom.azzj(xml_param.value);}
var xml_child;var child_atom;if (this.ahaaaaa(xmlNode)) {for (x = 0;x < xmlNode.childNodes.length;x++) {xml_child = xmlNode.childNodes[x];child_atom = this.ayaaa(xml_child);atom.azzzzha(child_atom);}
}
else
atom.azzzzna(getNodeValue(xmlNode));return atom;};Zoo.branch.prototype.azy = function(xmlDoc) {var x;var channel = xmlDoc.getElementsByTagName("channel")[0];if (! channel) {this.azzzzl("No Data Returned","The source returned no available channel.");return;}
var title = getNodeValue(channel.getElementsByTagName("title")[0]);if (title) this.araa(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.azzyaaa("node");item.asaaaaa("rsslink");var atom = ZooAtom.aiaaa("link");if (xml_title) atom.azzzzna(xml_title);if (xml_link) {atom.azzzg("src", xml_link);atom.azzzg("type", "http");}
if (xml_description) atom.azzj(xml_description);item.azzla(atom);if (xml_pubDate) {atom = ZooAtom.aiaaa("text");atom.azzzzna(aya(xml_pubDate));item.azzla(atom);}
this.azzzka(item);}
};Zoo.branch.prototype.azzv = function() {var result = "Branch :: "+this._zid+" "+this._title+"\n";for (var i=0;i<this._items.length;i++) {result += this._items[i].azzv();}
return result;}
ZooTextAtom = function() {ZooAtom.call(this);this._type='text';};ZooTextAtom.prototype = new ZooAtom;ZooAtom.aoaaaaa("text", ZooTextAtom);ZooTextAtom.prototype.azzzzh = function() {ZooAtom.prototype.azzzzh.call(this);this._node = $azzwa("SPAN");var max_len = this.azzraaa("default_length");if (!max_len || max_len==null || max_len==0) max_len = 300;this._original_str = this.aqaaaa().replace("\n","<br>");if (max_len && this._original_str && this._original_str.length > max_len) {this._less_desc = $azzzzv(this._original_str.substr(0, max_len) + " ");this._more_link = $azzwa("a");this._is_in_less = false;amaaaaa(this._more_link, this.aoaaa.awaaaa(this));this.aoaaa();} else {this._node.appendChild($azzzzv(this.aqaaaa()));}
};ZooTextAtom.prototype.aoaaa = function() {while (this._node.childNodes.length) this._node.removeChild(this._node.firstChild);if (this._is_in_less) {this._node.appendChild($azzzzv(this.aqaaaa() + " "));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.azzzzj = 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 = $azzwa("span");atomTitle.innerHTML = this.azzzgaa()+" :: ";this._node.insertBefore(atomTitle,firstNode);var br = $azzwa("br");this._node.appendChild(br);}
this.azzgaa(this._node);this.azzzzoa(this._node);return this._node;};ZooRatingAtom = function() {this._type='rating';};ZooRatingAtom.prototype = new ZooAtom;ZooRatingAtom.prototype._type="rating";ZooAtom.aoaaaaa("rating", ZooRatingAtom);ZooRatingAtom.prototype.azzzzh = function() {ZooAtom.prototype.azzzzh.call(this);this._node = $azzwa("img");var rating_image_src = this.azzraaa("image_src");this._node.src = rating_image_src.replace("[RATING]",this.aqaaaa());this.azzgaa(this._node);this.azzzzoa(this._node);};ZooRatingAtom.prototype.azzzzj = function(view_type) {this.azzgaa(this._node);this.azzzzoa(this._node);return this._node;};ZooHTMLAtom = function() {ZooAtom.call(this);this._type = 'html';};ZooHTMLAtom.prototype = new ZooAtom;azzr.extend(ZooHTMLAtom.prototype,ZooAtom.prototype);ZooAtom.aoaaaaa("html", ZooHTMLAtom);ZooHTMLAtom.prototype.azzzzh = function() {ZooAtom.prototype.azzzzh.call(this);this._node = $azzwa("div");this._node.innerHTML = this.aqaaaa();this.azzgaa(this._node);this.azzzzoa(this._node);};ZooHTMLAtom.prototype.azzzzj = function(view_type) {if (view_type=="edit") {var firstNode = this._node.firstChild;var atomTitle = $azzwa("span");atomTitle.innerHTML = this.azzzgaa()+" :: ";this._node.insertBefore(atomTitle,firstNode);var br = $azzwa("br");this._node.appendChild(br);}
return this._node;};ZooLinkAtom = function() {ZooAtom.call(this);this._type = "link";};ZooLinkAtom.prototype = new ZooAtom;ZooAtom.aoaaaaa("link", ZooLinkAtom);ZooLinkAtom.prototype.azzzzh = function() {ZooAtom.prototype.azzzzh.call(this);var kids = this.azzraa();if (kids) {for (var x = 0;x < kids.length;x++) kids[x].azzzzh();}
}
ZooLinkAtom.prototype.azzzzzc = function() {return this.azzraaa("src");};ZooLinkAtom._plugins = {};ZooLinkAtom.aaaaa = function(proto, func) {this._plugins[proto] = func;};ZooLinkAtom.prototype.azzzzj = function(view_type) {var src = this.azzraaa("src");var type = this.azzraaa("type");var target = this.azzraaa("target");this._element = $azzwa("span");if (view_type=='edit') {var _title = $azzwa("span");_title.innerHTML = this.azzzgaa()+" :: ";this._element.appendChild(_title);}
this._link = $azzwa("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.azzraaa("inline_title");var width = this.azzraaa("inline_width");var height = this.azzraaa("inline_height");amaaaaa(this._link, azzdaa(azzmaa.ag.awaaaa(azzmaa, src, "", title, width, height)));}
break;case "zid":
amaaaaa(this._link, azzdaa(azsa.awaaaa(this, src)));break;case "inlinezid":
var rootWin = this.azzpa().as().ayaaaa();this._link.onclick=Zoo.broker.azzzia.awaaaa(Zoo.broker, src, null, rootWin.axaaaaa().azzzta());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.azzraa()) {var textVal = this.aqaaaa();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.azzgaa(this._link);this.azzzzoa(this._link);var kids = this.azzraa();if (kids) {for (var x = 0;x < kids.length;x++) this._link.appendChild(kids[x].azzzzj(view_type));}
this._element.appendChild(this._link);if (view_type=="edit") {var br = $azzwa("br");this._element.appendChild(br);}
return this._element;};ZooImageAtom = function() {ZooAtom.call(this);this._type ='image';};ZooImageAtom.prototype = new ZooAtom;ZooAtom.aoaaaaa("image", ZooImageAtom);ZooImageAtom.azzzc = function(src) {if (src && (src.length < 4 || src.substr(0,4) != "http" ) ) src = Zoo.utils.abs_path() + src;return src;};ZooImageAtom.prototype.azzzzh = function() {ZooAtom.prototype.azzzzh.call(this);this._thumb = ZooImageAtom.azzzc(this.azzraaa("thumb_source"));this._web = ZooImageAtom.azzzc(this.azzraaa("web_source"));this._original = ZooImageAtom.azzzc(this.azzraaa("original_source"));this._title = this.azzraaa("title");this._img = $azzwa("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.azzgaa(this._img);};ZooImageAtom.prototype.azlaaaa = function() {var div = $azzwa("div");div.style.textAlign="center";var img = $azzwa("img");img.src = this._next;img.title = this._title;img.alt = this._title;div.appendChild(img);adaaa("image",img.src);var divid=img.src;var ctView = $zej(divid);if (!ctView) {new azzmaa({title: "", dom_obj: div, divID: divid,adjustLevel:"move resize scroll" });} else {var ctWindow = azzmaa.azzya(divid);if (ctWindow) ctWindow.ata().azzfa();}
};ZooImageAtom.prototype.azzzzzc = function() {return this._img.src;};ZooImageAtom.prototype.azzzzj = 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 = $azzwa("SPAN");var _title = $azzwa("SPAN");_title.innerHTML = this.azzzgaa()+" :: ";this._element.appendChild(_title);this._element.appendChild(this._img);}
this._element.onclick = this.azlaaaa.awaaaa(this);this.azzzzoa(this._img);return this._element;};ZooNodeItem = function(){ZooItem.call(this);this._type = "node";};ZooNodeItem.prototype = new ZooItem();ZooItem.azfa("node", ZooNodeItem);ZooNodeItem.prototype.azzzzj = function(pane) {var temp_name = this.azzraaa("template");if (!temp_name) return ZooItem.prototype.azzzzj.call(this,pane);var template = new Zoo.template(temp_name);var atom;while ((atom = this.azm()) != null) {atom.azzzzh();var name = atom.azzzgaa();if (!name) continue;name = name.toUpperCase();if (template.azzfaa(name, true)) {var elem = atom.azzzzj(pane.ay());template.azzuaaa(name, elem);}
else if (template.azzfaa(name, false)) template.azzzu(name, atom.azzzzzc());}
this._have_ret = true;this._html_atom = $azzwa("div");template.azzk(this._html_atom);this.azzgaa(this._html_atom);this.azzzzoa(this._html_atom);return this._html_atom;};ZooViewPane = function() {ZooPane.call(this);this._type = "view";}
ZooViewPane.prototype = new ZooPane();ZooPane.azzzoa("view", ZooViewPane);ZooViewPane.prototype.aeaaa = function(branch) {ZooPane.prototype.aeaaa.call(this,branch);this._table = $azzwa("table");this._tableb = $azzwa("tbody");this._table.appendChild(this._tableb);};ZooViewPane.prototype.azzzka = function(id, actions, item) {ZooPane.prototype.azzzka.call(this,id,actions,item);var tr = $azzwa("TR");var td = $azzwa("TD");tr.appendChild(td);tr.id = id;var x;asaaaaa(td, "action_cell");var atable = $azzwa("TABLE");var atbody = $azzwa("TBODY");atable.appendChild(atbody);var atr = $azzwa("TR");atbody.appendChild(atr);for (x = 0;x < actions.length;x++) {var atd = $azzwa("TD");atd.appendChild(actions[x]);atr.appendChild(atd);}
td.appendChild(atable);td = $azzwa("TD");tr.appendChild(td);td.appendChild( item.azzzzj(this) );this._tableb.appendChild(tr);tr = $azzwa("TR");td = $azzwa("TD");tr.appendChild(td);td = $azzwa("TD");tr.appendChild(td);var contentDiv = $azzwa("DIV");contentDiv.id = id + "_zoo_children";td.appendChild(contentDiv);this._tableb.appendChild(tr);};ZooViewPane.prototype.agaaaaa = function(item,atom,element) {if (item && item.azoaa() && atom.azzzgaa()=="title") {element.style.cursor = "pointer";amaaaaa(element,Zoo.broker.azbaaaa.awaaaa(Zoo.broker,item.azzha()));}
return true;}
ZooViewPane.prototype.azzzzj = function() {ZooPane.prototype.azzzzj.call(this);this.azzzzoa(this._table);return this._table;};ZooTabPane = function() {ZooPane.call(this);this._type = "tab";}
ZooTabPane.prototype = new ZooPane();ZooPane.azzzoa("tab", ZooTabPane);ZooTabPane.prototype.abaaaa = 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.azzzia(zid, this, this._main_id);} else {this._main_content.appendChild(this._overview_content);}
asaaaaa(this._tabs[zid], "clickable_button selected");if (this._cur_zid) asaaaaa(this._tabs[this._cur_zid], "clickable_button");this._cur_zid = zid;ZooPane.dispatchEvent("ajaaaa azzzo", zid);}
ZooTabPane.prototype.azfaaaa = function(item) {var zid = item.azzha();while (this._main_content.childNodes.length) this._main_content.removeChild(this._main_content.firstChild);asaaaaa(this._tabs[zid], "clickable_button selected");if (this._cur_zid) asaaaaa(this._tabs[this._cur_zid], "clickable_button");this._cur_zid = zid;ZooPane.dispatchEvent("ajaaaa azzzo", zid);}
ZooTabPane.prototype.azzzzx = function(dom, zid) {var td = $azzwa("TD");td.style.cursor = "pointer";td.appendChild(dom);asaaaaa(td, "clickable_button");amaaaaa(td, this.abaaaa.awaaaa(this, zid));this._tabs[zid] = td;this._header_row.appendChild(td);this._tabCount++;};ZooTabPane.prototype.aeaaa = function(branch){ZooPane.prototype.aeaaa.call(this,branch);this._overview_zid = "__OVERVIEW__";this._tabs = new Object();}
ZooTabPane.prototype.aqa = function() {ZooPane.prototype.aqa.call(this);this._content = $azzwa("div");this._table = $azzwa("table");this._table.setAttribute("cellSpacing",1);this._tabCount = 0;this._content.appendChild(this._table);this._tableb = $azzwa("tbody");this._table.appendChild(this._tableb);this._header_row = $azzwa("TR");this._cur_zid;this._first_zid;asaaaaa(this._header_row, "header_row");this._tableb.appendChild(this._header_row);this._main_content = $azzwa("DIV");this._main_id = ZooPane.ahaaa();this._main_content.id = this._main_id + "_zoo_children";this._overview_content = $azzwa("DIV");this._content.appendChild(this._main_content);var span = $azzwa("span");span.appendChild($azzzzv("Overview"));this.azzzzx(span, this._overview_zid);};ZooTabPane.prototype.ai = function () {return this._main_id;}
ZooTabPane.prototype.azzzka = function(id, actions, item) {ZooPane.prototype.azzzka.call(this,id,actions,item);var dom = item.azzzzj(this);if (item.azzzba() != "Baren") {if (! this._first_zid) this._first_zid=item.azzha();this.azzzzx(dom, item.azzha());return;}
this._first_zid = this._overview_zid;this._overview_content.appendChild(dom);};ZooTabPane.prototype.azzzzj = function() {ZooPane.prototype.azzzzj.call(this);if (this._first_zid != this._overview_zid) abaa.hide(this._tabs[this._overview_zid]);asaaaaa(this._table, "tabpane");if (this._tabCount>0) this.abaaaa(this._first_zid);this.azzzzoa(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.azzoaaa.awaaaa(this,this.akaa.awaaaa(this));};ZooSlidePane.prototype = new ZooPane();ZooPane.azzzoa("slide", ZooSlidePane);ZooSlidePane.prototype.azzhaa = function() {this._is_paused = !this._is_paused;if (this._is_paused) {this._button_pauseplay.innerHTML = " Play ";this.azeaa();}
else {this._button_pauseplay.innerHTML = " Pause ";this.azzxa();}
};ZooSlidePane.prototype.azztaa = function() {if (this._cur_item == 0) abaa.hide(this._button_prev);else
abaa.show(this._button_prev);if (this._cur_item == this._item_doms.length - 1) abaa.hide(this._button_next);else
abaa.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]);abaa.show(this._content_win);};ZooSlidePane.prototype.aqaaa = function() {this._cur_item--;if (this._cur_item < 0) this._cur_item = this._item_doms.length - 1;this.azzoaaa(this.azztaa.awaaaa(this));};ZooSlidePane.prototype.akaa = function() {this._cur_item++;if (this._cur_item == this._item_doms.length) this._cur_item = 0;this.azzoaaa(this.azztaa.awaaaa(this));};ZooSlidePane.prototype.azeaa = function() {if (this._timer) clearTimeout(this._timer);this._timer = null;};ZooSlidePane.prototype.azzoaaa = function(onDone) {abaa.hide(this._content_win);onDone();};ZooSlidePane.prototype.azzxa = function() {if (this._timer)this.azeaa();this._timer = setTimeout( this._cache_function_on_timer_fire, 1000 * this._transition_delay);};ZooSlidePane.prototype.aeaaa = function(branch) {ZooPane.prototype.aeaaa.call(this,branch);this._content = $azzwa("div");this._button_pauseplay = $azzwa("SPAN");this._button_pauseplay.innerHTML = " Play ";amaaaaa(this._button_pauseplay, this.azzhaa.awaaaa(this));asaaaaa(this._button_pauseplay, "clickable_button");this._button_next = $azzwa("IMG");this._button_next.src = azraaa() + "icons/arrow_right.gif";this._button_next.title = "Next";amaaaaa(this._button_next, this.akaa.awaaaa(this));asaaaaa(this._button_next, "clickable_button") ;this._button_prev = $azzwa("IMG");this._button_prev.src = azraaa() + "icons/arrow_left.gif";this._button_prev.title = "Prev";amaaaaa(this._button_prev, this.aqaaa.awaaaa(this));asaaaaa(this._button_prev, "clickable_button");this._label_image_counter = $azzwa("DIV");this._content_win = $azzwa("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($azzwa("BR"));this._content.appendChild(this._label_image_counter);this._content.appendChild(this._content_win);this._item_doms = new Array();}
ZooSlidePane.prototype.azzzka = function(id, actions, item) {ZooPane.prototype.aeaaa.call(this,id,actions,item);item = ZooItem.cast(item);if (item.azzzba() != "Baren") return;var dom = item.azzzzj(this);this._item_doms.push(dom);};ZooSlidePane.prototype.azzzzj = function() {ZooPane.prototype.azzzzj.call(this);this.azztaa();this.azzzzoa(this._content);return this._content;};ZooGridPane = function() {ZooPane.call(this);this._type = "grid";}
ZooGridPane.prototype = new ZooPane();ZooPane.azzzoa("grid", ZooGridPane);av("GRID_PANE_PER_ROW",4);ZooGridPane.prototype.aeaaa = function(branch) {ZooPane.prototype.aeaaa.call(this,branch);this._table = $azzwa("table");this._table.setAttribute("cellSpacing",4);this._tableb = $azzwa("tbody");this._table.appendChild(this._tableb);this._cur_row;this.azzzzra();};ZooGridPane.prototype.agaaaaa = function(item,atom,element) {var shouldAppend = false;if (atom.azzzgaa()=='title') shouldAppend = true;if (atom.ay()=='image') shouldAppend = true;if (item && item.azoaa()) {element.style.cursor = "pointer";amaaaaa(element,Zoo.broker.azbaaaa.awaaaa(Zoo.broker,item.azzha()));} else if ( (atom.ay() == 'image') || (atom.azzzgaa() == 'title') ) {element.style.cursor = "pointer";element.className += " clickable_button";amaaaaa(element, this.azlaaaa.awaaaa(this,item));}
return shouldAppend;}
ZooGridPane.prototype.azzzzra = function() {this._cur_row = $azzwa("TR");this._tableb.appendChild(this._cur_row);this._row_count = 0;};ZooGridPane.prototype.azzzka = function(id, actions, item) {ZooPane.prototype.azzzka.call(this,id,actions,item);var td = $azzwa("TD");td.className = "grid_cell";var tdWidthSpacer = $azzwa("IMG");tdWidthSpacer.className="grid_width_spacer";tdWidthSpacer.src=zoo_getSpacerPath();td.appendChild(tdWidthSpacer);td.appendChild($azzwa("BR"));td.setAttribute("valign","top");td.appendChild(item.azzzzj(this));this._cur_row.appendChild(td);if (++this._row_count == GRID_PANE_PER_ROW) this.azzzzra();};ZooGridPane.prototype.azlaaaa = function(_item) {var branch = new Zoo.branch();branch.ao(_item.azzha());branch.araa(_item.azzzhaa());branch.azzzqaa(false);var bitem = _item.azztaaa();for (var i=0;i<bitem._atoms.length;i++) {var atom = bitem._atoms[i];atom.azxaa("thumb_source");if (atom.ay() == "image") {var catom = ZooAtom.aiaaa("link");catom.azzzzk(atom.azzzgaa()+"_orig");var src = ZooImageAtom.azzzc(atom.azzraaa("original_source"));catom.azzzg("type","href");catom.azzzg("src",src);catom.azzzzna("Click here to view the original size photo");bitem.azzla(catom);}
}
branch.azzzka(bitem);var winParams = {};winParams.title = branch.azzzhaa();winParams.divID = azzmaa.azzzb();var view = ZooPane.azb("view", branch);winParams.pane = view;new azzmaa(winParams);};ZooGridPane.prototype.azzzzj = function() {ZooPane.prototype.azzzzj.call(this);this.azzzzoa(this._table);return this._table;};ZooListPane = function() {ZooPane.call(this);this._type = "list";};ZooListPane.prototype = new ZooPane();ZooPane.azzzoa("list", ZooListPane);av("LIST_COL_WIDTH",5);ZooListPane.prototype.aeaaa = function(branch) {ZooPane.prototype.aeaaa.call(this,branch);this._table = $azzwa("table");this._tableBody = $azzwa("tbody");this._table.appendChild(this._tableBody);var htr = $azzwa("tr");this._tableBody.appendChild(htr);var htd = $azzwa("TD");htd.className = "list_header";this.divFirst = $azzwa("SPAN");this.divFirst.innerHTML = "first ";this.divFirst.onclick=this.azzzpaa.awaaaa(this);this.divFirst.className = "list_header_cell_inactive";this.divFirst.style.cursor = "pointer";htd.appendChild(this.divFirst);this.divPrev = $azzwa("SPAN");this.divPrev.innerHTML = "prev ";this.divPrev.onclick=this.awaaa.awaaaa(this);this.divPrev.className = "list_header_cell_inactive";this.divPrev.style.cursor = "pointer";htd.appendChild(this.divPrev);this.divCount = $azzwa("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 = $azzwa("SPAN");this.divNext.innerHTML = "next ";this.divNext.onclick=this.apaa.awaaaa(this);this.divNext.style.cursor = "pointer";this.divNext.className = "list_header_cell";htd.appendChild(this.divNext);this.divLast = $azzwa("SPAN");this.divLast.innerHTML = "last ";this.divLast.onclick=this.araaa.awaaaa(this);this.divLast.style.cursor = "pointer";this.divLast.className = "list_header_cell";htd.appendChild(this.divLast);htr.appendChild(htd);htr = $azzwa("TR");htd = $azzwa("TD");this._dataTable = $azzwa("table");this._dataTable.setAttribute("cellSpacing",1);this._dataTableBody = $azzwa("tbody");this._dataTable.appendChild(this._dataTableBody);this._headerRow = $azzwa("TR");this._dataTableBody.appendChild(this._headerRow);this._columnNames = branch.af();this._columnRef = {};for (var i=0;i<this._columnNames.length;i++) {var td = $azzwa("td");td.style.cursor = "pointer";td.title = this._columnNames[i];td.className = "list_column_header";var colText = $azzzzv(this._columnNames[i]);td.appendChild(colText);this._headerRow.appendChild(td);this._columnRef[this._columnNames[i]] = i;td.onclick=this.azzzwa.awaaaa(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.azzzpaa = function() {this.currentLine = 0;this.azzzzo(0,this.pageSize);}
ZooListPane.prototype.araaa = function() {this.currentLine = this.listRows.length-this.pageSize-1;if (this.currentLine < 0) this.currentLine = 0;this.azzzzo(this.currentLine,this.listRows.length);}
ZooListPane.prototype.apaa = function() {if (this.currentLine+this.pageSize>=this.listRows.length) {return;} else {this.currentLine += this.pageSize;}
this.azzzzo(this.currentLine,this.currentLine+this.pageSize);}
ZooListPane.prototype.awaaa = function() {if (this.currentLine - this.pageSize<0) {this.currentLine = 0;} else {this.currentLine -= this.pageSize;}
this.azzzzo(this.currentLine,this.currentLine+this.pageSize);}
ZooListPane.prototype.azzzzta = function(a,b) {azzzraa("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.azzzwa = function(_col) {if (ZooListPane.SORT_COL==_col) {ZooListPane.SORT_DESC = ! ZooListPane.SORT_DESC;} else {ZooListPane.SORT_DESC = false;}
ZooListPane.SORT_COL = _col;azzzraa("ListPane.sort "+_col);this.listRows.sort(this.azzzzta);if (ZooListPane.SORT_DESC) {this.listRows.reverse();}
this.azzzzo(this.currentLine,this.currentLine+this.pageSize);}
ZooListPane.prototype.azpaaa = function() {var tbody = this._dataTableBody;if (tbody) {while (tbody.rows.length>1) {tbody.removeChild(tbody.rows[tbody.rows.length-1]);}
}
}
ZooListPane.prototype.azzzzo = function(_start,_end) {if (this.listRows.length==0) {return;}
this.azpaaa();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.azzgaaa = function() {this._curRow = $azzwa("TR");for (var i=0;i<this._columnNames.length;i++) {var td = $azzwa("TD");td.className = "list_cell";this._curRow.appendChild(td);}
this.listRows.push(this._curRow);}
ZooListPane.prototype.agaaaaa = function(item,atom,atomDOM) {var colNum = this._columnRef[atom.azzzgaa()];this._curRow.childNodes[colNum].appendChild(atomDOM);return false;}
ZooListPane.prototype.azzzka = function(id, actions, item) {ZooPane.prototype.aeaaa.call(this,id,actions,item);this.azzgaaa();item.azzzzj(this);};ZooListPane.prototype.azzzzj = function() {ZooPane.prototype.azzzzj.call(this);this.azzzzo(0,20);this.azzzzoa(this._table);return this._table;};ZooTemplatePane = function() {ZooPane.call(this);this._type = "template";this._template = "";}
ZooTemplatePane.prototype = new ZooPane();ZooPane.azzzoa("template", ZooTemplatePane);ZooTemplatePane.prototype.aeaaa = function(branch) {ZooPane.prototype.aeaaa.call(this,branch);this._div = $azzwa("div");this._template = this.azla().azwaaaa("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') aoaa(el);}
}
};ZooTemplatePane.prototype.azzzka = function(id, actions, item) {ZooPane.prototype.azzzka.call(this,id,actions,item);item.azzzzj(this);var atoms = item.azzyaa();for (var i=0;i<atoms.length;i++) {var name = atoms[i].azzzgaa();var content = atoms[i].azzzzj();var placed = this.azzhaaa(name,content,this._div);if (! placed) {var loopPlaced = this.afaaaaa(name,content,this._div);if (loopPlaced) this.azzhaaa(name,content,this._div);}
}
};ZooTemplatePane.prototype.afaaaaa = 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 loopabaa = null;while (element.parentNode) {if (element.getAttribute("zoo_loop")!=null) {loopabaa = element;break;}
element = element.parentNode;}
if (loopabaa!=null) {var newabaa = loopabaa.cloneNode(true);ZooTemplatePane.azzzvaa(newabaa);loopabaa.parentNode.appendChild(newabaa);return true;}
}
}
if (el.hasChildNodes()) placed = this.afaaaaa(_name,_content,el);if (placed) return true;el = el.nextSibling;}
return false;}
ZooTemplatePane.prototype.azzhaaa = 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 (apaaaaa(status)) {el.appendChild(_content);el.setAttribute("zoo_status","on");return true;}
}
}
if (el.hasChildNodes()) placed = this.azzhaaa(_name,_content,el);if (placed) return true;el = el.nextSibling;}
return false;}
ZooTemplatePane.azzzvaa = 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.azzzvaa(el);el = el.nextSibling;}
}
ZooTemplatePane.prototype.agaaaaa = function(item,atom,element) {return true;}
ZooTemplatePane.prototype.azzzzj = function() {ZooPane.prototype.azzzzj.call(this);this.azzzzoa(this._div);return this._div;};Zoo.menu = function(name, attach_obj, no_auto_hide) {attach_obj = $zej(attach_obj);this._div = $azzwa("DIV");asaaaaa(this._div, "menu");$zej(this._div);this._noAutoHide = no_auto_hide;abaa.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.azzzu("ID", this._id);template.azzzu("TITLE", name);this._div.innerHTML = template.value;this._linksDiv = $zej("menu_" + this._id + "_links");this._mouseOut = this.azzy.awaaaa(this);this._mouseUp = this.azn.awaaaa(this);this._fade_mouseOverEvt = this.azgaaaa.awaaaa(this);this._showing = false;this._empty = true;this._links = new Object();};var anaaaa = Zoo.menu;azzznaa.azuaaa("anaaaa", true, true);Zoo.menu._currentActive = undefined;Zoo.menu._total = 0;Zoo.menu.prototype.azzzyaa = function() {return this._empty;};Zoo.menu.prototype.azbaa = function(title) {if (!this._links["a_" + title]) {Zoo.utils.alert("Cannot hide link of: " + title + " as doesn't exist");return;}
abaa.hide(this._links["a_" + title]);abaa.hide(this._links["b_" + title]);};Zoo.menu.prototype.azoa = function(title) {if (!this.links["a_" + title]) {Zoo.utils.alert("Cannot hide link of: " + title + " as doesn't exist");return;}
abaa.show(this._links["a_" + title]);abaa.show(this._links["b_" + title]);};Zoo.menu.prototype.adaaaa = function(title, onClick) {this._empty = false;var div = this._linksDiv;var a = $azzwa("A");a.href = "#";a.innerHTML = title;amaaaaa(a, Zoo.utils.return_false(onClick));div.appendChild(a);var br = $azzwa("BR");div.appendChild(br);this._links["a_" + title] = a;this._links["b_" + title] = br;};Zoo.menu.prototype.azcaa = function(links) {var div = this._linksDiv;for (var link in links) this.adaaaa(link, links[link]);};Zoo.menu.prototype.azgaaaa = function() {if (this._autoHide) clearTimeout(this._autoHide);this._autoHide = false;azhaaa.stopObserving(this._div, "mouseover", this._ayaaaaa);abaa.show(this._div);azhaaa.observe(this._div, "mouseout", this._mouseOut);this._showing = true;if (Zoo.menu._currentActive && Zoo.menu._currentActive != this) {Zoo.menu._currentActive.azzzzla();Zoo.menu._currentActive = this;}
}
Zoo.menu.prototype.azzzzla = function() {if (!this._showing) return;if (this._autoHide) clearTimeout(this._autoHide);this._autoHide = false;this._showing = false;azhaaa.stopObserving(this._div, "mouseout", this._mouseOut);abaa.hide(this._div);azhaaa.observe(this._div, "mouseover", this._fade_mouseOverEvt);Zoo.menu._currentActive = this;};Zoo.menu.prototype.azzjaa = function(position) {if (!Zoo.utils.verify_options({top: 0, left: 0, right: 0, bottom: 0 }, position)) return;var xy = azzlaaa();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.azzba = function(position) {if (position) this.azzjaa(position);if (this.showing) return;if (Zoo.menu._currentActive && Zoo.menu._currentActive != this) Zoo.menu._currentActive.azzzzla();Zoo.menu._currentActive = this;this._showing = true;abaa.show(this._div);azhaaa.observe(this._div, "mouseout", this._mouseOut);azhaaa.observe(this._div, "mouseup", this._mouseUp);azhaaa.observe(this._div, "mouseover", this._fade_mouseOverEvt);if (!this._noAutoHide) this._autoHide = setTimeout(this.azzzzla.awaaaa(this), 5000);};Zoo.menu.prototype.azn = function(evt) {this.azzzzla();};Zoo.menu.prototype.azzy = 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.azzzzla();};Zoo.menu.prototype.auaaa = function() {return abaa.getWidth(this._div);};Zoo.menu.prototype.azzn = function() {return abaa.getHeight(this._div);};var ama = new Object();azzznaa.azuaaa("ama",false,false);zoowee_TITLBAR_ACTIVE = false;zoowee_SHOW_HOMEPAGE = false;ama.aeaaa = function() {azzznaa.azzzzzh("ama");if (zoowee_SHOW_SITEMETRICS) {azsaaa.adaaaa("Tools","Site Metrics",amaaa("azzmaa.azzzzj('@sitemetrics!'+azzmaa.azzzaaa(),'@sitemetrics','Site Metrics',false)"));azsaaa.azzba("Tools","Site Metrics");}
if (zoowee_LOAD_WELCOME) {azsaaa.adaaaa("Session","Welcome",amaaa("azzmaa.azzzzj('@welcome!'+azzmaa.azzzaaa(),'@"+zoowee_LOAD_WELCOME+"','Welcome',false)"));azsaaa.azzba("Session","Welcome");azzmaa.azzzzj('@welcome!'+azzmaa.azzzaaa(),'@'+zoowee_LOAD_WELCOME,'Welcome',false);}
}
ama.aeaa = function(){azzmaa.addEventListener("aba azzzha",azzzt(this,"azgaa"));this.azt();if (window.aj) {aj.addEventListener("azqaaaa azzwaa",azzzt(this,"azzzzm"));aj.addEventListener("azqaaaa azzzga",azzzt(this,"azzzd"));}
}
ama.azt = function(){if (zoowee_SHOW_HOMEPAGE) azsaaa.adaaaa("Session","My Profile",amaaa("azzmaa.azzzzj('tUSER*'+aj.azzzzba()+'!'+azzmaa.azzzaaa(),'tUSER*'+aj.azzzzba(),'My Profile',false)"));if (zoowee_ADMIN_TOOL_TITLES) {for (var x=0;x<zoowee_ADMIN_TOOL_TITLES.length;x++) azsaaa.adaaaa("Tools",zoowee_ADMIN_TOOL_TITLES[x],amaaa(zoowee_ADMIN_TOOL_ACTIONS[x]));}
if (LOAD_QUICKNAV) {azsaaa.adaaaa("Session","My Quick Nav",amaaa("azzmaa.azzzzj('@quicknav_'+aj.avaa()+'!'+azzmaa.azzzaaa(),'@"+LOAD_QUICKNAV+"?username='+aj.avaa(),'Quick Nav',false)"));}
}
ama.azzzzm = function(){if (zoowee_SHOW_HOMEPAGE) {azzmaa.azzzzj('tUSER*'+aj.azzzzba()+'!'+azzmaa.azzzaaa(),'tUSER*'+aj.azzzzba(),'My Profile',false);azsaaa.azzba("Session","My Profile");}
if (LOAD_QUICKNAV) {azzmaa.azzzzj('@quicknav_'+aj.avaa()+'!'+azzmaa.azzzaaa(),'@'+LOAD_QUICKNAV+'?username='+aj.avaa(),'Quick Nav',false);azsaaa.azzba("Session","My Quick Nav");}
if (zoowee_ADMIN_TOOL_TITLES) {if ((aj.groups) && (aj.groups.indexOf("ADMINISTRATOR")>=0)) {for (var x=0;x<zoowee_ADMIN_TOOL_TITLES.length;x++) azsaaa.azzba("Tools",zoowee_ADMIN_TOOL_TITLES[x]);}
}
}
ama.azzzd = function(){if (zoowee_SHOW_HOMEPAGE) azsaaa.azzzzla("Session","My Profile");if (LOAD_QUICKNAV) {azsaaa.azzzzla("Session","My Quick Nav");}
if (zoowee_ADMIN_TOOL_TITLES) {if ((aj.groups) && (aj.groups.indexOf("ADMINISTRATOR")>=0)) {for (var x=0;x<zoowee_ADMIN_TOOL_TITLES.length;x++) azsaaa.azzzzla("Tools",zoowee_ADMIN_TOOL_TITLES[x]);}
}
}
ama.azgaa = 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 = azuaa(azzzt(win,"azzzx"),false);}
}
}
ama.azka = function(force){if (force) this.resizeTooSoon = false;if (this.resizeTooSoon) return;this.resizeTooSoon = true;setTimeout("ama.resizeTooSoon=false",100);document.body.style.height=azzx() + "px";azzmaa.azwa();}
var scroller_MIN_SCROLL;function azzzn(props){azzzpa({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;}
apaaaa = 5;azzi = 5;azzzn.prototype.avaaaa = function(height){this.div.style.height = height + "px";}
azzzn.prototype.azzzzaa = function(width){this.div.style.width = width + "px";}
azzzn.prototype.azoaaa = function(how,amt,speed){this.speed = (speed) ? speed : scroller_SPEED;this.azta();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:
auaaaaa("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.aga();}
azzzn.prototype.azzfaaa = function(isForward,amt){this.azta();this.const_amt = amt;this.const_fw = isForward;this.azznaaa();}
azzzn.prototype.azznaaa = 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(azzzt(this,"azznaaa"),100);}
azzzn.prototype.aga = 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(azzzt(this,"aga"),100);else
this.timer = false;}
azzzn.prototype.azta = function(){if (this.timer) clearTimeout(this.timer);this.timer = false;}
var SORT_COLUMN_INDEX;function azzoaa() {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)) {aoaa(thisTbl);}
}
}
function aoaa(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 = azzzzqa(cell);cell.innerHTML = '<a href="#" class="sortheader" '+
'onclick="azzzzzd(this, '+i+');return false;">' +
txt+'<span class="sortarrow">&nbsp;.&nbsp;&nbsp;</span></a>';}
}
function azzzzqa(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 += azzzzqa(cs[i]);break;case 3:
str += cs[i].nodeValue;break;}
}
return str;}
function afaaaa(el) {return parseFloat(azzzzqa(el));}
function azzzzzd(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 = azzzzqa(span);var td = lnk.parentNode;var column = clid || td.cellIndex;var table = azzzzua(td,'TABLE');if (table.rows.length <= 1) return;var itm = azzzzqa(table.rows[1].cells[column]);sortfn = azzzzza;if (itm.match(/^\d\d[\/-]\d\d[\/-]\d\d\d\d$/)) sortfn = azj;if (itm.match(/^\d\d[\/-]\d\d[\/-]\d\d$/)) sortfn = azj;if (itm.match(/^[£$]/)) sortfn = ajaa;if (itm.match(/^[\d\.]+$/)) sortfn = azzzva;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 (azzzzua(allspans[ci],"table") == azzzzua(lnk,"table")) {allspans[ci].innerHTML = '&nbsp;.&nbsp;&nbsp;';}
}
}
span.innerHTML = ARROW;}
function azzzzua(el, pTagName) {if (el == null) return null;else if (el.nodeType == 1 && el.tagName.toLowerCase() == pTagName.toLowerCase())return el;else
return azzzzua(el.parentNode, pTagName);}
function azj(a,b) {aa = azzzzqa(a.cells[SORT_COLUMN_INDEX]);bb = azzzzqa(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 ajaa(a,b) {aa = azzzzqa(a.cells[SORT_COLUMN_INDEX]).replace(/[^0-9.]/g,'');bb = azzzzqa(b.cells[SORT_COLUMN_INDEX]).replace(/[^0-9.]/g,'');return parseFloat(aa) - parseFloat(bb);}
function azzzva(a,b) {aa = parseFloat(azzzzqa(a.cells[SORT_COLUMN_INDEX]));if (isNaN(aa)) aa = 0;bb = parseFloat(azzzzqa(b.cells[SORT_COLUMN_INDEX]));if (isNaN(bb)) bb = 0;return aa-bb;}
function azzzzza(a,b) {aa = azzzzqa(a.cells[SORT_COLUMN_INDEX]).toLowerCase();bb = azzzzqa(b.cells[SORT_COLUMN_INDEX]).toLowerCase();if (aa==bb) return 0;if (aa<bb) return -1;return 1;}
function azzzlaa(a,b) {aa = azzzzqa(a.cells[SORT_COLUMN_INDEX]);bb = azzzzqa(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 = $azzwa("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 = azzz(ZOO_BUBBLE_CONTAINER);DesktopY = alaa(ZOO_BUBBLE_CONTAINER);azsaaa.alaaa("Tools");azsaaa.alaaa("Session");azsaaa.alaaa("Bubbles");azzznaa.addEventListener("aeaa",aka);azzznaa.azzzzb();azhaaa.observe(document.body,"mousemove",azd);if (CACHE_ONLOAD_OBJS) {for (var x = 0;x < CACHE_ONLOAD_OBJS.length;x++) azzzsaa(CACHE_ONLOAD_OBJS[x]);}
}
function aka(){Zoo.monitors.aeaaa();azzzkaa();adaaa("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 afaa(req,name){dataHash[name]=req.responseText;}
var mouseX;var mouseY;function azd(evt){var e = window.event ? window.event : evt;mouseX = evt.clientX;mouseY = evt.clientY;}
function azzzsaa(dataid){var sURL = 'token.jsp?q='+dataid;if (sURL.indexOf("http://") == -1)sURL = absPath + sURL;var opts = new Object();opts.method = "POST";Zoo.network.azcaaaa(sURL,opts);}
function azzzzsa(title,token,link,op){azzmaa.azzzzsa(title,token,link,op);}
function azzzkaa(){var str = window.location.hash;var reg = /zoo_([a-z0-9]+)/i;var ret = str.match(reg);if (! ret || ret.length != 2) return;azsa(ret[1],azha()/2-250,azzx()/2-250,500,300);}
azhaaa.observe(window,"load", zoo_doInit);azza.azzzzzf("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 azzb = new Object();var loading_status_bar = true;azzb.aeaa = function() {if (loading_status_bar) {this.statusDiv = $azzwa("DIV");asaaaaa(this.statusDiv, "loading_bar");var template = new Zoo.template("LOADBAR");template.azzzu("SKINPATH", azraaa());
this.statusDiv.innerHTML = template.value;azsaaa.azzzzzg().appendChild(this.statusDiv);abaa.hide(this.statusDiv);}
else {var img = $azzwa("IMG");img.src = azraaa() + "images/loader.gif";asaaaaa(img, "loading_icon");abaa.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("azzp azzkaa", azzzt(this, "azzzsa"));Zoo.network.addEventListener("acaaaa azzkaa", azzzt(this, "azzzsa"));Zoo.network.addEventListener("ar azzkaa", azzzt(this, "azziaa"));azzznaa.azzzzzh("azzb");}
azzb.azziaa = 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.azzzzs();abaa.show(this.statusDiv);this.new_urls[e.event_data.data.id] = 1;}
azzb.azzvaaa = function() {for (var x in this.new_urls) {if (this.new_urls[x] != 1) continue;Zoo.network.azzzh(x);}
}
azzb.azzzsa = 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.azzzzs();}
azzb.azzzzs = function() {if (this.timer) {clearTimeout(this.timer);this.timer = false;}
if (this.pending && !this.shown) {abaa.show(this.statusDiv);this.shown = true;}
else if (!this.pending && this.shown) {this.shown = false;this.timer = setTimeout(azzzt(this, "azzaaaa"), 500);}
}
azzb.azzaaaa = function() {abaa.hide(this.statusDiv);this.timer = false;}
azzznaa.aoaaaa("azzb");
var azdaaaa = new Object();azdaaaa.inited = false;var PROXY_POOL_START = 1;azdaaaa.aeaaa = function() {if (this.inited) return;this.inited = true;this.tmpDiv = document.createElement("DIV");this.tmpDiv.id = "proxy_tmp";this.tmpDiv.className = "scrapArea";abaa.hide(this.tmpDiv);document.body.appendChild(this.tmpDiv);this.totalReqs = 1;this.requests = new Object();if (!azl()) {this.pool = new Array();for (var x = 0;x < PROXY_POOL_START;x++) this.azzs();}
azzznaa.azzzzzh("azdaaaa");}
azdaaaa.azzs = function(useIt) {var frame = document.createElement("iframe");abaa.hide(frame);this.tmpDiv.appendChild(frame);this.pool.push(frame);this.pool.used = useIt;return frame;}
azdaaaa.azzzzda = function(method, url, parameters, onSuccess, onFailure) {if (parameters) url += "?" + parameters;return this.azzkaa(url, onSuccess);};azdaaaa.azzkaa = function(url, callback) {this.aeaaa();if (url.indexOf("http://") != 0)
url = absPath + url;url = ana(url);if (window.azyaaa) {var cacheKey = url;var cacheObj = azyaaa.aja(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 = azuaa(azzzt(this, "azzxaa"), id);this.requests[id].callback = callback;this.requests[id].reqObj = reqObj;var obj;if (!azl()) {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.azzs(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();azzzraa("PROXY NETWORK REQUEST "+obj.src);if (azl()) this.tmpDiv.appendChild(obj);else
setTimeout(this.akaaaa.awaaaa(this,this.requests[id].pool,obj),200);
return this.requests[id].reqObj.transport;
}
azdaaaa.akaaaa = function(frame,dom){frame.contentDocument.body.appendChild(dom);}
azdaaaa.azzxaa = function(id, code) {this.requests[id].aborted = true;}
azdaaaa.azzda = function(id, code) {if (this.requests[id].aborted) {if (!azl()) this.requests[id].pool.used = false;return;}
azzzraa("PROXY CALLBACK "+id+" ");var req = this.requests[id].reqObj.transport;req.responseText = azlaaa(code);if (req.responseText.charAt(0) == '<') {req.responseXML = asa(req.responseText);if (!req.responseXML) return;}
if (!azl()) this.requests[id].pool.used = false;this.requests[id].reqObj.transport = req;if (window.azyaaa) azyaaa.axaaaa(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.azzznaa) azzznaa.aoaaaa("azdaaaa");
var azxaaa = new Object();azxaaa.loadedDate = "";azxaaa.clientID = (new Date()).getTime()+"_"+Math.floor(Math.random()*1000000);azxaaa.azzta = function(type, data) {if (!type) type = "";if (!data) data = "";var params = "";if (window.aj && aj.username) params += "username=" + ana(aj.username) + "&";var host = "" + window.location;params += "page=" + ana(host.substr(0, 120)) + "&";params += "type=" + ana(type) + "&data=" + ana(data);params += "&date=" + this.loadedDate;params +="&clientid="+azxaaa.clientID;Zoo.network.azraa(absPath + "logger", params, azxaaa.azzzzfa.awaaaa(this));}
azxaaa.aeaa = function() {var dt = new Date();this.loadedDate = ana(dt.getTime());
}
azxaaa.azzaaa = function(type, evt) {var e = window.event ? window.event : evt;var jsWin = e.event_data.data;var token;var pane = jsWin.axaaaaa();if (pane && pane.azzha) token = pane.azzha();this.azzta(type, token);}
azxaaa.azzzzfa = function(req, obj) {}
azzznaa.aoaaaa("azxaaa");
azzznaa.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%3Aauaaaa(%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%3Aazzb.azzvaaa()%22%3ECancel%3C%2Fa%3E%0A%3C%2Fxmp%3E%0A";
azzznaa.araaaa("azzb","azdaaaa","azxaaa");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";