if(typeof (SESSIONURL)=="undefined"){
var SESSIONURL="";
}
if(typeof (vbphrase)=="undefined"){
var vbphrase=new Array();
}
var vB_Editor=new Array();
var ignorequotechars=false;
var pagenavcounter=0;
var userAgent=navigator.userAgent.toLowerCase();
var is_opera=((userAgent.indexOf("opera")!=-1)||(typeof (window.opera)!="undefined"));
var is_saf=((userAgent.indexOf("applewebkit")!=-1)||(navigator.vendor=="Apple Computer, Inc."));
var is_webtv=(userAgent.indexOf("webtv")!=-1);
var is_ie=((userAgent.indexOf("msie")!=-1)&&(!is_opera)&&(!is_saf)&&(!is_webtv));
var is_ie4=((is_ie)&&(userAgent.indexOf("msie 4.")!=-1));
var is_ie7=((is_ie)&&(userAgent.indexOf("msie 7.")!=-1));
var is_moz=((navigator.product=="Gecko")&&(!is_saf));
var is_kon=(userAgent.indexOf("konqueror")!=-1);
var is_ns=((userAgent.indexOf("compatible")==-1)&&(userAgent.indexOf("mozilla")!=-1)&&(!is_opera)&&(!is_webtv)&&(!is_saf));
var is_ns4=((is_ns)&&(parseInt(navigator.appVersion)==4));
var is_mac=(userAgent.indexOf("mac")!=-1);
var is_regexp=(window.RegExp)?true:false;
var AJAX_Compatible=false;
var pointer_cursor=(is_ie?"hand":"pointer");
String.prototype.vBlength=function(){
return (is_ie&&this.indexOf("\n")!=-1)?this.replace(/\r?\n/g,"_").length:this.length;
};
if("1234".substr(-2,2)=="12"){
String.prototype.substr_orig=String.prototype.substr;
String.prototype.substr=function(_1,_2){
return this.substr_orig((_1<0?this.length+_1:_1),_2);
};
}
function array_pop(a){
if(typeof a!="object"||!a.length){
return null;
}else{
var _4=a[a.length-1];
a.length--;
return _4;
}
};
if(typeof Array.prototype.shift==="undefined"){
Array.prototype.shift=function(){
for(var i=0,b=this[0],l=this.length-1;i<l;i++){
this[i]=this[i+1];
}
this.length--;
return b;
};
}
function array_push(a,_9){
for(var i=1;i<arguments.length;i++){
a[a.length]=arguments[i];
}
return a.length;
};
function fetch_object(_b){
if(document.getElementById){
return document.getElementById(_b);
}else{
if(document.all){
return document.all[_b];
}else{
if(document.layers){
return document.layers[_b];
}else{
return null;
}
}
}
};
function fetch_tags(_c,_d){
if(_c==null){
return new Array();
}else{
if(typeof _c.getElementsByTagName!="undefined"){
return _c.getElementsByTagName(_d);
}else{
if(_c.all&&_c.all.tags){
return _c.all.tags(_d);
}else{
return new Array();
}
}
}
};
function fetch_tag_count(_e,_f){
return fetch_tags(_e,_f).length;
};
function do_an_e(_10){
if(!_10||is_ie){
window.event.returnValue=false;
window.event.cancelBubble=true;
return window.event;
}else{
_10.stopPropagation();
_10.preventDefault();
return _10;
}
};
function e_by_gum(_11){
if(!_11||is_ie){
window.event.cancelBubble=true;
return window.event;
}else{
if(_11.target.type=="submit"){
_11.target.form.submit();
}
_11.stopPropagation();
return _11;
}
};
function validatemessage(_12,_13,_14){
if(is_kon||is_saf||is_webtv){
return true;
}else{
if(_13.length<1){
alert(vbphrase["must_enter_subject"]);
return false;
}else{
var _15=PHP.trim(stripcode(_12,false,ignorequotechars));
if(_15.length<_14){
alert(construct_phrase(vbphrase["message_too_short"],_14));
return false;
}else{
if(typeof (document.forms.vbform)!="undefined"&&typeof (document.forms.vbform.imagestamp)!="undefined"){
document.forms.vbform.imagestamp.failed=false;
if(document.forms.vbform.imagestamp.value.length!=6){
alert(vbphrase["complete_image_verification"]);
document.forms.vbform.imagestamp.failed=true;
document.forms.vbform.imagestamp.focus();
return false;
}else{
return true;
}
}else{
return true;
}
}
}
}
};
function stripcode(str,_17,_18){
if(!is_regexp){
return str;
}
if(_18){
var _19=new Date().getTime();
while((startindex=PHP.stripos(str,"[quote"))!==false){
if(new Date().getTime()-_19>2000){
break;
}
if((stopindex=PHP.stripos(str,"[/quote]"))!==false){
fragment=str.substr(startindex,stopindex-startindex+8);
str=str.replace(fragment,"");
}else{
break;
}
str=PHP.trim(str);
}
}
if(_17){
str=str.replace(/<img[^>]+src="([^"]+)"[^>]*>/gi,"$1");
var _1a=new RegExp("<(\\w+)[^>]*>","gi");
var _1b=new RegExp("<\\/\\w+>","gi");
str=str.replace(_1a,"");
str=str.replace(_1b,"");
var _1c=new RegExp("(&nbsp;)","gi");
str=str.replace(_1c," ");
}else{
var _1d=new RegExp("\\[(\\w+)[^\\]]*\\]","gi");
var _1e=new RegExp("\\[\\/(\\w+)\\]","gi");
str=str.replace(_1d,"");
str=str.replace(_1e,"");
}
return str;
};
function vB_PHP_Emulator(){
};
vB_PHP_Emulator.prototype.stripos=function(_1f,_20,_21){
if(typeof _21=="undefined"){
_21=0;
}
index=_1f.toLowerCase().indexOf(_20.toLowerCase(),_21);
return (index==-1?false:index);
};
vB_PHP_Emulator.prototype.ltrim=function(str){
return str.replace(/^\s+/g,"");
};
vB_PHP_Emulator.prototype.rtrim=function(str){
return str.replace(/(\s+)$/g,"");
};
vB_PHP_Emulator.prototype.trim=function(str){
return this.ltrim(this.rtrim(str));
};
vB_PHP_Emulator.prototype.preg_quote=function(str){
return str.replace(/(\+|\{|\}|\(|\)|\[|\]|\||\/|\?|\^|\$|\\|\.|\=|\!|\<|\>|\:|\*)/g,"\\$1");
};
vB_PHP_Emulator.prototype.match_all=function(_26,_27){
var _28=_26.match(RegExp(_27,"gim"));
if(_28){
var _29=new Array();
var _2a=new RegExp(_27,"im");
for(var i=0;i<_28.length;i++){
_29[_29.length]=_28[i].match(_2a);
}
return _29;
}else{
return false;
}
};
vB_PHP_Emulator.prototype.unhtmlspecialchars=function(str){
f=new Array(/&lt;/g,/&gt;/g,/&quot;/g,/&amp;/g);
r=new Array("<",">","\"","&");
for(var i in f){
str=str.replace(f[i],r[i]);
}
return str;
};
vB_PHP_Emulator.prototype.unescape_cdata=function(str){
var r1=/<\=\!\=\[\=C\=D\=A\=T\=A\=\[/g;
var r2=/\]\=\]\=>/g;
return str.replace(r1,"<![CDATA[").replace(r2,"]]>");
};
vB_PHP_Emulator.prototype.htmlspecialchars=function(str){
var f=new Array((is_mac&&is_ie?new RegExp("&","g"):new RegExp("&(?!#[0-9]+;)","g")),new RegExp("<","g"),new RegExp(">","g"),new RegExp("\"","g"));
var r=new Array("&amp;","&lt;","&gt;","&quot;");
for(var i=0;i<f.length;i++){
str=str.replace(f[i],r[i]);
}
return str;
};
vB_PHP_Emulator.prototype.in_array=function(_35,_36,_37){
var _38=new String(_35);
if(_37){
_38=_38.toLowerCase();
for(var i in _36){
if(_36[i].toLowerCase()==_38){
return i;
}
}
}else{
for(var i in _36){
if(_36[i]==_38){
return i;
}
}
}
return -1;
};
vB_PHP_Emulator.prototype.str_pad=function(_3a,_3b,_3c){
_3a=new String(_3a);
_3c=new String(_3c);
if(_3a.length<_3b){
padtext=new String(_3c);
while(padtext.length<(_3b-_3a.length)){
padtext+=_3c;
}
_3a=padtext.substr(0,(_3b-_3a.length))+_3a;
}
return _3a;
};
vB_PHP_Emulator.prototype.urlencode=function(_3d){
_3d=escape(_3d.toString()).replace(/\+/g,"%2B");
var _3e=_3d.match(/(%([0-9A-F]{2}))/gi);
if(_3e){
for(var _3f=0;_3f<_3e.length;_3f++){
var _40=_3e[_3f].substring(1,3);
if(parseInt(_40,16)>=128){
_3d=_3d.replace(_3e[_3f],"%u00"+_40);
}
}
}
_3d=_3d.replace("%25","%u0025");
return _3d;
};
vB_PHP_Emulator.prototype.ucfirst=function(str,_42){
if(typeof _42!="undefined"){
var _43=str.indexOf(_42);
if(_43>0){
str=str.substr(0,_43);
}
}
str=str.split(" ");
for(var i=0;i<str.length;i++){
str[i]=str[i].substr(0,1).toUpperCase()+str[i].substr(1);
}
return str.join(" ");
};
var PHP=new vB_PHP_Emulator();
function vB_AJAX_Handler(_45){
this.async=_45?true:false;
};
vB_AJAX_Handler.prototype.init=function(){
if(typeof vb_disable_ajax!="undefined"&&vb_disable_ajax==2){
return false;
}
try{
this.handler=new XMLHttpRequest();
return (this.handler.setRequestHeader?true:false);
}
catch(e){
try{
this.handler=eval("new A"+"ctiv"+"eX"+"Ob"+"ject('Micr"+"osoft.XM"+"LHTTP');");
return true;
}
catch(e){
return false;
}
}
};
vB_AJAX_Handler.prototype.is_compatible=function(){
if(typeof vb_disable_ajax!="undefined"&&vb_disable_ajax==2){
return false;
}
if(is_ie&&!is_ie4){
return true;
}else{
if(typeof XMLHttpRequest!="undefined"){
try{
return XMLHttpRequest.prototype.setRequestHeader?true:false;
}
catch(e){
try{
var _46=new XMLHttpRequest();
return _46.setRequestHeader?true:false;
}
catch(e){
return false;
}
}
}else{
return false;
}
}
};
vB_AJAX_Handler.prototype.not_ready=function(){
return (this.handler.readyState&&(this.handler.readyState<4));
};
vB_AJAX_Handler.prototype.onreadystatechange=function(_47){
if(!this.handler){
if(!this.init()){
return false;
}
}
if(typeof _47=="function"){
this.handler.onreadystatechange=_47;
}else{
alert("XML Sender OnReadyState event is not a function");
}
return false;
};
vB_AJAX_Handler.prototype.send=function(_48,_49){
if(!this.handler){
if(!this.init()){
return false;
}
}
if(!this.not_ready()){
this.handler.open("POST",_48,this.async);
this.handler.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
this.handler.send(_49+"&s="+fetch_sessionhash());
if(!this.async&&this.handler.readyState==4&&this.handler.status==200){
return true;
}
}
return false;
};
vB_AJAX_Handler.prototype.fetch_data=function(_4a){
if(_4a&&_4a.firstChild&&_4a.firstChild.nodeValue){
return PHP.unescape_cdata(_4a.firstChild.nodeValue);
}else{
return "";
}
};
var AJAX_Compatible=vB_AJAX_Handler.prototype.is_compatible();
function vB_Hidden_Form(_4b){
this.action=_4b;
this.variables=new Array();
};
vB_Hidden_Form.prototype.add_variable=function(_4c,_4d){
this.variables[this.variables.length]=new Array(_4c,_4d);
};
vB_Hidden_Form.prototype.add_variables_from_object=function(obj){
var _4f=fetch_tags(obj,"input");
for(var i=0;i<_4f.length;i++){
switch(_4f[i].type){
case "checkbox":
case "radio":
if(_4f[i].checked){
this.add_variable(_4f[i].name,_4f[i].value);
}
break;
case "text":
case "hidden":
case "password":
this.add_variable(_4f[i].name,_4f[i].value);
break;
default:
continue;
}
}
var _51=fetch_tags(obj,"textarea");
for(var i=0;i<_51.length;i++){
this.add_variable(_51[i].name,_51[i].value);
}
var _52=fetch_tags(obj,"select");
for(var i=0;i<_52.length;i++){
if(_52[i].multiple){
for(var j=0;j<_52[i].options.length;j++){
if(_52[i].options[j].selected){
this.add_variable(_52[i].name,_52[i].options[j].value);
}
}
}else{
this.add_variable(_52[i].name,_52[i].options[_52[i].selectedIndex].value);
}
}
};
vB_Hidden_Form.prototype.fetch_variable=function(_54){
for(var i=0;i<this.variables.length;i++){
if(this.variables[i][0]==_54){
return this.variables[i][1];
}
}
return null;
};
vB_Hidden_Form.prototype.submit_form=function(){
this.form=document.createElement("form");
this.form.method="post";
this.form.action=this.action;
for(var i=0;i<this.variables.length;i++){
var _57=document.createElement("input");
_57.type="hidden";
_57.name=this.variables[i][0];
_57.value=this.variables[i][1];
this.form.appendChild(_57);
}
document.body.appendChild(this.form).submit();
};
vB_Hidden_Form.prototype.build_query_string=function(){
var _58="";
for(var i=0;i<this.variables.length;i++){
_58+=this.variables[i][0]+"="+PHP.urlencode(this.variables[i][1])+"&";
}
return _58;
};
vB_Hidden_Form.prototype.add_input=vB_Hidden_Form.prototype.add_variable;
vB_Hidden_Form.prototype.add_inputs_from_object=vB_Hidden_Form.prototype.add_variables_from_object;
function openWindow(url,_5b,_5c,_5d){
return window.open(url,(typeof _5d=="undefined"?"vBPopup":_5d),"statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes"+(typeof _5b!="undefined"?(",width="+_5b):"")+(typeof _5c!="undefined"?(",height="+_5c):""));
};
function js_open_help(_5e,_5f,_60){
return openWindow("help.php?s="+SESSIONHASH+"&do=answer&page="+_5e+"&pageaction="+_5f+"&option="+_60,600,450,"helpwindow");
};
function attachments(_61){
return openWindow("misc.php?"+SESSIONURL+"do=showattachments&t="+_61,480,300);
};
function who(_62){
return openWindow("misc.php?"+SESSIONURL+"do=whoposted&t="+_62,230,300);
};
function imwindow(_63,_64,_65,_66){
return openWindow("sendmessage.php?"+SESSIONURL+"do=im&type="+_63+"&u="+_64,_65,_66);
};
function SendMSNMessage(_67){
if(!is_ie){
alert(vbphrase["msn_functions_only_work_in_ie"]);
return false;
}else{
MsgrObj.InstantMessage(_67);
return false;
}
};
function AddMSNContact(_68){
if(!is_ie){
alert(vbphrase["msn_functions_only_work_in_ie"]);
return false;
}else{
MsgrObj.AddContact(0,_68);
return false;
}
};
function detect_caps_lock(e){
e=(e?e:window.event);
var _6a=(e.which?e.which:(e.keyCode?e.keyCode:(e.charCode?e.charCode:0)));
var _6b=(e.shiftKey||(e.modifiers&&(e.modifiers&4)));
var _6c=(e.ctrlKey||(e.modifiers&&(e.modifiers&2)));
return (_6a>=65&&_6a<=90&&!_6b&&!_6c)||(_6a>=97&&_6a<=122&&_6b);
};
function log_out(_6d){
var ht=document.getElementsByTagName("html")[0];
ht.style.filter="progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
if(confirm(_6d)){
return true;
}else{
ht.style.filter="";
return false;
}
};
function set_cookie(_6f,_70,_71){
document.cookie=_6f+"="+escape(_70)+"; path=/"+(typeof _71!="undefined"?"; expires="+_71.toGMTString():"");
};
function delete_cookie(_72){
document.cookie=_72+"="+"; expires=Thu, 01-Jan-70 00:00:01 GMT"+"; path=/";
};
function fetch_cookie(_73){
cookie_name=_73+"=";
cookie_length=document.cookie.length;
cookie_begin=0;
while(cookie_begin<cookie_length){
value_begin=cookie_begin+cookie_name.length;
if(document.cookie.substring(cookie_begin,value_begin)==cookie_name){
var _74=document.cookie.indexOf(";",value_begin);
if(_74==-1){
_74=cookie_length;
}
return unescape(document.cookie.substring(value_begin,_74));
}
cookie_begin=document.cookie.indexOf(" ",cookie_begin)+1;
if(cookie_begin==0){
break;
}
}
return null;
};
function js_toggle_all(_75,_76,_77,_78,_79){
for(var i=0;i<_75.elements.length;i++){
var elm=_75.elements[i];
if(elm.type==_76&&PHP.in_array(elm.name,_78,false)==-1){
switch(_76){
case "radio":
if(elm.value==_77){
elm.checked=_79;
}
break;
case "select-one":
elm.selectedIndex=_79;
break;
default:
elm.checked=_79;
break;
}
}
}
};
function js_select_all(_7c){
exclude=new Array();
exclude[0]="selectall";
js_toggle_all(_7c,"select-one","",exclude,_7c.selectall.selectedIndex);
};
function js_check_all(_7d){
exclude=new Array();
exclude[0]="keepattachments";
exclude[1]="allbox";
exclude[2]="removeall";
js_toggle_all(_7d,"checkbox","",exclude,_7d.allbox.checked);
};
function js_check_all_option(_7e,_7f){
exclude=new Array();
exclude[0]="useusergroup";
js_toggle_all(_7e,"radio",_7f,exclude,true);
};
function checkall(_80){
js_check_all(_80);
};
function checkall_option(_81,_82){
js_check_all_option(_81,_82);
};
function resize_textarea(to,id){
if(to<0){
var _85=-5;
var _86=-10;
}else{
var _85=5;
var _86=10;
}
var _87=fetch_object(id);
if(typeof _87.orig_rows=="undefined"){
_87.orig_rows=_87.rows;
_87.orig_cols=_87.cols;
}
var _88=_87.rows+_85;
var _89=_87.cols+_86;
if(_88>=_87.orig_rows&&_89>=_87.orig_cols){
_87.rows=_88;
_87.cols=_89;
}
return false;
};
function toggle_collapse(_8a){
if(!is_regexp){
return false;
}
obj=fetch_object("collapseobj_"+_8a);
img=fetch_object("collapseimg_"+_8a);
cel=fetch_object("collapsecel_"+_8a);
if(!obj){
if(img){
img.style.display="none";
}
return false;
}
if(obj.style.display=="none"){
obj.style.display="";
save_collapsed(_8a,false);
if(img){
img_re=new RegExp("_collapsed\\.gif$");
img.src=img.src.replace(img_re,".gif");
}
if(cel){
cel_re=new RegExp("^(thead|tcat)(_collapsed)$");
cel.className=cel.className.replace(cel_re,"$1");
}
}else{
obj.style.display="none";
save_collapsed(_8a,true);
if(img){
img_re=new RegExp("\\.gif$");
img.src=img.src.replace(img_re,"_collapsed.gif");
}
if(cel){
cel_re=new RegExp("^(thead|tcat)$");
cel.className=cel.className.replace(cel_re,"$1_collapsed");
}
}
return false;
};
function save_collapsed(_8b,_8c){
var _8d=fetch_cookie("vbulletin_collapse");
var tmp=new Array();
if(_8d!=null){
_8d=_8d.split("\n");
for(var i in _8d){
if(_8d[i]!=_8b&&_8d[i]!=""){
tmp[tmp.length]=_8d[i];
}
}
}
if(_8c){
tmp[tmp.length]=_8b;
}
expires=new Date();
expires.setTime(expires.getTime()+(1000*86400*365));
set_cookie("vbulletin_collapse",tmp.join("\n"),expires);
};
function vBpagenav(){
};
vBpagenav.prototype.controlobj_onclick=function(e){
this._onclick(e);
var _91=fetch_tags(this.menu.menuobj,"input");
for(var i=0;i<_91.length;i++){
if(_91[i].type=="text"){
_91[i].focus();
break;
}
}
};
vBpagenav.prototype.form_gotopage=function(e){
if((pagenum=parseInt(fetch_object("pagenav_itxt").value,10))>0){
window.location=this.addr+"&page="+pagenum;
}
return false;
};
vBpagenav.prototype.ibtn_onclick=function(e){
return this.form.gotopage();
};
vBpagenav.prototype.itxt_onkeypress=function(e){
return ((e?e:window.event).keyCode==13?this.form.gotopage():true);
};
function vbmenu_register(_96,_97,_98){
if(typeof (vBmenu)=="object"){
return vBmenu.register(_96,_97);
}else{
return false;
}
};
function set_unselectable(obj){
if(!is_ie4&&typeof obj.tagName!="undefined"){
if(obj.hasChildNodes()){
for(var i=0;i<obj.childNodes.length;i++){
set_unselectable(obj.childNodes[i]);
}
}
obj.unselectable="on";
}
};
function fetch_sessionhash(){
return (SESSIONURL==""?"":SESSIONURL.substr(2,32));
};
function construct_phrase(){
if(!arguments||arguments.length<1||!is_regexp){
return false;
}
var _9b=arguments;
var str=_9b[0];
var re;
for(var i=1;i<_9b.length;i++){
re=new RegExp("%"+i+"\\$s","gi");
str=str.replace(re,_9b[i]);
}
return str;
};
function switch_id(_9f,_a0){
var id=_9f.options[_9f.selectedIndex].value;
if(id==""){
return;
}
var url=new String(window.location);
var _a3=new String("");
url=url.split("#");
if(url[1]){
_a3="#"+url[1];
}
url=url[0];
if(url.indexOf(_a0+"id=")!=-1&&is_regexp){
re=new RegExp(_a0+"id=\\d+&?");
url=url.replace(re,"");
}
if(url.indexOf("?")==-1){
url+="?";
}else{
lastchar=url.substr(url.length-1);
if(lastchar!="&"&&lastchar!="?"){
url+="&";
}
}
window.location=url+_a0+"id="+id+_a3;
};
function img_alt_2_title(img){
if(!img.title&&img.alt!=""){
img.title=img.alt;
}
};
function PostBit_Init(obj,_a6){
if(typeof vBmenu!="undefined"){
var _a7=fetch_tags(obj,"div");
for(var i=0;i<_a7.length;i++){
if(_a7[i].id&&_a7[i].id.substr(0,9)=="postmenu_"){
vBmenu.register(_a7[i].id,true);
}
}
}
if(typeof vB_QuickEditor!="undefined"){
vB_AJAX_QuickEdit_Init(obj);
}
if(typeof vB_QuickReply!="undefined"){
qr_init_buttons(obj);
}
if(typeof mq_init!="undefined"){
mq_init(obj);
}
if(typeof vBrep!="undefined"){
if(typeof _a6!="undefined"&&typeof _a6!="null"){
vbrep_register(_a6);
}
}
if(typeof inlineMod!="undefined"){
im_init(obj);
}
};
function vBulletin_init(){
if(is_webtv){
return false;
}
var _a9=fetch_tags(document,"img");
for(var i=0;i<_a9.length;i++){
img_alt_2_title(_a9[i]);
}
if(typeof vBmenu=="object"){
if(typeof (YAHOO)!="undefined"){
YAHOO.util.Event.on(document,"click",vbmenu_hide);
YAHOO.util.Event.on(window,"resize",vbmenu_hide);
}else{
if(window.attachEvent&&!is_saf){
document.attachEvent("onclick",vbmenu_hide);
window.attachEvent("onresize",vbmenu_hide);
}else{
if(document.addEventListener&&!is_saf){
document.addEventListener("click",vbmenu_hide,false);
window.addEventListener("resize",vbmenu_hide,false);
}else{
window.onclick=vbmenu_hide;
window.onresize=vbmenu_hide;
}
}
}
var _ab=fetch_tags(document,"td");
for(var n=0;n<_ab.length;n++){
if(_ab[n].hasChildNodes()&&_ab[n].firstChild.name&&_ab[n].firstChild.name.indexOf("PageNav")!=-1){
var _ad=_ab[n].title;
_ab[n].title="";
_ab[n].innerHTML="";
_ab[n].id="pagenav."+n;
var pn=vBmenu.register(_ab[n].id);
if(is_saf){
pn.controlobj._onclick=pn.controlobj.onclick;
pn.controlobj.onclick=vBpagenav.prototype.controlobj_onclick;
}
}
}
if(typeof _ad!="undefined"){
fetch_object("pagenav_form").addr=_ad;
fetch_object("pagenav_form").gotopage=vBpagenav.prototype.form_gotopage;
fetch_object("pagenav_ibtn").onclick=vBpagenav.prototype.ibtn_onclick;
fetch_object("pagenav_itxt").onkeypress=vBpagenav.prototype.itxt_onkeypress;
}
vBmenu.activate(true);
}
vBulletin.init();
return true;
};
if(!console){
var console=function(){
var moo=1+1;
};
console.log=function(str){
var moo=1+1;
};
}
function vBulletin_Framework(){
this.elements=new Array();
this.ajaxurls=new Array();
this.events=new Array();
this.regexp="(^|[^a-z0-9_])([a-z0-9_]+)\\[([^\\]]*)\\]";
this.add_event("systemInit");
this.time=new Date();
};
vBulletin_Framework.prototype.init=function(){
this.find_elements(document.getElementsByTagName("body")[0]);
this.events.systemInit.fire();
};
vBulletin_Framework.prototype.extend=function(_b2,_b3){
function inheritance(){
};
inheritance.prototype=_b3.prototype;
_b2.prototype=new inheritance();
_b2.prototype.constructor=_b2;
_b2.baseConstructor=_b3;
_b2.superClass=_b3.prototype;
};
vBulletin_Framework.prototype.find_elements=function(_b4){
for(var i=0;i<_b4.childNodes.length;i++){
var _b6=_b4.childNodes[i];
if(_b6.className){
var _b7=PHP.match_all(_b6.className,this.regexp);
if(_b7){
this.register_element(_b6,_b7);
}
}
if(_b4.childNodes[i].hasChildNodes()){
this.find_elements(_b4.childNodes[i]);
}
}
};
vBulletin_Framework.prototype.register_element=function(_b8,_b9){
for(var i=0;i<_b9.length;i++){
if(!this.elements[_b9[i][2]]){
this.elements[_b9[i][2]]=new Array();
}
this.elements[_b9[i][2]][this.elements[_b9[i][2]].length]=new Array(_b8,_b9[i][3]);
}
};
vBulletin_Framework.prototype.register_ajax_urls=function(_bb,_bc,_bd){
var _bb=_bb.split("?");
_bb[1]=SESSIONURL+"ajax=1&"+_bb[1].replace(/\{(\d+)(:\w+)?\}/gi,"%$1$s");
var _bc=_bc.split("?");
_bc[1]=SESSIONURL+"ajax=1&"+_bc[1].replace(/\{(\d+)(:\w+)?\}/gi,"%$1$s");
for(var i=0;i<_bd.length;i++){
this.ajaxurls[_bd[i]]=new Array(_bb,_bc);
}
};
vBulletin_Framework.prototype.add_event=function(_bf){
this.events[_bf]=(typeof YAHOO!="undefined"?new YAHOO.util.CustomEvent(_bf):new null_event());
};
vBulletin_Framework.prototype.console=function(){
if(is_moz&&console){
var _c0=new Array();
for(var i=0;i<arguments.length;i++){
_c0[_c0.length]=arguments[i];
}
try{
eval("console.log('"+_c0.join("','")+"');");
}
catch(e){
}
}
};
if(typeof YAHOO=="undefined"){
function null_event(){
this.fire=function(){
};
this.subscribe=function(){
};
};
}
vBulletin=new vBulletin_Framework();

