var a;if(!window.console||!console.firebug){window.console={};for(var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"],i=0;i<names.length;++i)window.console[names[i]]=function(){}}if(typeof YAHOO=="undefined"){function null_event(){this.fire=function(){};this.subscribe=function(){}}} var SESSIONURL=typeof SESSIONURL=="undefined"?"":SESSIONURL,vbphrase=typeof vbphrase=="undefined"?[]:vbphrase,vB_Editor=[],ignorequotechars=false,pagenavcounter=0,is_regexp=window.RegExp?true:false,AJAX_Compatible=false,pointer_cursor=is_ie?"hand":"pointer",userAgent=navigator.userAgent.toLowerCase(),is_opera=userAgent.indexOf("opera")!=-1||typeof window.opera!="undefined",is_saf=userAgent.indexOf("applewebkit")!=-1||navigator.vendor=="Apple Computer, Inc.",is_webtv=userAgent.indexOf("webtv")!=-1, is_ie=userAgent.indexOf("msie")!=-1&&!is_opera&&!is_saf&&!is_webtv,is_ie4=is_ie&&userAgent.indexOf("msie 4.")!=-1,is_ie7=is_ie&&userAgent.indexOf("msie 7.")!=-1,is_ps3=userAgent.indexOf("playstation 3")!=-1,is_moz=navigator.product=="Gecko"&&!is_saf,is_kon=userAgent.indexOf("konqueror")!=-1,is_ns=userAgent.indexOf("compatible")==-1&&userAgent.indexOf("mozilla")!=-1&&!is_opera&&!is_webtv&&!is_saf,is_ns4=is_ns&&parseInt(navigator.appVersion)==4,is_mac=userAgent.indexOf("mac")!=-1; 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(b,c){return typeof c=="undefined"?this.substr_orig(b<0?this.length+b:b):this.substr_orig(b<0?this.length+b:b,c)}} if(typeof Array.prototype.shift==="undefined")Array.prototype.shift=function(){for(var b=0,c=this[0],d=this.length-1;b<d;b++)this[b]=this[b+1];this.length--;return c};function fetch_object(b){return document.getElementById?document.getElementById(b):document.all?document.all[b]:document.layers?document.layers[b]:null}function fetch_tags(b,c){return b==null?[]:typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName(c):b.all&&b.all.tags?b.all.tags(c):[]} function fetch_tag_count(b,c){return fetch_tags(b,c).length}function do_an_e(b){if(!b||is_ie){window.event.returnValue=false;window.event.cancelBubble=true;return window.event}else{b.stopPropagation();b.preventDefault();return b}}function e_by_gum(b){if(!b||is_ie){window.event.cancelBubble=true;return window.event}else{b.target.type=="submit"&&b.target.form.submit();b.stopPropagation();return b}} function validatemessage(b,c,d){if(is_kon||is_saf||is_webtv)return true;else if(c.length<1){alert(vbphrase.must_enter_subject);return false}else if(PHP.trim(stripcode(b,false,ignorequotechars)).length<d){alert(construct_phrase(vbphrase.message_too_short,d));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(b,c,d){if(!is_regexp)return b;if(d)for(d=(new Date).getTime();(startindex=PHP.stripos(b,"[quote"))!==false;){if((new Date).getTime()-d>2E3)break;if((stopindex=PHP.stripos(b,"[/quote]"))!==false){fragment=b.substr(startindex,stopindex-startindex+8);b=b.replace(fragment,"")}else break;b=PHP.trim(b)}if(c){b=b.replace(/<img[^>]+src="([^"]+)"[^>]*>/gi,"$1");c=new RegExp("<(\\w+)[^>]*>","gi");d=new RegExp("<\\/\\w+>","gi");b=b.replace(c,"");b=b.replace(d,"");b=b.replace(new RegExp("(&nbsp;)", "gi")," ")}else{c=new RegExp("\\[(\\w+)(=[^\\]]*)?\\]","gi");d=new RegExp("\\[\\/(\\w+)\\]","gi");b=b.replace(c,"");b=b.replace(d,"")}return b}function vB_PHP_Emulator(){}a=vB_PHP_Emulator.prototype;a.stripos=function(b,c,d){if(typeof d=="undefined")d=0;index=b.toLowerCase().indexOf(c.toLowerCase(),d);return index==-1?false:index};a.ltrim=function(b){return b.replace(/^\s+/g,"")};a.rtrim=function(b){return b.replace(/(\s+)$/g,"")};a.trim=function(b){return this.ltrim(this.rtrim(b))}; a.preg_quote=function(b){return b.replace(/(\+|\{|\}|\(|\)|\[|\]|\||\/|\?|\^|\$|\\|\.|\=|\!|\<|\>|\:|\*)/g,"\\$1")};a.match_all=function(b,c){if(b=b.match(RegExp(c,"gim"))){var d=[];c=new RegExp(c,"im");for(var e=0;e<b.length;e++)d[d.length]=b[e].match(c);return d}else return false};a.unhtmlspecialchars=function(b){f=new Array(/&lt;/g,/&gt;/g,/&quot;/g,/&amp;/g);r=new Array("<",">",'"',"&");for(var c in f)b=b.replace(f[c],r[c]);return b}; a.unescape_cdata=function(b){return b.replace(/<\=\!\=\[\=C\=D\=A\=T\=A\=\[/g,"<![CDATA[").replace(/\]\=\]\=>/g,"]]\>")};a.htmlspecialchars=function(b){for(var c=new Array(is_mac&&is_ie?new RegExp("&","g"):new RegExp("&(?!#[0-9]+;)","g"),new RegExp("<","g"),new RegExp(">","g"),new RegExp('"',"g")),d=new Array("&amp;","&lt;","&gt;","&quot;"),e=0;e<c.length;e++)b=b.replace(c[e],d[e]);return b}; a.in_array=function(b,c,d){b=new String(b);if(d){b=b.toLowerCase();for(var e in c)if(c[e].toLowerCase()==b)return e}else for(e in c)if(c[e]==b)return e;return-1};a.str_pad=function(b,c,d){b=new String(b);d=new String(d);if(b.length<c){for(padtext=new String(d);padtext.length<c-b.length;)padtext+=d;b=padtext.substr(0,c-b.length)+b}return b}; a.urlencode=function(b){b=escape(b.toString()).replace(/\+/g,"%2B");var c=b.match(/(%([0-9A-F]{2}))/gi);if(c)for(var d=0;d<c.length;d++){var e=c[d].substring(1,3);if(parseInt(e,16)>=128)b=b.replace(c[d],"%u00"+e)}return b=b.replace("%25","%u0025")};a.ucfirst=function(b,c){if(typeof c!="undefined"){c=b.indexOf(c);if(c>0)b=b.substr(0,c)}b=b.split(" ");for(c=0;c<b.length;c++)b[c]=b[c].substr(0,1).toUpperCase()+b[c].substr(1);return b.join(" ")};function vB_AJAX_Handler(b){this.async=b?true:false}a=vB_AJAX_Handler.prototype; a.init=function(){if(typeof vb_disable_ajax!="undefined"&&vb_disable_ajax==2)return false;if(typeof XMLHttpRequest!="undefined"){this.handler=new XMLHttpRequest;return this.handler.setRequestHeader?true:false}else if(is_ie&&!is_ie7){this.handler=eval("new ActiveXObject('Microsoft.XMLHTTP');");return true}else return false}; a.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(b){try{return(new XMLHttpRequest).setRequestHeader?true:false}catch(c){return false}}else return false};a.not_ready=function(){return this.handler.readyState&&this.handler.readyState<4}; a.onreadystatechange=function(b){if(!this.handler)if(!this.init())return false;if(typeof b=="function")this.handler.onreadystatechange=b;else alert("XML Sender OnReadyState event is not a function");return false}; a.send=function(b,c){if(!this.handler)if(!this.init())return false;if(!this.not_ready()){this.handler.open("POST",b,this.async);this.handler.setRequestHeader("Content-Type","application/x-www-form-urlencoded");this.handler.send(c+"&s="+fetch_sessionhash());if(!this.async&&this.handler.readyState==4&&this.handler.status==200)return true}return false};a.fetch_data=function(b){return b&&b.firstChild&&b.firstChild.nodeValue?PHP.unescape_cdata(b.firstChild.nodeValue):""};AJAX_Compatible=vB_AJAX_Handler.prototype.is_compatible(); console.info("Browser is%s AJAX compatible",AJAX_Compatible?"":" NOT");function vB_Hidden_Form(b){this.action=b;this.variables=[]}a=vB_Hidden_Form.prototype;a.add_variable=function(b,c){this.variables[this.variables.length]=new Array(b,c);console.log("vB_Hidden_Form :: add_variable(%s)",b)}; a.add_variables_from_object=function(b){if(b){console.info("vB_Hidden_Form :: add_variables_from_object(%s)",b.id);for(var c=fetch_tags(b,"input"),d=0;d<c.length;d++)switch(c[d].type){case "checkbox":case "radio":c[d].checked&&this.add_variable(c[d].name,c[d].value);break;case "text":case "hidden":case "password":this.add_variable(c[d].name,c[d].value);break;default:continue}c=fetch_tags(b,"textarea");for(d=0;d<c.length;d++)this.add_variable(c[d].name,c[d].value);b=fetch_tags(b,"select");for(d=0;d< b.length;d++)if(b[d].multiple)for(c=0;c<b[d].options.length;c++)b[d].options[c].selected&&this.add_variable(b[d].name,b[d].options[c].value);else this.add_variable(b[d].name,b[d].options[b[d].selectedIndex].value)}};a.fetch_variable=function(b){for(var c=0;c<this.variables.length;c++)if(this.variables[c][0]==b)return this.variables[c][1];return null}; a.submit_form=function(){this.form=document.createElement("form");this.form.method="post";this.form.action=this.action;for(var b=0;b<this.variables.length;b++){var c=document.createElement("input");c.type="hidden";c.name=this.variables[b][0];c.value=this.variables[b][1];this.form.appendChild(c)}console.info("vB_Hidden_Form :: submit_form() -> %s",this.action);document.body.appendChild(this.form).submit()}; a.build_query_string=function(){for(var b="",c=0;c<this.variables.length;c++)b+=this.variables[c][0]+"="+PHP.urlencode(this.variables[c][1])+"&";console.info("vB_Hidden_Form :: Query String = %s",b);return b};a.add_input=vB_Hidden_Form.prototype.add_variable;a.add_inputs_from_object=vB_Hidden_Form.prototype.add_variables_from_object; function openWindow(b,c,d,e){return window.open(b,typeof e=="undefined"?"vBPopup":e,"statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes"+(typeof c!="undefined"?",width="+c:"")+(typeof d!="undefined"?",height="+d:""))}function js_open_help(b,c,d){return openWindow("help.php?s="+SESSIONHASH+"&do=answer&page="+b+"&pageaction="+c+"&option="+d,600,450,"helpwindow")}function attachments(b){return openWindow("misc.php?"+SESSIONURL+"do=showattachments&t="+b,480,300)} function who(b){return openWindow("misc.php?"+SESSIONURL+"do=whoposted&t="+b,230,300)}function imwindow(b,c,d,e){return openWindow("sendmessage.php?"+SESSIONURL+"do=im&type="+b+"&u="+c,d,e)}function SendMSNMessage(b){is_ie?MsgrObj.InstantMessage(b):alert(vbphrase.msn_functions_only_work_in_ie);return false}function AddMSNContact(b){is_ie?MsgrObj.AddContact(0,b):alert(vbphrase.msn_functions_only_work_in_ie);return false} function detect_caps_lock(b){b=b?b:window.event;var c=b.which?b.which:b.keyCode?b.keyCode:b.charCode?b.charCode:0,d=b.shiftKey||b.modifiers&&b.modifiers&4;b=b.ctrlKey||b.modifiers&&b.modifiers&2;return c>=65&&c<=90&&!d&&!b||c>=97&&c<=122&&d}function log_out(b){var c=document.getElementsByTagName("html")[0];c.style.filter="progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";if(confirm(b))return true;else{c.style.filter="";return false}} function set_cookie(b,c,d){console.log("Set Cookie :: %s = '%s'",b,c);document.cookie=b+"="+escape(c)+"; path=/"+(typeof d!="undefined"?"; expires="+d.toGMTString():"")}function delete_cookie(b){console.log("Delete Cookie :: %s",b);document.cookie=b+"=; expires=Thu, 01-Jan-70 00:00:01 GMT; path=/"} function fetch_cookie(b){cookie_name=b+"=";cookie_length=document.cookie.length;for(cookie_begin=0;cookie_begin<cookie_length;){value_begin=cookie_begin+cookie_name.length;if(document.cookie.substring(cookie_begin,value_begin)==cookie_name){var c=document.cookie.indexOf(";",value_begin);if(c==-1)c=cookie_length;c=unescape(document.cookie.substring(value_begin,c));console.log("Fetch Cookie :: %s = '%s'",b,c);return c}cookie_begin=document.cookie.indexOf(" ",cookie_begin)+1;if(cookie_begin==0)break}console.log("Fetch Cookie :: %s (null)", b);return null}function js_toggle_all(b,c,d,e,g){for(var j=0;j<b.elements.length;j++){var h=b.elements[j];if(h.type==c&&PHP.in_array(h.name,e,false)==-1)switch(c){case "radio":if(h.value==d)h.checked=g;break;case "select-one":h.selectedIndex=g;break;default:h.checked=g;break}}}function js_select_all(b){exclude=[];exclude[0]="selectall";js_toggle_all(b,"select-one","",exclude,b.selectall.selectedIndex)} function js_check_all(b){exclude=[];exclude[0]="keepattachments";exclude[1]="allbox";exclude[2]="removeall";js_toggle_all(b,"checkbox","",exclude,b.allbox.checked)}function js_check_all_option(b,c){exclude=[];exclude[0]="useusergroup";js_toggle_all(b,"radio",c,exclude,true)}function checkall(b){js_check_all(b)}function checkall_option(b,c){js_check_all_option(b,c)} function resize_textarea(b,c){if(b<0){var d=-5;b=-10}else{d=5;b=10}c=fetch_object(c);if(typeof c.orig_rows=="undefined"){c.orig_rows=c.rows;c.orig_cols=c.cols}d=c.rows+d;b=c.cols+b;if(d>=c.orig_rows&&b>=c.orig_cols){c.rows=d;c.cols=b}return false} function toggle_collapse(b){if(!is_regexp)return false;obj=fetch_object("collapseobj_"+b);img=fetch_object("collapseimg_"+b);cel=fetch_object("collapsecel_"+b);if(!obj){if(img)img.style.display="none";return false}if(obj.style.display=="none"){obj.style.display="";save_collapsed(b,false);if(img){img_re=/_collapsed\.gif$/;img.src=img.src.replace(img_re,".gif")}if(cel){cel_re=/^(thead|tcat)(_collapsed)$/;cel.className=cel.className.replace(cel_re,"$1")}}else{obj.style.display="none";save_collapsed(b, true);if(img){img_re=/\.gif$/;img.src=img.src.replace(img_re,"_collapsed.gif")}if(cel){cel_re=/^(thead|tcat)$/;cel.className=cel.className.replace(cel_re,"$1_collapsed")}}return false}function save_collapsed(b,c){var d=fetch_cookie("vbulletin_collapse"),e=[];if(d!=null){d=d.split("\n");for(var g in d)if(d[g]!=b&&d[g]!="")e[e.length]=d[g]}if(c)e[e.length]=b;expires=new Date;expires.setTime(expires.getTime()+31536E6);set_cookie("vbulletin_collapse",e.join("\n"),expires)}function vBpagenav(){} vBpagenav.prototype.controlobj_onclick=function(b){this._onclick(b);b=fetch_tags(this.menu.menuobj,"input");for(var c=0;c<b.length;c++)if(b[c].type=="text"){b[c].focus();break}};vBpagenav.prototype.form_gotopage=function(){if((pagenum=parseInt(fetch_object("pagenav_itxt").value,10))>0)window.location=this.addr+"&page="+pagenum;return false};vBpagenav.prototype.ibtn_onclick=function(){return this.form.gotopage()}; vBpagenav.prototype.itxt_onkeypress=function(b){return(b?b:window.event).keyCode==13?this.form.gotopage():true};function vbmenu_register(b,c,d){return typeof vBmenu=="object"?vBmenu.register(b,c):false}function set_unselectable(b){if(!is_ie4&&typeof b.tagName!="undefined"){if(b.hasChildNodes())for(var c=0;c<b.childNodes.length;c++)set_unselectable(b.childNodes[c]);b.unselectable="on"}}function fetch_sessionhash(){return SESSIONURL==""?"":SESSIONURL.substr(2,32)} function construct_phrase(){if(!arguments||arguments.length<1||!is_regexp)return false;for(var b=arguments,c=b[0],d,e=1;e<b.length;e++){d=new RegExp("%"+e+"\\$s","gi");c=c.replace(d,b[e])}return c} function switch_id(b,c){b=b.options[b.selectedIndex].value;if(b!=""){var d=new String(window.location),e=new String("");d=d.split("#");if(d[1])e="#"+d[1];d=d[0];if(d.indexOf(c+"id=")!=-1&&is_regexp){re=new RegExp(c+"id=\\d+&?");d=d.replace(re,"")}if(d.indexOf("?")==-1)d+="?";else{lastchar=d.substr(d.length-1);if(lastchar!="&"&&lastchar!="?")d+="&"}window.location=d+c+"id="+b+e}}function img_alt_2_title(b){if(!b.title&&b.alt!="")b.title=b.alt} function PostBit_Init(b,c){console.log("PostBit Init: %d",c);if(typeof vBmenu!="undefined")for(var d=fetch_tags(b,"div"),e=0;e<d.length;e++)d[e].id&&d[e].id.substr(0,9)=="postmenu_"&&vBmenu.register(d[e].id,true);typeof vB_QuickEditor!="undefined"&&vB_AJAX_QuickEdit_Init(b);typeof vB_QuickReply!="undefined"&&qr_init_buttons(b);typeof mq_init!="undefined"&&mq_init(b);typeof vBrep!="undefined"&&typeof c!="undefined"&&typeof c!="null"&&vbrep_register(c);typeof inlineMod!="undefined"&&im_init(b)} function vBulletin_init(){if(is_webtv)return false;for(var b=fetch_tags(document,"img"),c=0;c<b.length;c++)img_alt_2_title(b[c]);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}b=fetch_tags(document,"td");for(c=0;c<b.length;c++)if(b[c].hasChildNodes()&&b[c].firstChild.name&&b[c].firstChild.name.indexOf("PageNav")!=-1){var d=b[c].title;b[c].title="";b[c].innerHTML="";b[c].id="pagenav."+c;var e=vBmenu.register(b[c].id);if(is_saf){e.controlobj._onclick=e.controlobj.onclick;e.controlobj.onclick=vBpagenav.prototype.controlobj_onclick}}if(typeof d!="undefined"){fetch_object("pagenav_form").addr= d;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}function vBulletin_Framework(){this.elements=[];this.ajaxurls=[];this.events=[];this.time=new Date;this.add_event("systemInit")}a=vBulletin_Framework.prototype;a.init=function(){this.events.systemInit.fire();console.info("System Init Fired")}; a.extend=function(b,c){function d(){}d.prototype=c.prototype;b.prototype=new d;b.prototype.constructor=b;b.baseConstructor=c;b.superClass=c.prototype};a.register_control=function(b){for(var c=[],d=1;d<arguments.length;d++)c.push(arguments[d]);if(!this.elements[b]){console.info('Creating array vBulletin.elements["%s"]',b);this.elements[b]=[]}d=this.elements[b].push(c);console.log('vBulletin.elements["%s"][%d] = %s',b,d-1,c.join(", "))}; a.register_ajax_urls=function(b,c,d){b=b.split("?");b[1]=SESSIONURL+"ajax=1&"+b[1].replace(/\{(\d+)(:\w+)?\}/gi,"%$1$s");c=c.split("?");c[1]=SESSIONURL+"ajax=1&"+c[1].replace(/\{(\d+)(:\w+)?\}/gi,"%$1$s");console.log("Register AJAX URLs for %s",d);for(var e=0;e<d.length;e++)this.ajaxurls[d[e]]=new Array(b,c)};a.add_event=function(b){this.events[b]=typeof YAHOO!="undefined"?new YAHOO.util.CustomEvent(b):new null_event};a.console=console.log;var PHP=new vB_PHP_Emulator,vBulletin=new vBulletin_Framework;