function xAppendChild(B,A){if(B.appendChild){return B.appendChild(A)}else{return null}}function xCreateElement(A){if(document.createElement){return document.createElement(A)}else{return null}}function xFirstChild(B,A){if(!(B=xGetElementById(B))){return}var C=B?B.firstChild:null;if(A){while(C&&C.nodeName.toLowerCase()!=A.toLowerCase()){C=C.nextSibling}}else{while(C&&C.nodeType!=1){C=C.nextSibling}}return C}function xGetComputedStyle(B,D,I){var H,C="undefined";var A=document.defaultView;if(A&&A.getComputedStyle){H=A.getComputedStyle(B,"");if(H){C=H.getPropertyValue(D)}}else{if(B.currentStyle){var E,F,G=D.split("-");D=G[0];for(E=1;E<G.length;++E){F=G[E].charAt(0);D+=G[E].replace(F,F.toUpperCase())}C=B.currentStyle[D]}else{return null}}return I?(parseInt(C)||0):C}function xGetElementsByAttribute(A,E,C,F){var G,D,I=new Array(),H=new RegExp(C,"i");D=xGetElementsByTagName(A);for(var B=0;B<D.length;++B){G=D[B].getAttribute(E);if(!G){G=D[B][E]}if(typeof(G)=="string"&&G.search(H)!=-1){I[I.length]=D[B];if(F){F(D[B])}}}return I}function xGetElementsByClassName(H,G,B,F){var E=new Array();var C=new RegExp("\\b"+H+"\\b","i");var D=xGetElementsByTagName(B,G);for(var A=0;A<D.length;++A){if(D[A].className&&D[A].className.search(C)!=-1){E[E.length]=D[A];if(F){F(D[A])}}}return E}function xGetElementsByTagName(A,C){var B=null;A=A||"*";C=C||document;if(C.getElementsByTagName){B=C.getElementsByTagName(A);if(A=="*"&&(!B||!B.length)){B=C.all}}else{if(A=="*"){B=C.all}else{if(C.all&&C.all.tags){B=C.all.tags(A)}}}return B||new Array()}function xInnerHtml(C,B){if(!(C=xGetElementById(C))||!xStr(C.innerHTML)){return null}var A=C.innerHTML;if(xStr(B)){C.innerHTML=B}return A}xLibrary={version:"4.06",license:"GNU LGPL",url:"http://cross-browser.com/"};function xNextSib(C,A){if(!(C=xGetElementById(C))){return}var B=C?C.nextSibling:null;if(A){while(B&&B.nodeName.toLowerCase()!=A.toLowerCase()){B=B.nextSibling}}else{while(B&&B.nodeType!=1){B=B.nextSibling}}return B}function xParentNode(A,B){while(A&&B--){A=A.parentNode}return A}function xPrevSib(C,A){if(!(C=xGetElementById(C))){return}var B=C?C.previousSibling:null;if(A){while(B&&B.nodeName.toLowerCase()!=A.toLowerCase()){B=B.previousSibling}}else{while(B&&B.nodeType!=1){B=B.previousSibling}}return B}function xWalkEleTree(G,D,E,B,A){if(typeof B=="undefined"){B=0}if(typeof A=="undefined"){A=0}var C=D(G,B,A,E);if(!C){return 0}if(C==1){for(var F=G.firstChild;F;F=F.nextSibling){if(F.nodeType==1){if(!B){++A}if(!xWalkEleTree(F,D,E,B+1,A)){return 0}}}}return 1}function xWalkTree(C,A){A(C);for(var B=C.firstChild;B;B=B.nextSibling){if(B.nodeType==1){xWalkTree(B,A)}}};
