/* Copyright 2007 Google Inc. */ (function() { 
function j(){}j.raise=function(a){if(typeof Error!="undefined"){throw new Error(a||"Assertion Failed");}else{throw a;}};j.fail=function(a){if(a===undefined)a="Assertion failed";if(!(B===undefined))B(a+"\n");j.raise(a)};j.isTrue=function(a,b){if(!a){if(b===undefined)b="Assertion failed";j.fail(b)}};j.equals=function(a,b,c){if(a!=b){if(c===undefined){c="AS_Assert.equals failed: <"+a+"> != <"+b+">"}j.fail(c)}};j.typeOf=function(a,b,c){if(typeof a==b)return;if(a||a==""){try{if(b==j.TYPE_MAP[typeof a]||
a instanceof b){return}}catch(d){}}if(c===undefined){if(typeof b=="function"){var f=b.toString().match(/^\s*function\s+([^\s\{]+)/);if(f)b=f[1]}c="AS_Assert.typeOf failed: <"+a+"> not typeof "+b}j.fail(c)};j.TYPE_MAP={string:String,number:Number,"boolean":Boolean};j.numArgs=function(a,b){var c=j.numArgs.caller;if(c&&c.arguments.length!=a){if(b===undefined){b=c.name+" expected "+a+" arguments  but received "+c.arguments.length}j.fail(b)}};var z=false;function B(a){try{throw a;}catch(b){C(b)}}function C(a,b){var c="Javascript exception: "+(b?b:"")+" "+a;if(l()){c+=" "+a.name+": "+a.message+" ("+a.number+")"}var d="";if(typeof a=="string"){d=a+"\n"}else{for(var f in a){try{d+=f+": "+a[f]+"\n"}catch(e){}}}d+=x(C.caller);U(c+"\n"+d,1)}var qa=/function (\w+)/;function S(a){var b=qa.exec(String(a));if(b){return b[1]}return""}function x(a){try{if(!l()&&!(p("safari")||p("konqueror"))&&p("mozilla")){return Error().stack}if(!a)return"";var b=
"- "+S(a)+"(";for(var c=0;c<a.arguments.length;c++){if(c>0)b+=", ";var d=String(a.arguments[c]);if(d.length>40){d=d.substr(0,40)+"..."}b+=d}b+=")\n";b+=x(a.caller);return b}catch(f){return"[Cannot get stack trace]: "+f+"\n"}}var V;var m=null,u=false;function T(){if((m==null||m.closed)&&!u){try{u=true;m=window.open("","debug","width=700,height=500,toolbar=no,resizable=yes,scrollbars=yes,left=16,top=16,screenx=16,screeny=16");m.blur();m.document.open();u=false;var a="<font color=#ff0000><b>To turn off this debugging window,hit 'D' inside the main caribou window, then close this window.</b></font><br>";
y(a)}catch(b){}}}function U(a,b){if(!z){if(typeof O!="undefined"){O(G(a))}return}try{var c=(new Date).getTime()-V,d="["+c+"] "+G(a).replace(/\n/g,"<br>")+"<br>";if(b==1){d="<font color=#ff0000><b>Error: "+d+"</b></font>";m.focus()}y(d)}catch(f){}}function y(a){if(!z){return}try{T();m.document.write(a);m.scrollTo(0,1000000)}catch(b){}};function p(a){if(a in t){return t[a]}return t[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var t={};function l(){return p("msie")&&!window.opera};function $(a){var b=a+"=",c=String(document.cookie);for(var d=-1;(d=c.indexOf(b,d+1))>=0;){var f=d;while(--f>=0){var e=c.charAt(f);if(e==";"){f=-1;break}else if(" \t".indexOf(e)<0){break}}if(-1===f){var g=c.indexOf(";",d);if(g<0){g=c.length}return c.substring(d+b.length,g)}}return""}function da(a){try{return a.parentNode}catch(b){return a}}function ga(a,
b){do{if(a===b)return true;b=da(b)}while(b&&b!==document.body);return false}function F(a,b){if(a==null||a.className==null)return false;if(a.className==b){return true}var c=a.className.split(" ");for(var d=0;d<c.length;d++){if(c[d]==b){return true}}return false}function R(a,b){if(F(a,b))return;a.className+=" "+b}function ia(a,b){if(a.className==null)return;if(a.className==b){a.className="";return}var c=a.className.split(" "),d=[],f=false;for(var e=0;e<c.length;e++){if(c[e]!=b){if(c[e]){d.push(c[e])}}else{f=
true}}if(f){a.className=d.join(" ")}}function v(a){var b=a.offsetLeft;if(a.offsetParent!=null)b+=v(a.offsetParent);return b}function D(a){var b=a.offsetTop;if(a.offsetParent!=null)b+=D(a.offsetParent);return b}function ca(a){return v(a)+a.offsetWidth}function fa(a){return E(a,sa)}var sa={h:function(a){return a.document.body.clientWidth},i:function(a){return a.document.documentElement.clientWidth},e:function(a){return a.innerWidth}};function ea(a){return E(a,ra)}var ra={h:function(a){return a.document.body.clientHeight},
i:function(a){return a.document.documentElement.clientHeight},e:function(a){return a.innerHeight}};function E(a,b){try{if(!window.opera&&"compatMode"in a.document&&a.document.compatMode=="CSS1Compat"){return b.i(a)}else if(l()){return b.h(a)}}catch(c){}return b.e(a)}var ma=/&/g,va=/</g,ua=/>/g;function G(a){if(!a)return"";return a.replace(ma,"&amp;").replace(va,"&lt;").replace(ua,"&gt;").replace(wa,"&quot;")}var wa=/\"/g;function aa(a){return a.srcElement||a.target}function H(a){return typeof a!=
"undefined"}function ba(a){var b;if(a.keyCode){b=a.keyCode}else if(a.which){b=a.which}return b}function oa(a){return document.getElementById(a)}function pa(a){return document.all[a]}var na=document.getElementById?oa:pa;function O(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+"::"+a);return}}catch(b){}var c=na("log");if(c){var d="<p class=logentry><span class=logdate>"+new Date+"</span><span class=logmsg>"+a+"</span></p>";c.innerHTML=d+c.innerHTML}else{window.status=
a}};var ta=this;String.prototype.o=function(a){return this.indexOf(a)==0};String.prototype.n=function(a){var b=this.length-a.length;return b>=0&&this.lastIndexOf(a,b)==b};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};String.prototype.subs=function(){var a=this;for(var b=0;b<arguments.length;b++){a=a.replace(/\%s/,String(arguments[b]))}return a};if(!Function.prototype.apply){Function.prototype.apply=function(a,b){var c=[],d,f;if(!a)a=ta;var e=b||[];for(var g=0;g<e.length;g++){c[g]=
"args["+g+"]"}f="oScope.__applyTemp__.peek()("+c.join(",")+");";if(!a.__applyTemp__){a.__applyTemp__=[]}a.__applyTemp__.push(this);d=eval(f);a.__applyTemp__.pop();return d}}if(!Array.prototype.push){Array.prototype.push=function(a){for(var b=0;b<arguments.length;b++){this[this.length]=arguments[b]}return this.length}}if(!Array.prototype.pop){Array.prototype.pop=function(){if(!this.length){return}var a=this[this.length-1];this.length--;return a}}Array.prototype.peek=function(){return this[this.length-
1]};if(!Array.prototype.shift){Array.prototype.shift=function(){if(this.length==0){return}var a=this[0];for(var b=0;b<this.length-1;b++){this[b]=this[b+1]}this.length--;return a}}if(!Array.prototype.unshift){Array.prototype.unshift=function(a){var b=arguments.length;for(var c=this.length-1;c>=0;c--){this[c+b]=this[c]}for(var d=0;d<b;d++){this[d]=arguments[d]}return this.length}}if(!Array.prototype.m){Array.prototype.m=function(a,b){for(var c=0;c<this.length;c++){a.call(b,this[c],c,this)}}}function N(a,
b,c){var d=a.l||[];d=d.concat(Array.prototype.slice.call(arguments,2));if(typeof a.c!="undefined"){b=a.c}if(typeof a.b!="undefined"){a=a.b}var f=function(){var e=d.concat(Array.prototype.slice.call(arguments));return a.apply(b,e)};f.l=d;f.c=b;f.b=a;return f}Function.prototype.bind=function(a,b){return N.apply(null,[this,a].concat(Array.prototype.slice.call(arguments,1)))};Function.prototype.partial=function(){return N.apply(null,[this,null].concat(Array.prototype.slice.call(arguments)))};Function.prototype.inherits=
function(a){var b=function(){};b.prototype=a.prototype;this.p=a.prototype;this.prototype=new b};Function.prototype.mixin=function(a){for(var b in a){this.prototype[b]=a[b]}if(typeof a["toString"]=="function"&&a["toString"]!=this.prototype["toString"]){this.prototype.toString=a.toString}};Function.prototype.bind=function(a,b){if(typeof this!="function"){throw new Error("Bind must be called as a method of a function object.");}var c=this,d=Array.prototype.splice.call(arguments,1,arguments.length);return function(){var f=d.concat();for(var e=0;e<arguments.length;e++){f.push(arguments[e])}return c.apply(a,f)}};var s,Q;(function(){var a={},b=0;function c(e){if(e.j==null){e.j=++b}return e.j}function d(e,g,k,i){var h=c(e),n=c(k);i=!(!i);var ha=h+"_"+g+"_"+n+"_"+i;return ha}s=function(e,g,k,i){var h=d(e,g,k,i);if(h in a){return h}var n=f.bind(null,h);a[h]={listener:k,proxy:n};if(e.addEventListener){e.addEventListener(g,n,i)}else if(e.attachEvent){e.attachEvent("on"+g,n)}else{throw new Error("Node {"+e+"} does not support event listeners.");}return h};Q=function(e,g,k,i){var h=d(e,g,k,i);if(!(h in a)){return false}var n=
a[h].proxy;if(e.removeEventListener){e.removeEventListener(g,n,i)}else if(e.detachEvent){e.detachEvent("on"+g,n)}delete a[h];return true};function f(e){var g=Array.prototype.splice.call(arguments,1,arguments.length);return a[e].listener.apply(null,g)}})();;function A(a,b,c){this.d=b;if(c){this.a=[];for(var d=0;d<a.length;d++){this.a.push(c+a[d])}}else{this.a=a}}A.prototype.load=function(a){this.k=a;this.g=0;var b=this.d.getElementsByTagName("head")[0];for(var c=0;c<this.a.length;c++){var d=this.d.createElement("script");d.type="text/javascript";if(l()){d.onreadystatechange=this.f.bind(this,d)}else{d.onload=this.f.bind(this,d)}d.src=this.a[c];b.appendChild(d)}};A.prototype.f=function(a){if(l()&&a.readyState!="complete")return;this.g++;if(this.g==this.a.length&&
this.k){this.k()}};var q={};q.exportSymbol=function(a,b){window[a]=b};q.exportMethod=function(a,b,c){a.prototype[b]=c};q.exportStaticMethod=function(a,b,c){a[b]=c};var J=["opera","msie","safari","firefox","netscape","mozilla"],L=["x11;","macintosh","windows"];function la(){this.type=-1;this.os=-1;this.version=0;this.isGecko=navigator.product=="Gecko";var a=navigator.userAgent.toLowerCase();for(var b=0;b<J.length;b++){var c=J[b];if(a.indexOf(c)!=-1){this.type=b;break}}if(window.opera)this.type=0;if(this.type==0){this.version=/opera(\s+|\/)([^\(;]+)/.exec(a)[2]}else if(this.type==2){this.isGecko=false;this.version=/safari(\/)(\d+(\.\d+)?)/.exec(a)[2]}else if(this.type==
1){this.version=/msie (\d+(\.\d+)?)/.exec(a)[1]}else if(this.isGecko){this.version=/rv\:\s*(\d+(\.\d+)?)/.exec(a)[1]}for(var b=0;b<L.length;b++){var c=L[b];if(a.indexOf(c)!=-1){this.os=b;break}}}var r=new la;function K(){return $("letmeinanyway")!=""||r.isGecko&&r.version>=1.8||r.type==1&&r.version>=6}q.exportSymbol("TR_IsBrowserSupported",K);function X(a){if(!o()){window.location="/group/<?cs var:CGI.Group.addr ?>/unsupported?url="+encodeURIComponent(window.location)}var b=document.getElementById("create_new_page_form");if(H(a)){var c=b.getElementsByTagName("input");for(var d=0;d<c.length;d++){if(c[d].name=="name"){c[d].value=a}}}b.submit()}window._G2_CreateNewPage=X;function o(){if(o.supported===undefined){o.supported=K()}return o.supported}window._G2_IsSupportedEditBrowser=o;function Z(a){if(!window.g2_modules){window.g2_modules=[]}var b=
document.getElementById(a);window.g2_modules[a]=b;b.getChildElement=function(c){return document.getElementById(this.id+"_"+c)};return b}window._G2_RegisterModule=Z;function Y(a){if(window.g2_modules){return window.g2_modules[a]}}window._G2_GetModule=Y;function w(a){var b=null;if(l()){var c=window.is_ie5?"Microsoft.XMLHTTP":"Msxml2.XMLHTTP";try{b=new ActiveXObject(c)}catch(d){alert("You need to enable active scripting and activeX controls")}}else{b=new XMLHttpRequest}b.onreadystatechange=function(){a(b)};
return b}var P=(new Date).getTime();function M(){++P;return P}window._UniqueNum=M;function ja(a){I(a,function(){})}window._SendServerRequest=ja;function I(a,b){var c=w(b);c.open("GET",a+"&rand="+M(),true);c.send(null)}window._StartGETRequest=I;function ka(a,b,c){var d=w(c);d.open("POST",a,true);d.send(b)}window._StartPOSTRequest=ka;function W(a,b){if(l()){var c=document.getElementById(a),d=c.parentNode.parentNode,f=d.parentNode;f.style.height="100%";for(var e=0;e<d.rows.length;e++){d.rows[e].style.height=
"0px"}c.style.height="100%";s(window,"load",function(){d.style.position="absolute";d.style.height="0px";c.style.height="0px";var g="_G2_GetStarRowHeight_"+a,k="_G2_GetStarRowWidth_"+a;window[g]=function(){var i=d.parentNode.offsetHeight;for(var h=0;h<d.rows.length;h++){if(d.rows[h]!=c){i-=d.rows[h].offsetHeight}}return i-(b||0)};window[k]=function(){return d.parentNode.offsetWidth};c.style.setExpression("height",g+"()");c.style.setExpression("width",k+"()");s(window,"resize",function(){var i=window[g]();
if(i>=0){c.style.height=i}var h=window[k]();if(h>=0){c.style.width=h}});document.recalc()})}}window._G2_AddStarRow=W;window.listen=s;window.unlisten=Q;window.HasClass=F;window.AddClass=R;window.RemoveClass=ia;window.GetPageOffsetLeft=v;window.GetPageOffsetRight=ca;window.GetPageOffsetTop=D;window.GetWindowHeight=ea;window.GetWindowWidth=fa;window.BR_IsIE=l;window.IsDescendant=ga;window.IsDefined=H;window.GetEventTarget=aa;window.GetKeyCode=ba;
 })()
