/* Copyright 2006 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(!(A===undefined))A(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 y=false;function A(a){try{throw a;}catch(b){B(b)}}function B(a,b){var c="Javascript exception: "+(b?b:"")+" "+a;if(m()){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+=w(B.caller);S(c+"\n"+d,1)}var pa=/function (\w+)/;function Q(a){var b=pa.exec(String(a));if(b){return b[1]}return""}function w(a){try{if(!m()&&!(q("safari")||q("konqueror"))&&q("mozilla")){return Error().stack}if(!a)return"";var b=
"- "+Q(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+=w(a.caller);return b}catch(f){return"[Cannot get stack trace]: "+f+"\n"}}var T;var n=null,t=false;function R(){if((n==null||n.closed)&&!t){try{t=true;n=window.open("","debug","width=700,height=500,toolbar=no,resizable=yes,scrollbars=yes,left=16,top=16,screenx=16,screeny=16");n.blur();n.document.open();t=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>";
x(a)}catch(b){}}}function S(a,b){if(!y){if(typeof M!="undefined"){M(F(a))}return}try{var c=(new Date).getTime()-T,d="["+c+"] "+F(a).replace(/\n/g,"<br>")+"<br>";if(b==1){d="<font color=#ff0000><b>Error: "+d+"</b></font>";n.focus()}x(d)}catch(f){}}function x(a){if(!y){return}try{R();n.document.write(a);n.scrollTo(0,1000000)}catch(b){}};function q(a){if(a in s){return s[a]}return s[a]=navigator.userAgent.toLowerCase().indexOf(a)!=-1}var s={};function m(){return q("msie")&&!window.opera};function Y(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 ba(a){try{return a.parentNode}catch(b){return a}}function ea(a,
b){do{if(a===b)return true;b=ba(b)}while(b&&b!==document.body);return false}function E(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 P(a,b){if(E(a,b))return;a.className+=" "+b}function ga(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 u(a){var b=a.offsetLeft;if(a.offsetParent!=null)b+=u(a.offsetParent);return b}function C(a){var b=a.offsetTop;if(a.offsetParent!=null)b+=C(a.offsetParent);return b}function aa(a){return u(a)+a.offsetWidth}function da(a){return D(a,ra)}var ra={f:function(a){return a.document.body.clientWidth},g:function(a){return a.document.documentElement.clientWidth},c:function(a){return a.innerWidth}};function ca(a){return D(a,qa)}var qa={f:function(a){return a.document.body.clientHeight},
g:function(a){return a.document.documentElement.clientHeight},c:function(a){return a.innerHeight}};function D(a,b){try{if(!window.opera&&"compatMode"in a.document&&a.document.compatMode=="CSS1Compat"){return b.g(a)}else if(m()){return b.f(a)}}catch(c){}return b.c(a)}var la=/&/g,ta=/</g,sa=/>/g;function F(a){if(!a)return"";return a.replace(la,"&amp;").replace(ta,"&lt;").replace(sa,"&gt;").replace(ua,"&quot;")}var ua=/\"/g;function Z(a){return a.srcElement||a.target}function G(a){return typeof a!="undefined"}
function $(a){var b;if(a.keyCode){b=a.keyCode}else if(a.which){b=a.which}return b}function na(a){return document.getElementById(a)}function oa(a){return document.all[a]}var ma=document.getElementById?na:oa;function M(a){try{if(window.parent!=window&&window.parent.log){window.parent.log(window.name+"::"+a);return}}catch(b){}var c=ma("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}};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 r,O;(function(){var a={},b=0;function c(e){if(e.h==null){e.h=++b}return e.h}function d(e,g,l,i){var h=c(e),o=c(l);i=!(!i);var fa=h+"_"+g+"_"+o+"_"+i;return fa}r=function(e,g,l,i){var h=d(e,g,l,i);if(h in a){return h}var o=f.bind(null,h);a[h]={listener:l,proxy:o};if(e.addEventListener){e.addEventListener(g,o,i)}else if(e.attachEvent){e.attachEvent("on"+g,o)}else{throw new Error("Node {"+e+"} does not support event listeners.");}return h};O=function(e,g,l,i){var h=d(e,g,l,i);if(!(h in a)){return false}var o=
a[h].proxy;if(e.removeEventListener){e.removeEventListener(g,o,i)}else if(e.detachEvent){e.detachEvent("on"+g,o)}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 z(a,b,c){this.b=b;if(c){this.a=[];for(var d=0;d<a.length;d++){this.a.push(c+a[d])}}else{this.a=a}}z.prototype.load=function(a){this.i=a;this.e=0;var b=this.b.getElementsByTagName("head")[0];for(var c=0;c<this.a.length;c++){var d=this.b.createElement("script");d.type="text/javascript";if(m()){d.onreadystatechange=this.d.bind(this,d)}else{d.onload=this.d.bind(this,d)}d.src=this.a[c];b.appendChild(d)}};z.prototype.d=function(a){if(m()&&a.readyState!="complete")return;this.e++;if(this.e==this.a.length&&
this.i){this.i()}};var I=["opera","msie","safari","firefox","netscape","mozilla"],K=["x11;","macintosh","windows"];function ja(){this.type=-1;this.os=-1;this.version=0;this.isGecko=navigator.product=="Gecko";var a=navigator.userAgent.toLowerCase();for(var b=0;b<I.length;b++){var c=I[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<K.length;b++){var c=K[b];if(a.indexOf(c)!=-1){this.os=b;break}}}var k=new ja,_TR_Browser=k;function J(){if(ka()){return true}if(k.os==2){if(k.isGecko&&k.version>=1.7){return true}else if(k.type==1&&k.version>=6){return true}else{return false}}else if(k.os==0){if(k.isGecko&&k.version>=1.7){return true}else{return false}}else if(k.os==1){if(k.isGecko&&k.version>=1.8){return true}else{return false}}else{return false}}function ka(){var a=Y("letmeinanyway");if(a!=""){return true}return false}var _TR_IsBrowserSupported=J;function V(a){if(!p()){window.location="/group/<?cs var:CGI.Group.addr ?>/unsupported?url="+encodeURIComponent(window.location)}var b=document.getElementById("create_new_page_form");if(G(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=V;function p(){if(p.supported===undefined){p.supported=J()}return p.supported}window._G2_IsSupportedEditBrowser=p;function X(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=X;function W(a){if(window.g2_modules){return window.g2_modules[a]}}window._G2_GetModule=W;function v(a){var b=null;if(m()){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 N=(new Date).getTime();function L(){++N;return N}window._UniqueNum=L;function ha(a){H(a,function(){})}window._SendServerRequest=ha;function H(a,b){var c=v(b);c.open("GET",a+"&rand="+L(),true);c.send(null)}window._StartGETRequest=H;function ia(a,b,c){var d=v(c);d.open("POST",a,true);d.send(b)}window._StartPOSTRequest=ia;function U(a,b){if(m()){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%";r(window,"load",function(){d.style.position="absolute";d.style.height="0px";c.style.height="0px";var g="_G2_GetStarRowHeight_"+a,l="_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[l]=function(){return d.parentNode.offsetWidth};c.style.setExpression("height",g+"()");c.style.setExpression("width",l+"()");r(window,"resize",function(){var i=window[g]();
if(i>=0){c.style.height=i}var h=window[l]();if(h>=0){c.style.width=h}});document.recalc()})}}window._G2_AddStarRow=U;window.listen=r;window.unlisten=O;window.HasClass=E;window.AddClass=P;window.RemoveClass=ga;window.GetPageOffsetLeft=u;window.GetPageOffsetRight=aa;window.GetPageOffsetTop=C;window.GetWindowHeight=ca;window.GetWindowWidth=da;window.BR_IsIE=m;window.IsDescendant=ea;window.IsDefined=G;window.GetEventTarget=Z;window.GetKeyCode=$;
 })()
