function __ginit() { if ($_w) return; $_w = window; $_d = document; $_b = document.body; }
function _ac(par)
{ for (a=1,aa=arguments.length; a<aa; a++) {_ge(par).appendChild(_ge(arguments[a])); } }
function _ac_index(par, index) {
var max_index = _ge(par).childNodes.length - 1;
if (max_index < 0) { max_index = 0; }
for (var a=2, aa=arguments.length; a<aa; a++) {
if (index <= max_index) {
var ref_child = _ge(par).childNodes[index];
_ge(par).insertBefore(_ge(arguments[a]), ref_child);
} else { _ge(par).appendChild(_ge(arguments[a])); } } }
function _ce(type, props) { __ginit(); var e=$_d.createElement(type); if (!e) return false;
for (p in props) e[p]=props[p]; return e; }
function _ce_html(html) { __ginit();var c = _ce("div");_html(c, html);return c.firstChild; }
function _check(o) { _ge(o).checked = true; }
function _cookie(n, v, e) { if (v) {
var d = (new Date).getTime();
document.cookie=n+"="+v+";"+(e?"expires="+(new Date(d+e).toGMTString()):""); }
else { var c = $_d.cookie;var p = c.indexOf(n+"=");if (p != -1) {var e=c.indexOf(";",p);
return c.substring(p+n.length+1,(e==-1?c.length:e)); } else { return ''; } } }
function _cssProp(elem, prop, use_int) {var s, p = 'undefined';var dv = document.defaultView;
if(dv && dv.getComputedStyle) { s = dv.getComputedStyle(elem,'');
if (s) p = s.getPropertyValue(prop); } else if (elem.currentStyle) {
// convert css property name to object property name for IE
var a = prop.split('-'); prop = a[0]; for (var i=1; i<a.length; ++i) { c = a[i].charAt(0);
prop += a[i].replace(c, c.toUpperCase()); } p = elem.currentStyle[prop];
} else return null; return use_int ? (parseInt(p) || 0) : p; }
function _find_parent(e, f) { while (e != $_b && !f(e)) e = e.parentNode;
if (e == $_b) return null; return e; }
function _ge(obj, win) { __ginit();if (typeof obj != 'string') return obj;
if (win){d=win.document;}else{d=$_d;}return d.getElementById(obj);}
function _height(obj, h){obj = _ge(obj);if (h){obj.style.height = parseInt(h) + 'px';
}else{return obj.offsetHeight;}}
function _hide(o){var d = _ge(o);if (d) d.style.display="none";}
function _html(obj, h){obj = _ge(obj);if (typeof h != "undefined"){
obj.innerHTML = h;}else{return obj.innerHTML;}}
function _left(obj, l) {obj = _ge(obj);if (l){obj.style.left = parseInt(l) + 'px';
}else{var cl = 0;if (obj.offsetParent){while (obj.offsetParent){
cl += obj.offsetLeft;obj = obj.offsetParent;}}else{cl += obj.offsetLeft;
}return cl;}}
function _msx(e){if (window.event) return event.clientX;else return e.clientX;}
function _msy(e){if (window.event) return event.clientY;else return e.clientY;}
function _node_name(o){	return o.nodeName.toLowerCase();}
function _pd(e){if (e && e.preventDefault) e.preventDefault();
else if (window.event) window.event.returnValue = false;}
function _rc(par, chi){	par.removeChild(chi);}
function _remove(elem){	elem = _ge(elem);elem.parentNode.removeChild(elem);}
function _select(o, v){o = _ge(o);var op	= o.options;var idx	= 0;
for (i=0,ii=op.length; i<ii; i++){if (op[i].value == v){
idx = i;break;}}o.selectedIndex = idx;}
function _serialize(v){	var r = "";if (typeof v == "string" || typeof v == "number")
{if (v.replace) v=v.replace(/\"/g, '\\"');r = '"'+v+'"';
}else{var c = [];for (var i in v){c.push(i + ":" + _serialize(v[i]));}
r = "{" + c.join(",") + "}";}return r;}
function _show(o){_ge(o).style.display="";}
function _sp(e){if (e && e.stopPropagation) e.stopPropagation();
else if (window.event) window.event.cancelBubble = true;}
function _src_elem(e, n){	var o = null;if (window.event) {o=window.event.srcElement;}
else if (e) {o=e.target;}else {return null;}if (n){
o = _find_parent(o, function(x){return(_node_name(x)==n?true:false);});}
return o;}
function _style(o, st){o = _ge(o);for (s in st){o.style[s] = st[s];}}
function _top(obj, t){obj = _ge(obj);if (t){obj.style.top = parseInt(t) + 'px';}
else{var ct = 0;if (obj.offsetParent){while (obj.offsetParent)
{ct += obj.offsetTop;obj = obj.offsetParent;}}else{ct += obj.offsetTop;}
return ct;}}
function _uncheck(o){_ge(o).checked = false;}
function _v(obj, v){obj = _ge(obj);	if (typeof v != "undefined") obj.value = v;
else if (obj && obj.value) return obj.value;return '';}
function _width(obj, w){obj = _ge(obj);if (w){obj.style.width = parseInt(w) + 'px';}
else{return obj.offsetWidth;}};

$_w = null;
$_d = null;
$_b = null;
