text: define("modules/getproject",[],function(){return function(){var b=window.location.href.match(/p=([^&]+)/);return b?unescape(b[1]):null}});define("modules/lang",["jquery"],function(){return function(b){b.find("select").change(function(){b.find("form").submit()});b.find('input[type="submit"]').remove()}});var TRUE=!0,FALSE=!1,NULL=null;
  (function(b,r,s){function x(a){if(!a)return FALSE;try{if("metadata"in a&&"object"!==typeof a.metadata)a.metadata={type:a.metadata};if("content"in a){if("object"!==typeof a.content||a.content.jquery)a.content={text:a.content};var c=b.isFunction(a.content.text)?a.content.text():a.content.text||FALSE;if(!c&&!c.attr||c.length<1||"object"===typeof c&&!c.jquery)a.content.text=FALSE;if("title"in a.content&&"object"!==typeof a.content.title)a.content.title={text:a.content.title}}if("position"in a){if("object"!==
  typeof a.position)a.position={my:a.position,at:a.position};if("object"!==typeof a.position.adjust)a.position.adjust={};if("undefined"!==typeof a.position.adjust.screen)a.position.adjust.screen=!!a.position.adjust.screen}if("show"in a){if("object"!==typeof a.show)a.show={event:a.show};if("object"!==typeof a.show)a.show=a.show.jquery?{target:a.show}:{event:a.show}}if("hide"in a&&"object"!==typeof a.hide)a.hide=a.hide.jquery?{target:a.hide}:{event:a.hide};if("style"in a&&"object"!==typeof a.style)a.style=
  {classes:a.style}}catch(d){}b.each(b.fn.qtip.plugins,function(){this.sanitize&&this.sanitize(a)})}function w(a,c,d){function i(b){var a,e,b=b.split(".");a=c[b[0]];for(e=1;e<b.length;e+=1)if(typeof a[b[e]]==="object"&&!a[b[e]].jquery)a=a[b[e]];else break;return[a,b[e]]}function m(b){var a=e.elements.tooltip,c=!a.is(":visible")?TRUE:FALSE,d=FALSE;if(!e.rendered)return FALSE;c&&a.addClass("ui-tooltip-accessible");switch(b){case "dimensions":d={height:a.outerHeight(),width:a.outerWidth()};break;case "position":d=
  a.offset()}c&&a.removeClass("ui-tooltip-accessible");return d}function j(){var b=e.elements;if(b.title)b.titlebar.remove(),b.titlebar=b.title=b.button=NULL,b.tooltip.removeAttr("aria-labelledby")}function g(){var a=e.elements,l=c.content.title.button;a.titlebar&&j();a.titlebar=b("<div />",{"class":"ui-tooltip-titlebar "+(c.style.widget?"ui-widget-header":"")}).append(a.title=b("<div />",{id:"ui-tooltip-"+d+"-title","class":"ui-tooltip-title",html:c.content.title.text})).prependTo(a.wrapper);if(l)a.button=
  l.jquery?l:"string"===typeof l?b("<a />",{html:l}):b("<a />",{"class":"ui-state-default"}).append(b("<span />",{"class":"ui-icon ui-icon-close"})),a.button.prependTo(a.titlebar).attr("role","button").addClass("ui-tooltip-"+(l===TRUE?"close":"button")).hover(function(a){b(this).toggleClass("ui-state-hover",a.type==="mouseenter")}).click(function(){a.tooltip.hasClass("ui-state-disabled")||e.hide();return FALSE}).bind("mousedown keydown mouseup keyup mouseout",function(a){b(this).toggleClass("ui-state-active ui-state-focus",
  /down$/i.test(a.type))})}function f(a){if(!e.rendered||!a)return FALSE;b.isFunction(a)&&(a=a());a.jquery&&a.length>0?e.elements.content.append(a.css({display:"block"})):e.elements.content.html(a);var d=e.elements.tooltip,f,g;if(e.rendered&&b.browser.msie)d.css({width:"auto",maxWidth:"none"}),a=m("dimensions").width,d.css({maxWidth:""}),f=parseInt(d.css("max-width"),10)||0,g=parseInt(d.css("min-width"),10)||0,a=Math.min(Math.max(a,g),f),d.width(a);e.reposition(e.cache.event);if(e.rendered<0)(c.show.ready||
  e.rendered===-2)&&e.show(e.cache.event),e.rendered=TRUE;return e}function n(v,l,f,g){var h,p,q;function u(b){if(h.hasClass("ui-state-disabled"))return FALSE;p.trigger("qtip-"+d+"-inactive");clearTimeout(e.timers.show);clearTimeout(e.timers.hide);e.timers.show=setTimeout(function(){e.show(b)},c.show.delay)}function i(a){if(h.hasClass("ui-state-disabled"))return FALSE;var d=b(a.relatedTarget).parents(".qtip.ui-tooltip")[0]==h[0];clearTimeout(e.timers.show);clearTimeout(e.timers.hide);if(c.position.target===
  "mouse"&&d||c.hide.fixed&&/mouse(out|leave|move)/.test(a.type)&&d)return a.stopPropagation(),a.preventDefault(),FALSE;h.stop(TRUE,TRUE);e.timers.hide=setTimeout(function(){e.hide(a)},c.hide.delay)}function C(b){if(h.hasClass("ui-state-disabled"))return FALSE;clearTimeout(e.timers.inactive);e.timers.inactive=setTimeout(function(){e.hide(b)},c.hide.inactive)}function n(b){e.elements.tooltip.is(":visible")&&e.reposition(b)}var o=".qtip-"+d;p=c.show.target;q=c.hide.target;h=e.elements.tooltip;var j=String(c.show.event).split(" "),
  m=String(c.hide.event).split(" "),k=b.browser.msie&&/^6\.[0-9]/.test(b.browser.version);f&&c.hide.fixed&&(q=q.add(h),h.bind("mouseover"+o,function(){h.hasClass("ui-state-disabled")||clearTimeout(e.timers.hide)}));l&&("number"===typeof c.hide.inactive&&(p.bind("qtip-"+d+"-inactive",C),b.each(b.fn.qtip.inactiveEvents,function(b,a){q.add(e.elements.tooltip).bind(a+o+"-inactive",C)})),b.each(m,function(a,c){var e=b.inArray(c,j);e>-1&&b(q).add(p).length===b(q).length||c==="unfocus"?(p.bind(c+o,function(b){h.is(":visible")?
  i(b):u(b)}),delete j[e]):q.bind(c+o,i)}));v&&(b.each(j,function(b,a){p.bind(a+o,u)}),h.bind("mouseover"+o,function(){e.focus()}));g&&((c.position.adjust.resize||c.position.adjust.screen)&&b(r).bind("resize"+o,n),(c.position.adjust.screen||k&&h.css("position")==="fixed")&&b(document).bind("scroll"+o,n),/unfocus/i.test(c.hide.event)&&b(document).bind("mousedown"+o,function(c){var d=e.elements.tooltip;b(c.target).parents(".qtip.ui-tooltip").length===0&&b(c.target).add(a).length>1&&d.is(":visible")&&
  !d.hasClass("ui-state-disabled")&&e.hide()}),c.position.target==="mouse"&&b(document).bind("mousemove"+o,function(b){c.position.adjust.mouse&&!h.hasClass("ui-state-disabled")&&h.is(":visible")&&e.reposition(b)}))}function k(a,l,f,g){var g=parseInt(g,10)!==0,h=".qtip-"+d,p=a?c.show.target:b("<div/>"),q=l?c.hide.target:b("<div/>"),u=f?e.elements.tooltip:b("<div/>"),l={show:String(c.show.event).split(" "),hide:String(c.hide.event).split(" ")};e.rendered?(b.each(l.show,function(b,a){p.unbind(a+h)}),p.unbind("mousemove"+
  h).unbind("mouseout"+h).unbind("qtip-"+d+"-inactive"),b.each(l.hide,function(b,a){q.add(u).unbind(a+h)}),b.each(b.fn.qtip.inactiveEvents,function(b,a){q.add(f?e.elements.content:NULL).unbind(a+h+"-inactive")}),q.unbind("mouseout"+h),u.unbind("mouseover"+h),g&&(b(r).unbind("resize"+h),b(document).unbind("mousedown"+h+" mousemove"+h))):a&&p.unbind(l.show+h+"-create")}var e=this;e.id=d;e.rendered=FALSE;e.elements={target:a};e.cache={event:{},target:NULL,disabled:FALSE};e.timers={};e.options=c;e.plugins=
  {};b.extend(e,{render:function(v){var l=e.elements;if(e.rendered)return FALSE;e.rendered=v?-2:-1;l.tooltip=b("<div/>").attr({id:"ui-tooltip-"+d,role:"tooltip"}).addClass("qtip ui-tooltip ui-helper-reset "+c.style.classes).toggleClass("ui-widget",c.style.widget).toggleClass("ui-state-disabled",e.cache.disabled).css("z-index",b.fn.qtip.zindex+b("div.qtip.ui-tooltip").length).data("qtip",e).appendTo(c.position.container);l.wrapper=b("<div />").addClass("ui-tooltip-wrapper").appendTo(l.tooltip);l.content=
  b("<div />").addClass("ui-tooltip-content").attr("id","ui-tooltip-"+d+"-content").addClass("ui-tooltip-content").toggleClass("ui-widget-content",c.style.widget).appendTo(l.wrapper);c.content.title.text&&g();b.each(b.fn.qtip.plugins,function(){this.initialize==="render"&&this(e)});n(1,1,1,1);b.each(c.events,function(b,a){l.tooltip.bind("tooltip"+b,a)});a.bind("remove.qtip",function(){e.destroy()});f(c.content.text);l.tooltip.trigger("tooltiprender",[e.hash()]);return e},get:function(b){switch(b.toLowerCase()){case "offset":b=
  m("position");break;case "dimensions":b=m("dimensions");break;default:b=i(b.toLowerCase()),b=b[0].precedance?b[0].string():b[0].jquery?b[0]:b[0][b[1]]}return b},set:function(a,d){var t=i(a.toLowerCase()),m,h,p,q={builtin:{"^content.text":function(){f(d)},"^content.title.text":function(){e.rendered&&(!e.elements.title&&d?(g(),e.reposition()):d?e.elements.title.html(d):j())},"^position.container$":function(){e.rendered===TRUE&&(e.elements.tooltip.appendTo(d),e.reposition())},"^position.(my|at)$":function(){var e=
  /my$/i.test(a)?"my":"at";"string"===typeof d&&(c.position[e]=new b.fn.qtip.plugins.Corner(d))},"^position.(my|at|adjust|target)":function(){e.rendered&&e.reposition()},"^(show|hide).(event|target|fixed)":function(b,c,d,q){var p=a.search(/fixed/i)>-1?[0,[0,1,1,1]]:a.search(/hide/i)<0?["show",[1,0,0,0]]:["hide",[0,1,0,0]];p[0]&&(b[c]=q);k.apply(e,p[1]);p[0]&&(b[c]=d);n.apply(e,p[1])}}};b.each(e.plugins,function(b){if("object"===typeof this.checks)q[b]=this.checks});m=t[0][t[1]];t[0][t[1]]=d;x(c);for(h in q)for(p in q[h])RegExp(p,
  "i").test(a)&&q[h][p].call(e,t[0],t[1],d,m);return e},toggle:function(f,l){function g(){var c=f?"attr":"removeAttr",q=/^1|0$/.test(b(this).css("opacity"));e.elements.title&&a[c]("aria-labelledby","ui-tooltip-"+d+"-title");a[c]("aria-describedby","ui-tooltip-"+d+"-content");if(f){if(b.browser.msie&&b(this).get(0).style&&q)u=b(this).get(0).style,u.removeAttribute("filter"),u.removeAttribute("opacity")}else q&&b(this).hide()}if(!e.rendered)return FALSE;var i=f?"show":"hide",h=e.elements.tooltip,p=c[i],
  q=h.is(":visible"),u;(typeof f).search("boolean|number")&&(f=!h.is(":visible"));if(!q&&!f||h.is(":animated"))return e;if(l){if(e.cache.event&&/over|enter/.test(l.type)&&/out|leave/.test(e.cache.event.type)&&b(l.target).add(c.show.target).length<2&&b(l.relatedTarget).parents(".qtip.ui-tooltip").length>0)return e;e.cache.event=b.extend({},l)}q=b.Event("tooltip"+i);q.originalEvent=b.extend({},l);h.trigger(q,[e.hash(),90]);if(q.isDefaultPrevented())return e;f?(e.rendered===TRUE&&(e.focus(),e.reposition(l)),
  p.solo&&b(":not(.qtip.ui-tooltip)").qtip("hide")):clearTimeout(e.timers.show);h.attr("aria-hidden",Boolean(!f));h.stop(TRUE,FALSE);b.isFunction(p.effect)?(p.effect.call(h),h.queue(function(){g.call(this);b(this).dequeue()})):p.effect===FALSE?(h[i](),g.call(h)):h.fadeTo(90,f?1:0,g);f&&p.target.trigger("qtip-"+d+"-inactive");return e},show:function(b){e.toggle(TRUE,b)},hide:function(b){e.toggle(FALSE,b)},focus:function(a){if(!e.rendered)return FALSE;var c=e.elements.tooltip,d=parseInt(c.css("z-index"),
  10),f=b.fn.qtip.zindex+b(".qtip.ui-tooltip").length,g=b.extend({},a);if(!c.hasClass("ui-tooltip-focus")&&d!==f)b(".qtip.ui-tooltip").each(function(){var a=b(this).qtip(),c=b.Event("tooltipblur"),e,d;if(!a||!a.rendered)return TRUE;e=a.elements.tooltip;d=parseInt(e.css("z-index"),10);isNaN(d)||e.css({zIndex:d-1});e.removeClass("ui-tooltip-focus");c.originalEvent=g;e.trigger(c,[a,f])}),a=b.Event("tooltipfocus"),a.originalEvent=g,c.trigger(a,[e.hash(),f]),a.isDefaultPrevented()||c.css({zIndex:f}).addClass("ui-tooltip-focus");
  return e},reposition:function(a){if(e.rendered===FALSE)return FALSE;var d=c.position.target,f=e.elements.tooltip,g=c.position,h=g.my,p=g.at,q=e.elements.tooltip.width(),u=e.elements.tooltip.height(),i=b(g.container)[0],n=0,j=0,o={left:0,top:0},m=b.Event("tooltipmove"),k={left:function(c){var e=d==="mouse"?a.pageX:d.offset().left,f=b(r).scrollLeft(),u=b(r).width(),i=p.x==="left"?n:p.x==="right"?-n:n/2,j=h.x!==p.x&&p.x!=="center"?n:0,m=i+(h.x==="left"?-q:h.x==="right"?q:q/2)+-2*g.adjust.x,u=c+q-u-f;
  f-c>0&&!(c>=e&&c<e+n)?o.left+=m-i+j:u>0&&c+q>e&&(o.left+=(h.x==="center"?-1:1)*(m-i-j));return o.left-c},top:function(a){var c=b(r).scrollTop(),e=b(r).height(),d=p.y==="top"?j:p.y==="bottom"?-j:0,f=h.y!==p.y&&p.y!=="center"?j:0,q=d+(h.y==="top"?-u:h.y==="bottom"?u:-u/2)+-2*g.adjust.y,e=a+u-e-c;c-a>0?o.top+=h.y==="center"?-q+d:q:e>0&&(o.top+=q-d-f);return o.top-a}};if(d==="mouse"){p={x:"left",y:"top"};if(!a)a=e.cache.event;o={top:a.pageY,left:a.pageX}}else{if(d==="event")d=a&&a.target&&a.type!=="scroll"&&
  a.type!=="resize"?e.cache.target=b(a.target):e.cache.target;if(d[0]===document||d[0]===r)n=d.width(),j=d.height(),o={top:f.css("position")==="fixed"?0:d.scrollTop(),left:d.scrollLeft()};else if(d.is("area")&&b.fn.qtip.plugins.imagemap)o=b.fn.qtip.plugins.imagemap(d,p),n=o.width,j=o.height,o=o.offset;else if(n=d.outerWidth(),j=d.outerHeight(),o=d.offset(),g.adjust.offset){do o.left-=i.offsetLeft-i.scrollLeft,o.top-=i.offsetTop-i.scrollTop;while(i=i.offsetParent)}o.left+=p.x==="right"?n:p.x==="center"?
  n/2:0;o.top+=p.y==="bottom"?j:p.y==="center"?j/2:0}o.left+=g.adjust.x+(h.x==="right"?-q:h.x==="center"?-q/2:0);o.top+=g.adjust.y+(h.y==="bottom"?-u:h.y==="center"?-u/2:0);o.adjusted=g.adjust.screen&&d[0]!==r&&d[0]!==document.body?{left:k.left(o.left),top:k.top(o.top)}:{left:0,top:0};if(g.container[0]==document.body){if(o.top<1)o.top=0;if(o.left<1)o.left=0}f.attr("class",function(){return b(this).attr("class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass("ui-tooltip-pos-"+h.abbreviation());m.originalEvent=
  b.extend({},a);f.trigger(m,[e.hash(),o]);if(m.isDefaultPrevented())return e;delete o.adjust;f.is(":visible")&&b.isFunction(g.adjust.effect)?(g.adjust.effect.call(f,o),f.queue(function(){b(this).css({opacity:"",height:""});b.browser.msie&&b(this).get(0).style&&b(this).get(0).style.removeAttribute("filter");b(this).dequeue()})):f.css(o);return e},disable:function(b){var a=e.elements.tooltip;e.rendered?a.toggleClass("ui-state-disabled",b):e.cache.disabled=!!b;return e},destroy:function(){var c=e.elements,
  d=c.target.data("oldtitle");e.rendered&&b.each(e.plugins,function(){this.initialize==="render"&&this.destroy()});k(1,1,1,1);a.removeData("qtip");e.rendered&&c.tooltip.remove();d&&a.attr("title",d);return a},hash:function(){var a=b.extend({},e);delete a.cache;delete a.timers;delete a.options;delete a.plugins;delete a.render;delete a.hash;return a}})}function y(a,c){var d;d=b(this).metadata?b(this).metadata(c.metadata):{};d=b.extend(TRUE,{},c,d);var i=d.position,m=b(this)[0]===document?b(document.body):
  b(this);if("boolean"===typeof d.content.text)if(d.content.attr!==FALSE&&b(this).attr(d.content.attr))d.content.text=b(this).attr(d.content.attr);else return FALSE;if(i.container===FALSE)i.container=b(document.body);if(i.target===FALSE)i.target=m;if(d.show.target===FALSE)d.show.target=m;if(d.hide.target===FALSE)d.hide.target=m;i.at=new b.fn.qtip.plugins.Corner(i.at);i.my=new b.fn.qtip.plugins.Corner(i.my);if(b(this).data("qtip"))if(d.overwrite)b(this).qtip("destroy");else if(d.overwrite===FALSE)return FALSE;
  d=new w(b(this),d,a);b(this).data("qtip",d);return d}function z(a){var c=this;c.checks={"^content.ajax":function(){this.plugins.ajax.load(this.options.content.ajax)}};b.extend(c,{init:function(){var b=a.options.content.ajax;c.load(b);a.elements.tooltip.bind("tooltipshow.ajax",function(){b.once===FALSE&&a.rendered===TRUE&&c.load(b)})},load:function(d){b.ajax(b.extend(TRUE,{},d,{success:function(c,m){b.isFunction(d.success)&&d.success.call(a.hash(),c,m)===FALSE||(a.set("content.text",c),A.remove())},
  error:function(c,m,j){var g=m||j;if(b.isFunction(d.error)&&(c=d.error.call(a.hash(),c,m,j),c===FALSE))return;a.set("content.text",g)}}));return c},destroy:function(){a.elements.tooltip.unbind("tooltipshow.ajax")}});c.init()}function B(b,c,d){var i=Math.floor(c/2),m=Math.floor(d/2),c={bottomright:[[0,0],[c,d],[c,0]],bottomleft:[[0,0],[c,0],[0,d]],topright:[[0,d],[c,0],[c,d]],topleft:[[0,0],[0,d],[c,d]],topcenter:[[0,d],[i,0],[c,d]],bottomcenter:[[0,0],[c,0],[i,d]],rightcenter:[[0,0],[c,m],[0,d]],leftcenter:[[c,
  0],[c,d],[0,m]]};c.lefttop=c.bottomright;c.righttop=c.bottomleft;c.leftbottom=c.topright;c.rightbottom=c.topleft;return c[b]}function D(a){var c,d,i;function m(a){var c=n.tip,d=["left","right"],h={left:0,right:0,top:0,bottom:0},i=0;if(f.corner===FALSE||!c)return FALSE;a=a||g.corner;c.css({top:"",bottom:"",left:"",right:"",margin:""});d[a.precedance==="y"?"push":"unshift"]("top","bottom");b.browser.msie&&(h={top:a.precedance==="y"?0:0,left:0,bottom:a.precedance==="y"?0:0,right:0});switch(a[a.precedance===
  "y"?"x":"y"]){case "center":c.css(d[0],"50%").css("margin-"+d[0],-(v[a.precedance==="y"?"width":"height"]/2));break;case d[0]:c.css(d[0],h[d[0]]+r);break;case d[1]:c.css(d[1],h[d[1]]+r)}i=v[a.precedance==="x"?"width":"height"];t&&(i-=parseInt(e.css("border-"+a[a.precedance]+"-width"),10));a[a.precedance]===d[2]?c.css(d[2],-h[d[2]]-i):c.css(d[3],h[d[3]]-i)}function j(a,f,h){if(n.tip){var a=b.extend({},g.corner),f=g.mimic.adjust?b.extend({},g.mimic):null,j=a.precedance==="y"?["y","top","left","height"]:
  ["x","left","top","width"],l=h.adjusted,m=parseInt(e.css("border-"+a[j[0]]+"-width"),10);b.each([a,f],function(){if(l.left)this.x=this.x==="center"?l.left>0?"left":"right":this.x==="left"?"right":"left";if(l.top)this.y=this.y==="center"?l.top>0?"top":"bottom":this.y==="top"?"bottom":"top"});h[j[1]]+=(a[j[0]]===j[1]?1:-1)*(v[j[3]]-m);h[j[2]]-=r;a.string()!==c.string()&&(d!==l.top||i!==l.left)&&g.update(a,f);i=l.left;d=l.top;c=a}}var g=this,f=a.options.style.tip,n=a.elements,k=n.tooltip,e=n.wrapper;
  d=0;i=0;c={string:function(){}};var v={width:f.width,height:f.height},l={},t=f.border||0,r=f.adjust||0,h=f.method||FALSE;g.corner=NULL;g.mimic=NULL;g.checks={"^position.my|style.tip.(corner|mimic|method|border)":function(){t=f.border;g.detectCorner()?(g.create(),g.detectColours(),g.update()):g.tip.remove();this.get("position.target")!=="mouse"&&this.reposition()},"^style.tip.(height|width)":function(){v={width:f.width,height:f.height};g.create();g.update();a.reposition()}};b.extend(g,{init:function(){h===
  TRUE?h=b("<canvas />")[0].getContext?"canvas":b.browser.msie&&(g.mimic&&/center/i.test(g.mimic.string())||v.height!==v.width)?"vml":"polygon":h==="canvas"?h=b.browser.msie?"vml":!b("<canvas />")[0].getContext?"polygon":"canvas":h==="polygon"&&(h=b.browser.msie&&/center/i.test(g.mimic.string())?"vml":h);g.detectCorner()&&(g.create(),g.detectColours(),g.update(),k.bind("tooltipmove.tip",j));return g},detectCorner:function(){var c=f.corner,d=f.mimic||c,e=a.options.position.at,h=a.options.position.my;
  h.string&&(h=h.string());if(c===FALSE||h===FALSE&&e===FALSE)return FALSE;else{if(c===TRUE)g.corner=new b.fn.qtip.plugins.Corner(h);else if(!c.string)g.corner=new b.fn.qtip.plugins.Corner(c);if(d===TRUE)g.mimic=new b.fn.qtip.plugins.Corner(h);else if(!d.string)g.mimic=new b.fn.qtip.plugins.Corner(d),g.mimic.precedance=g.corner.precedance}return g.corner.string()!=="centercenter"},detectColours:function(){var a=n.tip,c=g.mimic[g.mimic.precedance],d="border-"+c+"-color";l.fill=a.css("background-color",
  "").css("border","").css("background-color")||"transparent";l.border=a.get(0).style?a.get(0).style["border"+c.charAt(0)+c.substr(1)+"Color"]:a.css(d)||"transparent";if(/rgba?\(0, 0, 0(, 0)?\)|transparent/i.test(l.fill))l.fill=e.css(t?"background-color":d);if(!l.border||/rgba?\(0, 0, 0(, 0)?\)|transparent/i.test(l.border))l.border=e.css(d)||l.fill;b("*",a).add(a).css("background-color","transparent").css("border",0)},create:function(){var a=v.width,c=v.height;n.tip&&n.tip.remove();n.tip=b('<div class="ui-tooltip-tip ui-widget-content"></div>').css(v).prependTo(k);
  switch(h){case "canvas":n.tip.append('<canvas height="'+c+'" width="'+a+'" />');break;case "vml":n.tip.html('<vml:shape coordorigin="0 0" coordsize="'+a+" "+c+'" stroked="'+!!t+'"  style="behavior:url(#default#VML); display:inline-block; antialias:TRUE; position: absolute;  top:0; left:0; width:'+a+"px; height:"+c+"px; vertical-align:"+g.corner.y+';"><vml:stroke weight="'+(t-2)+'px" joinstyle="miter" miterlimit="10"  style="behavior:url(#default#VML); display:inline-block;" /></vml:shape>');break;
  case "polygon":n.tip.append('<div class="ui-tooltip-tip-inner" />').append(t?'<div class="ui-tooltip-tip-border" />':"")}return g},update:function(a,c){var d=n.tip,e=v.width,f=v.height,i=t>0?0:1,j=Math.ceil(t/2+0.5),k;c||(c=a?a:g.mimic);if(!a)a=g.corner;if(c.x==="false")c.x=a.x;if(c.y==="false")c.y=a.y;d=d.children();switch(h){case "canvas":d=d.get(0).getContext("2d");d.clearRect(0,0,3E3,3E3);d.restore();t?(k=B(c.string(),e*2,f*2),d.strokeStyle=l.border,d.lineWidth=t+1,d.lineJoin="miter",d.miterLimit=
  100,d.save(),d.translate(c.x==="left"?0:c.x==="right"?-e:-e/2,c.y==="top"?0:c.y==="bottom"?-f:-f/2)):k=B(c.string(),e,f);d.fillStyle=l.fill;for(d.miterLimit=0;i<2;i++)d.globalCompositeOperation=i&&t?"destination-in":"source-over",d.beginPath(),d.moveTo(k[0][0],k[0][1]),d.lineTo(k[1][0],k[1][1]),d.lineTo(k[2][0],k[2][1]),d.closePath(),d.fill(),i||d.stroke();break;case "vml":k=B(c.string(),e,f);i="m"+k[0][0]+","+k[0][1]+" l"+k[1][0]+","+k[1][1]+" "+k[2][0]+","+k[2][1]+" xe";d.attr({path:i,fillcolor:l.fill});
  t&&(d.children().attr("color",l.border),c.precedance==="y"?(d.css("top",(c.y==="top"?1:-1)*(t-2)),d.css("left",c.x==="left"?1:-2)):(d.css("left",(c.x==="left"?1:-1)*(t-2)),d.css("top",c.y==="top"?1:-2)));break;case "polygon":j=c.precedance==="y"?[c.x==="left"?j:c.x==="right"?-j:0,Math.floor((e>f?1.5:e<f?5:2.2)*j*(c.y==="bottom"?-1:1)*(c.x==="center"?0.8:1))]:[Math.floor((e<f?1.5:e>f?5:2.2)*j*(c.x==="right"?-1:1)*(c.y==="center"?0.9:1)),c.y==="top"?j:c.y==="bottom"?-j:0],d.removeAttr("style").each(function(a){var d=
  c.precedance==="x"?c.x==="left"?"right":"left":c.x,g=c.precedance==="y"?c.y==="top"?"bottom":"top":c.y,h=c.x==="center"?["left","right",g,f,e]:["top","bottom",d,e,f],i=l[!a&&t?"border":"fill"];a&&b(this).css({position:"absolute","z-index":1,left:j[0],top:j[1]});c.x==="center"||c.y==="center"?b(this).css("border-"+h[2],h[3]+"px solid "+i).css("border-"+h[0],Math.floor(h[4]/2)+"px dashed transparent").css("border-"+h[1],Math.floor(h[4]/2)+"px dashed transparent"):b(this).css("border-width",Math.floor(f/
  2)+"px "+Math.floor(e/2)+"px").css("border-"+d,Math.floor(e/2)+"px solid "+i).css("border-"+g,Math.floor(f/2)+"px solid "+i)})}m(a);return g},destroy:function(){n.tip&&n.tip.remove();k.unbind("tooltipmove.tip")}})}function E(a,c){var d=this,i=a.elements,m=i.tooltip;i.overlay=b("#qtip-overlay");b.extend(d,{init:function(){c=b.extend(TRUE,b.fn.qtip.plugins.modal.defaults,c);m.bind("tooltipshow.qtipmodal tooltiphide.qtipmodal",function(a,g,f){a=a.type.replace("tooltip","");b.isFunction(c[a])?c[a].call(i.overlay,
  f,g):d[a](f)});i.overlay.length||d.create();c.blur===TRUE&&i.overlay.bind("click.qtipmodal"+a.id,function(){a.hide.call(a)})},create:function(){i.overlay=b("<div />",{id:"qtip-overlay",css:{position:"absolute",top:0,left:0,display:"none"}}).appendTo(document.body);b(r).bind("resize.qtipmodal",function(){i.overlay.css({height:Math.max(b(r).height(),b(document).height()),width:Math.max(b(r).width(),b(document).width())})}).trigger("resize")},toggle:function(c){var d=i.overlay,f=a.options.show.modal.effect,
  n=c?"show":"hide";d.stop(TRUE,FALSE);b.isFunction(f)?f.call(d,c):f===FALSE?d[n]():d.fadeTo(90,c?0.7:0,function(){c||b(this).hide()})},show:function(){d.toggle(TRUE)},hide:function(){d.toggle(FALSE)},destroy:function(){var c=TRUE;b("*").each(function(){var d=b(this).data("qtip");if(d&&d.id!==a.id&&d.options.show.modal)return c=FALSE});c?(i.overlay.remove(),b(r).unbind("scroll.qtipmodal resize.qtipmodal")):i.overlay.unbind("click.qtipmodal"+a.id);m.unbind("tooltipshow.qtipmodal tooltiphide.qtipmodal")}});
  d.init()}function F(a){var c=this,d=a.elements,i=d.tooltip,m=".bgiframe-"+a.id,j="tooltipmove"+m+" tooltipshow"+m;b.extend(c,{init:function(){d.bgiframe=b('<iframe class="ui-tooltip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';"  style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0);"></iframe>');d.bgiframe.appendTo(i);i.bind(j,c.adjust)},adjust:function(){var b=a.calculate("dimensions"),c=a.plugins.tip,j=a.elements.tip,k;k=parseInt(i.css("border-left-width"),
  10);k={left:-k,top:-k};c&&j&&(c=c.corner.precedance==="x"?["width","left"]:["height","top"],k[c[1]]-=j[c[0]]());d.bgiframe.css(k).css(b)},destroy:function(){c.iframe.remove();i.unbind(j)}});c.init()}b.fn.qtip=function(a,c,d){var i=String(a).toLowerCase(),m=FALSE,j=i==="disable"?[TRUE]:b.makeArray(arguments).splice(1),g=j[j.length-1],f;if(!a&&b(this).data("qtip")||i==="api")return(f=b(this).eq(0).data("qtip"))?f.hash():s;else if("string"===typeof a)return b(this).each(function(){var a=b(this).data("qtip");
  if(!a)return TRUE;if(/option|set/.test(i)&&c)d!==s?a.set(c,d):m=a.get(c);else{if(!a.rendered&&(i==="show"||i==="toggle")){if(g.timeStamp)a.cache.event=g;a.render()}else i==="enable"&&(i="disable",j=[FALSE]);a[i]&&a[i].apply(a[i],j)}}),m!==FALSE?m:b(this);else if("object"===typeof a)return x(a),f=b.extend(TRUE,{},b.fn.qtip.defaults,a),b.fn.qtip.bind.call(this,f)};b.fn.qtip.bind=function(a){return b(this).each(function(){var c,d,i,m;function j(a){function g(){f.render(typeof a==="object"||n.show.ready);
  i.unbind(c);m.unbind(d)}if(f.cache.disabled)return FALSE;f.cache.event=b.extend({},a);n.show.delay>0?(f.timers.show=setTimeout(g,n.show.delay),c!==d&&m.bind(d,function(){clearTimeout(f.timers.show)})):g()}var g,f,n,k;g=a.id===FALSE||a.id.length<1||b("#ui-tooltip-"+a.id).length?b.fn.qtip.nextid++:a.id;k=".qtip-"+g+"-create";f=y.call(b(this),g,a);if(f===FALSE)return TRUE;n=f.options;b(this).attr("title")&&b(this).data("oldtitle",b(this).attr("title")).removeAttr("title");b.each(b.fn.qtip.plugins,function(){this.initialize===
  "initialize"&&this(f)});i=n.show.target;m=n.hide.target;c=String(n.show.event).replace(" ",k+" ")+k;d=String(n.hide.event).replace(" ",k+" ")+k;n.show.ready||n.prerender||n.show.event===FALSE?j():i.bind(c,j)})};b.each({attr:function(a){var c=b(this).data("qtip");return arguments.length===1&&a==="title"&&c&&c.rendered===TRUE?b(this).data("oldtitle"):NULL},remove:b.ui?NULL:function(a,c){this.each(function(){c||(!a||b.filter(a,[this]).length)&&b("*",this).add(this).each(function(){b(this).triggerHandler("remove")})})}},
  function(a,c){if(!c)return TRUE;var d=b.fn[a];b.fn[a]=function(){return c.apply(this,arguments)||d.apply(this,arguments)}});b.fn.qtip.nextid=0;b.fn.qtip.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");b.fn.qtip.zindex=15E3;b.fn.qtip.plugins={Corner:function(a){this.x=(String(a).replace(/middle/i,"center").match(/left|right|center/i)||["false"])[0].toLowerCase();this.y=(String(a).replace(/middle/i,"center").match(/top|bottom|center/i)||["false"])[0].toLowerCase();
  this.precedance=a.charAt(0).search(/^(t|b)/)>-1?"y":"x";this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y};this.abbreviation=function(){var a=this.x.substr(0,1),b=this.y.substr(0,1);return a===b?a:a==="c"||a!=="c"&&b!=="c"?b+a:a+b}}};b.fn.qtip.defaults={prerender:FALSE,id:FALSE,overwrite:TRUE,metadata:{type:"class"},content:{text:TRUE,attr:"title",title:{text:FALSE,button:FALSE}},position:{my:"top left",at:"bottom right",target:FALSE,container:FALSE,adjust:{x:0,y:0,mouse:TRUE,
  screen:FALSE,resize:TRUE,effect:TRUE,offset:FALSE}},show:{target:FALSE,event:"mouseenter",effect:TRUE,delay:90,solo:FALSE,ready:FALSE},hide:{target:FALSE,event:"mouseleave",effect:TRUE,delay:0,fixed:FALSE,inactive:FALSE},style:{classes:"",widget:FALSE},events:{render:b.noop,move:b.noop,show:b.noop,hide:b.noop,focus:b.noop,blur:b.noop}};var A=b();b.fn.qtip.plugins.ajax=function(a){var b=a.plugins.ajax,d=a.options.content;if(d.ajax&&d.ajax.url)return b?b:(a.plugins.ajax=new z(a),a.plugins.ajax)};b.fn.qtip.plugins.ajax.initialize=
  "render";b.fn.qtip.plugins.ajax.sanitize=function(a){if(a.content!==s&&a.content.ajax!==s){if(typeof a.content.ajax!=="object")a.content.ajax={url:a.content.ajax};if(a.content.text===FALSE)a.content.text="Loading...";a.content.ajax.once=Boolean(a.content.ajax.once);a.content.ajax.preload=Boolean(a.content.ajax.preload);if(a.content.ajax.preload)a=a.content.ajax.url,b("#qtip-preload").length||b('<div id="qtip-preload" class="ui-tooltip-accessible" />').appendTo(document.body),A.length||(A=b("<div />").appendTo("#qtip-preload").load(a+
  " img"))}};b.fn.qtip.plugins.tip=function(a){var b=a.plugins.tip,d=a.options.style.tip;if(d&&d.corner)return b?b:(a.plugins.tip=new D(a),a.plugins.tip.init(),a.plugins.tip)};b.fn.qtip.plugins.tip.initialize="render";b.fn.qtip.plugins.tip.sanitize=function(a){if(a.style===s)a.style={};if(a.style.tip===s)a.style.tip={corner:TRUE};if(typeof a.style.tip!=="object")a.style.tip={corner:a.style.tip||TRUE};if(typeof a.style.tip.method!=="string")a.style.tip.method=TRUE;if(!/canvas|polygon/i.test(a.style.tip.method))a.style.tip.method=
  TRUE;if(typeof a.style.tip.width!=="number")a.style.tip.width=12;if(typeof a.style.tip.height!=="number")a.style.tip.height=12;if(typeof a.style.tip.border!=="number")a.style.tip.border=0};b.fn.qtip.plugins.imagemap=function(a,c){function d(a,b){for(var d=0,f=1,g=1,h=0,i=0,j=a.width,k=a.height;j>0&&k>0&&f>0&&g>0;){j=Math.floor(j/2);k=Math.floor(k/2);c.x==="left"?f=j:c.x==="right"?f=a.width-j:f+=Math.floor(j/2);c.y==="top"?g=k:c.y==="bottom"?g=a.height-k:g+=Math.floor(k/2);for(d=b.length;d--;){if(b.length<
  2)break;h=b[d][0]-a.offset.left;i=b[d][1]-a.offset.top;(c.x==="left"&&h>=f||c.x==="right"&&h<=f||c.x==="center"&&(h<f||h>a.width-f)||c.y==="top"&&i>=g||c.y==="bottom"&&i<=g||c.y==="center"&&(i<g||i>a.height-g))&&b.splice(d,1)}}return{left:b[0][0],top:b[0][1]}}var i=a.attr("shape").toLowerCase(),m=a.attr("coords").split(","),j=[],g=b('img[usemap="#'+a.parent("map").attr("name")+'"]').offset(),f={width:0,height:0,offset:{top:1E10,right:0,bottom:0,left:1E10}},n=0,k=0;if(i==="poly")for(n=m.length;n--;){k=
  [parseInt(m[--n],10),parseInt(m[n+1],10)];if(k[0]>f.offset.right)f.offset.right=k[0];if(k[0]<f.offset.left)f.offset.left=k[0];if(k[1]>f.offset.bottom)f.offset.bottom=k[1];if(k[1]<f.offset.top)f.offset.top=k[1];j.push(k)}else j=b.map(m,function(a){return parseInt(a,10)});switch(i){case "rect":f={width:Math.abs(j[2]-j[0]),height:Math.abs(j[3]-j[1]),offset:{left:j[0],top:j[1]}};break;case "circle":f={width:j[2]+2,height:j[2]+2,offset:{left:j[0],top:j[1]}};break;case "poly":b.extend(f,{width:Math.abs(f.offset.right-
  f.offset.left),height:Math.abs(f.offset.bottom-f.offset.top)}),f.offset=c.string()==="centercenter"?{left:f.offset.left+f.width/2,top:f.offset.top+f.height/2}:d(f,j.slice()),f.width=f.height=0}f.offset.left+=g.left;f.offset.top+=g.top;return f};b.fn.qtip.plugins.modal=function(a){var b=a.plugins.modal,d=a.options.show.modal;if(b)return b;else if(typeof d==="object")return a.plugins.modal=new E(a,d),a.plugins.modal};b.fn.qtip.plugins.modal.initialize="render";b.fn.qtip.plugins.modal.sanitize=function(a){if(a.show&&
  a.show.modal!==s&&typeof a.show.modal!=="object")a.show.modal={}};b.fn.qtip.plugins.modal.defaults={effect:TRUE,blur:TRUE};b.fn.qtip.plugins.bgiframe=function(a){if(!b.browser.msie||!/^6\.[0-9]/.test(b.browser.version)||!b("select, object").length)return FALSE;var c=a.plugins.bgiframe;return c?c:(a.plugins.bgiframe=new F(a),a.plugins.bgiframe)};b.fn.qtip.plugins.bgiframe.initialize="render"})(jQuery,window);define("ext/jquery.qtip.min",function(){});
  define("modules/tooltip.snapshot",["jquery","ext/jquery.qtip.min"],function(b){function r(b){var r="<div>"+GitPHP.Resources.Snapshot+": ",w=!0,y=GitPHP.Snapshot.Formats,z;for(z in y)y.hasOwnProperty(z)&&(w||(r+=" | "),r+='<a href="'+b+"&fmt="+z+'">'+y[z]+"</a>",w=!1);r+="</div>";return r}return function(s){s.each(function(){var s=b(this),w=s.attr("href"),w={content:{text:r(w)},show:{event:"click"},hide:{fixed:!0,delay:150},style:{classes:"ui-tooltip-light ui-tooltip-shadow"},position:{adjust:{screen:!0}}};
  s.qtip(w);s.click(function(){return!1})})}});define("modules/geturl",[],function(){return function(){var b=window.location.href.match(/^([^\?]+\/)/);return b?b[1]:null}});
  define("modules/tooltip.commit",["jquery","modules/geturl","modules/getproject","ext/jquery.qtip.min"],function(b,r,s){var x=null,w=null;return function(y){x=r();w=s();y.each(function(){var r=b(this),s;(s=(s=r.attr("href").match(/h=([0-9a-fA-F]{40}|HEAD)/))?s[1]:null)&&r.qtip({content:{text:'<img src="'+x+'images/tooltip-loader.gif" alt="'+GitPHP.Resources.Loading+'" />',ajax:{url:"index.php",data:{p:w,a:"commit",o:"jstip",h:s},type:"GET"}},style:{classes:"ui-tooltip-light ui-tooltip-shadow"},position:{adjust:{screen:!0}}})})}});
  define("modules/tooltip.tag",["jquery","modules/geturl","modules/getproject","ext/jquery.qtip.min"],function(b,r,s){var x=null,w=null;return function(y){x=r();w=s();y.each(function(){var r=b(this),s;(s=(s=r.attr("href").match(/h=([^&]+)/))?s[1]:null)&&r.qtip({content:{text:'<img src="'+x+'images/tooltip-loader.gif" alt="'+GitPHP.Resources.Loading+'" />',ajax:{url:"index.php",data:{p:w,a:"tag",o:"jstip",h:s},type:"GET"}},style:{classes:"ui-tooltip-light ui-tooltip-shadow"},position:{adjust:{screen:!0}}})})}});
  define("common",["jquery","modules/getproject","modules/lang","modules/tooltip.snapshot"],function(b,r,s,x){b(function(){s(b("div.lang_select"));x(b("a.snapshotTip"))});r()&&require(["jquery","modules/tooltip.commit","modules/tooltip.tag"],function(b,r,s){b(function(){r(b("a.commitTip"));s(b("a.tagTip"))})})});