var boost_js = [];
boost_js['drupal.js']='misc/drupal.js';

// $Id: drupal.js,v 1.22.2.4 2006/12/01 14:57:29 killes Exp $

/**
 * Only enable Javascript functionality if all required features are supported.
 */
function isJsEnabled() {
  if (typeof document.jsEnabled == 'undefined') {
    // Note: ! casts to boolean implicitly.
    document.jsEnabled = !(
     !document.getElementsByTagName ||
     !document.createElement        ||
     !document.createTextNode       ||
     !document.documentElement      ||
     !document.getElementById);
  }
  return document.jsEnabled;
}

// Global Killswitch on the <html> element
if (isJsEnabled()) {
  document.documentElement.className = 'js';
}

/**
 * Make IE's XMLHTTP object accessible through XMLHttpRequest()
 */
if (typeof XMLHttpRequest == 'undefined') {
  XMLHttpRequest = function () {
    var msxmls = ['MSXML3', 'MSXML2', 'Microsoft']
    for (var i=0; i < msxmls.length; i++) {
      try {
        return new ActiveXObject(msxmls[i]+'.XMLHTTP')
      }
      catch (e) { }
    }
    throw new Error("No XML component installed!");
  }
}

/**
 * Creates an HTTP GET request and sends the response to the callback function.
 *
 * Note that dynamic arguments in the URI should be escaped with encodeURIComponent().
 */
function HTTPGet(uri, callbackFunction, callbackParameter) {
  var xmlHttp = new XMLHttpRequest();
  var bAsync = true;
  if (!callbackFunction) {
    bAsync = false;
  }

  xmlHttp.open('GET', uri, bAsync);
  xmlHttp.send(null);

  if (bAsync) {
    xmlHttp.onreadystatechange = function() {
      if (xmlHttp.readyState == 4) {
        callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter);
      }
    }
    return xmlHttp;
  }
  else {
    return xmlHttp.responseText;
  }
}

/**
 * Creates an HTTP POST request and sends the response to the callback function
 *
 * Note: passing null or undefined for 'object' makes the request fail in Opera 8.
 *       Pass an empty string instead.
 */
function HTTPPost(uri, callbackFunction, callbackParameter, object) {
  var xmlHttp = new XMLHttpRequest();
  var bAsync = true;
  if (!callbackFunction) {
    bAsync = false;
  }
  xmlHttp.open('POST', uri, bAsync);

  var toSend = '';
  if (typeof object == 'object') {
    xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    for (var i in object) {
      toSend += (toSend ? '&' : '') + i + '=' + encodeURIComponent(object[i]);
    }
  }
  else {
    toSend = object;
  }
  xmlHttp.send(toSend);

  if (bAsync) {
    xmlHttp.onreadystatechange = function() {
      if (xmlHttp.readyState == 4) {
        callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter);
      }
    }
    return xmlHttp;
  }
  else {
    return xmlHttp.responseText;
  }
}

/**
 * Redirects a button's form submission to a hidden iframe and displays the result
 * in a given wrapper. The iframe should contain a call to
 * window.parent.iframeHandler() after submission.
 */
function redirectFormButton(uri, button, handler) {
  // (Re)create an iframe to target.
  createIframe();

  // Trap the button
  button.onmouseover = button.onfocus = function() {
    button.onclick = function() {
      // Prepare variables for use in anonymous function.
      var button = this;
      var action = button.form.action;
      var target = button.form.target;

      // Redirect form submission
      this.form.action = uri;
      this.form.target = 'redirect-target';

      handler.onsubmit();

      // Set iframe handler for later
      window.iframeHandler = function () {
        var iframe = $('redirect-target');
        // Restore form submission
        button.form.action = action;
        button.form.target = target;

        // Get response from iframe body
        try {
          response = (iframe.contentWindow || iframe.contentDocument || iframe).document.body.innerHTML;
          // Firefox 1.0.x hack: Remove (corrupted) control characters
          response = response.replace(/[\f\n\r\t]/g, ' ');
          if (window.opera) {
            // Opera-hack: it returns innerHTML sanitized.
            response = response.replace(/&quot;/g, '"');
          }
        }
        catch (e) {
          response = null;
        }

        $('redirect-target').onload = null;
        $('redirect-target').src = 'about:blank';

        response = parseJson(response);
        // Check response code
        if (response.status == 0) {
          handler.onerror(response.data);
          return;
        }
        handler.oncomplete(response.data);
      }

      return true;
    }
  }
  button.onmouseout = button.onblur = function() {
    button.onclick = null;
  }
}

/**
 * Adds a function to the window onload event
 */
function addLoadEvent(func) {
  var oldOnload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  }
  else {
    window.onload = function() {
      oldOnload();
      func();
    }
  }
}

/**
 * Adds a function to a given form's submit event
 */
function addSubmitEvent(form, func) {
  var oldSubmit = form.onsubmit;
  if (typeof oldSubmit != 'function') {
    form.onsubmit = func;
  }
  else {
    form.onsubmit = function() {
      return oldSubmit() && func();
    }
  }
}

/**
 * Retrieves the absolute position of an element on the screen
 */
function absolutePosition(el) {
  var sLeft = 0, sTop = 0;
  var isDiv = /^div$/i.test(el.tagName);
  if (isDiv && el.scrollLeft) {
    sLeft = el.scrollLeft;
  }
  if (isDiv && el.scrollTop) {
    sTop = el.scrollTop;
  }
  var r = { x: el.offsetLeft - sLeft, y: el.offsetTop - sTop };
  if (el.offsetParent) {
    var tmp = absolutePosition(el.offsetParent);
    r.x += tmp.x;
    r.y += tmp.y;
  }
  return r;
};

function dimensions(el) {
  return { width: el.offsetWidth, height: el.offsetHeight };
}

/**
 * Returns true if an element has a specified class name
 */
function hasClass(node, className) {
  if (node.className == className) {
    return true;
  }
  var reg = new RegExp('(^| )'+ className +'($| )')
  if (reg.test(node.className)) {
    return true;
  }
  return false;
}

/**
 * Adds a class name to an element
 */
function addClass(node, className) {
  if (hasClass(node, className)) {
    return false;
  }
  node.className += ' '+ className;
  return true;
}

/**
 * Removes a class name from an element
 */
function removeClass(node, className) {
  if (!hasClass(node, className)) {
    return false;
  }
  // Replaces words surrounded with whitespace or at a string border with a space. Prevents multiple class names from being glued together.
  node.className = eregReplace('(^|\\s+)'+ className +'($|\\s+)', ' ', node.className);
  return true;
}

/**
 * Toggles a class name on or off for an element
 */
function toggleClass(node, className) {
  if (!removeClass(node, className) && !addClass(node, className)) {
    return false;
  }
  return true;
}

/**
 * Emulate PHP's ereg_replace function in javascript
 */
function eregReplace(search, replace, subject) {
  return subject.replace(new RegExp(search,'g'), replace);
}

/**
 * Removes an element from the page
 */
function removeNode(node) {
  if (typeof node == 'string') {
    node = $(node);
  }
  if (node && node.parentNode) {
    return node.parentNode.removeChild(node);
  }
  else {
    return false;
  }
}

/**
 * Prevents an event from propagating.
 */
function stopEvent(event) {
  if (event.preventDefault) {
    event.preventDefault();
    event.stopPropagation();
  }
  else {
    event.returnValue = false;
    event.cancelBubble = true;
  }
}

/**
 * Parse a JSON response.
 *
 * The result is either the JSON object, or an object with 'status' 0 and 'data' an error message.
 */
function parseJson(data) {
  if (data.substring(0,1) != '{') {
    return { status: 0, data: data.length ? data : 'Unspecified error' };
  }
  return eval('(' + data + ');');
}

/**
 * Create an invisible iframe for form submissions.
 */
function createIframe() {
  // Delete any previous iframe
  deleteIframe();
  // Note: some browsers require the literal name/id attributes on the tag,
  // some want them set through JS. We do both.
  window.iframeHandler = function () {};
  var div = document.createElement('div');
  div.id = 'redirect-holder';
  div.innerHTML = '<iframe name="redirect-target" id="redirect-target" class="redirect" onload="window.iframeHandler();"></iframe>';
  var iframe = div.firstChild;
  with (iframe) {
    name = 'redirect-target';
    setAttribute('name', 'redirect-target');
    id = 'redirect-target';
  }
  with (iframe.style) {
    position = 'absolute';
    height = '1px';
    width = '1px';
    visibility = 'hidden';
  }
  document.body.appendChild(div);
}

/**
 * Delete the invisible iframe for form submissions.
 */
function deleteIframe() {
  var holder = $('redirect-holder');
  if (holder != null) {
    removeNode(holder);
  }
}

/**
 * Wrapper around document.getElementById().
 */
function $(id) {
  return document.getElementById(id);
}
;
boost_js['jquery-modified-compressed.js']='hm/profiles/collabrio/modules/jquery47/jquery-modified-compressed.js';

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[(function(e){return d[e]})];e=(function(){return'\\w+'});c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('l(7Z()&&1X 1J.6=="R"){1J.R=1J.R;u 6=q(a,c){l(a&&1X a=="q"&&6.C.2s)v 6(1j).2s(a);a=a||6.1m||1j;l(a.3q)v 6(6.1V(a,[]));l(c&&c.3q)v 6(c).1U(a);l(1J==7)v 1e 6(a,c);l(a.M==1C){u m=/^[^<]*(<.+>)[^>]*$/.37(a);l(m)a=6.3w([m[1]])}7.1l(a.M==2w||a.D&&!a.1H&&a[0]!=R&&a[0].1H?6.1V(a,[]):6.1U(a,c));u C=16[16.D-1];l(C&&1X C=="q")7.T(C);v 7};l(1X 3s!="R")6.7R=3s;u 3s=6;6.C=6.8e={3q:"1.0.3",5i:q(){v 7.D},1l:q(20){l(20&&20.M==2w){7.D=0;[].1i.15(7,20);v 7}G v 20==R?6.1V(7,[]):7[20]},T:q(C,1g){v 6.T(7,C,1g)},8g:q(10){u 2b=-1;7.T(q(i){l(7==10)2b=i});v 2b},1s:q(1I,Y,B){v 1I.M!=1C||Y!=R?7.T(q(){l(Y==R)I(u E 1p 1I)6.1s(B?7.18:7,E,1I[E]);G 6.1s(B?7.18:7,1I,Y)}):6[B||"1s"](7[0],1I)},1d:q(1I,Y){v 7.1s(1I,Y,"26")},2u:q(e){e=e||7;u t="";I(u j=0;j<e.D;j++){u r=e[j].2g;I(u i=0;i<r.D;i++)l(r[i].1H!=8)t+=r[i].1H!=1?r[i].50:6.C.2u([r[i]])}v t},1Q:q(){u a=6.3w(16);v 7.T(q(){u b=a[0].3G(V);7.1h.2D(b,7);24(b.25)b=b.25;b.3O(7)})},5k:q(){v 7.2T(16,V,1,q(a){7.3O(a)})},5l:q(){v 7.2T(16,V,-1,q(a){7.2D(a,7.25)})},5m:q(){v 7.2T(16,W,1,q(a){7.1h.2D(a,7)})},5o:q(){v 7.2T(16,W,-1,q(a){7.1h.2D(a,7.8i)})},4k:q(){v 7.1l(7.3H.5W())},1U:q(t){v 7.2a(6.2y(7,q(a){v 6.1U(t,a)}),16)},3J:q(4p){v 7.2a(6.2y(7,q(a){v a.3G(4p!=R?4p:V)}),16)},19:q(t){v 7.2a(t.M==2w&&6.2y(7,q(a){I(u i=0;i<t.D;i++)l(6.19(t[i],[a]).r.D)v a;v W})||t.M==5X&&(t?7.1l():[])||1X t=="q"&&6.2U(7,t)||6.19(t,7).r,16)},2p:q(t){v 7.2a(t.M==1C?6.19(t,7,W).r:6.2U(7,q(a){v a!=t}),16)},2x:q(t){v 7.2a(6.1V(7,t.M==1C?6.1U(t):t.M==2w?t:[t]),16)},3N:q(2m){v 2m?6.19(2m,7).r.D>0:W},2T:q(1g,23,2O,C){u 3J=7.5i()>1;u a=6.3w(1g);v 7.T(q(){u 10=7;l(23&&7.2q.2c()=="5Z"&&a[0].2q.2c()!="60"){u 21=7.4W("21");l(!21.D){10=1j.5M("21");7.3O(10)}G 10=21[0]}I(u i=(2O<0?a.D-1:0);i!=(2O<0?2O:a.D);i+=2O){C.15(10,[3J?a[i].3G(V):a[i]])}})},2a:q(a,1g){u C=1g&&1g[1g.D-1];u 29=1g&&1g[1g.D-2];l(C&&C.M!=1t)C=Q;l(29&&29.M!=1t)29=Q;l(!C){l(!7.3H)7.3H=[];7.3H.1i(7.1l());7.1l(a)}G{u 1T=7.1l();7.1l(a);l(29&&a.D||!29)7.T(29||C).1l(1T);G 7.1l(1T).T(C)}v 7}};6.1x=6.C.1x=q(10,E){l(16.D>1&&(E===Q||E==R))v 10;l(!E){E=10;10=7}I(u i 1p E)10[i]=E[i];v 10};6.1x({5E:q(){6.64=V;6.T(6.28.5x,q(i,n){6.C[i]=q(a){u L=6.2y(7,n);l(a&&a.M==1C)L=6.19(a,L).r;v 7.2a(L,16)}});6.T(6.28.2A,q(i,n){6.C[i]=q(){u a=16;v 7.T(q(){I(u j=0;j<a.D;j++)6(a[j])[n](7)})}});6.T(6.28.T,q(i,n){6.C[i]=q(){v 7.T(n,16)}});6.T(6.28.19,q(i,n){6.C[n]=q(20,C){v 7.19(":"+n+"("+20+")",C)}});6.T(6.28.1s,q(i,n){n=n||i;6.C[i]=q(h){v h==R?7.D?7[0][n]:Q:7.1s(n,h)}});6.T(6.28.1d,q(i,n){6.C[n]=q(h){v h==R?(7.D?6.1d(7[0],n):Q):7.1d(n,h)}})},T:q(10,C,1g){l(10.D==R)I(u i 1p 10)C.15(10[i],1g||[i,10[i]]);G I(u i=0;i<10.D;i++)l(C.15(10[i],1g||[i,10[i]])===W)3X;v 10},1f:{2x:q(o,c){l(6.1f.3m(o,c))v;o.1f+=(o.1f?" ":"")+c},1Y:q(o,c){l(!c){o.1f=""}G{u 2S=o.1f.3v(" ");I(u i=0;i<2S.D;i++){l(2S[i]==c){2S.67(i,1);3X}}o.1f=2S.5N(\' \')}},3m:q(e,a){l(e.1f!=R)e=e.1f;v 1e 3V("(^|\\\\s)"+a+"(\\\\s|$)").27(e)}},3P:q(e,o,f){I(u i 1p o){e.18["1T"+i]=e.18[i];e.18[i]=o[i]}f.15(e,[]);I(u i 1p o)e.18[i]=e.18["1T"+i]},1d:q(e,p){l(p=="1B"||p=="2i"){u 1T={},3B,3A,d=["68","79","69","6a"];I(u i 1p d){1T["6b"+d[i]]=0;1T["6B"+d[i]+"6j"]=0}6.3P(e,1T,q(){l(6.1d(e,"1v")!="1Z"){3B=e.6f;3A=e.6g}G{e=6(e.3G(V)).1U(":4j").5B("2N").4k().1d({4o:"1R",2F:"6i",1v:"2B",8f:"0",5p:"0"}).5j(e.1h)[0];u 2W=6.1d(e.1h,"2F");l(2W==""||2W=="4A")e.1h.18.2F="6k";3B=e.8d;3A=e.8c;l(2W==""||2W=="4A")e.1h.18.2F="4A";e.1h.4l(e)}});v p=="1B"?3B:3A}v 6.26(e,p)},26:q(F,E,4F){u L;l(E==\'1k\'&&6.17.1r)v 6.1s(F.18,\'1k\');l(E=="3D"||E=="2t")E=6.17.1r?"3e":"2t";l(!4F&&F.18[E]){L=F.18[E]}G l(F.3z){u 5Q=E.1y(/\\-(\\w)/g,q(m,c){v c.2c()});L=F.3z[E]||F.3z[5Q]}G l(1j.3x&&1j.3x.3Q){l(E=="2t"||E=="3e")E="3D";E=E.1y(/([A-Z])/g,"-$1").45();u 1n=1j.3x.3Q(F,Q);l(1n)L=1n.4K(E);G l(E==\'1v\')L=\'1Z\';G 6.3P(F,{1v:\'2B\'},q(){L=1j.3x.3Q(7,Q).4K(E)})}v L},3w:q(a){u r=[];I(u i=0;i<a.D;i++){u 1P=a[i];l(1P.M==1C){u s=6.2K(1P),22=1j.5M("22"),1Q=[0,"",""];l(!s.1a("<6q"))1Q=[1,"<3E>","</3E>"];G l(!s.1a("<7V")||!s.1a("<21"))1Q=[1,"<23>","</23>"];G l(!s.1a("<3R"))1Q=[2,"<23>","</23>"];G l(!s.1a("<6r")||!s.1a("<6s"))1Q=[3,"<23><21><3R>","</3R></21></23>"];22.2R=1Q[1]+s+1Q[2];24(1Q[0]--)22=22.25;I(u j=0;j<22.2g.D;j++)r.1i(22.2g[j])}G l(1P.D!=R&&!1P.1H)I(u n=0;n<1P.D;n++)r.1i(1P[n]);G r.1i(1P.1H?1P:1j.7O(1P.6x()))}v r},2m:{"":"m[2]== \'*\'||a.2q.2c()==m[2].2c()","#":"a.34(\'4c\')&&a.34(\'4c\')==m[2]",":":{5r:"i<m[3]-0",5s:"i>m[3]-0",5I:"m[3]-0==i",5q:"m[3]-0==i",2d:"i==0",1N:"i==r.D-1",56:"i%2==0",57:"i%2","5I-3o":"6.1w(a,m[3]).1n","2d-3o":"6.1w(a,0).1n","1N-3o":"6.1w(a,0).1N","6z-3o":"6.1w(a).D==1",5y:"a.2g.D",5D:"!a.2g.D",5u:"6.C.2u.15([a]).1a(m[3])>=0",6C:"a.B!=\'1R\'&&6.1d(a,\'1v\')!=\'1Z\'&&6.1d(a,\'4o\')!=\'1R\'",1R:"a.B==\'1R\'||6.1d(a,\'1v\')==\'1Z\'||6.1d(a,\'4o\')==\'1R\'",6D:"!a.2I",2I:"a.2I",2N:"a.2N",4h:"a.4h || 6.1s(a, \'4h\')",2u:"a.B==\'2u\'",4j:"a.B==\'4j\'",4R:"a.B==\'4R\'",3L:"a.B==\'3L\'",4S:"a.B==\'4S\'",4z:"a.B==\'4z\'",5A:"a.B==\'5A\'",4y:"a.B==\'4y\'",3S:"a.B==\'3S\'",4T:"a.2q.45().59(/4T|3E|6F|3S/)"},".":"6.1f.3m(a,m[2])","@":{"=":"z==m[4]","!=":"z!=m[4]","^=":"z && !z.1a(m[4])","$=":"z && z.2J(z.D - m[4].D,m[4].D)==m[4]","*=":"z && z.1a(m[4])>=0","":"z"},"[":"6.1U(m[2],a).D"},3i:["\\\\.\\\\.|/\\\\.\\\\.","a.1h",">|/","6.1w(a.25)","\\\\+","6.1w(a).3k","~",q(a){u r=[];u s=6.1w(a);l(s.n>0)I(u i=s.n;i<s.D;i++)r.1i(s[i]);v r}],1U:q(t,1m){l(1m&&1m.1H==R)1m=Q;1m=1m||6.1m||1j;l(t.M!=1C)v[t];l(!t.1a("//")){1m=1m.5V;t=t.2J(2,t.D)}G l(!t.1a("/")){1m=1m.5V;t=t.2J(1,t.D);l(t.1a("/")>=1)t=t.2J(t.1a("/"),t.D)}u L=[1m];u 1O=[];u 1N=Q;24(t.D>0&&1N!=t){u r=[];1N=t;t=6.2K(t).1y(/^\\/\\//i,"");u 31=W;I(u i=0;i<6.3i.D;i+=2){l(31)4O;u 2z=1e 3V("^("+6.3i[i]+")");u m=2z.37(t);l(m){r=L=6.2y(L,6.3i[i+1]);t=6.2K(t.1y(2z,""));31=V}}l(!31){l(!t.1a(",")||!t.1a("|")){l(L[0]==1m)L.4g();1O=6.1V(1O,L);r=L=[1m];t=" "+t.2J(1,t.D)}G{u 3T=/^([#.]?)([a-53-9\\\\*52-]*)/i;u m=3T.37(t);l(m[1]=="#"){u 48=1j.6I(m[2]);r=L=48?[48]:[];t=t.1y(3T,"")}G{l(!m[2]||m[1]==".")m[2]="*";I(u i=0;i<L.D;i++)r=6.1V(r,m[2]=="*"?6.3U(L[i]):L[i].4W(m[2]))}}}l(t){u 1F=6.19(t,r);L=r=1F.r;t=6.2K(1F.t)}}l(L&&L[0]==1m)L.4g();1O=6.1V(1O,L);v 1O},3U:q(o,r){r=r||[];u s=o.2g;I(u i=0;i<s.D;i++)l(s[i].1H==1){r.1i(s[i]);6.3U(s[i],r)}v r},1s:q(F,1b,Y){u 2f={"I":"6K","6M":"1f","3D":6.17.1r?"3e":"2t",2t:6.17.1r?"3e":"2t",2R:"2R",1f:"1f",Y:"Y",2I:"2I",2N:"2N",6O:"6Q"};l(1b=="1k"&&6.17.1r&&Y!=R){F[\'6R\']=1;l(Y==1)v F["19"]=F["19"].1y(/3d\\([^\\)]*\\)/58,"");G v F["19"]=F["19"].1y(/3d\\([^\\)]*\\)/58,"")+"3d(1k="+Y*4Z+")"}G l(1b=="1k"&&6.17.1r){v F["19"]?3M(F["19"].59(/3d\\(1k=(.*)\\)/)[1])/4Z:1}l(1b=="1k"&&6.17.38&&Y==1)Y=0.6U;l(2f[1b]){l(Y!=R)F[2f[1b]]=Y;v F[2f[1b]]}G l(Y==R&&6.17.1r&&F.2q&&F.2q.2c()==\'6V\'&&(1b==\'6W\'||1b==\'75\')){v F.6Y(1b).50}G l(F.34!=R&&F.6Z){l(Y!=R)F.71(1b,Y);v F.34(1b)}G{1b=1b.1y(/-([a-z])/72,q(z,b){v b.2c()});l(Y!=R)F[1b]=Y;v F[1b]}},51:["\\\\[ *(@)S *([!*$^=]*) *(\'?\\"?)(.*?)\\\\4 *\\\\]","(\\\\[)\\s*(.*?)\\s*\\\\]","(:)S\\\\(\\"?\'?([^\\\\)]*?)\\"?\'?\\\\)","([:.#]*)S"],19:q(t,r,2p){u g=2p!==W?6.2U:q(a,f){v 6.2U(a,f,V)};24(t&&/^[a-z[({<*:.#]/i.27(t)){u p=6.51;I(u i=0;i<p.D;i++){u 2z=1e 3V("^"+p[i].1y("S","([a-z*52-][a-53-74-]*)"),"i");u m=2z.37(t);l(m){l(!i)m=["",m[1],m[3],m[2],m[5]];t=t.1y(2z,"");3X}}l(m[1]==":"&&m[2]=="2p")r=6.19(m[3],r,W).r;G{u f=6.2m[m[1]];l(f.M!=1C)f=6.2m[m[1]][m[2]];3F("f = q(a,i){"+(m[1]=="@"?"z=6.1s(a,m[3]);":"")+"v "+f+"}");r=g(r,f)}}v{r:r,t:t}},2K:q(t){v t.1y(/^\\s+|\\s+$/g,"")},3r:q(F){u 3Z=[];u 1n=F.1h;24(1n&&1n!=1j){3Z.1i(1n);1n=1n.1h}v 3Z},1w:q(F,2b,2p){u 11=[];l(F){u 2h=F.1h.2g;I(u i=0;i<2h.D;i++){l(2p===V&&2h[i]==F)4O;l(2h[i].1H==1)11.1i(2h[i]);l(2h[i]==F)11.n=11.D-1}}v 6.1x(11,{1N:11.n==11.D-1,1n:2b=="56"&&11.n%2==0||2b=="57"&&11.n%2||11[2b]==F,4f:11[11.n-1],3k:11[11.n+1]})},1V:q(2d,3a){u 1A=[];I(u k=0;k<2d.D;k++)1A[k]=2d[k];I(u i=0;i<3a.D;i++){u 43=V;I(u j=0;j<2d.D;j++)l(3a[i]==2d[j])43=W;l(43)1A.1i(3a[i])}v 1A},2U:q(11,C,44){l(C.M==1C)C=1e 1t("a","i","v "+C);u 1A=[];I(u i=0;i<11.D;i++)l(!44&&C(11[i],i)||44&&!C(11[i],i))1A.1i(11[i]);v 1A},2y:q(11,C){l(C.M==1C)C=1e 1t("a","v "+C);u 1A=[];I(u i=0;i<11.D;i++){u 1F=C(11[i],i);l(1F!==Q&&1F!=R){l(1F.M!=2w)1F=[1F];1A=6.1V(1A,1F)}}v 1A},J:{2x:q(O,B,1E){l(6.17.1r&&O.4Y!=R)O=1J;l(!1E.2l)1E.2l=7.2l++;l(!O.1D)O.1D={};u 2M=O.1D[B];l(!2M){2M=O.1D[B]={};l(O["2C"+B])2M[0]=O["2C"+B]}2M[1E.2l]=1E;O["2C"+B]=7.5b;l(!7.1c[B])7.1c[B]=[];7.1c[B].1i(O)},2l:1,1c:{},1Y:q(O,B,1E){l(O.1D)l(B&&O.1D[B])l(1E)5a O.1D[B][1E.2l];G I(u i 1p O.1D[B])5a O.1D[B][i];G I(u j 1p O.1D)7.1Y(O,j)},1K:q(B,K,O){K=K||[];l(!O){u g=7.1c[B];l(g)I(u i=0;i<g.D;i++)7.1K(B,K,g[i])}G l(O["2C"+B]){K.5d(7.2f({B:B,2P:O}));O["2C"+B].15(O,K)}},5b:q(J){l(1X 6=="R")v W;J=J||6.J.2f(1J.J);l(!J)v W;u 3c=V;u c=7.1D[J.B];u 1g=[].7e.4w(16,1);1g.5d(J);I(u j 1p c){l(c[j].15(7,1g)===W){J.4n();J.5f();3c=W}}v 3c},2f:q(J){l(6.17.1r){J=1J.J;J.2P=J.7f}G l(6.17.36&&J.2P.1H==3){J=6.1x({},J);J.2P=J.2P.1h}J.4n=q(){7.3c=W};J.5f=q(){7.7g=V};v J}}});1e q(){u b=5G.5H.45();6.17={36:/5h/.27(b),3u:/3u/.27(b),1r:/1r/.27(b)&&!/3u/.27(b),38:/38/.27(b)&&!/(7h|5h)/.27(b)};6.7i=!6.17.1r||1j.7j=="7k"};6.28={2A:{5j:"5k",7l:"5l",2D:"5m",7n:"5o"},1d:"2i,1B,7o,5p,2F,3D,30,7q,7r".3v(","),19:["5q","5r","5s","5u"],1s:{1F:"Y",3f:"2R",4c:Q,7u:Q,1b:Q,7v:Q,4i:Q,7w:Q},5x:{5y:"a.1h",7x:6.3r,3r:6.3r,3k:"6.1w(a).3k",4f:"6.1w(a).4f",2h:"6.1w(a, Q, V)",7y:"6.1w(a.25)"},T:{5B:q(1I){7.7A(1I)},1z:q(){7.18.1v=7.2v?7.2v:"";l(6.1d(7,"1v")=="1Z")7.18.1v="2B"},1q:q(){7.2v=7.2v||6.1d(7,"1v");l(7.2v=="1Z")7.2v="2B";7.18.1v="1Z"},4m:q(){6(7)[6(7).3N(":1R")?"1z":"1q"].15(6(7),16)},7B:q(c){6.1f.2x(7,c)},7C:q(c){6.1f.1Y(7,c)},7D:q(c){6.1f[6.1f.3m(7,c)?"1Y":"2x"](7,c)},1Y:q(a){l(!a||6.19(a,[7]).r)7.1h.4l(7)},5D:q(){24(7.25)7.4l(7.25)},2H:q(B,C){l(C.M==1C)C=1e 1t("e",(!C.1a(".")?"6(7)":"v ")+C);6.J.2x(7,B,C)},4B:q(B,C){6.J.1Y(7,B,C)},1K:q(B,K){6.J.1K(B,K,7)}}};6.5E();6.C.1x({5J:6.C.4m,4m:q(a,b){v a&&b&&a.M==1t&&b.M==1t?7.5O(q(e){7.1N=7.1N==a?b:a;e.4n();v 7.1N.15(7,[e])||W}):7.5J.15(7,16)},7I:q(f,g){q 4s(e){u p=(e.B=="32"?e.7K:e.7L)||e.7N;24(p&&p!=7)3C{p=p.1h}3b(e){p=7};l(p==7)v W;v(e.B=="32"?f:g).15(7,[e])}v 7.32(4s).5R(4s)},2s:q(f){l(6.3t)f.15(1j);G{6.2o.1i(f)}v 7}});6.1x({3t:W,2o:[],2s:q(){l(!6.3t){6.3t=V;l(6.2o){I(u i=0;i<6.2o.D;i++)6.2o[i].15(1j);6.2o=Q}l(6.17.38||6.17.3u)1j.7S("7T",6.2s,W)}}});1e q(){u e=("7U,7W,3p,7X,7Y,4t,5O,80,"+"81,83,84,32,5R,85,4y,3E,"+"4z,87,88,89,2j").3v(",");I(u i=0;i<e.D;i++)1e q(){u o=e[i];6.C[o]=q(f){v f?7.2H(o,f):7.1K(o)};6.C["8a"+o]=q(f){v 7.4B(o,f)};6.C["8h"+o]=q(f){u O=6(7);u 1E=q(){O.4B(o,1E);O=Q;f.15(7,16)};v 7.2H(o,1E)}};61(6.2s)};l(6.17.1r)6(1J).4t(q(){u J=6.J,1c=J.1c;I(u B 1p 1c){u 3Y=1c[B],i=3Y.D;l(i>0)63 l(B!=\'4t\')J.1Y(3Y[i-1],B);24(--i)}});6.C.1x({4H:6.C.1z,1z:q(12,H){v 12?7.1W({1B:"1z",2i:"1z",1k:"1z"},12,H):7.4H()},4J:6.C.1q,1q:q(12,H){v 12?7.1W({1B:"1q",2i:"1q",1k:"1q"},12,H):7.4J()},66:q(12,H){v 7.1W({1B:"1z"},12,H)},6d:q(12,H){v 7.1W({1B:"1q"},12,H)},6h:q(12,H){v 7.T(q(){u 5U=6(7).3N(":1R")?"1z":"1q";6(7).1W({1B:5U},12,H)})},6l:q(12,H){v 7.1W({1k:"1z"},12,H)},6n:q(12,H){v 7.1W({1k:"1q"},12,H)},6o:q(12,2A,H){v 7.1W({1k:2A},12,H)},1W:q(E,12,H){v 7.1u(q(){7.2L=6.1x({},E);I(u p 1p E){u e=1e 6.2Q(7,6.12(12,H),p);l(E[p].M==4N)e.35(e.1n(),E[p]);G e[E[p]](E)}})},1u:q(B,C){l(!C){C=B;B="2Q"}v 7.T(q(){l(!7.1u)7.1u={};l(!7.1u[B])7.1u[B]=[];7.1u[B].1i(C);l(7.1u[B].D==1)C.15(7)})}});6.1x({5e:q(e,p){l(e.5K)v;l(p=="1B"&&e.4G!=3g(6.26(e,p)))v;l(p=="2i"&&e.4I!=3g(6.26(e,p)))v;u a=e.18[p];u o=6.26(e,p,1);l(p=="1B"&&e.4G!=o||p=="2i"&&e.4I!=o)v;e.18[p]=e.3z?"":"5P";u n=6.26(e,p,1);l(o!=n&&n!="5P"){e.18[p]=a;e.5K=V}},12:q(s,o){o=o||{};l(o.M==1t)o={1S:o};u 5F={6u:6v,6y:4C};o.2V=(s&&s.M==4N?s:5F[s])||4U;o.3n=o.1S;o.1S=q(){6.4Q(7,"2Q");l(o.3n&&o.3n.M==1t)o.3n.15(7)};v o},1u:{},4Q:q(F,B){B=B||"2Q";l(F.1u&&F.1u[B]){F.1u[B].4g();u f=F.1u[B][0];l(f)f.15(F)}},2Q:q(F,2r,E){u z=7;z.o={2V:2r.2V||4U,1S:2r.1S,2n:2r.2n};z.U=F;u y=z.U.18;z.a=q(){l(2r.2n)2r.2n.15(F,[z.2e]);l(E=="1k")6.1s(y,"1k",z.2e);G l(3g(z.2e))y[E]=3g(z.2e)+"5c";y.1v="2B"};z.4X=q(){v 3M(6.1d(z.U,E))};z.1n=q(){u r=3M(6.26(z.U,E));v r&&r>-6P?r:z.4X()};z.35=q(4b,2A){z.47=(1e 54()).55();z.2e=4b;z.a();z.40=4Y(q(){z.2n(4b,2A)},13)};z.1z=q(){l(!z.U.1L)z.U.1L={};z.U.1L[E]=7.1n();z.35(0,z.U.1L[E]);l(E!="1k")y[E]="70"};z.1q=q(){l(!z.U.1L)z.U.1L={};z.U.1L[E]=7.1n();z.o.1q=V;z.35(z.U.1L[E],0)};l(!z.U.42)z.U.42=6.1d(z.U,"30");y.30="1R";z.2n=q(4v,4a){u t=(1e 54()).55();l(t>z.o.2V+z.47){77(z.40);z.40=Q;z.2e=4a;z.a();z.U.2L[E]=V;u 1O=V;I(u i 1p z.U.2L)l(z.U.2L[i]!==V)1O=W;l(1O){y.30=z.U.42;l(z.o.1q)y.1v=\'1Z\';l(z.o.1q){I(u p 1p z.U.2L){l(p=="1k")6.1s(y,p,z.U.1L[p]);G y[p]=z.U.1L[p]+"5c";l(p==\'1B\'||p==\'2i\')6.5e(z.U,p)}}}l(1O&&z.o.1S&&z.o.1S.M==1t)z.o.1S.15(z.U)}G{u p=(t-7.47)/z.o.2V;z.2e=((-5n.7m(p*5n.7p)/2)+0.5)*(4a-4v)+4v;z.a()}}}});6.C.1x({7t:q(N,1M,H){7.3p(N,1M,H,1)},3p:q(N,1M,H,1G){l(N.M==1t)v 7.2H("3p",N);H=H||q(){};u B="4u";l(1M){l(1M.M==1t){H=1M;1M=Q}G{1M=6.2G(1M);B="5v"}}u 4e=7;6.2Z(B,N,1M,q(3l,14){l(14=="2k"||!1G&&14=="5g"){4e.3f(3l.3j).41().T(H,[3l.3j,14])}G H.15(4e,[3l.3j,14])},1G);v 7},7z:q(){v 6.2G(7)},41:q(){v 7.1U(\'3y\').T(q(){l(7.4i)6.5T(7.4i,q(){});G 3F.4w(1J,7.2u||7.7E||7.2R||"")}).4k()}});l(6.17.1r&&1X 33=="R")33=q(){v 1e 7G(5G.5H.1a("7J 5")>=0?"7P.5L":"7Q.5L")};1e q(){u e="4E,5C,5z,5w,5t".3v(",");I(u i=0;i<e.D;i++)1e q(){u o=e[i];6.C[o]=q(f){v 7.2H(o,f)}}};6.1x({1l:q(N,K,H,B,1G){l(K&&K.M==1t){B=H;H=K;K=Q}l(K)N+=((N.1a("?")>-1)?"&":"?")+6.2G(K);6.2Z("4u",N,Q,q(r,14){l(H)H(6.2Y(r,B),14)},1G)},86:q(N,K,H,B){6.1l(N,K,H,B,1)},5T:q(N,H){l(H)6.1l(N,Q,H,"3y");G{6.1l(N,Q,Q,"3y")}},8b:q(N,K,H){l(H)6.1l(N,K,H,"3K");G{6.1l(N,K,"3K")}},5Y:q(N,K,H,B){6.2Z("5v",N,6.2G(K),q(r,14){l(H)H(6.2Y(r,B),14)})},1o:0,65:q(1o){6.1o=1o},3h:{},2Z:q(B,N,K,L,1G){u 1c=V;u 1o=6.1o;l(!N){L=B.1S;u 2k=B.2k;u 2j=B.2j;u 49=B.49;u 1c=1X B.1c=="6c"?B.1c:V;u 1o=1X B.1o=="6m"?B.1o:6.1o;1G=B.1G||W;K=B.K;N=B.N;B=B.B}l(1c&&!6.4x++)6.J.1K("4E");u 4r=W;u P=1e 33();P.6p(B||"4u",N,V);l(K)P.39("6t-6w","6A/x-6E-6G-6H");l(1G)P.39("6J-4q-6L",6.3h[N]||"6N, 6S 6T 6X 3W:3W:3W 73");P.39("X-76-78","33");l(P.7a)P.39("7b","7c");u 2E=q(46){l(P&&(P.7d==4||46=="1o")){4r=V;u 14=6.5S(P)&&46!="1o"?1G&&6.4D(P,N)?"5g":"2k":"2j";l(14!="2j"){u 2X;3C{2X=P.3I("4L-4q")}3b(e){}l(1G&&2X)6.3h[N]=2X;l(2k)2k(6.2Y(P,49),14);l(1c)6.J.1K("5t")}G{l(2j)2j(P,14);l(1c)6.J.1K("5w")}l(1c)6.J.1K("5z");l(1c&&!--6.4x)6.J.1K("5C");l(L)L(P,14);P.2E=q(){};P=Q}};P.2E=2E;l(1o>0)7H(q(){l(P){P.7M();l(!4r)2E("1o");P=Q}},1o);P.82(K)},4x:0,5S:q(r){3C{v!r.14&&8j.62=="3L:"||(r.14>=4C&&r.14<6e)||r.14==4P||6.17.36&&r.14==R}3b(e){}v W},4D:q(P,N){3C{u 4V=P.3I("4L-4q");v P.14==4P||4V==6.3h[N]||6.17.36&&P.14==R}3b(e){}v W},2Y:q(r,B){u 4d=r.3I("7s-B");u K=!B&&4d&&4d.1a("P")>=0;K=B=="P"||K?r.7F:r.3j;l(B=="3y")3F.4w(1J,K);l(B=="3K")3F("K = "+K);l(B=="3f")3s("<22>").3f(K).41();v K},2G:q(a){u s=[];l(a.M==2w||a.3q){I(u i=0;i<a.D;i++)s.1i(a[i].1b+"="+4M(a[i].Y))}G{I(u j 1p a)s.1i(j+"="+4M(a[j]))}v s.5N("&")}})}',62,516,'||||||jQuery|this||||||||||||||if|||||function||||var|return||||||type|fn|length|prop|elem|else|callback|for|event|data|ret|constructor|url|element|xml|null|undefined||each|el|true|false||value||obj|elems|speed||status|apply|arguments|browser|style|filter|indexOf|name|global|css|new|className|args|parentNode|push|document|opacity|get|context|cur|timeout|in|hide|msie|attr|Function|queue|display|sibling|extend|replace|show|result|height|String|events|handler|val|ifModified|nodeType|key|window|trigger|orig|params|last|done|arg|wrap|hidden|complete|old|find|merge|animate|typeof|remove|none|num|tbody|div|table|while|firstChild|curCSS|test|macros|fn2|pushStack|pos|toUpperCase|first|now|fix|childNodes|siblings|width|error|success|guid|expr|step|readyList|not|nodeName|options|ready|cssFloat|text|oldblock|Array|add|map|re|to|block|on|insertBefore|onreadystatechange|position|param|bind|disabled|substr|trim|curAnim|handlers|checked|dir|target|fx|innerHTML|classes|domManip|grep|duration|parPos|modRes|httpData|ajax|overflow|foundToken|mouseover|XMLHttpRequest|getAttribute|custom|safari|exec|mozilla|setRequestHeader|second|catch|returnValue|alpha|styleFloat|html|parseInt|lastModified|token|responseText|next|res|has|oldComplete|child|load|jquery|parents|JQ|isReady|opera|split|clean|defaultView|script|currentStyle|oWidth|oHeight|try|float|select|eval|cloneNode|stack|getResponseHeader|clone|json|file|parseFloat|is|appendChild|swap|getComputedStyle|tr|button|re2|getAll|RegExp|00|break|els|matched|timer|evalScripts|oldOverflow|noCollision|inv|toLowerCase|istimeout|startTime|oid|dataType|lastNum|from|id|ct|self|prev|shift|selected|src|radio|end|removeChild|toggle|preventDefault|visibility|deep|Modified|requestDone|handleHover|unload|GET|firstNum|call|active|reset|submit|static|unbind|200|httpNotModified|ajaxStart|force|scrollHeight|_show|scrollWidth|_hide|getPropertyValue|Last|encodeURIComponent|Number|continue|304|dequeue|checkbox|password|input|400|xmlRes|getElementsByTagName|max|setInterval|100|nodeValue|parse|_|z0|Date|getTime|even|odd|gi|match|delete|handle|px|unshift|setAuto|stopPropagation|notmodified|webkit|size|appendTo|append|prepend|before|Math|after|left|eq|lt|gt|ajaxSuccess|contains|POST|ajaxError|axis|parent|ajaxComplete|image|removeAttr|ajaxStop|empty|init|ss|navigator|userAgent|nth|_toggle|notAuto|XMLHTTP|createElement|join|click|auto|newProp|mouseout|httpSuccess|getScript|state|documentElement|pop|Boolean|post|TABLE|THEAD|addLoadEvent|protocol|do|initDone|ajaxTimeout|slideDown|splice|Top|Right|Left|padding|boolean|slideUp|300|offsetHeight|offsetWidth|slideToggle|absolute|Width|relative|fadeIn|number|fadeOut|fadeTo|open|opt|td|th|Content|slow|600|Type|toString|fast|only|application|border|visible|enabled|www|textarea|form|urlencoded|getElementById|If|htmlFor|Since|class|Thu|readonly|10000|readOnly|zoom|01|Jan|9999|FORM|action|1970|getAttributeNode|tagName|1px|setAttribute|ig|GMT|9_|method|Requested|clearInterval|With|Bottom|overrideMimeType|Connection|close|readyState|slice|srcElement|cancelBubble|compatible|boxModel|compatMode|CSS1Compat|prependTo|cos|insertAfter|top|PI|color|background|content|loadIfModified|title|href|rel|ancestors|children|serialize|removeAttribute|addClass|removeClass|toggleClass|textContent|responseXML|ActiveXObject|setTimeout|hover|MSIE|fromElement|toElement|abort|relatedTarget|createTextNode|Microsoft|Msxml2|_JQ|removeEventListener|DOMContentLoaded|blur|thead|focus|resize|scroll|isJsEnabled|dblclick|mousedown|send|mouseup|mousemove|change|getIfModified|keydown|keypress|keyup|un|getJSON|clientWidth|clientHeight|prototype|right|index|one|nextSibling|location'.split('|'),0,{}))
;
boost_js['pageax.js']='hm/profiles/collabrio/modules/jquery47/pageax.js';

// $Id: pageax.js,v 1.1.2.1 2006/12/22 21:15:41 mfredrickson Exp $

jQuery.fn.pageax = function(el) {
   return this.each( function() {
    jQuery(this).click( function() { 
      pageaxLinkHandle(jQuery(this), el); 
      return false;
    }); 
  });
};

function pageaxLinkHandle(l, el) {
  // var l = JQ(this);
  // alert(l.href());
  JQ.get(pageaxbaseurl, {loadpath: l.href()}, function(xml) {
    pageaxRecieve(l, el, xml);
  }); 
  el.empty().append('<div class = "pageax-loading"><img src ="' + pageaxloader + '" /> Loading content... </div>').fadeIn();
  return false;
}

function pageaxRecieve(link, el, xml) {

  // if we can't find any content, just send the browser to the path
  if (xml == '') {
    window.location = link.href();
    return;
  }

  // fill that child with the returned XML
  // I wanted to do something fancy with animations, but it was
  // giving weird results. Perhaps for version 2.0
  el.empty().append(xml).fadeIn();

};
// Skipped pageaxbase/path.js: doesn't exist.
boost_js['nice_menus.js']='hm/profiles/collabrio/modules/nice_menus/nice_menus.js';

// $Id: nice_menus.js,v 1.1.2.2 2006/08/06 10:16:20 jakeg Exp $

// We only do the javascript in IE.
// TODO: because we now only include the js file for IE, is this 'if' redundant?
if (document.all) {

  function IEHoverPseudo() {
    
    var ulNodes = getElementsByClass("nice-menu");
    var j = 0;
    var liNodes = null;

    for (var i = 0; i < ulNodes.length; i++) { 
      liNodes = ulNodes[i].getElementsByTagName("li");
      for (j = 0; j < liNodes.length; j++) {
        if (hasClass(liNodes[j], 'menuparent')) {
          liNodes[j].onmouseover=function() { 
            addClass(this, 'over');
            displayIframeShim(this);
          }
          liNodes[j].onmouseout=function() { 
            removeClass(this, 'over'); 
            removeIframeShim();
          }
        }
      }
    }
    
    var iframe = document.createElement("iframe");
    iframe.src = "javascript:void(0);";
    iframe.id = 'nice-menus-iframe-shim'
    iframe.style.position = "absolute";
    iframe.style.border = "none";
    iframe.style.filter='progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';
    iframe.style.zIndex = 4;
    iframe.style.display = 'none';
    document.body.appendChild(iframe);
    
  }

  function getElementsByClass(searchClass,node,tag) {
	  var classElements = new Array();
	  if (node == null) node = document;
	  if (tag == null) tag = '*';
	  var els = node.getElementsByTagName(tag);
	  var elsLen = els.length;
	  var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
	  for (i = 0, j = 0; i < elsLen; i++) {
		  if (pattern.test(els[i].className)) {
			  classElements[j] = els[i];
			  j++;
		  }
	  }
	  return classElements;
  }
  
  function displayIframeShim(li) {
    var iframe = $('nice-menus-iframe-shim');
    
    el = li.childNodes[1];
    pos = absolutePosition(el);
    dim = dimensions(el);
    
    iframe.style.width = dim.width + "px";
    iframe.style.height = dim.height + "px";
    iframe.style.top = pos.y;
    iframe.style.left = pos.x;
    iframe.style.display = 'block';
    
  }
  
  function removeIframeShim(li) {
    $('nice-menus-iframe-shim').style.display = 'none';
  }

  // This is the Drupal method of adding a function to the BODY onload event.  (See misc/drupal.js)
  addLoadEvent(IEHoverPseudo);
};
boost_js['thickbox.js']='hm/profiles/collabrio/modules/file_gallery/thickbox.js';

/*
 * Thickbox 3 - One Box To Rule Them All.
 * By Cody Lindley (http://www.codylindley.com)
 * Copyright (c) 2007 cody lindley
 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/

//var tb_pathToImage = "/modules/file_gallery/images/loading_animation.gif";

/*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/

//on page load call tb_init
function tb_preload(tb_pathToImage) {
	tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
	imgLoader = new Image();// preload image
	imgLoader.src = tb_pathToImage;
}

//add thickbox to href & area elements that have a class of .thickbox
function tb_init(domChunk){
	JQ(domChunk).click(function(){
	var t = this.title || this.name || null;
	var a = this.href || this.alt;
	var g = this.rel || false;
	tb_show(t,a,g);
	this.blur();
	return false;
	});
}

function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link

	try {
		if (typeof document.body.style.maxHeight === "undefined") {//if IE 6
			JQ("body","html").css({height: "100%", width: "100%"});
			JQ("html").css("overflow","hidden");
			if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
				JQ("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
				JQ("#TB_overlay").click(tb_remove);
			}
		}else{//all others
			if(document.getElementById("TB_overlay") === null){
				JQ("body").append("<div id='TB_overlay'></div><div id='TB_window'>");
				JQ("#TB_overlay").click(tb_remove);
			}
		}
		
		if(caption===null){caption="";}
		JQ("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");//add loader to the page
		JQ('#TB_load').show();//show loader
		
		var baseURL;
	   if(url.indexOf("?")!==-1){ //ff there is a query string involved
			baseURL = url.substr(0, url.indexOf("?"));
	   }else{ 
	   		baseURL = url;
	   }
	   
	   var urlString = /\.jpg|\.jpeg|\.png|\.gif|\.bmp/g;
	   var urlType = baseURL.toLowerCase().match(urlString);

		if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images
				
			TB_PrevCaption = "";
			TB_PrevURL = "";
			TB_PrevHTML = "";
			TB_NextCaption = "";
			TB_NextURL = "";
			TB_NextHTML = "";
			TB_imageCount = "";
			TB_FoundURL = false;
			if(imageGroup){
				TB_TempArray = JQ("a[@rel="+imageGroup+"]").get();
				for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) {
					var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);
						if (!(TB_TempArray[TB_Counter].href == url)) {						
							if (TB_FoundURL) {
								TB_NextCaption = TB_TempArray[TB_Counter].title;
								TB_NextURL = TB_TempArray[TB_Counter].href;
								TB_NextHTML = "<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>";
							} else {
								TB_PrevCaption = TB_TempArray[TB_Counter].title;
								TB_PrevURL = TB_TempArray[TB_Counter].href;
								TB_PrevHTML = "<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>";
							}
						} else {
							TB_FoundURL = true;
							TB_imageCount = "Image " + (TB_Counter + 1) +" of "+ (TB_TempArray.length);											
						}
				}
			}

			imgPreloader = new Image();
			imgPreloader.onload = function(){		
			imgPreloader.onload = null;
				
			// Resizing large images - orginal by Christian Montoya edited by me.
			var pagesize = tb_getPageSize();
			var x = pagesize[0] - 150;
			var y = pagesize[1] - 150;
			var imageWidth = imgPreloader.width;
			var imageHeight = imgPreloader.height;
			if (imageWidth > x) {
				imageHeight = imageHeight * (x / imageWidth); 
				imageWidth = x; 
				if (imageHeight > y) { 
					imageWidth = imageWidth * (y / imageHeight); 
					imageHeight = y; 
				}
			} else if (imageHeight > y) { 
				imageWidth = imageWidth * (y / imageHeight); 
				imageHeight = y; 
				if (imageWidth > x) { 
					imageHeight = imageHeight * (x / imageWidth); 
					imageWidth = x;
				}
			}
			// End Resizing
			
			TB_WIDTH = imageWidth + 30;
			TB_HEIGHT = imageHeight + 60;
			JQ("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>"); 		
			
			JQ("#TB_closeWindowButton").click(tb_remove);
			
			if (!(TB_PrevHTML === "")) {
				function goPrev(){
					if(JQ(document).unbind("click",goPrev)){JQ(document).unbind("click",goPrev);}
					JQ("#TB_window").remove();
					JQ("body").append("<div id='TB_window'></div>");
					tb_show(TB_PrevCaption, TB_PrevURL, imageGroup);
					return false;	
				}
				JQ("#TB_prev").click(goPrev);
			}
			
			if (!(TB_NextHTML === "")) {		
				function goNext(){
					JQ("#TB_window").remove();
					JQ("body").append("<div id='TB_window'></div>");
					tb_show(TB_NextCaption, TB_NextURL, imageGroup);				
					return false;	
				}
				JQ("#TB_next").click(goNext);
				
			}

			document.onkeydown = function(e){ 	
				if (e == null) { // ie
					keycode = event.keyCode;
				} else { // mozilla
					keycode = e.which;
				}
				if(keycode == 27){ // close
					tb_remove();
				} else if(keycode == 190){ // display previous image
					if(!(TB_NextHTML == "")){
						document.onkeydown = "";
						goNext();
					}
				} else if(keycode == 188){ // display next image
					if(!(TB_PrevHTML == "")){
						document.onkeydown = "";
						goPrev();
					}
				}	
			};
			
			tb_position();
			JQ("#TB_load").remove();
			JQ("#TB_ImageOff").click(tb_remove);
			JQ("#TB_window").css({display:"block"}); //for safari using css instead of show
			};
			
			imgPreloader.src = url;
		}else{//code to show html pages
			
			var queryString = url.replace(/^[^\?]+\??/,'');
			var params = tb_parseQuery( queryString );

			TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL
			TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL
			ajaxContentW = TB_WIDTH - 30;
			ajaxContentH = TB_HEIGHT - 45;
			
			if(url.indexOf('TB_iframe') != -1){				
					urlNoQuery = url.split('TB_');		
					JQ("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' onload='tb_showIframe()'> </iframe>");
				}else{
					if(JQ("#TB_window").css("display") != "block"){
						if(params['modal'] != "true"){
						JQ("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");
						}else{
						JQ("#TB_overlay").unbind();
						JQ("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");	
						}
					}else{
						JQ("#TB_ajaxContent")[0].style.width = ajaxContentW +"px";
						JQ("#TB_ajaxContent")[0].style.height = ajaxContentH +"px";
						JQ("#TB_ajaxContent")[0].scrollTop = 0;
						JQ("#TB_ajaxWindowTitle").html(caption);
					}
			}
					
			JQ("#TB_closeWindowButton").click(tb_remove);
			
				if(url.indexOf('TB_inline') != -1){	
					JQ("#TB_ajaxContent").html(JQ('#' + params['inlineId']).html());
					tb_position();
					JQ("#TB_load").remove();
					JQ("#TB_window").css({display:"block"}); 
				}else if(url.indexOf('TB_iframe') != -1){
					tb_position();
					if(frames['TB_iframeContent'] === undefined){//be nice to safari
						JQ("#TB_load").remove();
						JQ("#TB_window").css({display:"block"});
						JQ(document).keyup( function(e){ var key = e.keyCode; if(key == 27){tb_remove();}});
					}
				}else{
					JQ("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method
						tb_position();
						JQ("#TB_load").remove();
						tb_init("#TB_ajaxContent a.thickbox");
						JQ("#TB_window").css({display:"block"});
					});
				}
			
		}

		if(!params['modal']){
			document.onkeyup = function(e){ 	
				if (e == null) { // ie
					keycode = event.keyCode;
				} else { // mozilla
					keycode = e.which;
				}
				if(keycode == 27){ // close
					tb_remove();
				}	
			};
		}
		
	} catch(e) {
		//nothing here
	}
}

//helper functions below
function tb_showIframe(){
	JQ("#TB_load").remove();
	JQ("#TB_window").css({display:"block"});
}

function tb_remove() {
 	JQ("#TB_imageOff").unbind("click");
	JQ("#TB_overlay").unbind("click");
	JQ("#TB_closeWindowButton").unbind("click");
	JQ("#TB_window").fadeOut("fast",function(){JQ('#TB_window,#TB_overlay,#TB_HideSelect').remove();});
	JQ("#TB_load").remove();
	if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
		JQ("body","html").css({height: "auto", width: "auto"});
		JQ("html").css("overflow","");
	}
	document.onkeydown = "";
	return false;
}

function tb_position() {
JQ("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'});
	if ( !(jQuery.browser.msie && typeof XMLHttpRequest == 'function')) { // take away IE6
		JQ("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
	}
}

function tb_parseQuery ( query ) {
   var Params = {};
   if ( ! query ) {return Params;}// return empty object
   var Pairs = query.split(/[;&]/);
   for ( var i = 0; i < Pairs.length; i++ ) {
      var KeyVal = Pairs[i].split('=');
      if ( ! KeyVal || KeyVal.length != 2 ) {continue;}
      var key = unescape( KeyVal[0] );
      var val = unescape( KeyVal[1] );
      val = val.replace(/\+/g, ' ');
      Params[key] = val;
   }
   return Params;
}

function tb_getPageSize(){
	var de = document.documentElement;
	var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
	var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
	arrayPageSize = [w,h];
	return arrayPageSize;
}
;
boost_js['file_gallery.js']='hm/profiles/collabrio/modules/file_gallery/file_gallery.js';

// $Id$

JQ(document).ready(function() {
  JQ('select#file-gallery-selector').change(function() {
    var filter = this.options[this.selectedIndex].value;
    // FIXME: This is a hack and potentially fragile.
    var url = window.location.href.replace(/(file_gallery\/[\d]+\/[\d]+)(\/{0,1}[\w]*\/{0,1})/, filter ? '$1/' + filter : '$1');
    window.location.href = url;
  });
});
;
boost_js['jquery.cookie.js']='hm/profiles/collabrio/themes/earl/javascripts/jquery.cookie.js';

/**
 * Cookie plugin
 *
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */

/**
 * Create a cookie with the given name and value and other optional parameters.
 *
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Set the value of a cookie.
 * @example $.cookie('the_cookie', 'the_value', {expires: 7, path: '/', domain: 'jquery.com', secure: true});
 * @desc Create a cookie with all available options.
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Create a session cookie.
 * @example $.cookie('the_cookie', null);
 * @desc Delete a cookie by passing null as value.
 *
 * @param String name The name of the cookie.
 * @param String value The value of the cookie.
 * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
 * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
 *                             If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
 *                             If set to null or omitted, the cookie will be a session cookie and will not be retained
 *                             when the the browser exits.
 * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
 * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
 * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
 *                        require a secure protocol (like HTTPS).
 * @type undefined
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */

/**
 * Get the value of a cookie with the given name.
 *
 * @example $.cookie('the_cookie');
 * @desc Get the value of a cookie.
 *
 * @param String name The name of the cookie.
 * @return The value of the cookie.
 * @type String
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */
jQuery.cookie = function(name, value, options) {
    if (typeof value != 'undefined') { // name and value given, set cookie
        options = options || {};
        if (value === null) {
            value = '';
            options.expires = -1;
        }
        var expires = '';
        if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
            var date;
            if (typeof options.expires == 'number') {
                date = new Date();
                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
            } else {
                date = options.expires;
            }
            expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
        }
        var path = options.path ? '; path=' + options.path : '';
        var domain = options.domain ? '; domain=' + options.domain : '';
        var secure = options.secure ? '; secure' : '';
        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
    } else { // only name given, get cookie
        var cookieValue = null;
        if (document.cookie && document.cookie != '') {
            var cookies = document.cookie.split(';');
            for (var i = 0; i < cookies.length; i++) {
                var cookie = jQuery.trim(cookies[i]);
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
    }
};;
boost_js['earl.js']='hm/profiles/collabrio/themes/earl/javascripts/earl.js';

// Specify which forms will get special treatment
var forms = ['comment_form'];
// Specify which links will become buttons
var buttons = ['a.subscribe'];
// Is tinymce enabled?
var tinymce_enabled = (typeof(tinyMCE) != 'undefined');
var isIE = (navigator.appName == "Microsoft Internet Explorer");

function toggleBlock(block) {
  block = JQ(block);
  JQ.cookie(block.id(), block.is('.collapsed') ? 'expanded' : 'collapsed', {path: '/'});
  block.toggleClass('collapsed');
  block.children('div.content').toggle();
}

// Make blocks and elements collapsible
JQ(document).ready(function() {
  // Make helptip collapsible
  block = JQ('.block-helptip');
  if (block.length) {
    if (JQ.cookie(block.id()) == 'collapsed') {
      toggleBlock(block);
    }
    block.children('h3.title a').click(function() {
      toggleBlock(JQ(this).parents('div.block'));
      return false;
    })
  }

  // Let's create some buttons
  for (button_path in buttons) {
    JQ(buttons[button_path]).each(function() {
      var button = JQ(this);
      button.html('<span>' + button.html() + '</span>');
      button.addClass('button');
    });
  }

  for (form_id in forms) {
    var form = JQ('#' + forms[form_id]);
    if (form.length) {
      // Change the label for the button that the user clicked
      form.find('input.form-submit').click(function() {
        // For whatever reason IE6/7 borks unless we get the form element again
        var form = JQ('#' + forms[form_id]);
        var oldLabel = this.value;
        var newLabel = oldLabel.split(' ')[0] + 'ing...';
        // Change the label to "[Verb]ing..."
        JQ(this).attr({value: newLabel});
        if (this.id != 'attach') {
          // Disable the buttons when the form is submitted (#2511 not for ajax file attachment submissions)
          addSubmitEvent(document.getElementById('comment_form'), function() { JQ(this).find('input.form-submit').attr('disabled', true) });
        }
        // The form hook depends on the button label so let's append that to the form
        form.append('<input type="hidden" name="op" value="' + oldLabel + '" />');
      });
    }
  }
  
  var ppbform = JQ('#search_form');
  //additional check to act only on the ppbsearch form
  var ppbform_insides = JQ('#search_form .ppbsearch');
  if (ppbform.length && ppbform_insides.length) {
    // Change the label for the button that the user clicked
    ppbform.find('input.form-submit').click(function() {
      // For whatever reason IE6/7 borks unless we get the form element again
      var ppbform = JQ('#search_form');
      var oldLabel = this.value;
      var newLabel = oldLabel.split(' ')[0] + 'ing...';
      // Change the label to "[Verb]ing..."
      JQ(this).attr({value: newLabel});
      // Disable the buttons when the form is submitted
      addSubmitEvent(document.getElementById('search_form'), function() { JQ(this).find('input.form-submit').attr('disabled', true) });
      // The form hook depends on the button label so let's append that to the form
      ppbform.append('<input type="hidden" name="op" value="' + oldLabel + '" />');
    });
  }

  JQ('div.sidebar div.block').each(function(i, block) {
    block = JQ(block);
    if (JQ.cookie(block.id()) == 'collapsed') {
      toggleBlock(block);
    }
    block.children('h3.title a').click(function() {
      toggleBlock(JQ(this).parents('div.block'));
      return false;
    })
  });
});
;
