if (!Element){ var Element={}; Element.prototype={}; var have_prototype=0; var isie = true; String.prototype.trim = function(str) { if (!str) str = ''; if (this.length) var str = this; a = str.replace(/^s+/, ''); return a.replace(/s+$/, ''); }; } else { var have_prototype=1; var isie = false; } function select(str,refresh){ if (typeof(str) == "object"){ if (typeof(str.append) == "undefined"){ for(var j in Element.prototype){ str[j] = Element.prototype[j]; } } return str; } if (!select.cache) select.cache = {}; if (select.cache["'"+str+"'"] && !refresh) { return select.cache["'"+str+"'"]; } var return_elements = []; if (str.split(',').length > 1){ var strs = str.split(','); for (var i in strs){ if (typeof(strs[i]) == "string") return_elements = return_elements.concat(select(strs[i],refresh)); } select.cache["'"+str+"'"] = return_elements; return return_elements; } if (str.split(' ').length > 1){ var hselector = str.split(' '); return_elements = select(hselector[0],refresh); for (var i=1; i 1){ var strs = tg.split(','); for (var i in strs){ if (typeof(strs[i]) == "string") return_values = return_values.concat(this.kids(strs[i])); } return return_values; } if (result[2] == '.') var selector = 'className'; else if (result[2] == '#') var selector = 'id'; else var selector = 'tagName'; if (!result[1] || result[1] == '') var c = this.getElementsByTagName('*'); else var c = this.getElementsByTagName(result[1]); for (var i=0; i < c.length;i++) { if (selector != 'tagName') { if (c[i][selector] && ( (result[2] == '.' && have_class(c[i],result[3])) || (result[2] == '#' && c[i].toUpperCase() == result[3].toUpperCase()) ) ){ if (typeof(c[i]) == "object") return_values[return_values.length] = select(c[i]); } } else if (typeof(c[i]) == "object") return_values[return_values.length] = select(c[i]); } return return_values; } Element.prototype.attr = function (attribute,content) { if (!content) return this.getAttribute(attribute,2); this.setAttribute(attribute,content); return this; } function have_class(obj,cls){ if (!obj.className) return 0; var class_arr = String(obj.className).split(' '); for (var i=0;itgt){ for (var i=pos;i>tgt;i-=20){ setTimeout("scroll(0,"+i+")",(timer*10)); timer++; } } else { for (var i=pos;i 0); else { if (this.tagName == 'DIV') this.style.display = 'block'; else this.style.display = 'inline'; } this.opacity(0); if (ms) this.fade(ms); else this.opacity(100); return this; } Element.prototype.hide = function (ms) { if (this.offsetHeight < 1) return; this.opacity(100); if (ms) { this.fade(ms,0,function () {this.style.display = 'none'}); } else this.style.display = 'none'; return this; } Element.prototype.toggle = function (ms) { if (!ms) ms = false; if (this.offsetHeight > 0) return this.hide(ms); else return this.show(ms); } Array.prototype.remove = function () { for (var i=0;i end) { for(i=start;i>=end;i-=2) { js += "setTimeout(\"select('.fading_"+Element.prototype.fade.num+"').opacity("+i+")\","+(timer*speed)+");"; timer+=2; } } else if(start < end) { for(i=start;i<=end;i+=2){ js += "setTimeout(\"select('.fading_"+Element.prototype.fade.num+"').opacity("+i+")\","+(timer*speed)+");"; timer+=2; } } if (typeof(callback) == "function"){ setTimeout("select('.fading_"+Element.prototype.fade.num+"').run("+callback+")",(timer*speed)); timer+=2; } js += "setTimeout(\"select('.fading_"+Element.prototype.fade.num+"').remove_class('fading_"+Element.prototype.fade.num+"')\","+(timer*speed)+");"; eval(js); return this; } Element.prototype.opacity = function(opacity) { this.style.zoom=1; this.style.opacity = (opacity / 100); this.style.MozOpacity = (opacity / 100); this.style.KhtmlOpacity = (opacity / 100); this.style.filter = "alpha(opacity=" + opacity + ")"; return this; } Element.prototype.postquery = function() { var formElement = this.kids('select,input,textarea'); var query = ""; for(var i=0; is*/g,''); success_call(data); } } } else{ var data = http.responseText; data = data.replace(/