jQuery.iUtil={getPosition:function(F){var A=0;var H=0;var G=F.style;var E=false;if(jQuery(F).css("display")=="none"){var B=G.visibility;var D=G.position;E=true;G.visibility="hidden";G.display="block";G.position="absolute"}
var C=F;while(C){A+=C.offsetLeft+(C.currentStyle&&!jQuery.browser.opera?parseInt(C.currentStyle.borderLeftWidth)||0:0);H+=C.offsetTop+(C.currentStyle&&!jQuery.browser.opera?parseInt(C.currentStyle.borderTopWidth)||0:0);C=C.offsetParent}
C=F;while(C&&C.tagName&&C.tagName.toLowerCase()!="body"){A-=C.scrollLeft||0;H-=C.scrollTop||0;C=C.parentNode}
if(E==true){G.display="none";G.position=D;G.visibility=B}
return{x:A,y:H}},getPositionLite:function(B){var A=0,C=0;while(B){A+=B.offsetLeft||0;C+=B.offsetTop||0;B=B.offsetParent}
return{x:A,y:C}},getSize:function(F){var A=jQuery.css(F,"width");var D=jQuery.css(F,"height");var E=0;var H=0;var G=F.style;if(jQuery(F).css("display")!="none"){E=F.offsetWidth;H=F.offsetHeight}else{var B=G.visibility;var C=G.position;G.visibility="hidden";G.display="block";G.position="absolute";E=F.offsetWidth;H=F.offsetHeight;G.display="none";G.position=C;G.visibility=B}
return{w:A,h:D,wb:E,hb:H}},getSizeLite:function(A){return{wb:A.offsetWidth||0,hb:A.offsetHeight||0}},getClient:function(C){var B,A,D;if(C){A=C.clientWidth;B=C.clientHeight}else{D=document.documentElement;A=window.innerWidth||self.innerWidth||(D&&D.clientWidth)||document.body.clientWidth;B=window.innerHeight||self.innerHeight||(D&&D.clientHeight)||document.body.clientHeight}
return{w:A,h:B}},getScroll:function(G){var D=0,B=0,A=0,E=0,C=0,F=0;if(G&&G.nodeName.toLowerCase()!="body"){D=G.scrollTop;B=G.scrollLeft;A=G.scrollWidth;E=G.scrollHeight;C=0;F=0}else{if(document.documentElement){D=document.documentElement.scrollTop;B=document.documentElement.scrollLeft;A=document.documentElement.scrollWidth;E=document.documentElement.scrollHeight}else{if(document.body){D=document.body.scrollTop;B=document.body.scrollLeft;A=document.body.scrollWidth;E=document.body.scrollHeight}}
C=self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0;F=self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0}
return{t:D,l:B,w:A,h:E,iw:C,ih:F}},getMargins:function(G,C){var E=jQuery(G);var D=E.css("marginTop")||"";var F=E.css("marginRight")||"";var A=E.css("marginBottom")||"";var B=E.css("marginLeft")||"";if(C){return{t:parseInt(D)||0,r:parseInt(F)||0,b:parseInt(A)||0,l:parseInt(B)}}else{return{t:D,r:F,b:A,l:B}}},getPadding:function(G,C){var E=jQuery(G);var D=E.css("paddingTop")||"";var F=E.css("paddingRight")||"";var A=E.css("paddingBottom")||"";var B=E.css("paddingLeft")||"";if(C){return{t:parseInt(D)||0,r:parseInt(F)||0,b:parseInt(A)||0,l:parseInt(B)}}else{return{t:D,r:F,b:A,l:B}}},getBorder:function(G,C){var E=jQuery(G);var D=E.css("borderTopWidth")||"";var F=E.css("borderRightWidth")||"";var A=E.css("borderBottomWidth")||"";var B=E.css("borderLeftWidth")||"";if(C){return{t:parseInt(D)||0,r:parseInt(F)||0,b:parseInt(A)||0,l:parseInt(B)||0}}else{return{t:D,r:F,b:A,l:B}}},getPointer:function(B){var A=B.pageX||(B.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft))||0;var C=B.pageY||(B.clientY+(document.documentElement.scrollTop||document.body.scrollTop))||0;return{x:A,y:C}},traverseDOM:function(A,B){B(A);A=A.firstChild;while(A){jQuery.iUtil.traverseDOM(A,B);A=A.nextSibling}},purgeEvents:function(A){jQuery.iUtil.traverseDOM(A,function(C){for(var B in C){if(typeof C[B]==="function"){C[B]=null}}})},centerEl:function(D,C){var A=jQuery.iUtil.getScroll();var B=jQuery.iUtil.getSize(D);if(!C||C=="vertically"){jQuery(D).css({top:A.t+((Math.max(A.h,A.ih)-A.t-B.hb)/2)+"px"})}
if(!C||C=="horizontally"){jQuery(D).css({left:A.l+((Math.max(A.w,A.iw)-A.l-B.wb)/2)+"px"})}},fixPNG:function(B,D){var A=jQuery('img[@src*="png"]',B||document),C;A.each(function(){C=this.src;this.src=D;this.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+C+"')"})}};[].indexOf||(Array.prototype.indexOf=function(B,D){D=(D==null)?0:D;var A=this.length;for(var C=D;C<A;C++){if(this[C]==B){return C}}
return-1});jQuery.fxCheckTag=function(A){if(/^tr$|^td$|^tbody$|^caption$|^thead$|^tfoot$|^col$|^colgroup$|^th$|^body$|^header$|^script$|^frame$|^frameset$|^option$|^optgroup$|^meta$/i.test(A.nodeName)){return false}else{return true}};jQuery.fx.destroyWrapper=function(C,A){var D=C.firstChild;var B=D.style;B.position=A.position;B.marginTop=A.margins.t;B.marginLeft=A.margins.l;B.marginBottom=A.margins.b;B.marginRight=A.margins.r;B.top=A.top+"px";B.left=A.left+"px";C.parentNode.insertBefore(D,C);C.parentNode.removeChild(C)};jQuery.fx.buildWrapper=function(E){if(!jQuery.fxCheckTag(E)){return false}
var K=jQuery(E);var I=E.style;var F=false;if(K.css("display")=="none"){oldVisibility=K.css("visibility");K.css("visibility","hidden").show();F=true}
var C={};C.position=K.css("position");C.sizes=jQuery.iUtil.getSize(E);C.margins=jQuery.iUtil.getMargins(E);var D=E.currentStyle?E.currentStyle.styleFloat:K.css("float");C.top=parseInt(K.css("top"))||0;C.left=parseInt(K.css("left"))||0;var L="w_"+parseInt(Math.random()*10000);var G=document.createElement(/^img$|^br$|^input$|^hr$|^select$|^textarea$|^object$|^iframe$|^button$|^form$|^table$|^ul$|^dl$|^ol$/i.test(E.nodeName)?"div":E.nodeName);jQuery.attr(G,"id",L);var J=jQuery(G).addClass("fxWrapper");var A=G.style;var H=0;var B=0;if(C.position=="relative"||C.position=="absolute"){H=C.top;B=C.left}
A.top=H+"px";A.left=B+"px";A.position=C.position!="relative"&&C.position!="absolute"?"relative":C.position;A.height=C.sizes.hb+"px";A.width=C.sizes.wb+"px";A.marginTop=C.margins.t;A.marginRight=C.margins.r;A.marginBottom=C.margins.b;A.marginLeft=C.margins.l;A.overflow="hidden";if(jQuery.browser.msie){A.styleFloat=D}else{A.cssFloat=D}
if(jQuery.browser=="msie"){I.filter="alpha(opacity="+0.999*100+")"}
I.opacity=0.999;E.parentNode.insertBefore(G,E);G.appendChild(E);I.marginTop="0px";I.marginRight="0px";I.marginBottom="0px";I.marginLeft="0px";I.position="absolute";I.listStyle="none";I.top="0px";I.left="0px";if(F){K.hide();I.visibility=oldVisibility}
return{oldStyle:C,wrapper:jQuery(G)}};jQuery.fx.namedColors={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]};jQuery.fx.parseColor=function(B,A){if(jQuery.fx.namedColors[B]){return{r:jQuery.fx.namedColors[B][0],g:jQuery.fx.namedColors[B][1],b:jQuery.fx.namedColors[B][2]}}else{if(result=/^rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)$/.exec(B)){return{r:parseInt(result[1]),g:parseInt(result[2]),b:parseInt(result[3])}}else{if(result=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)$/.exec(B)){return{r:parseFloat(result[1])*2.55,g:parseFloat(result[2])*2.55,b:parseFloat(result[3])*2.55}}else{if(result=/^#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])$/.exec(B)){return{r:parseInt("0x"+result[1]+result[1]),g:parseInt("0x"+result[2]+result[2]),b:parseInt("0x"+result[3]+result[3])}}else{if(result=/^#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/.exec(B)){return{r:parseInt("0x"+result[1]),g:parseInt("0x"+result[2]),b:parseInt("0x"+result[3])}}else{return A==true?false:{r:255,g:255,b:255}}}}}}};jQuery.fx.cssProps={borderBottomWidth:1,borderLeftWidth:1,borderRightWidth:1,borderTopWidth:1,bottom:1,fontSize:1,height:1,left:1,letterSpacing:1,lineHeight:1,marginBottom:1,marginLeft:1,marginRight:1,marginTop:1,maxHeight:1,maxWidth:1,minHeight:1,minWidth:1,opacity:1,outlineOffset:1,outlineWidth:1,paddingBottom:1,paddingLeft:1,paddingRight:1,paddingTop:1,right:1,textIndent:1,top:1,width:1,zIndex:1};jQuery.fx.colorCssProps={backgroundColor:1,borderBottomColor:1,borderLeftColor:1,borderRightColor:1,borderTopColor:1,color:1,outlineColor:1};jQuery.fx.cssSides=["Top","Right","Bottom","Left"];jQuery.fx.cssSidesEnd={borderWidth:["border","Width"],borderColor:["border","Color"],margin:["margin",""],padding:["padding",""]};jQuery.fn.extend({pause:function(A,B){return this.queue(function(){var C=jQuery.speed(A,B);var D=new jQuery.pause(this,C)})},stop:function(A){return this.each(function(){if(this.animationHandler){jQuery.stopAnim(this,A)}})},stopAll:function(A){return this.each(function(){if(this.animationHandler){jQuery.stopAnim(this,A)}
if(this.queue&&this.queue.fx){this.queue.fx=[]}})}});jQuery.extend({pause:function(C,B){var D=this,A;D.step=function(){if(jQuery.isFunction(B.complete)){B.complete.apply(C)}};D.timer=setInterval(function(){D.step()},B.duration);C.animationHandler=D},easing:{linear:function(C,E,A,D,B){return((-Math.cos(C*Math.PI)/2)+0.5)*D+A}},fxe:function(C,O,B){var I=this,M;var L=C.style;var G=jQuery.css(C,"overflow");var J=jQuery.css(C,"display");var H={};I.startTime=(new Date()).getTime();O.easing=O.easing&&jQuery.easing[O.easing]?O.easing:"linear";I.getValues=function(V,Q){if(jQuery.fx.cssProps[V]){if(Q=="show"||Q=="hide"||Q=="toggle"){if(!C.orig){C.orig={}}
var P=parseFloat(jQuery.curCSS(C,V));C.orig[V]=P&&P>-10000?P:(parseFloat(jQuery.css(C,V))||0);Q=Q=="toggle"?(J=="none"?"show":"hide"):Q;O[Q]=true;H[V]=Q=="show"?[0,C.orig[V]]:[C.orig[V],0];if(V!="opacity"){L[V]=H[V][0]+(V!="zIndex"&&V!="fontWeight"?"px":"")}else{jQuery.attr(L,"opacity",H[V][0])}}else{H[V]=[parseFloat(jQuery.curCSS(C,V)),parseFloat(Q)||0]}}else{if(jQuery.fx.colorCssProps[V]){H[V]=[jQuery.fx.parseColor(jQuery.curCSS(C,V)),jQuery.fx.parseColor(Q)]}else{if(/^margin$|padding$|border$|borderColor$|borderWidth$/i.test(V)){var S=Q.replace(/\s+/g," ").replace(/rgb\s*\(\s*/g,"rgb(").replace(/\s*,\s*/g,",").replace(/\s*\)/g,")").match(/([^\s]+)/g);switch(V){case"margin":case"padding":case"borderWidth":case"borderColor":S[3]=S[3]||S[1]||S[0];S[2]=S[2]||S[0];S[1]=S[1]||S[0];for(var U=0;U<jQuery.fx.cssSides.length;U++){var R=jQuery.fx.cssSidesEnd[V][0]+jQuery.fx.cssSides[U]+jQuery.fx.cssSidesEnd[V][1];H[R]=V=="borderColor"?[jQuery.fx.parseColor(jQuery.curCSS(C,R)),jQuery.fx.parseColor(S[U])]:[parseFloat(jQuery.curCSS(C,R)),parseFloat(S[U])]}
break;case"border":for(var U=0;U<S.length;U++){var W=parseFloat(S[U]);var X=!isNaN(W)?"Width":(!/transparent|none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset/i.test(S[U])?"Color":false);if(X){for(var T=0;T<jQuery.fx.cssSides.length;T++){R="border"+jQuery.fx.cssSides[T]+X;H[R]=X=="Color"?[jQuery.fx.parseColor(jQuery.curCSS(C,R)),jQuery.fx.parseColor(S[U])]:[parseFloat(jQuery.curCSS(C,R)),W]}}else{L.borderStyle=S[U]}}
break}}else{L[V]=Q}}}
return false};for(p in B){if(p=="style"){var A=jQuery.parseStyle(B[p]);for(np in A){this.getValues(np,A[np])}}else{if(p=="className"){if(document.styleSheets){for(var E=0;E<document.styleSheets.length;E++){var F=document.styleSheets[E].cssRules||document.styleSheets[E].rules||null;if(F){for(var D=0;D<F.length;D++){if(F[D].selectorText=="."+B[p]){var K=new RegExp("."+B[p]+" {");var N=F[D].style.cssText;var A=jQuery.parseStyle(N.replace(K,"").replace(/}/g,""));for(np in A){this.getValues(np,A[np])}}}}}}}else{this.getValues(p,B[p])}}}
L.display=J=="none"?"block":J;L.overflow="hidden";I.step=function(){var Q=(new Date()).getTime();if(Q>O.duration+I.startTime){clearInterval(I.timer);I.timer=null;for(R in H){if(R=="opacity"){jQuery.attr(L,"opacity",H[R][1])}else{if(typeof H[R][1]=="object"){L[R]="rgb("+H[R][1].r+","+H[R][1].g+","+H[R][1].b+")"}else{L[R]=H[R][1]+(R!="zIndex"&&R!="fontWeight"?"px":"")}}}
if(O.hide||O.show){for(var R in C.orig){if(R=="opacity"){jQuery.attr(L,R,C.orig[R])}else{L[R]=""}}}
L.display=O.hide?"none":(J!="none"?J:"block");L.overflow=G;C.animationHandler=null;if(jQuery.isFunction(O.complete)){O.complete.apply(C)}}else{var T=Q-this.startTime;var S=T/O.duration;for(R in H){if(typeof H[R][1]=="object"){L[R]="rgb("+parseInt(jQuery.easing[O.easing](S,T,H[R][0].r,(H[R][1].r-H[R][0].r),O.duration))+","+parseInt(jQuery.easing[O.easing](S,T,H[R][0].g,(H[R][1].g-H[R][0].g),O.duration))+","+parseInt(jQuery.easing[O.easing](S,T,H[R][0].b,(H[R][1].b-H[R][0].b),O.duration))+")"}else{var P=jQuery.easing[O.easing](S,T,H[R][0],(H[R][1]-H[R][0]),O.duration);if(R=="opacity"){jQuery.attr(L,"opacity",P)}else{L[R]=P+(R!="zIndex"&&R!="fontWeight"?"px":"")}}}}};I.timer=setInterval(function(){I.step()},13);C.animationHandler=I},stopAnim:function(B,A){if(A){B.animationHandler.startTime-=100000000}else{window.clearInterval(B.animationHandler.timer);B.animationHandler=null;jQuery(B).dequeue("fx")}}});jQuery.parseStyle=function(B){var C={};if(typeof B=="string"){B=B.toLowerCase().split(";");for(var A=0;A<B.length;A++){rule=B[A].split(":");if(rule.length==2){C[jQuery.trim(rule[0].replace(/\-(\w)/g,function(D,E){return E.toUpperCase()}))]=jQuery.trim(rule[1])}}}
return C};jQuery.iTooltip={current:null,focused:false,oldTitle:null,focus:function(A){jQuery.iTooltip.focused=true;jQuery.iTooltip.show(A,this,true)},hidefocused:function(A){if(jQuery.iTooltip.current!=this){return}
jQuery.iTooltip.focused=false;jQuery.iTooltip.hide(A,this)},show:function(C,A,B){if(jQuery.iTooltip.current!=null){return}
if(!A){A=this}
jQuery.iTooltip.current=A;pos=jQuery.extend(jQuery.iUtil.getPosition(A),jQuery.iUtil.getSize(A));jEl=jQuery(A);var D=jEl.attr("tooltip");if(D){jQuery.iTooltip.oldTitle=D;jEl.attr("title","");jQuery("#tooltipTitle").html(D);helper=jQuery("#tooltipHelper");if(A.tooltipCFG.className){helper.get(0).className=A.tooltipCFG.className}else{helper.get(0).className=""}
helperSize=jQuery.iUtil.getSize(helper.get(0));filteredPosition=B&&A.tooltipCFG.position=="mouse"?"bottom":A.tooltipCFG.position;switch(filteredPosition){case"top":ny=pos.y-helperSize.hb;nx=pos.x;break;case"left":ny=pos.y;nx=pos.x-helperSize.wb;break;case"right":ny=pos.y;nx=pos.x+pos.wb;break;case"mouse":jQuery("body").bind("mousemove",jQuery.iTooltip.mousemove);pointer=jQuery.iUtil.getPointer(C);ny=pointer.y+15;nx=pointer.x+15;break;default:ny=pos.y+pos.hb;nx=pos.x;break}
helper.css({top:ny+"px",left:nx+"px"});if(A.tooltipCFG.delay==false){helper.show()}else{helper.fadeIn(A.tooltipCFG.delay)}
if(A.tooltipCFG.onShow){A.tooltipCFG.onShow.apply(A)}
jEl.bind("mouseout",jQuery.iTooltip.hide).bind("blur",jQuery.iTooltip.hidefocused)}},mousemove:function(A){if(jQuery.iTooltip.current==null){jQuery("body").unbind("mousemove",jQuery.iTooltip.mousemove);return}
pointer=jQuery.iUtil.getPointer(A);jQuery("#tooltipHelper").css({top:pointer.y+15+"px",left:pointer.x+15+"px"})},hide:function(B,A){if(!A){A=this}
if(jQuery.iTooltip.focused!=true&&jQuery.iTooltip.current==A){jQuery.iTooltip.current=null;jQuery("#tooltipHelper").fadeOut(1);jQuery(A).unbind("mouseout",jQuery.iTooltip.hide).unbind("blur",jQuery.iTooltip.hidefocused);if(A.tooltipCFG.onHide){A.tooltipCFG.onHide.apply(A)}
jQuery.iTooltip.oldTitle=null}},build:function(A){if(!jQuery.iTooltip.helper){jQuery("body").append('<div id="tooltipHelper"><div id="tooltipTitle"></div><div id="tooltipURL"></div></div>');jQuery("#tooltipHelper").css({position:"absolute",zIndex:3000,display:"none"});jQuery.iTooltip.helper=true}
return this.each(function(){if(jQuery.attr(this,"tooltip")){this.tooltipCFG={position:/top|bottom|left|right|mouse/.test(A.position)?A.position:"bottom",className:A.className?A.className:false,delay:A.delay?A.delay:false,onShow:A.onShow&&A.onShow.constructor==Function?A.onShow:false,onHide:A.onHide&&A.onHide.constructor==Function?A.onHide:false};var B=jQuery(this);B.bind("mouseover",jQuery.iTooltip.show);B.bind("focus",jQuery.iTooltip.focus)}})}};jQuery.fn.ToolTip=jQuery.iTooltip.build;