/* Compiled from X 4.17 by XC 1.06 on 22Sep07 */

function xColor(e,s){ if(!(e=xGetElementById(e))) return ''; var c=''; if(e.style && xDef(e.style.color)) { if(xStr(s)) e.style.color=s; c=e.style.color;} return c;}
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 xEach(c, f, s){ var l = c.length; for (var i=(s || 0); i < l; i++){ f(c[i], i, l);}};
function xAddEventListener(e,eT,eL,cap){ if(!(e=xGetElementById(e)))return; eT=eT.toLowerCase(); if(e.addEventListener)e.addEventListener(eT,eL,cap||false); else if(e.attachEvent)e.attachEvent('on'+eT,eL); else { var o=e['on'+eT]; e['on'+eT]=typeof o=='function' ? function(v){o(v);eL(v);} : eL;}}
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 xWindow(name, w, h, x, y, loc, men, res, scr, sta, too){ var e='',c=',',xf='left=',yf='top='; this.n = name; if (document.layers) {xf='screenX='; yf='screenY=';}this.f = (w?'width='+w+c:e)+(h?'height='+h+c:e)+(x>=0?xf+x+c:e)+(y>=0?yf+y+c:e)+'location='+loc+',menubar='+men+',resizable='+res+',scrollbars='+scr+',status='+sta+',toolbar='+too; this.opened = function() {return this.w && !this.w.closed;}; this.close = function() {if(this.opened()) this.w.close();}; this.focus = function() {if(this.opened()) this.w.focus();};this.load = function(sUrl) {if (this.opened()) this.w.location.href = sUrl; else this.w = window.open(sUrl,this.n,this.f); this.focus(); return false;};}


