jQuery.iUtil={getPosition:function(N){var K=0;var L=0;var M=N.style;var O=false;if(jQuery(N).css("display")=="none"){var J=M.visibility;var P=M.position;O=true;M.visibility="hidden";M.display="block";M.position="absolute"}var I=N;while(I){K+=I.offsetLeft+(I.currentStyle&&!jQuery.browser.opera?parseInt(I.currentStyle.borderLeftWidth)||0:0);L+=I.offsetTop+(I.currentStyle&&!jQuery.browser.opera?parseInt(I.currentStyle.borderTopWidth)||0:0);I=I.offsetParent}I=N;while(I&&I.tagName&&I.tagName.toLowerCase()!="body"){K-=I.scrollLeft||0;L-=I.scrollTop||0;I=I.parentNode}if(O==true){M.display="none";M.position=P;M.visibility=J}return{x:K,y:L}},getPositionLite:function(E){var F=0,D=0;while(E){F+=E.offsetLeft||0;D+=E.offsetTop||0;E=E.offsetParent}return{x:F,y:D}},getSize:function(N){var K=jQuery.css(N,"width");var P=jQuery.css(N,"height");var O=0;var L=0;var M=N.style;if(jQuery(N).css("display")!="none"){O=N.offsetWidth;L=N.offsetHeight}else{var J=M.visibility;var I=M.position;M.visibility="hidden";M.display="block";M.position="absolute";O=N.offsetWidth;L=N.offsetHeight;M.display="none";M.position=I;M.visibility=J}return{w:K,h:P,wb:O,hb:L}},getSizeLite:function(B){return{wb:B.offsetWidth||0,hb:B.offsetHeight||0}},getClient:function(E){var F,G,H;if(E){G=E.clientWidth;F=E.clientHeight}else{H=document.documentElement;G=window.innerWidth||self.innerWidth||(H&&H.clientWidth)||document.body.clientWidth;F=window.innerHeight||self.innerHeight||(H&&H.clientHeight)||document.body.clientHeight}return{w:G,h:F}},getScroll:function(J){var M=0,H=0,I=0,L=0,N=0,K=0;if(J&&J.nodeName.toLowerCase()!="body"){M=J.scrollTop;H=J.scrollLeft;I=J.scrollWidth;L=J.scrollHeight;N=0;K=0}else{if(document.documentElement){M=document.documentElement.scrollTop;H=document.documentElement.scrollLeft;I=document.documentElement.scrollWidth;L=document.documentElement.scrollHeight}else{if(document.body){M=document.body.scrollTop;H=document.body.scrollLeft;I=document.body.scrollWidth;L=document.body.scrollHeight}}N=self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth||0;K=self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight||0}return{t:M,l:H,w:I,h:L,iw:N,ih:K}},getMargins:function(J,N){var L=jQuery(J);var M=L.css("marginTop")||"";var K=L.css("marginRight")||"";var I=L.css("marginBottom")||"";var H=L.css("marginLeft")||"";if(N){return{t:parseInt(M)||0,r:parseInt(K)||0,b:parseInt(I)||0,l:parseInt(H)}}else{return{t:M,r:K,b:I,l:H}}},getPadding:function(J,N){var L=jQuery(J);var M=L.css("paddingTop")||"";var K=L.css("paddingRight")||"";var I=L.css("paddingBottom")||"";var H=L.css("paddingLeft")||"";if(N){return{t:parseInt(M)||0,r:parseInt(K)||0,b:parseInt(I)||0,l:parseInt(H)}}else{return{t:M,r:K,b:I,l:H}}},getBorder:function(J,N){var L=jQuery(J);var M=L.css("borderTopWidth")||"";var K=L.css("borderRightWidth")||"";var I=L.css("borderBottomWidth")||"";var H=L.css("borderLeftWidth")||"";if(N){return{t:parseInt(M)||0,r:parseInt(K)||0,b:parseInt(I)||0,l:parseInt(H)||0}}else{return{t:M,r:K,b:I,l:H}}},getPointer:function(E){var F=E.pageX||(E.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft))||0;var D=E.pageY||(E.clientY+(document.documentElement.scrollTop||document.body.scrollTop))||0;return{x:F,y:D}},traverseDOM:function(C,D){D(C);C=C.firstChild;while(C){jQuery.iUtil.traverseDOM(C,D);C=C.nextSibling}},purgeEvents:function(B){jQuery.iUtil.traverseDOM(B,function(A){for(var D in A){if(typeof A[D]==="function"){A[D]=null}}})},centerEl:function(H,E){var G=jQuery.iUtil.getScroll();var F=jQuery.iUtil.getSize(H);if(!E||E=="vertically"){jQuery(H).css({top:G.t+((Math.max(G.h,G.ih)-G.t-F.hb)/2)+"px"})}if(!E||E=="horizontally"){jQuery(H).css({left:G.l+((Math.max(G.w,G.iw)-G.l-F.wb)/2)+"px"})}},fixPNG:function(F,H){var G=jQuery('img[@src*="png"]',F||document),E;G.each(function(){E=this.src;this.src=H;this.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+E+"')"})}};[].indexOf||(Array.prototype.indexOf=function(F,H){H=(H==null)?0:H;var G=this.length;for(var E=H;E<G;E++){if(this[E]==F){return E}}return -1});