/* Compiled from X 4.17 by XC 1.06 on 19Dec07 */
xLibrary={version:'4.17',license:'GNU LGPL',url:'http://cross-browser.com/'};function xAppendChild(oParent,oChild){if(oParent.appendChild)return oParent.appendChild(oChild);else return null;}function xCreateElement(sTag){if(document.createElement)return document.createElement(sTag);else return null;}function xFirstChild(e,t){e=xGetElementById(e);var c=e?e.firstChild:null;while(c){if(c.nodeType==1&&(!t||c.nodeName.toLowerCase()==t.toLowerCase())){break;}c=c.nextSibling;}return c;}function xGetElementById(e){if(typeof(e)=='string'){if(document.getElementById)e=document.getElementById(e);else if(document.all)e=document.all[e];else e=null;}return e;}function xGetElementsByAttribute(sTag,sAtt,sRE,fn){var a,list,found=new Array(),re=new RegExp(sRE,'i');list=xGetElementsByTagName(sTag);for(var i=0;i<list.length;++i){a=list[i].getAttribute(sAtt);if(!a){a=list[i][sAtt];}if(typeof(a)=='string'&&a.search(re)!=-1){found[found.length]=list[i];if(fn)fn(list[i]);}}return found;}function xGetElementsByClassName(c,p,t,f){var r=new Array();var re=new RegExp("(^|\\s)"+c+"(\\s|$)");var e=xGetElementsByTagName(t,p);for(var i=0;i<e.length;++i){if(re.test(e[i].className)){r[r.length]=e[i];if(f)f(e[i]);}}return r;}function xGetElementsByTagName(t,p){var list=null;t=t||'*';p=p||document;if(typeof p.getElementsByTagName!='undefined'){list=p.getElementsByTagName(t);if(t=='*'&&(!list||!list.length))list=p.all;}else{if(t=='*')list=p.all;else if(p.all&&p.all.tags)list=p.all.tags(t);}return list||new Array();}function xLoadScript(url){if(document.createElement&&document.getElementsByTagName){var s=document.createElement('script');var h=document.getElementsByTagName('head');if(s&&h.length){s.src=url;h[0].appendChild(s);}}}function xNextSib(e,t){e=xGetElementById(e);var s=e?e.nextSibling:null;while(s){if(s.nodeType==1&&(!t||s.nodeName.toLowerCase()==t.toLowerCase())){break;}s=s.nextSibling;}return s;}function xParent(e,bNode){if(!(e=xGetElementById(e)))return null;var p=null;if(!bNode&&xDef(e.offsetParent))p=e.offsetParent;else if(xDef(e.parentNode))p=e.parentNode;else if(xDef(e.parentElement))p=e.parentElement;return p;}function xParentNode(ele,n){while(ele&&n--){ele=ele.parentNode;}return ele;}function xPrevSib(e,t){e=xGetElementById(e);var s=e?e.previousSibling:null;while(s){if(s.nodeType==1&&(!t||s.nodeName.toLowerCase()==t.toLowerCase())){break;}s=s.previousSibling;}return s;}function xSmartLoad(what,url){var loadedBefore=false;var s;for(var i=0;i<xSmartLoad.list.length;i++){if(xSmartLoad.list[i].url==url){loadedBefore=true;s=xSmartLoad.list[i].node;break;}}if(document.createElement&&document.getElementsByTagName&&!loadedBefore){s=document.createElement(what);var h=document.getElementsByTagName('head');if(s&&h.length){switch(what.toUpperCase()){case'SCRIPT':s.src=url;break;case'LINK':s.rel='stylesheet';s.type='text/css';s.href=url;break;default:s=null;break;}h[0].appendChild(s);xSmartLoad.list[xSmartLoad.list.length]={url:url,node:s};}}return s;}xSmartLoad.list=[];function xSmartLoad2(what,url1,url2,url3,etc){var u,i,j,s,h,loaded,c=0,e=what.toLowerCase();if(document.createElement&&document.getElementsByTagName){h=document.getElementsByTagName('head');if(h.length&&h[0].appendChild){for(i=1;i<arguments.length;++i){loaded=false;u=arguments[i];for(j=0;j<xSmartLoad2.list.length;j++){if(xSmartLoad2.list[j]==u){loaded=true;break;}}if(!loaded){s=document.createElement(e);if(s){switch(e){case'script':s.type='text/javascript';s.src=u;break;case'link':s.rel='stylesheet';s.type='text/css';s.href=u;break;default:continue;}h[0].appendChild(s);xSmartLoad2.list[xSmartLoad2.list.length]=u;++c;}}}}}return c;}xSmartLoad2.list=[];function xSmartLoadScript(url){xSmartLoad('script',url);}