var scrollbarOptDefault={step:10,buttonsEnable:!1,visibleOnHover:!1,isPivotDynamic:!0,pivotSize:10},spliterOptionsDefault={orientation:"vertical",limit:400,position:"30%"},postback=null,viewportWidth=null;
function setScroll(a,c,b,e){0<$("#"+c+"_track").length&&($(document).unbind("keydown"),$(document).unbind("DOMMouseScroll"),$(document).unbind("mousewheel"),$("#"+c).unbind("mouseover mouseout"),$("#"+a).unbind("mouseover mouseout"),$("#"+c+"_pivot").remove(),$("#"+c+"_track").remove());$("#"+a).height()>e?(new VortalScrollbar(document.getElementById(c),document.getElementById(a),b),recalculatePivotPosition(a,c,b)):$("#"+a).css("top","0")}
function defineContentAndScrollWidthAndPadding(a,c){var b=$("#"+c).width();$("#"+a).width();var e=$("#"+a).children(":first");0<b?e.css("padding-right",$("#"+c).width()+"px"):e.css("padding-right","0px");0<$(".ws_rc_description").length&&$(".ws_rc_description").ellipsis()}
(function(a){a.fn.ellipsis=function(){return this.each(function(){var c=a(this),b=1,e=c.attr("ellipsisfactor");null!=e&&(b=parseFloat(e));e=c.parents(".ellipsisSizeReference");if(0<e.length){var e=e.first(),p=parseInt(e.css("padding-right")),b=(e.width()-3*parseInt(c.parent().parent().css("padding-right"),10)-p)/b;c.width()>=b&&c.width(b)}})}})(jQuery);
(function(a){a.fn.fillHeight=function(){return this.each(function(){var c=a(this),b=c.parent().height(),e=0;c.siblings().each(function(){e+=a(this).height()});c.height(b-e)})}})(jQuery);
function recalculatePivotPosition(a,c,b){this.options=$.extend(scrollbarOptDefault,b);var e=b=0,p=0;null!=document.getElementById(a).style.top&&""!=document.getElementById(a).style.top&&(b=Math.floor(document.getElementById(a).style.top.replace("px","")));if(0!=b){var h=$("#"+c+"_track").height(),m=$("#"+a).height(),p=h/m*b;p<-1*(h-$("#"+c+"_pivot").height())?(e=h-$("#"+c+"_pivot").height(),$("#"+a).css("top",-1*(m-h))):e=-1*p}$("#"+c+"_pivot").css("top",e);$("#"+c).css("top","0")}
jQuery(document).ready(function(){viewportWidth=$(window).width();0<$(".ws_rc_description").length&&$(".ws_rc_description").ellipsis();0<$(".fillHeight").length&&$(".fillHeight").fillHeight()});
(function(a,c){var b=0,e=null,p=[],h=null;a.fn.split=function(m){var r,s;m=a.extend(spliterOptionsDefault,m);var g=a.extend({limit:100,orientation:"vertical",position:"50%",onDragStart:a.noop,onDragEnd:a.noop,onDrag:a.noop},m||{}),q;m=this.children();"vertical"==g.orientation&&(q="vspliter",r=m.first().addClass("left_panel"),0==a("."+q).length||a("."+q).length==c?(s=r.next().addClass("right_panel"),postback=!1):(s=r.next().next().addClass("right_panel"),postback=!0));m=this.width();this.height();
var t=b++;this.addClass("spliter_panel");var k=0==a("."+q).length||a("."+q).length==c?a("<div/>").addClass(q).mouseenter(function(){e=t}).mouseleave(function(){e=null}).insertAfter(r):a(".vspliter");q=a(r).height();var l=a(s).height();q>l?a(k).height(q):a(k).height(l);var n,d=a.extend(this,{position:function(){return"vertical"==g.orientation?function(b){if(b===c)return n;n=b;var f=k.width()/2,e=parseInt(k.css("width"),10),g=a("#ColumnOne");k.css("left",b-f+g.width()+2*e);r.width(b-f+2);s.width(d.width()-
b-f-e);s.css("left",r.width()+g.width()+(k.width()+e))}:null}(),orientation:g.orientation,limit:g.limit,isActive:function(){return e===t},destroy:function(){k.unbind("mouseenter");k.unbind("mouseleave");"vertical"==g.orientation&&(r.removeClass("left_panel"),s.removeClass("right_panel"));d.unbind("spliter.resize");p[t]=null;k.remove();for(var b=!1,c=p.length;c--;)if(null!==p[c]){b=!0;break}b||(a(document.documentElement).unbind(".spliter"),p=[])}});d.bind("spliter.resize",function(){var a=d.position();
"vertical"==d.orientation&&a>d.width()&&(a=d.width()-d.limit-1);a<d.limit&&(a=d.limit+1);d.position(a)});q=g.position.match(/^([0-9]+)(%)?$/);var f;"vertical"==g.orientation&&!1==postback&&(f=q[2]?m*+q[1]/100:g.position,f>m-g.limit&&(f=m-g.limit));f<g.limit&&(f=g.limit);d.position(f);0==p.length&&a(document.documentElement).bind("mousedown.spliter",function(b){if(null!==e)return h=p[e],a('<div class="splitterMask"></div>').insertAfter(h),"vertical"==h.orientation&&a("body").css("cursor","col-resize"),
g.onDragStart(b),!1}).bind("mouseup.spliter",function(b){h=null;a("div.splitterMask").remove();a("body").css("cursor","auto");g.onDragEnd(b)}).bind("mousemove.spliter",function(b){if(null!==h){a(".ws_ellipsis").ellipsis();var d=h.limit,c=h.offset();if("vertical"==h.orientation&&(c=b.pageX-c.left,c<=h.limit?c=h.limit+1:c>=h.width()-d&&(c=h.width()-d-1),c>h.limit&&c<h.width()-d))return h.position(c),h.find(".spliter_panel").trigger("spliter.resize"),!1;g.onDrag(b)}});p.push(d);return d}})(jQuery);
function VortalScrollbar(a,c,b){function e(a,b){if(a instanceof Array)for(var c=0;c<a.length;c++)$(a[c]).mouseover(function(){h()}),$(a[c]).mouseout(function(){m()});else $(a).mouseover(function(){h()}),$(a).mouseout(function(){m()});$(b).mouseover(function(){h()});$(b).mouseout(function(){m()})}function p(){var a=0;null!=b&&null!=b.isPivotDynamic&&b.isPivotDynamic?null!=b&&null!=b.pivotSize&&(a=n<b.pivotSize?b.pivotSize:n):null!=b&&null!=b.pivotSize&&(a=b.pivotSize);return a}function h(){null!=b&&
null!=b.visibleOnHover&&b.visibleOnHover&&$(a).css("opacity","1");$(document).keydown(function(a){var c=a.keyCode||a.which,e=r();switch(c){case 40:a.preventDefault();g(e-b.step);break;case 38:a.preventDefault();g(e+b.step);break;case 34:a.preventDefault();g(e-4*b.step);break;case 33:a.preventDefault(),g(e+4*b.step)}});-1!=navigator.userAgent.indexOf("Firefox")?$(document).bind("DOMMouseScroll",function(d){if(c instanceof Array)for(var f=0;f<c.length;f++)$(c[f]).height()>k&&(k=$(c[f]).height());else k=
$(c).height();l=null!=b&&null!=b.buttonsEnable&&b.buttonsEnable?$(a).height()-($("#"+a.id+"_up").height()+$("#"+a.id+"_down").height()):$(a).height();f=r();0<d.originalEvent.detail?(d.preventDefault(),g(f-2*b.step)):(d.preventDefault(),g(f+2*b.step))}):$(document).bind("mousewheel",function(d){if(c instanceof Array)for(var f=0;f<c.length;f++)$(c[f]).height()>k&&(k=$(c[f]).height());else k=$(c).height();l=null!=b&&null!=b.buttonsEnable&&b.buttonsEnable?$(a).height()-($("#"+a.id+"_up").height()+$("#"+
a.id+"_down").height()):$(a).height();f=r();0<d.originalEvent.wheelDelta?(d.preventDefault(),g(f+2*b.step)):(d.preventDefault(),g(f-2*b.step))})}function m(){null!=b&&null!=b.visibleOnHover&&b.visibleOnHover&&$(a).css("opacity","0");$(document).unbind("keydown");$(document).unbind("DOMMouseScroll");$(document).unbind("mousewheel")}function r(){var a=0;if(c instanceof Array)for(var b=0;b<c.length;b++)a=Math.floor($(c[b]).css("top").replace("px",""));else a=Math.floor($(c).css("top").replace("px",""));
a||(a=0);return a}function s(a){a=a.top*(k-l)/(l-n);0>a?a=0:a>k-(l-n)&&(a=k-(l-n));if(c instanceof Array)for(var b=0;b<c.length;b++)$("#"+c[b].id).css("top",-1*a);else $("#"+c.id).css("top",-1*a);$("#"+c.id).hasClass("ws_flatTree")&&$(window).trigger("scroll.split.scrolled")}function g(b){var f=b*(l-n)/(k-l);0<f?b=f=0:f<-1*(l-n)&&(b=-1*(k-(l-n)-n),f=-1*(l-n));$("#"+a.id+"_pivot").css("top",-1*f);if(c instanceof Array)for(f=0;f<c.length;f++)$(c[f]).css("top",b);else $(c).css("top",b);$("#"+c.id).hasClass("ws_flatTree")&&
$(window).trigger("scroll.split.scrolled")}function q(a){if(mouseStillDown)var c=setInterval(function(){if(mouseStillDown){var e=r();switch(a){case t.DOWN:g(e-b.step);break;case t.UP:g(e+b.step)}}else clearInterval(c)},100)}var t={UP:"up",DOWN:"down"},k=0,l=0,n=0;this.options=b=$.extend(scrollbarOptDefault,b);this.scrollBarContainerElement=a;this.mouseStillDown=!1;this.containerElement=c;this.init=$(function(){$(a).css("position","relative");$(a).css("float","left");$(a).css("height","100%");$(a).css("width",
"100%");$(a).css("opacity"," 0.9");if(null!=b&&null!=b.buttonsEnable&&b.buttonsEnable){var d=a.id+"_up";scrollUp=0<$("#"+d).length?$("#"+d):$("<input/>",{id:d,"class":"VortalScrollbar_up",type:"button"}).appendTo(a);$("#"+d).mousedown(function(a){mouseStillDown=!0;q(t.UP)});trackVerticalId=a.id+"_track";0<$("#"+trackVerticalId).length?(trackVertical=$("#"+trackVerticalId),postback=!0):(trackVertical=$("<div/>",{id:trackVerticalId,"class":"VortalScrollbar_track"}).appendTo(a),postback=!1);d=a.id+"_pivot";
pivotVertical=0<$("#"+d).length?$("#"+d):$("<div/>",{id:d,"class":"VortalScrollbar_pivot"}).appendTo(trackVertical);d=a.id+"_down";scrollDown=0<$("#"+d).length?$("#"+d):$("<input/>",{id:d,"class":"VortalScrollbar_down",type:"button"}).appendTo(a);$("#"+d).mousedown(function(a){mouseStillDown=!0;q(t.DOWN)});$(document).mouseup(function(a){mouseStillDown=!1})}else trackVerticalId=a.id+"_track",trackVertical=0<$("#"+trackVerticalId).length?$("#"+trackVerticalId):$("<div/>",{id:trackVerticalId,"class":"VortalScrollbar_track"}).appendTo(a),
d=a.id+"_pivot",pivotVertical=0<$("#"+d).length?$("#"+d):$("<div/>",{id:d,"class":"VortalScrollbar_pivot"}).appendTo(trackVertical);if(c instanceof Array)for(d=0;d<c.length;d++)$(c[d]).height()>k&&(k=$(c[d]).height());else k=$(c).height();l=null!=b&&null!=b.buttonsEnable&&b.buttonsEnable?$(a).height()-($("#"+a.id+"_up").height()+$("#"+a.id+"_down").height()):$(a).height();n=l/k*l;$("#"+a.id+"_track").css("height",l);$("#"+a.id+"_track").css("top",$("#"+a.id+"_up").height());n=p();$(pivotVertical).css("height",
n);if(c instanceof Array)for(d=0;d<c.length;d++)$(c[d]).css("position","relative");else $(c).css("position","relative");null!=b&&null!=b.buttonsEnable&&b.buttonsEnable?$("#"+a.id+"_pivot").draggable({axis:"y",containment:trackVertical,start:function(){null!=b&&null!=b.visibleOnHover&&b.visibleOnHover&&$(a).css("opacity","1")},drag:function(){null!=b&&null!=b.visibleOnHover&&b.visibleOnHover&&$(a).css("opacity","1");var c=$("#"+a.id+"_pivot").position();s(c)},stop:function(){null!=b&&null!=b.visibleOnHover&&
b.visibleOnHover&&$(a).css("opacity","0")}}):$("#"+a.id+"_pivot").draggable({axis:"y",containment:a,start:function(){null!=b&&null!=b.visibleOnHover&&b.visibleOnHover&&$(a).css("opacity","1")},drag:function(){null!=b&&null!=b.visibleOnHover&&b.visibleOnHover&&$(a).css("opacity","1");var c=$("#"+a.id+"_pivot").position();s(c)},stop:function(){null!=b&&null!=b.visibleOnHover&&b.visibleOnHover&&$(a).css("opacity","0")}});null!=b&&null!=b.visibleOnHover&&b.visibleOnHover&&$(a).css("opacity","0");!1!=
postback&&(m(),$(a).unbind("mouseover mouseout"),$(c).unbind("mouseover mouseout"));e(c,a)})};
