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".split(","),i=0;i<names.length;++i)window.console[names[i]]=function(){}}
var SESSIONURL="undefined"==typeof SESSIONURL?"":SESSIONURL,SECURITYTOKEN="undefined"==typeof SECURITYTOKEN?"":SECURITYTOKEN,vbphrase="undefined"==typeof vbphrase?[]:vbphrase,vB_Editor=[],ignorequotechars=!1,pagenavcounter=0,is_regexp=window.RegExp?!0:!1,AJAX_Compatible=!1,viewport_info=null,vB_Default_Timeout=15E3,userAgent=navigator.userAgent.toLowerCase(),is_opera=0<YAHOO.env.ua.opera,is_saf=0<YAHOO.env.ua.webkit,is_webtv=-1!=userAgent.indexOf("webtv"),is_ie=0<YAHOO.env.ua.ie&&!is_opera&&!is_saf&&
!is_webtv,is_ie4=4==YAHOO.env.ua.ie,is_ie7=7<=YAHOO.env.ua.ie,is_ps3=-1!=userAgent.indexOf("playstation 3"),is_moz=0<YAHOO.env.ua.gecko,is_kon=-1!=userAgent.indexOf("konqueror"),is_ns=-1==userAgent.indexOf("compatible")&&-1!=userAgent.indexOf("mozilla")&&!is_opera&&!is_webtv&&!is_saf,is_ns4=is_ns&&4==parseInt(navigator.appVersion),is_mac=-1!=userAgent.indexOf("mac"),pointer_cursor=is_ie?"hand":"pointer";
String.prototype.vBlength=function(){return is_ie&&-1!=this.indexOf("\n")?this.replace(/\r?\n/g,"_").length:this.length};if("12"=="1234".substr(-2,2))String.prototype.substr_orig=String.prototype.substr,String.prototype.substr=function(a,b){return"undefined"==typeof b?this.substr_orig(0>a?this.length+a:a):this.substr_orig(0>a?this.length+a:a,b)};
if("undefined"===typeof Array.prototype.shift)Array.prototype.shift=function(){for(var a=0,b=this[0],c=this.length-1;a<c;a++)this[a]=this[a+1];this.length--;return b};function fetch_object(a){return document.getElementById?document.getElementById(a):document.all?document.all[a]:document.layers?document.layers[a]:null}function fetch_tags(a,b){return null==a?[]:"undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b):a.all&&a.all.tags?a.all.tags(b):[]}
function fetch_tag_count(a,b){return fetch_tags(a,b).length}function do_an_e(a){if(!a||is_ie)return window.event.returnValue=!1,window.event.cancelBubble=!0,window.event;a.stopPropagation();a.preventDefault();return a}function e_by_gum(a){if(!a||is_ie)return window.event.cancelBubble=!0,window.event;"submit"==a.target.type&&a.target.form.submit();a.stopPropagation();return a}
function validatemessage(a,b,c){if(is_kon||is_saf||is_webtv)return!0;if(1>b.length)return alert(vbphrase.must_enter_subject),!1;if(PHP.trim(stripcode(a,!1,ignorequotechars)).length<c)return alert(construct_phrase(vbphrase.message_too_short,c)),!1;return"undefined"!=typeof document.forms.vbform&&"undefined"!=typeof document.forms.vbform.imagestamp&&(document.forms.vbform.imagestamp.failed=!1,6!=document.forms.vbform.imagestamp.value.length)?(alert(vbphrase.complete_image_verification),document.forms.vbform.imagestamp.failed=
!0,document.forms.vbform.imagestamp.focus(),!1):!0}
function stripcode(a,b,c){if(!is_regexp)return a;if(c)for(c=(new Date).getTime();!1!==(startindex=PHP.stripos(a,"[quote"))&&!(2E3<(new Date).getTime()-c);){if(!1!==(stopindex=PHP.stripos(a,"[/quote]")))fragment=a.substr(startindex,stopindex-startindex+8),a=a.replace(fragment,"");else break;a=PHP.trim(a)}b?(a=a.replace(/<img[^>]+src="([^"]+)"[^>]*>/gi,"$1"),b=RegExp("<\\/\\w+>","gi"),a=a.replace(RegExp("<(\\w+)[^>]*>","gi"),""),a=a.replace(b,""),a=a.replace(RegExp("(&nbsp;)","gi")," ")):(b=RegExp("\\[\\/(\\w+)\\]",
"gi"),a=a.replace(RegExp("\\[(\\w+)(=[^\\]]*)?\\]","gi"),""),a=a.replace(b,""));return a}function vB_PHP_Emulator(){}vB_PHP_Emulator.prototype.stripos=function(a,b,c){"undefined"==typeof c&&(c=0);index=a.toLowerCase().indexOf(b.toLowerCase(),c);return-1==index?!1:index};vB_PHP_Emulator.prototype.ltrim=function(a){return a.replace(/^\s+/g,"")};vB_PHP_Emulator.prototype.rtrim=function(a){return a.replace(/(\s+)$/g,"")};vB_PHP_Emulator.prototype.trim=function(a){return this.ltrim(this.rtrim(a))};
vB_PHP_Emulator.prototype.preg_quote=function(a){return a.replace(/(\+|\{|\}|\(|\)|\[|\]|\||\/|\?|\^|\$|\\|\.|\=|\!|\<|\>|\:|\*)/g,"\\$1")};vB_PHP_Emulator.prototype.match_all=function(a,b){var c=a.match(RegExp(b,"gim"));if(c){for(var d=[],e=RegExp(b,"im"),f=0;f<c.length;f++)d[d.length]=c[f].match(e);return d}return!1};
vB_PHP_Emulator.prototype.unhtmlspecialchars=function(a){var b=[/&lt;/g,/&gt;/g,/&quot;/g,/&amp;/g],c=["<",">",'"',"&"],d;for(d in b)YAHOO.lang.hasOwnProperty(b,d)&&(a=a.replace(b[d],c[d]));return a};vB_PHP_Emulator.prototype.unescape_cdata=function(a){return a.replace(/<\=\!\=\[\=C\=D\=A\=T\=A\=\[/g,"<![CDATA[").replace(/\]\=\]\=>/g,"]]\>")};
vB_PHP_Emulator.prototype.htmlspecialchars=function(a){for(var b=[is_mac&&is_ie?RegExp("&","g"):RegExp("&(?!#[0-9]+;)","g"),RegExp("<","g"),RegExp(">","g"),RegExp('"',"g")],c=["&amp;","&lt;","&gt;","&quot;"],d=0;d<b.length;d++)a=a.replace(b[d],c[d]);return a};
vB_PHP_Emulator.prototype.in_array=function(a,b,c){var a=new String(a),d;if(c)for(d in a=a.toLowerCase(),b){if(YAHOO.lang.hasOwnProperty(b,d)&&b[d].toLowerCase()==a)return d}else for(d in b)if(YAHOO.lang.hasOwnProperty(b,d)&&b[d]==a)return d;return-1};vB_PHP_Emulator.prototype.str_pad=function(a,b,c){a=new String(a);c=new String(c);if(a.length<b){for(padtext=new String(c);padtext.length<b-a.length;)padtext+=c;a=padtext.substr(0,b-a.length)+a}return a};
vB_PHP_Emulator.prototype.urlencode=function(a){var a=escape(a.toString()).replace(/\+/g,"%2B"),b=a.match(/(%([0-9A-F]{2}))/gi);if(b)for(var c=0;c<b.length;c++){var d=b[c].substring(1,3);128<=parseInt(d,16)&&(a=a.replace(b[c],"%u00"+d))}return a=a.replace("%25","%u0025")};vB_PHP_Emulator.prototype.ucfirst=function(a,b){if("undefined"!=typeof b){var c=a.indexOf(b);0<c&&(a=a.substr(0,c))}a=a.split(" ");for(c=0;c<a.length;c++)a[c]=a[c].substr(0,1).toUpperCase()+a[c].substr(1);return a.join(" ")};
function vB_AJAX_Handler(a){this.async=a?!0:!1;this.conn=null}vB_AJAX_Handler.prototype.init=function(){return AJAX_Compatible};vB_AJAX_Handler.is_compatible=function(){return AJAX_Compatible};vB_AJAX_Handler.prototype.onreadystatechange=function(a){this.callback=a};
vB_AJAX_Handler.prototype.fetch_data=function(a){console.warn('vB_AJAX_Handler.prototype.fetch_data() is deprecated.\nUse responseXML.getElementsByTagName("x")[i].firstChild.nodeValue instead.');return a&&a.firstChild&&a.firstChild.nodeValue?PHP.unescape_cdata(a.firstChild.nodeValue):""};vB_AJAX_Handler.prototype.send=function(a,b){this.conn=YAHOO.util.Connect.asyncRequest("POST",a,{success:this.callback},b+"&securitytoken="+SECURITYTOKEN+"&s="+fetch_sessionhash());this.handler=this.conn.conn};
function is_ajax_compatible(){if("undefined"!=typeof vb_disable_ajax&&2==vb_disable_ajax)return!1;if(is_ie&&!is_ie4)return!0;if(window.XMLHttpRequest)try{return(new XMLHttpRequest).setRequestHeader?!0:!1}catch(a){return!1}else return!1}AJAX_Compatible=is_ajax_compatible();console.info("This browser is%s AJAX compatible",AJAX_Compatible?"":" NOT");function vBulletin_AJAX_Error_Handler(a){console.warn("AJAX Error: Status = %s: %s",a.status,a.statusText)}
function vB_Hidden_Form(a){this.action=a;this.variables=[]}vB_Hidden_Form.prototype.add_variable=function(a,b){this.variables[this.variables.length]=[a,b];console.log("vB_Hidden_Form :: add_variable(%s)",a)};
vB_Hidden_Form.prototype.add_variables_from_object=function(a){if(a){console.info("vB_Hidden_Form :: add_variables_from_object(%s)",a.id);var b=fetch_tags(a,"input"),c;for(c=0;c<b.length;c++)switch(b[c].type){case "checkbox":case "radio":b[c].checked&&this.add_variable(b[c].name,b[c].value);break;case "text":case "hidden":case "password":this.add_variable(b[c].name,b[c].value)}b=fetch_tags(a,"textarea");for(c=0;c<b.length;c++)this.add_variable(b[c].name,b[c].value);a=fetch_tags(a,"select");for(c=
0;c<a.length;c++)if(a[c].multiple)for(b=0;b<a[c].options.length;b++)a[c].options[b].selected&&this.add_variable(a[c].name,a[c].options[b].value);else this.add_variable(a[c].name,a[c].options[a[c].selectedIndex].value)}};vB_Hidden_Form.prototype.fetch_variable=function(a){for(var b=0;b<this.variables.length;b++)if(this.variables[b][0]==a)return this.variables[b][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 a=0;a<this.variables.length;a++){var b=document.createElement("input");b.type="hidden";b.name=this.variables[a][0];b.value=this.variables[a][1];this.form.appendChild(b)}console.info("vB_Hidden_Form :: submit_form() -> %s",this.action);document.body.appendChild(this.form).submit()};
vB_Hidden_Form.prototype.build_query_string=function(){for(var a="",b=0;b<this.variables.length;b++)a+=this.variables[b][0]+"="+PHP.urlencode(this.variables[b][1])+"&";console.info("vB_Hidden_Form :: Query String = %s",a);return a};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 vB_Select_Overlay_Handler(a){if(this.browser_affected=is_ie&&7>YAHOO.env.ua.ie)this.overlay=YAHOO.util.Dom.get(a),this.hidden_selects=[],console.log("Initializing <select> overlay handler for '%s'.",this.overlay.id)}
vB_Select_Overlay_Handler.prototype.hide=function(){if(this.browser_affected)for(var a=YAHOO.util.Dom.getRegion(this.overlay),b=document.getElementsByTagName("select"),c=0;c<b.length;c++)region_intersects(b[c],a)&&!YAHOO.util.Dom.isAncestor(this.overlay,b[c])&&(YAHOO.util.Dom.setStyle(b[c],"visibility","hidden"),this.hidden_selects.push(YAHOO.util.Dom.generateId(b[c])))};
vB_Select_Overlay_Handler.prototype.show=function(){if(this.browser_affected)for(var a;a=this.hidden_selects.pop();)YAHOO.util.Dom.setStyle(a,"visibility","visible")};function openWindow(a,b,c,d){return window.open(a,"undefined"==typeof d?"vBPopup":d,"statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes"+("undefined"!=typeof b?",width="+b:"")+("undefined"!=typeof c?",height="+c:""))}
function js_open_help(a,b,c){return openWindow("help.php?s="+SESSIONHASH+"&do=answer&page="+a+"&pageaction="+b+"&option="+c,600,450,"helpwindow")}function attachments(a){return openWindow("misc.php?"+SESSIONURL+"do=showattachments&t="+a,480,300)}function who(a){return openWindow("misc.php?"+SESSIONURL+"do=whoposted&t="+a,230,300)}function imwindow(a,b,c,d){return openWindow("sendmessage.php?"+SESSIONURL+"do=im&type="+a+"&u="+b,c,d)}
function SendMSNMessage(a){if(is_ie)try{MsgrObj.InstantMessage(a)}catch(b){alert(vbphrase.msn_functions_only_work_in_ie)}else alert(vbphrase.msn_functions_only_work_in_ie);return!1}function AddMSNContact(a){if(is_ie)try{MsgrObj.AddContact(0,a)}catch(b){alert(vbphrase.msn_functions_only_work_in_ie)}else alert(vbphrase.msn_functions_only_work_in_ie);return!1}
function detect_caps_lock(a){var a=a?a:window.event,b=a.which?a.which:a.keyCode?a.keyCode:a.charCode?a.charCode:0,c=a.shiftKey||a.modifiers&&a.modifiers&4,a=a.ctrlKey||a.modifiers&&a.modifiers&2;return 65<=b&&90>=b&&!c&&!a||97<=b&&122>=b&&c}function log_out(a){var b=document.getElementsByTagName("html")[0];b.style.filter="progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";if(confirm(a))return!0;b.style.filter="";return!1}
function set_cookie(a,b,c){console.log("Set Cookie :: %s = '%s'",a,b);document.cookie=a+"="+escape(b)+"; path=/"+("undefined"!=typeof c?"; expires="+c.toGMTString():"")}function delete_cookie(a){console.log("Delete Cookie :: %s",a);document.cookie=a+"=; expires=Thu, 01-Jan-70 00:00:01 GMT; path=/"}
function fetch_cookie(a){cookie_name=a+"=";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 b=document.cookie.indexOf(";",value_begin);-1==b&&(b=cookie_length);b=unescape(document.cookie.substring(value_begin,b));console.log("Fetch Cookie :: %s = '%s'",a,b);return b}cookie_begin=document.cookie.indexOf(" ",cookie_begin)+1;if(0==cookie_begin)break}console.log("Fetch Cookie :: %s (null)",
a);return null}function js_toggle_all(a,b,c,d,e){for(var f=0;f<a.elements.length;f++){var g=a.elements[f];if(g.type==b&&-1==PHP.in_array(g.name,d,!1))switch(b){case "radio":if(g.value==c)g.checked=e;break;case "select-one":g.selectedIndex=e;break;default:g.checked=e}}}function js_select_all(a){exclude=["selectall"];js_toggle_all(a,"select-one","",exclude,a.selectall.selectedIndex)}
function js_check_all(a){exclude=["keepattachments","allbox","removeall"];js_toggle_all(a,"checkbox","",exclude,a.allbox.checked)}function js_check_all_option(a,b){exclude=["useusergroup"];js_toggle_all(a,"radio",b,exclude,!0)}function checkall(a){js_check_all(a)}function checkall_option(a,b){js_check_all_option(a,b)}function resize_textarea(a,b){var c=fetch_object(b);c.style.width=parseInt(c.offsetWidth)+(0>a?-100:100)+"px";c.style.height=parseInt(c.offsetHeight)+(0>a?-100:100)+"px";return!1}
function region_intersects(a,b){a="undefined"==typeof a.left?YAHOO.util.Dom.getRegion(a):a;b="undefined"==typeof b.left?YAHOO.util.Dom.getRegion(b):b;return a.left>b.right||a.right<b.left||a.top>b.bottom||a.bottom<b.top?!1:!0}
function fetch_viewport_info(){null==viewport_info&&(viewport_info={x:YAHOO.util.Dom.getDocumentScrollLeft(),y:YAHOO.util.Dom.getDocumentScrollTop(),w:YAHOO.util.Dom.getViewportWidth(),h:YAHOO.util.Dom.getViewportHeight()},console.info("Viewport Info: Size = %dx%d, Position = %d,%d",viewport_info.w,viewport_info.h,viewport_info.x,viewport_info.y));return viewport_info}function clear_viewport_info(){viewport_info=null}
function center_element(a){viewport_info=fetch_viewport_info();YAHOO.util.Dom.setXY(a,[viewport_info.w/2+viewport_info.x-a.clientWidth/2,viewport_info.h/2+viewport_info.y-a.clientHeight/2])}
function fetch_all_stylesheets(){for(var a=[],b=0,c=null,d=0,e=0,b=0;b<document.styleSheets.length;b++){c=document.styleSheets[b];a.push(c);try{if(c.cssRules)for(d=0;d<c.cssRules.length;d++)c.cssRules[d].styleSheet&&a.push(c.cssRules[d].styleSheet);else if(c.imports)for(e=0;e<c.imports.length;e++)a.push(c.imports[e])}catch(f){a.pop()}}return a}
function highlight_login_box(){var a=fetch_object("navbar_username"),b;if(a){a.focus();a.select();for(b=0;1600>b;b+=400)window.setTimeout(function(){YAHOO.util.Dom.addClass(a,"inlinemod")},b),window.setTimeout(function(){YAHOO.util.Dom.removeClass(a,"inlinemod")},b+200)}return!1}
function toggle_collapse(a,b){if(!is_regexp)return!1;var c=fetch_object("collapseobj_"+a),d=fetch_object("collapseimg_"+a),e=fetch_object("collapsecel_"+a);if(!c){if(d)d.style.display="none";return!1}if("none"==c.style.display||"open"==b){c.style.display="";b||save_collapsed(a,!1);if(d)img_re=/_collapsed\.gif$/,d.src=d.src.replace(img_re,".gif");if(e)cel_re=/^(thead|tcat)(_collapsed)$/,e.className=e.className.replace(cel_re,"$1")}else if("none"!=c.style.display||"closed"==b){c.style.display="none";
b||save_collapsed(a,!0);if(d)img_re=/\.gif$/,d.src=d.src.replace(img_re,"_collapsed.gif");if(e)cel_re=/^(thead|tcat)$/,e.className=e.className.replace(cel_re,"$1_collapsed")}return!1}
function save_collapsed(a,b){var c=fetch_cookie("vbulletin_collapse"),d=[];if(null!=c){var c=c.split("\n"),e;for(e in c)YAHOO.lang.hasOwnProperty(c,e)&&c[e]!=a&&""!=c[e]&&(d[d.length]=c[e])}b&&(d[d.length]=a);expires=new Date;expires.setTime(expires.getTime()+31536E6);set_cookie("vbulletin_collapse",d.join("\n"),expires)}function vBpagenav(){}
vBpagenav.prototype.controlobj_onclick=function(a){this._onclick(a);for(var a=fetch_tags(this.menu.menuobj,"input"),b=0;b<a.length;b++)if("text"==a[b].type){a[b].focus();break}};vBpagenav.prototype.form_gotopage=function(){if(0<(pagenum=parseInt(fetch_object("pagenav_itxt").value,10)))window.location=vBmenu.menus[vBmenu.activemenu].addr+"&page="+pagenum;return!1};vBpagenav.prototype.ibtn_onclick=function(){return this.form.gotopage()};
vBpagenav.prototype.itxt_onkeypress=function(a){return 13==(a?a:window.event).keyCode?this.form.gotopage():!0};function vbmenu_register(a,b){return"object"==typeof vBmenu?vBmenu.register(a,b):!1}function string_to_node(a){var b=document.createElement("div");b.innerHTML=a;for(a=b.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;return a?a.cloneNode(!0):b.firstChild.cloneNode(!0)}
function set_unselectable(a){a=YAHOO.util.Dom.get(a);if(!is_ie4&&"undefined"!=typeof a.tagName){if(a.hasChildNodes())for(var b=0;b<a.childNodes.length;b++)set_unselectable(a.childNodes[b]);a.unselectable="on"}}function fetch_sessionhash(){return""==SESSIONURL?"":SESSIONURL.substr(2,32)}function construct_phrase(){if(!arguments||1>arguments.length||!is_regexp)return!1;for(var a=arguments,b=a[0],c,d=1;d<a.length;d++)c=RegExp("%"+d+"\\$s","gi"),b=b.replace(c,a[d]);return b}
function switch_id(a,b){var c=a.options[a.selectedIndex].value;if(""!=c){var d=new String(window.location),e=new String(""),d=d.split("#");d[1]&&(e="#"+d[1]);d=d[0];-1!=d.indexOf(b+"id=")&&is_regexp&&(d=d.replace(RegExp(b+"id=\\d+&?"),""));-1==d.indexOf("?")?d+="?":(lastchar=d.substr(d.length-1),"&"!=lastchar&&"?"!=lastchar&&(d+="&"));window.location=d+b+"id="+c+e}}function child_img_alt_2_title(a){for(var a=a.getElementsByTagName("img"),b=0;b<a.length;b++)img_alt_2_title(a[b])}
function img_alt_2_title(a){if(!a.title&&""!=a.alt)a.title=a.alt}function do_securitytoken_replacement(a){if(""!=a){for(var b=0;b<document.forms.length;b++)if(document.forms[b].elements.securitytoken&&document.forms[b].elements.securitytoken.value==SECURITYTOKEN)document.forms[b].elements.securitytoken.value=a;SECURITYTOKEN=a;console.log("Securitytoken updated")}}
function handle_securitytoken_response(a){console.log("Processing securitytoken update");a.responseXML&&a.responseXML.getElementsByTagName("securitytoken").length?(a=a.responseXML.getElementsByTagName("securitytoken")[0].firstChild.nodeValue,do_securitytoken_replacement(a),securitytoken_errors=0):handle_securitytoken_error(a)}function handle_securitytoken_error(){console.log("Securitytoken Error");3==++securitytoken_errors&&do_securitytoken_replacement("guest")}
var securitytoken_timeout=window.setTimeout("replace_securitytoken()",36E5),securitytoken_errors=0;
function replace_securitytoken(){window.clearTimeout(securitytoken_timeout);AJAX_Compatible&&""!=SECURITYTOKEN&&"guest"!=SECURITYTOKEN&&(securitytoken_timeout=window.setTimeout("replace_securitytoken()",36E5),YAHOO.util.Connect.asyncRequest("POST","ajax.php",{success:handle_securitytoken_response,failure:handle_securitytoken_error,timeout:vB_Default_Timeout},SESSIONURL+"securitytoken="+SECURITYTOKEN+"&do=securitytoken"))}
function Comment_Init(a){if("undefined"!=typeof a.id){var b=a.id;if(isNaN(b)){var c=null;if(c=b.match(/(\d+)/))b=c[0]}"undefined"!=typeof inlineMod_comment&&im_init(a,inlineMod_comment);"undefined"!=typeof vB_QuickEditor_Factory&&("undefined"==typeof vB_QuickEditor_Factory.controls[b]?vB_QuickEditor_Factory.controls[b]=new vB_QuickEditor(b,vB_QuickEditor_Factory):vB_QuickEditor_Factory.controls[b].init());"undefined"!=typeof vB_QuickLoader_Factory&&(vB_QuickLoader_Factory.controls[b]=new vB_QuickLoader(b,
vB_QuickLoader_Factory));child_img_alt_2_title(a)}}
function PostBit_Init(a,b){console.log("PostBit Init: %d",b);if("undefined"!=typeof vBmenu)for(var c=fetch_tags(a,"div"),d=0;d<c.length;d++)c[d].id&&"postmenu_"==c[d].id.substr(0,9)&&vBmenu.register(c[d].id,!0);"undefined"!=typeof vB_QuickEditor&&vB_AJAX_QuickEdit_Init(a);"undefined"!=typeof vB_QuickReply&&qr_init_buttons(a);"undefined"!=typeof mq_init&&mq_init(a);"undefined"!=typeof vBrep&&"undefined"!=typeof b&&"null"!=typeof b&&vbrep_register(b);"undefined"!=typeof inlineMod&&im_init(a);"undefined"!=
typeof vB_Lightbox&&init_postbit_lightbox(a,!1,!0);child_img_alt_2_title(a)}
function vBulletin_init(){if(is_webtv)return!1;child_img_alt_2_title(document);if("object"==typeof vBmenu){"undefined"!=typeof YAHOO?(YAHOO.util.Event.on(document,"click",vbmenu_hide),YAHOO.util.Event.on(window,"resize",vbmenu_hide)):window.attachEvent&&!is_saf?(document.attachEvent("onclick",vbmenu_hide),window.attachEvent("onresize",vbmenu_hide)):document.addEventListener&&!is_saf?(document.addEventListener("click",vbmenu_hide,!1),window.addEventListener("resize",vbmenu_hide,!1)):(window.onclick=
vbmenu_hide,window.onresize=vbmenu_hide);for(var a=fetch_tags(document,"td"),b=0;b<a.length;b++)if(a[b].hasChildNodes()&&a[b].firstChild.name&&-1!=a[b].firstChild.name.indexOf("PageNav")){var c=a[b].title;a[b].title="";a[b].innerHTML="";a[b].id="pagenav."+b;var d=vBmenu.register(a[b].id);d.addr=c;if(is_saf)d.controlobj._onclick=d.controlobj.onclick,d.controlobj.onclick=vBpagenav.prototype.controlobj_onclick}if("undefined"!=typeof c)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(!0)}vBulletin.init();return!0}function vBulletin_Framework(){this.elements=[];this.ajaxurls=[];this.events=[];this.time=new Date;this.add_event("systemInit")}vBulletin_Framework.prototype.init=function(){console.info("Firing System Init");this.events.systemInit.fire()};
vBulletin_Framework.prototype.extend=function(a,b){function c(){}c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.baseConstructor=b;a.superClass=b.prototype};vBulletin_Framework.prototype.register_control=function(a,b){for(var c=[],d=1;d<arguments.length;d++)c.push(arguments[d]);this.elements[a]||(console.info('Creating array vBulletin.elements["%s"]',a),this.elements[a]=[]);d=this.elements[a].push(c);console.log('vBulletin.elements["%s"][%d] = %s',a,d-1,c.join(", "))};
vBulletin_Framework.prototype.register_ajax_urls=function(a,b,c){a=a.split("?");a[1]=SESSIONURL+"securitytoken="+SECURITYTOKEN+"&ajax=1&"+a[1].replace(/\{(\d+)(:\w+)?\}/gi,"%$1$s");b=b.split("?");b[1]=SESSIONURL+"securitytoken="+SECURITYTOKEN+"&ajax=1&"+b[1].replace(/\{(\d+)(:\w+)?\}/gi,"%$1$s");console.log("Register AJAX URLs for %s",c);for(var d=0;d<c.length;d++)this.ajaxurls[c[d]]=[a,b]};vBulletin_Framework.prototype.add_event=function(a){this.events[a]=new YAHOO.util.CustomEvent(a)};
vBulletin_Framework.prototype.console=function(){if(window.console||console.firebug){for(var a=[],b=0;b<arguments.length;b++)a[a.length]=arguments[b];try{eval("console.log('"+a.join("','")+"');")}catch(c){}}};var PHP=new vB_PHP_Emulator,vBulletin=new vBulletin_Framework;vBulletin.events.systemInit.subscribe(function(){YAHOO.util.Event.on(window,"resize",clear_viewport_info);YAHOO.util.Event.on(window,"scroll",clear_viewport_info)});
function handle_dismiss_notice_error(a){if(a.argument)YAHOO.util.Dom.get("dismiss_notice_hidden").value=a.argument,YAHOO.util.Dom.get("notices").submit()}
function handle_dismiss_notice_ajax(a){if(a.responseXML&&a.responseXML.getElementsByTagName("dismissed").length){if(a=a.responseXML.getElementsByTagName("dismissed")[0].firstChild.nodeValue,a=YAHOO.util.Dom.get("navbar_notice_"+a),null!=a){a.style.display="none";var a=YAHOO.util.Dom.getElementsByClassName("navbar_notice","",YAHOO.util.Dom.get("notices")),b=0;for(i=0;i<a.length;i++)"none"!=a[i].style.display&&b++;if(0==b&&(a=YAHOO.util.Dom.get("notices"),null!=a))a.style.display="none"}}else handle_dismiss_notice_error(a)}
function dismiss_notice(a){return AJAX_Compatible?(YAHOO.util.Connect.asyncRequest("POST","ajax.php?do=dismissnotice",{success:handle_dismiss_notice_ajax,failure:handle_dismiss_notice_error,timeout:vB_Default_Timeout,argument:a},SESSIONURL+"securitytoken="+SECURITYTOKEN+"&do=dismissnotice&noticeid="+PHP.urlencode(a)),!1):!0}vBulletin.add_event("vBmenuShow");vBulletin.add_event("vBmenuHide");
function vB_Popup_Handler(){this.open_steps=10;this.active=this.open_fade=!1;this.menus=[];this.activemenu=null}vB_Popup_Handler.prototype.activate=function(a){this.active=a;console.log("vBmenu :: System Activated")};vB_Popup_Handler.prototype.register=function(a,b,c){this.menus[a]=new vB_Popup_Menu(a,b,c);if((b=YAHOO.util.Dom.get("usercss"))&&YAHOO.util.Dom.isAncestor(b,a))this.menus[a].imgsrc=IMGDIR_MISC+"/menu_open_usercss.gif";this.menus[a].startup();return this.menus[a]};
vB_Popup_Handler.prototype.hide=function(){null!=this.activemenu&&this.menus[this.activemenu].hide()};var vBmenu=new vB_Popup_Handler;function vbmenu_hide(a){if(a&&a.button&&1!=a.button&&"click"==a.type)return!0;vBmenu.hide()}function vB_Popup_Menu(a,b,c){this.controlkey=a;this.noimage=b;this.noslide=c;this.menuname=this.controlkey.split(".")[0]+"_menu";this.imgsrc=IMGDIR_MISC+"/menu_open.gif"}
vB_Popup_Menu.prototype.startup=function(){this.init_control(this.noimage);fetch_object(this.menuname)&&this.init_menu();this.slide_open=this.noslide?!1:!0;this.open_steps=vBmenu.open_steps;vBulletin.add_event("vBmenuShow_"+this.controlkey);vBulletin.add_event("vBmenuHide_"+this.controlkey)};
vB_Popup_Menu.prototype.init_control=function(a){this.controlobj=fetch_object(this.controlkey);this.controlobj.state=!1;if(!this.controlobj.firstChild||!("TEXTAREA"==this.controlobj.firstChild.tagName||"INPUT"==this.controlobj.firstChild.tagName)){if(!a&&(!is_mac||!is_ie)){this.controlobj.appendChild(document.createTextNode(" "));var b=document.createElement("img");b.src=this.imgsrc;b.border=0;b.title="";b.alt="";this.img=this.controlobj.appendChild(b)}this.controlobj.unselectable=!0;if(!a)this.controlobj.style.cursor=
pointer_cursor;this.controlobj.onclick=vB_Popup_Events.prototype.controlobj_onclick;this.controlobj.onmouseover=vB_Popup_Events.prototype.controlobj_onmouseover}};
vB_Popup_Menu.prototype.init_menu=function(){this.menuobj=fetch_object(this.menuname);this.select_handler=new vB_Select_Overlay_Handler(this.menuobj);if(this.menuobj&&!this.menuobj.initialized){this.menuobj.initialized=!0;this.menuobj.onclick=e_by_gum;this.menuobj.style.position="absolute";this.menuobj.style.zIndex=50;if(is_ie&&!is_mac)7>YAHOO.env.ua.ie?this.menuobj.style.filter+="alpha(enabled=1,opacity=100)":this.menuobj.style.minHeight="1%";this.init_menu_contents()}};
vB_Popup_Menu.prototype.init_menu_contents=function(){for(var a=["td","li"],b=0;b<a.length;b++)for(var c=fetch_tags(this.menuobj,a[b]),d=0;d<c.length;d++){if("vbmenu_option"==c[d].className)if(c[d].title&&"nohilite"==c[d].title)c[d].title="";else{c[d].controlkey=this.controlkey;c[d].onmouseover=vB_Popup_Events.prototype.menuoption_onmouseover;c[d].onmouseout=vB_Popup_Events.prototype.menuoption_onmouseout;var e=fetch_tags(c[d],"a");if(1==e.length){c[d].className+=" vbmenu_option_alink";c[d].islink=
!0;var e=e[0],f=!1;c[d].target=e.getAttribute("target");"function"==typeof e.onclick?(c[d].ofunc=e.onclick,c[d].onclick=vB_Popup_Events.prototype.menuoption_onclick_function,f=!0):"function"==typeof c[d].onclick?(c[d].ofunc=c[d].onclick,c[d].onclick=vB_Popup_Events.prototype.menuoption_onclick_function,f=!0):(c[d].href=e.href,c[d].onclick=vB_Popup_Events.prototype.menuoption_onclick_link);if(f)f=document.createElement("a"),f.innerHTML=e.innerHTML,f.href="#",f.onclick=function(a){a=a?a:window.event;
return a.returnValue=!1},c[d].insertBefore(f,e),c[d].removeChild(e)}else if("function"==typeof c[d].onclick)c[d].ofunc=c[d].onclick,c[d].onclick=vB_Popup_Events.prototype.menuoption_onclick_function}if("nohilite"==c[d].title)c[d].title=""}};
vB_Popup_Menu.prototype.show=function(a,b){if(vBmenu.active)this.menuobj||this.init_menu();else return!1;if(!this.menuobj||vBmenu.activemenu==this.controlkey)return!1;console.log("vBmenu :: Show '%s'",this.controlkey);null!=vBmenu.activemenu&&vBmenu.activemenu!=this.controlkey&&vBmenu.menus[vBmenu.activemenu].hide();vBmenu.activemenu=this.controlkey;this.menuobj.style.display="";if(this.slide_open)this.menuobj.style.clip="rect(auto, 0px, 0px, auto)";this.set_menu_position(a);if(!b&&this.slide_open)this.intervalX=
Math.ceil(this.menuobj.offsetWidth/this.open_steps),this.intervalY=Math.ceil(this.menuobj.offsetHeight/this.open_steps),this.slide("left"==this.direction?0:this.menuobj.offsetWidth,0,0);else if(this.menuobj.style.clip&&this.slide_open)this.menuobj.style.clip="rect(auto, auto, auto, auto)";this.select_handler.hide();if(this.controlobj.editorid)this.controlobj.state=!0,vB_Editor[this.controlobj.editorid].menu_context(this.controlobj,"mousedown");vBulletin.events["vBmenuShow_"+this.controlkey].fire(this.controlkey);
vBulletin.events.vBmenuShow.fire(this.controlkey)};
vB_Popup_Menu.prototype.set_menu_position=function(a){this.pos=this.fetch_offset(a);this.leftpx=this.pos.left;this.toppx=this.pos.top+a.offsetHeight;this.leftpx+this.menuobj.offsetWidth>=document.body.clientWidth&&0<this.leftpx+a.offsetWidth-this.menuobj.offsetWidth?(this.leftpx=this.leftpx+a.offsetWidth-this.menuobj.offsetWidth,this.direction="right"):this.direction="left";this.controlkey.match(/^pagenav\.\d+$/)&&a.appendChild(this.menuobj);this.menuobj.style.left=this.leftpx+"px";this.menuobj.style.top=
this.toppx+"px"};vB_Popup_Menu.prototype.hide=function(a){if(a&&a.button&&1!=a.button)return!0;console.log("vBmenu :: Hide '%s'",this.controlkey);this.stop_slide();this.menuobj.style.display="none";this.select_handler.show();if(this.controlobj.editorid)this.controlobj.state=!1,vB_Editor[this.controlobj.editorid].menu_context(this.controlobj,"mouseout");vBmenu.activemenu=null;vBulletin.events["vBmenuHide_"+this.controlkey].fire(this.controlkey);vBulletin.events.vBmenuHide.fire(this.controlkey)};
vB_Popup_Menu.prototype.hover=function(a){null!=vBmenu.activemenu&&vBmenu.menus[vBmenu.activemenu].controlkey!=this.id&&this.show(a,!0)};
vB_Popup_Menu.prototype.slide=function(a,b,c){"left"==this.direction&&(a<this.menuobj.offsetWidth||b<this.menuobj.offsetHeight)?(a+=this.intervalX,b+=this.intervalY,this.menuobj.style.clip="rect(auto, "+a+"px, "+b+"px, auto)",this.slidetimer=setTimeout("vBmenu.menus[vBmenu.activemenu].slide("+a+", "+b+", "+c+");",0)):"right"==this.direction&&(0<a||b<this.menuobj.offsetHeight)?(a-=this.intervalX,b+=this.intervalY,this.menuobj.style.clip="rect(auto, "+this.menuobj.offsetWidth+"px, "+b+"px, "+a+"px)",
this.slidetimer=setTimeout("vBmenu.menus[vBmenu.activemenu].slide("+a+", "+b+", "+c+");",0)):this.stop_slide()};vB_Popup_Menu.prototype.stop_slide=function(){clearTimeout(this.slidetimer);this.menuobj.style.clip="rect(auto, auto, auto, auto)"};
vB_Popup_Menu.prototype.fetch_offset=function(a){if(a.getBoundingClientRect){var a=a.getBoundingClientRect(),b=Math.max(document.documentElement.scrollTop,document.body.scrollTop),c=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft);"rtl"==document.documentElement.dir&&(c=c+document.documentElement.clientWidth-document.documentElement.scrollWidth);return{left:a.left+c,top:a.top+b}}b=a.offsetLeft;for(c=a.offsetTop;null!=(a=a.offsetParent);)b+=a.offsetLeft,c+=a.offsetTop;return{left:b,
top:c}};function vB_Popup_Events(){}vB_Popup_Events.prototype.controlobj_onclick=function(a){"function"==typeof do_an_e&&(do_an_e(a),null==vBmenu.activemenu||vBmenu.menus[vBmenu.activemenu].controlkey!=this.id?vBmenu.menus[this.id].show(this):vBmenu.menus[this.id].hide())};vB_Popup_Events.prototype.controlobj_onmouseover=function(a){"function"==typeof do_an_e&&(do_an_e(a),vBmenu.menus[this.id].hover(this))};vB_Popup_Events.prototype.menuoption_onclick_function=function(a){this.ofunc(a);vBmenu.menus[this.controlkey].hide()};
vB_Popup_Events.prototype.menuoption_onclick_link=function(a){a=a?a:window.event;a.cancelBubble=!0;a.stopPropagation&&a.stopPropagation();a.preventDefault&&a.preventDefault();a.shiftKey||null!=this.target&&""!=this.target&&"_self"!=this.target.toLowerCase()?null!=this.target&&"_"!=this.target.charAt(0)?window.open(this.href,this.target):window.open(this.href):window.location=this.href;vBmenu.menus[this.controlkey].hide();return!1};
vB_Popup_Events.prototype.menuoption_onmouseover=function(){this.className="vbmenu_hilite"+(this.islink?" vbmenu_hilite_alink":"");this.style.cursor=pointer_cursor};vB_Popup_Events.prototype.menuoption_onmouseout=function(){this.className="vbmenu_option"+(this.islink?" vbmenu_option_alink":"");this.style.cursor="default"};function linkRedir(a){if(-1==a.href.indexOf("/out.php?url"))a.href="/out.php?url="+encodeURIComponent(a.href);return!0}
function isMetaDown(a){return a.shiftKey||a.ctrlKey||a.metaKey}function getMouseButton(a){return null==a.which?2>a.button?"LEFT":4==a.button?"MIDDLE":"RIGHT":2>a.which?"LEFT":2==a.which?"MIDDLE":"RIGHT"}function onClickRecThreads(a,b){if(!(isMetaDown(b)||"LEFT"!=getMouseButton(b))){var c=a.parentNode;if(c&&(c=c.getElementsByTagName("td")[2]))if(c=c.getElementsByTagName("div")[0])if(c=c.getElementsByTagName("a")[1])window.location.href=c.href}}
function onClickForumHomeForum(a,b,c){if(!(isMetaDown(c)||"LEFT"!=getMouseButton(c)))window.location.href="http://www.tacomaworld.com/forum/forumdisplay.php?"+a+"f="+b}function onClickForumDisplayThread(a,b,c,d){if(!(isMetaDown(d)||"LEFT"!=getMouseButton(d)))window.location.href="http://www.tacomaworld.com/forum/showthread.php?"+a+"t="+b+c}
function makeQuoteCollapsable(a){a.style.textDecoration="underline";a.style.color="#00f";a.style.cursor="pointer";a.onclick=function(){var a=this.parentNode.getElementsByTagName("table")[0];a.style.display="none"==a.style.display?"inline":"none"}}
function vbCCheckPost(a){for(var b=document.getElementById("post_message_"+a),c=b.getElementsByTagName("div"),d,a=0;a<c.length;a++)d=c[a].getElementsByTagName("div"),0<d.length&&"Quote:"==d[0].innerHTML&&0<c[a].getElementsByTagName("table").length&&makeQuoteCollapsable(d[0]);c=b.getElementsByTagName("img");for(a=0;a<c.length;a++)if(d=imageUrlReplace(c[a].src))c[a].src=d;for(a=0;a<c.length;a++)c[a].onload=function(){imageDimsCheck(this)};c=b.getElementsByTagName("a");for(a=0;a<c.length;a++)if(d=getVideoCode(c[a]))b=
document.createElement("div"),b.innerHTML=d,c[a].parentNode.replaceChild(b,c[a]),a--}function fixEmbeddedVideo(a){var b=a.toLowerCase();return-1!=b.indexOf("object ")&&-1==b.indexOf("classid")?(b=b.indexOf("object ")+7,a.substr(0,b)+'classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" '+a.substr(b)):a}
function getVideoCode(a){for(var b=[["youtube.com",/http:\/\/(.*?\.)?youtube\.com\/(v\/|watch\?[^"]*v=|watch_popup\?[^"]*v=)([^&]*).*/,/^http:/,'<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/$3&amp;rel=1&amp;color1=0x0f3874&amp;color2=0x144998&amp;border=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$3&amp;rel=1&amp;color1=0x0f3874&amp;color2=0x144998&amp;border=0" type="application/x-shockwave-flash" wmode="transparent" width="640" height="385"></embed></object>'],["youtu.be",
/http:\/\/youtu\.be\/([^&]*).*/,/^http:/,'<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/$1&amp;rel=1&amp;color1=0x0f3874&amp;color2=0x144998&amp;border=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/$1&amp;rel=1&amp;color1=0x0f3874&amp;color2=0x144998&amp;border=0" type="application/x-shockwave-flash" wmode="transparent" width="640" height="385"></embed></object>'],["video.google.",/http:\/\/video\.google\.[^\/]*\/videoplay\?docid=([^&]*).*/,
/^http:/,'<embed style="width:400px;height:326px" flashvars="" src="http://video.google.com/googleplayer.swf?docid=$1&hl=en" type="application/x-shockwave-flash"> </embed>'],["metacafe.com",/http:\/\/www\.metacafe\.com\/watch\/([^\/]*)\/([^\/]*).*/,/^http:/,'<embed src="http://www.metacafe.com/fplayer/$1/$2.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"> </embed>'],["funnyordie.com",/http:\/\/www\.funnyordie\.com\/videos\/([^\/]*).*/,
/^http:/,'<object width="512" height="328" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"><param name="movie" value="http://player.ordienetworks.com/flash/fodplayer.swf" /><param name="flashvars" value="key=$1" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always"></param><embed width="512" height="328" flashvars="key=$1" allowfullscreen="true" allowscriptaccess="always" quality="high" src="http://player.ordienetworks.com/flash/fodplayer.swf" type="application/x-shockwave-flash"></embed></object>'],
["photobucket.com",/http:\/\/[a-z](\w+)\.photobucket\.com\/albums\/([^\?]+)\?action=view&current=(.+?\.flv|.+?\.mp4).*/,/(http:\/\/.*?\.(flv|mp4)|<img)/i,'<embed width="448" height="361" type="application/x-shockwave-flash" wmode="transparent" src="http://i$1.photobucket.com/player.swf?file=http://vid$1.photobucket.com/albums/$2$3">'],["myspace",/http:\/\/(vidsearch\.myspace|vids\.myspace|myspacetv)\.com\/index.cfm\?fuseaction=vids\.individual&(videoid|VideoID)=(.+)/,/^http:/,'<object width="425px" height="360px"><param name="allowFullScreen" value="true"/><param name="movie" value="http://mediaservices.myspace.com/services/media/embed.aspx/m=$3,t=1,mt=video"/><embed src="http://mediaservices.myspace.com/services/media/embed.aspx/m=$3,t=1,mt=video" width="425" height="360" allowFullScreen="true" type="application/x-shockwave-flash"></embed></object>'],
["spike.com",/http:\/\/www\.spike\.com\/video\/[^\/]+\/(.*)/,/^http:/,'<embed width="448" height="365" src="http://www.spike.com/efp" quality="high" bgcolor="000000" name="efp" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="flvbaseclip=$1&"> </embed>'],["thedailyshow.com",/http:\/\/www\.thedailyshow\.com\/video\/index.jhtml\?videoId=([^&]*).*/,/^http:/,'<embed FlashVars="videoId=$1" src="http://www.thedailyshow.com/sitewide/video_player/view/default/swf.jhtml" quality="high" bgcolor="#cccccc" width="332" height="316" name="comedy_central_player" align="middle" allowScriptAccess="always" allownetworking="external" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'],
["southparkstudios.com",/http:\/\/www\.southparkstudios\.com\/clips\/([^\/]+).*/,/^http:/,'<embed src="http://media.mtvnservices.com/mgid:cms:item:southparkstudios.com:$1:" type="application/x-shockwave-flash" wmode="window" width="480" height="360" allowFullscreen="true" scriptAccess="always"></embed>'],["liveleak.com",/http:\/\/www\.liveleak\.com\/view\?i=([^&]*).*/,/^http:/,'<object width="450" height="370"><param name="movie" value="http://www.liveleak.com/e/$1"></param><param name="wmode" value="transparent"></param><embed src="http://www.liveleak.com/e/$1" type="application/x-shockwave-flash" wmode="transparent" width="450" height="370"></embed></object>'],
["liveleak.com",/http:\/\/www\.liveleak\.com\/item\?a=view&token=([^&]*).*/,/^http:/,'<object width="450" height="370"><param name="movie" value="http://www.liveleak.com/e/$1"></param><param name="wmode" value="transparent"></param><embed src="http://www.liveleak.com/e/$1" type="application/x-shockwave-flash" wmode="transparent" width="450" height="370"></embed></object>'],["tacomaworld.com",/http:\/\/www\.tacomaworld\.com\/forum\/media\/video\/([^\/]+)/,/(http:\/\/|<img)/i,'<embed width="352" height="308" flashvars="file=/forum/media/data/$1.dat&amp;image=/forum/media/data/thumbs/$1.jpg&amp;type=flv&amp;autostart=false&amp;usefullscreen=false&amp;logo=/forum/media/watermark.png" wmode="opaque" menu="false" quality="high" bgcolor="#FFFFFF" style="" src="/forum/media/dra.swf" type="application/x-shockwave-flash"/>'],
["mindcrap.com",/http:\/\/(.*?\.)?mindcrap\.com\/media\/([^\/]+).*/,/^http:/,'<embed src="http://mindcrap.com/flv_player/Main.swf" quality="high" width="645" height="363" FlashVars="config=http://mindcrap.com/flv_player/data/playerConfigEmbed/$2.xml" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash"></embed>'],["vimeo.com",/http:\/\/(www\.)?vimeo\.com\/(\d+).*/,/^http:/,'<object width="640" height="385"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=$2&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=$2&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="640" height="385"></embed></object>'],
["collegehumor.com",/http:\/\/www\.collegehumor\.com\/video:([\d]+)/,/^http:/,'<object type="application/x-shockwave-flash" data="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=$1&fullscreen=1" width="640" height="360"><param name="allowfullscreen" value="true"/><param name="wmode" value="transparent"/><param name="allowScriptAccess" value="always"/><param name="movie" quality="best" value="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=$1&fullscreen=1"/><embed src="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id=$1&fullscreen=1" type="application/x-shockwave-flash" wmode="transparent" width="640" height="360" allowScriptAccess="always"></embed></object>'],
["facebook.com",/http:\/\/www\.facebook\.com\/.*video\/video\.php\?v=(\d+).*/,/^http:/,'<object width="576" height="432" ><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.facebook.com/v/$1" /><embed src="http://www.facebook.com/v/$1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="576" height="432"></embed></object>'],["vevo.com",/http:\/\/www\.vevo\.com\/watch\/.+\/(.*)/,
/^http:/,'<object width="575" height="324"><param name="movie" value="http://www.vevo.com/VideoPlayer/Embedded?videoId=$1&playlist=false&autoplay=0&playerId=62FF0A5C-0D9E-4AC1-AF04-1D9E97EE3961&playerType=embedded&env=0"></param><param name="wmode" value="transparent"></param><param name="bgcolor" value="#000000"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.vevo.com/VideoPlayer/Embedded?videoId=$1&playlist=false&autoplay=0&playerId=62FF0A5C-0D9E-4AC1-AF04-1D9E97EE3961&playerType=embedded&env=0" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="575" height="324" bgcolor="#000000" wmode="transparent"></embed></object>']],
c,d=0;d<b.length;d++)if(-1!=a.href.indexOf(b[d][0])&&b[d][2].test(a.innerHTML)&&(c=a.href.replace(b[d][1],b[d][3]),c!=a.href))return fixEmbeddedVideo(c);return null}function imageUrlReplace(){return null}var imageDimsMaxWidth=800;
function imageDimsCheck(a){if(!(a.width<=imageDimsMaxWidth)){a.origWidth=a.width;a.origHeight=a.height;a.width=imageDimsMaxWidth;var b=document.createElement("div");b.style.cursor="pointer";b.style.marginTop="3px";b.style.width=a.width-4+"px";b.style.border="1px solid #ccc";b.style.fontSize="10px";b.style.fontFamily="Verdana";b.style.color="#555";b.style.backgroundColor="#ffffe1";b.style.padding="2px 0 0 2px";b.style.height="16px";b.targetimg=a;b.fullsize=0;imageDimsSetPrompt(b,a);b.onclick=function(){return imageDimsPromptClick(b)};
a.parentNode.insertBefore(b,a)}}function imageDimsPromptClick(a){var b=a.targetimg;0==a.fullsize?(b.width=b.origWidth,a.innerHTML="Click for smaller image",a.fullsize=1):(b.width=imageDimsMaxWidth,imageDimsSetPrompt(a,b),a.fullsize=0);a.style.width=b.width-4+"px";return!1}function imageDimsSetPrompt(a,b){a.innerHTML="Click for full-size image ("+b.origWidth+" x "+b.origHeight+")"}var gatid="UA-580498-6";myanmframes=["header_right_sp"];myanmlength=9;myanminterval=0;myanmcur=1;
function myAnmStart(){myanminterval||(myanminterval=setInterval("myAnmDo();",1100),myAnmDo())}function myAnmStop(){myanminterval&&(clearInterval(myanminterval),myanminterval=0)}function myAnmDo(){myanmcur++;myanmcur>=myanmlength&&(myanmcur=0);document.getElementById("featuredtruck").src="/forum/images/misc/"+myanmframes[0]+(myanmcur+1)+".jpg"}
function mobileCheck(){var a=navigator.userAgent;if(!a.match(/Opera/i))if(a.match(/iPhone/i)||a.match(/iPod/i))mobileSetOptions("iphoneipod");else if(a.match(/android/i))mobileSetOptions("android"),document.getElementById("mobilestylelink").style.display="inline-block";else if(0<=a.indexOf("BlackBerry")&&0<=a.indexOf("WebKit"))mobileSetOptions("other"),document.getElementById("mobilestylelink").style.display="inline-block"}
function mobileSetOptions(a){var b=[];b.iphoneipod='>> iPhone/iPod Viewing Choices: 1) <a target="_blank" href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=307880732&mt=8">Tapatalk App</a> or 2) <a href="http://www.tacomaworld.com/forum/index.php?styleid=3">TW Mobile Skin</a>';b.android='>> Mobile Viewing Choices: 1) <a target="_blank" href="market://search?q=pname:com.quoord.tapatalkpro.activity">Tapatalk App</a> or 2) <a href="http://www.tacomaworld.com/forum/index.php?styleid=3">TW Mobile Skin</a>';
b.other='>> <a href="http://www.tacomaworld.com/forum/index.php?styleid=3">Click for the Tacoma World Mobile Skin</a>';if(b[a])document.getElementById("mobilestylelink").innerHTML=b[a]}
function initQR(){var a=navigator.userAgent;if(a.match(/iPhone/i)||a.match(/iPod/i)||a.match(/android/i))return!1;a=document.getElementById("qrcode1");if(!a)return!1;var b,c=document.getElementsByTagName("head")[0].getElementsByTagName("link");if(c)for(var d=0;d<c.length;d++)if("canonical"==c[d].rel){b=c[d].href;-1==b.indexOf(":")&&(b="http://www.tacomaworld.com"+("/"==b.charAt(0)?"":"/")+b);break}if(!b)b=document.location.href;if(-1!=b.indexOf("forum/underground/"))return!1;c=a.getElementsByTagName("img")[0];
c||(c=document.createElement("img"),a.appendChild(c));if(c)c.smallpic="http://i.cdn2.tacomaworld.com/forum/images/misc/qr45.png",c.bigpic="https://chart.googleapis.com/chart?chs=140x140&cht=qr&chld=L|0&chl="+encodeURIComponent(b),c.title="Click for QR Code of this page",c.src=c.smallpic,c.onclick=function(){toggleQR(this)};return!1}
function toggleQR(a){var b=a.parentNode;a.src!=a.bigpic?(a.src=a.bigpic,a.title="Click to hide QR Code for this page",b.className="bigqr"):(a.src=a.smallpic,a.title="Click for QR Code of this page",b.className="")}var _gaq=_gaq||[];_gaq.push(["_setAccount",gatid]);_gaq.push(["_setDomainName","www.tacomaworld.com"]);_gaq.push(["_trackPageview"]);
var kx={input:"",pattern:"38384040373937396665",clear:setTimeout("kx.clear_input()",2E3),load:function(){window.document.onkeydown=function(a){kx.input+=a?a.keyCode:event.keyCode;kx.input==kx.pattern?(kx.code(),clearTimeout(kx.clear)):(clearTimeout(kx.clear),kx.clear=setTimeout("kx.clear_input()",2E3))}},code:function(){for(var a=document.getElementsByTagName("img"),b=0;b<a.length;b++)if(-1!=a[b].src.indexOf("/forum/customavatars/"))a[b].src="/awesome.jpg";setTimeout(function(){window.location="http://www.tacomaworld.com/forum/underground/"},
1E3)},clear_input:function(){kx.input="";clearTimeout(kx.clear)}};"undefined"!=typeof SECURITYTOKEN&&5<SECURITYTOKEN.length&&kx.load();if(!this.JSON)var JSON={parse:function(a){return eval("("+a+")")}};function galGetPos(a){var b=0,c=0;if(a.offsetParent){c=a.offsetLeft;for(b=a.offsetTop;a=a.offsetParent;)c+=a.offsetLeft,b+=a.offsetTop}return[c,b]}function galCreateRequestObject(){return"Microsoft Internet Explorer"==navigator.appName?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest}
var galhttp=galCreateRequestObject();function galShow(a,b,c){galShowInit();galShowRan[b]?galShowTotalImages[b]&&galShowDisplay(b):(galShowRan[b]=!0,galhttp.open("GET","/forum/galshow/index.php?userid="+a+"&objectid="+b+"&posid="+c),galhttp.onreadystatechange=galShowHandleResponse,galhttp.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT"),galhttp.send(null))}var galShowIsInitialized=!1;
function galShowInit(){galShowIsInitialized||(galShowTotalImages=[],galShowCurIndex=[],galShowImageList=[],galShowUser=[],galShowPosId=[],galShowTimerId=[],galShowRan=[],galShowIsInitialized=!0)}
function galShowHandleResponse(){if(4==galhttp.readyState){var a=galhttp.responseText;if(a.length&&"0"!=a)a=JSON.parse(a),galShowTotalImages[a.objectid]=a.images.length,galShowCurIndex[a.objectid]=0,galShowImageList[a.objectid]=a.images.slice(),galShowUser[a.objectid]=a.user,galShowPosId[a.objectid]=a.posid,galShowInitObject(a.objectid)}}
function galShowInitObject(a){var b=document.getElementById(a);b.innerHTML='\t<div class="title">'+galShowUser[a]+'</div>\t<div class="imagecont">\t\t<div class="prev" onclick="galShowPrev(\''+a+'\')"><<</div>\t\t<div class="image">\t\t\t<div class="imagetitle">'+galShowImageList[a][galShowCurIndex[a]].title+'</div>\t\t\t<a target="_blank" href="/gallery/showphoto.php/photo/'+galShowImageList[a][galShowCurIndex[a]].id+"/cat/"+galShowImageList[a][galShowCurIndex[a]].cat+'"><img src="/gallery/data/'+
galShowImageList[a][galShowCurIndex[a]].cat+"/thumbs/"+galShowImageList[a][galShowCurIndex[a]].image+'" alt="" /></a>\t\t\t<div class="state">'+(galShowCurIndex[a]+1)+"/"+galShowTotalImages[a]+'</div>\t\t</div>\t\t<div class="next" onclick="galShowNext(\''+a+"')\">>></div>\t</div>";var c=document.getElementById(galShowPosId[a]),d=galGetPos(c),e=c.offsetHeight;b.style.left=d[0]+c.offsetWidth/2+"px";b.style.top=d[1]+e/2+"px";galShowTimerId[a]=0;b.onmouseout=function(){galShowStartTimer(a)};b.onmouseover=
function(){galShowKillTimer(a)};galShowDisplay(a)}
function galShowUpdateObject(a){var b=document.getElementById(a);galGetElementsByClass("image",b,"div")[0].innerHTML='\t\t\t<div class="imagetitle">'+galShowImageList[a][galShowCurIndex[a]].title+'</div>\t\t\t<a target="_blank" href="/gallery/showphoto.php/photo/'+galShowImageList[a][galShowCurIndex[a]].id+"/cat/"+galShowImageList[a][galShowCurIndex[a]].cat+'"><img src="/gallery/data/'+galShowImageList[a][galShowCurIndex[a]].cat+"/thumbs/"+galShowImageList[a][galShowCurIndex[a]].image+'" alt="" /></a>\t\t\t<div class="state">'+
(galShowCurIndex[a]+1)+"/"+galShowTotalImages[a]+"</div>"}function galShowStartTimer(a){galShowTimerId[a]||(galShowTimerId[a]=setTimeout("galShowHide('"+a+"')",2E3))}function galShowKillTimer(a){galShowTimerId[a]&&(clearTimeout(galShowTimerId[a]),galShowTimerId[a]=0)}function galShowDisplay(a){document.getElementById(a).style.display="block";galShowStartTimer(a)}function galShowHide(a){document.getElementById(a).style.display="none";galShowKillTimer(a)}
function galShowPrev(a){galShowCurIndex[a]--;0>galShowCurIndex[a]&&(galShowCurIndex[a]=galShowTotalImages[a]-1);galShowUpdateObject(a)}function galShowNext(a){galShowCurIndex[a]++;galShowCurIndex[a]>=galShowTotalImages[a]&&(galShowCurIndex[a]=0);galShowUpdateObject(a)}function galGetElementsByClass(a,b,c){var d=[];b||(b=document);c||(c="*");for(var b=b.getElementsByTagName(c),c=b.length,a=RegExp("(^|\\s)"+a+"(\\s|$)"),e=0,f=0;e<c;e++)a.test(b[e].className)&&(d[f]=b[e],f++);return d}
function createRequestObject(){return"Microsoft Internet Explorer"==navigator.appName?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest}
function quickPM(a,b,c){function d(){if(4==g.readyState){var a=g.responseText;if(a.length)-1!=a.search(/users were not found/)?alert("Invalid member name. Check the names then send again."):-1!=a.search(/requires that you wait/i)?alert("You must wait at least 5 seconds between messages."):-1!=a.search(/POSTERROR/i)||-1!=a.search(/main error message/i)?alert("Error occurred sending PM"):(alert("PM has been sent"),k.value=b,n.value="",l.value="",h.value="")}}function e(){if(4==j.readyState){var a=j.responseText;
if(a.length)if(q="guest"==a?0:a){var a=m,b=bcc,c=o,f=p;g.open("POST","/forum/private.php","true");g.onreadystatechange=d;g.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT");g.setRequestHeader("Content-Type","application/x-www-form-urlencoded");g.send("do=insertpm&savecopy=1&parseurl=1&receipt=0&recipients="+encodeURIComponent(a)+"&bccrecipients="+encodeURIComponent(b)+"&title="+encodeURIComponent(c)+"&message="+encodeURIComponent(f)+"&securitytoken="+encodeURIComponent(q))}else alert("Make sure you're logged in. Unable to send PM")}}
var f=document.getElementById("qpm"+a),g=createRequestObject(),j=createRequestObject(),r=!1,k,n,l,h,q=0,m,o,p;this.onClickBCC=function(){var b=document.getElementById("qpmbccdiv"+a);if("inline"!=b.style.display)return document.getElementById("qpmbcclabel"+a).style.marginBottom="0",b.style.display="inline",!0;document.getElementById("qpmbcc"+a).value.trim().length?alert("The BCC box can't close with names still in it."):(document.getElementById("qpmbcclabel"+a).style.marginBottom="9px",b.style.display=
"none");return!1};this.onInsertReference=function(){h.value="In reference to [url=http://www.tacomaworld.com/forum/showpost.php?p="+a+"]this[/url] post...\n\n"+h.value;h.focus();return!1};this.onSubmit=function(){m=k.value.trim();bcc=n.value.trim();o=l.value.trim();p=h.value.trim();m.length?o.length?p.length?(f.style.display="none",j.open("POST","/forum/quickpm/userinfo.php","true"),j.onreadystatechange=e,j.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT"),j.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded"),j.send("m=551&to="+encodeURIComponent(m))):(alert("Your PM is missing a message"),h.focus()):(alert("Your PM has to have a subject"),l.focus()):(alert("Fill in the To field of your PM"),k.focus())};this.onCancel=function(){f.style.display="none"};this.show=function(){if(!r){r=!0;f.innerHTML='<div class="qpmtitle tcat">Quick Private Message</div><div class="qpmbody"><label for="qpmto'+a+'">To</label><br /><input id="qpmto'+a+'" type="text" value="'+b+'" size="40" maxlength="85" onkeydown="return document.getElementById(\'qpma'+
a+'\').qpm.onKeyDown(event, 0);" /><br /><label for="qpmbcc'+a+'" id="qpmbcclabel'+a+'" class="qpmbcclabel" onclick="return document.getElementById(\'qpma'+a+'\').qpm.onClickBCC();">BCC (optional) &raquo;</label><div id="qpmbccdiv'+a+'" style="display:none"><input id="qpmbcc'+a+'" type="text" value="" size="40" maxlength="85" onkeydown="return document.getElementById(\'qpma'+a+'\').qpm.onKeyDown(event, 0);" /><br /></div><label for="qpmsubject'+a+'">Subject</label><br /><input id="qpmsubject'+a+'" type="text" value="" size="40" maxlength="85" onkeydown="return document.getElementById(\'qpma'+
a+'\').qpm.onKeyDown(event, 0);" /><br /><label for="qpmmessage'+a+'">Message</label>'+("x"==a?"":' <span class="qpminsertref" href="#" onclick="return document.getElementById(\'qpma'+a+"').qpm.onInsertReference();\">(Insert link to this post)</span>")+'<br /><textarea id="qpmmessage'+a+'" cols="30" rows="7" onkeydown="return document.getElementById(\'qpma'+a+"').qpm.onKeyDown(event, 1);\"></textarea><br /><input onclick=\"document.getElementById('qpma"+a+'\').qpm.onSubmit();" type="button" value="Submit" /> <input onclick="document.getElementById(\'qpma'+
a+'\').qpm.onCancel();" type="button" value="Cancel" /></div>';f.style.display="block";var d;d=c;var e=0,g=0;if(d.offsetParent){g=d.offsetLeft;for(e=d.offsetTop;d=d.offsetParent;)g+=d.offsetLeft,e+=d.offsetTop}d=[g,e];"x"==a?(f.style.left=d[0]-f.offsetWidth+c.offsetWidth/2+"px",f.style.top=d[1]+c.offsetHeight/2-42+"px"):(f.style.left=d[0]+c.offsetWidth/2+"px",f.style.top=d[1]-f.offsetHeight+c.offsetHeight/2+30+"px");k=document.getElementById("qpmto"+a);n=document.getElementById("qpmbcc"+a);l=document.getElementById("qpmsubject"+
a);h=document.getElementById("qpmmessage"+a)}f.style.display="block";k.value.trim().length?l.value.trim().length?h.value.trim().length||h.focus():l.focus():k.focus()};this.onKeyDown=function(a,b){if(13==a.keyCode)return b?!0:!1;if(27==a.keyCode)this.onCancel();return!0};String.prototype.trim=function(){return this.ltrim().rtrim()};String.prototype.ltrim=function(){return this.replace(/^\s+/g,"")};String.prototype.rtrim=function(){return this.replace(/\s+$/g,"")}}
function qpmSetup(a,b){document.getElementById("qpma"+a).onclick=function(c){if(!this.qpm)this.qpm=new quickPM(a,b,this);this.qpm.show();c=c?c:window.event;return c.returnValue=!1}}
function aMenuObj(){function a(){if(c)c.style.visibility="hidden",c.style.left="-10000px",c.style.top="-10000px"}var b=null,c=null,d=null,e=0;this.Init=function(a,e){if(b=document.getElementById(a))b.innerHTML='<div id="'+e+'" class="amenu"> \t\t\t<ul id="'+e+'list">\t\t\t</ul>\t\t\t</div>',c=document.getElementById(e),d=document.getElementById(e+"list")};this.getMenuObj=function(){return c};this.onTriggerClick=function(){return c&&"visible"==c.style.visibility?(a(),!1):!0};this.onDocumentClick=function(b){if(c&&
"visible"==c.style.visibility){a:{for(b=b&&b.target||event&&event.srcElement;b.parentNode;){if(b==c){b=!0;break a}b=b.parentNode}b=!1}b||a()}};this.Show=function(){if(c&&(c.style.visibility="visible",!e)){var a=this.onDocumentClick;document.addEventListener?document.addEventListener("click",a,!1):document.attachEvent&&document.attachEvent("onclick",a);e=1}};this.Add=function(a){d&&d.appendChild(a)};this.Clear=function(){if(d)for(var a=d;a.hasChildNodes();)a.removeChild(a.childNodes[0])}}
this.JSON||(JSON={parse:function(a){return eval("("+a+")")}});function pmInfoCreateRequestObject(){return"Microsoft Internet Explorer"==navigator.appName?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest}var pmInfoReady=1,pmInfoHttp,pmInfoMenu,pmInfoData,pmInfoButton,pmInfoLastTime=0;
function pmInfoShow(a,b){pmInfoButton=b;a=a?a:window.event;a.returnValue=!1;a.stopPropagation?a.stopPropagation():a.cancelBubble=!0;if(pmInfoMenu&&!pmInfoMenu.onTriggerClick())return!1;var c=(new Date).getTime();if("undefined"!=typeof pmInfoData&&3E3>c-pmInfoLastTime)return pmInfoProcess(pmInfoData),!1;pmInfoHttp||(pmInfoHttp=pmInfoCreateRequestObject());if(pmInfoReady)pmInfoReady=0,pmInfoHttp.open("GET","/forum/pminfo/main.php"),pmInfoHttp.onreadystatechange=pmInfoHandleResponse,pmInfoHttp.setRequestHeader("If-Modified-Since",
"Sat, 1 Jan 2000 00:00:00 GMT"),pmInfoHttp.send(null);return!1}function pmInfoHandleResponse(){if(4==pmInfoHttp.readyState)pmInfoData=pmInfoHttp.responseText,pmInfoData.length&&(pmInfoLastTime=(new Date).getTime(),pmInfoProcess(pmInfoData)),pmInfoReady=1}
function pmInfoProcess(a){if(a.length){pmInfoMenu||(pmInfoMenu=new aMenuObj,pmInfoMenu.Init("pminfotarget","pminfomenu"));pmInfoMenu.Clear();var b;b=document.createElement("li");b.className="pminfocat amenuitemfirst";b.innerHTML='<a href="/forum/private.php">Inbox</a>';pmInfoMenu.Add(b);if(0!=a)for(var a=JSON.parse(a).pms,c,d=0;d<a.length;d++)b=document.createElement("li"),c=0==d?" amenuitemfirst":"",b.className="amenuitem"+c,b.innerHTML+='<a class="pminfotitle" href="/forum/private.php?do=showpm&pmid='+
a[d].id+'">'+(a[d].read?"":"<b>")+a[d].title+(a[d].read?"":"</b>")+"</a>",b.innerHTML+='<p class="pminfospacer"></p>',b.innerHTML+=(a[d].read?"":"<b>")+a[d].fromusername+(a[d].read?"":"</b>")+" &nbsp;&nbsp;"+pmInfoMakeDate(a[d].dateline),pmInfoMenu.Add(b);b=document.createElement("li");b.className="pminfocat";b.innerHTML='<a href="/forum/private.php?do=newpm">Create PM</a>';pmInfoMenu.Add(b);b=document.createElement("li");b.className="pminfocat";b.innerHTML='<a href="/forum/private.php?folderid=-1">Sent Items</a>';
pmInfoMenu.Add(b);b=pmInfoMenu.getMenuObj();a=pmInfoGetPos(pmInfoButton);c=pmInfoButton.offsetHeight;b.style.left=a[0]+0+"px";b.style.top=a[1]+(c+2)+"px";pmInfoMenu.Show()}}function pmInfoGetPos(a){var b=0,c=0;if(a.offsetParent){c=a.offsetLeft;for(b=a.offsetTop;a=a.offsetParent;)c+=a.offsetLeft,b+=a.offsetTop}return[c,b]}
function pmInfoMakeDate(a){var a=new Date(1E3*a),b=a.getMonth()+1;10>b&&(b="0"+b);var c,d=a.getHours();12<d?(d-=12,c="PM"):c="AM";var e=a.getMinutes();10>e&&(e="0"+e);return b+"-"+a.getDate()+"-"+a.getFullYear()+" "+d+":"+e+" "+c}this.JSON||(JSON={parse:function(a){return eval("("+a+")")}});function subInfoCreateRequestObject(){return"Microsoft Internet Explorer"==navigator.appName?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest}
var subInfoReady=1,subInfoHttp,subInfoMenu,subInfoData,subInfoButton,subInfoLastTime=0;
function subInfoShow(a,b){subInfoButton=b;a=a?a:window.event;a.returnValue=!1;a.stopPropagation?a.stopPropagation():a.cancelBubble=!0;if(subInfoMenu&&!subInfoMenu.onTriggerClick())return!1;var c=(new Date).getTime();if("undefined"!=typeof subInfoData&&3E3>c-subInfoLastTime)return subInfoProcess(subInfoData),!1;subInfoHttp||(subInfoHttp=subInfoCreateRequestObject());if(subInfoReady)subInfoReady=0,subInfoHttp.open("GET","/forum/subinfo/main.php"),subInfoHttp.onreadystatechange=subInfoHandleResponse,
subInfoHttp.setRequestHeader("If-Modified-Since","Sat, 1 Jan 2000 00:00:00 GMT"),subInfoHttp.send(null);return!1}function subInfoBuildPageDots(a,b){if(2>b)return"";for(var c="(",d=1;d<=b&&3>=d;d++)1<d&&(c+=" "),c+='<a href="/forum/showthread.php?t='+a+"&page="+d+'">'+d+"</a>";if(b>d||4==d&&b==d)c+=' ... <a href="/forum/showthread.php?t='+a+"&page="+b+'">Last Page</a>';return c+") "}
function subInfoHandleResponse(){if(4==subInfoHttp.readyState)subInfoData=subInfoHttp.responseText,subInfoData.length&&(subInfoLastTime=(new Date).getTime(),subInfoProcess(subInfoData)),subInfoReady=1}
function subInfoProcess(a){if(a.length){subInfoMenu||(subInfoMenu=new aMenuObj,subInfoMenu.Init("subinfotarget","subinfomenu"));subInfoMenu.Clear();if(0!=a)for(var a=JSON.parse(a).threads,b,c,d,e,f=0;f<a.length;f++){if(""==a[f].totalpages)a[f].totalpages="1";c=/new/.test(a[f].statusicon);d=subInfoBuildPageDots(a[f].threadid,parseInt(a[f].totalpages));b=document.createElement("li");e=0==f?" amenuitemfirst":"";b.className="amenuitem"+e;b.onmouseup=function(a){return function(b){b=b?b:window.event;if(!b.shiftKey&&
!b.ctrlKey&&!b.metaKey&&"LEFT"==getMouseButton(b))window.location.href=a}}("/forum/showpost.php?p="+a[f].lastpostid);b.innerHTML+='<a href="/forum/showpost.php?p='+a[f].lastpostid+'"><img width="12" height="12" alt="" border="0" src="/forum/images/buttons/lastpost.gif" /></a> ';b.innerHTML+='<a class="subinfothreadtitle" href="/forum/showthread.php?t='+a[f].threadid+'">'+(c?"<b>":"")+a[f].title+(c?"</b>":"")+"</a>";b.innerHTML+='<p class="subinfospacer"></p>';b.innerHTML+=d+'<span class="subinforeplies">'+
a[f].replies+" "+("1"==a[f].replies?"reply":"replies")+'</span><p class="subinfospacer"></p>';b.innerHTML+=a[f].lastdate+" "+a[f].lasttime+" by "+a[f].lastposter;b.innerHTML+=' &nbsp;<a href="/forum/subscription.php?do=removesubscription&t='+a[f].threadid+'">Unsubscribe</a>';subInfoMenu.Add(b)}else b=document.createElement("li"),b.innerHTML="You have no new thread subscriptions",subInfoMenu.Add(b);a=subInfoMenu.getMenuObj();b=subInfoGetPos(subInfoButton);c=subInfoButton.offsetHeight;a.style.left=
b[0]+0+"px";a.style.top=b[1]+(c+2)+"px";subInfoMenu.Show()}}function subInfoGetPos(a){var b=0,c=0;if(a.offsetParent){c=a.offsetLeft;for(b=a.offsetTop;a=a.offsetParent;)c+=a.offsetLeft,b+=a.offsetTop}return[c,b]};

