/*======================================================================*\ || #################################################################### || || # vBulletin 4.1.7 || # ---------------------------------------------------------------- # || || # Copyright 2000-2011 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ if(window.console===undefined){window.console={};var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];for(var i=0;i0);var is_saf=(YAHOO.env.ua.webkit>0);var is_webtv=(userAgent.indexOf("webtv")!=-1);var is_ie=((YAHOO.env.ua.ie>0)&&(!is_opera)&&(!is_saf)&&(!is_webtv));var is_ie4=(YAHOO.env.ua.ie==4);var is_ie7=(YAHOO.env.ua.ie>=7);var is_ie6=(YAHOO.env.ua.ie==6);var is_ps3=(userAgent.indexOf("playstation 3")!=-1);var is_moz=(YAHOO.env.ua.gecko>0);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 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(B,A){if(typeof (A)=="undefined"){return this.substr_orig((B<0?this.length+B:B))}else{return this.substr_orig((B<0?this.length+B:B),A)}}}if(typeof Array.prototype.shift==="undefined"){Array.prototype.shift=function(){for(var C=0,A=this[0],B=this.length-1;C2000){break}if((stopindex=PHP.stripos(F,"[/quote]"))!==false){fragment=F.substr(startindex,stopindex-startindex+8);F=F.replace(fragment,"")}else{break}F=PHP.trim(F)}}if(G){F=F.replace(/]+src="([^"]+)"[^>]*>/gi,"$1");var H=new RegExp("<(\\w+)[^>]*>","gi");var E=new RegExp("<\\/\\w+>","gi");F=F.replace(H,"");F=F.replace(E,"");var D=new RegExp("( )","gi");F=F.replace(D," ")}else{var A=new RegExp("\\[(\\w+)(=[^\\]]*)?\\]","gi");var I=new RegExp("\\[\\/(\\w+)\\]","gi");F=F.replace(A,"");F=F.replace(I,"")}return F}function vB_PHP_Emulator(){}vB_PHP_Emulator.prototype.stripos=function(A,B,C){if(typeof C=="undefined"){C=0}index=A.toLowerCase().indexOf(B.toLowerCase(),C);return(index==-1?false: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(C,E){var A=C.match(RegExp(E,"gim"));if(A){var F=new Array();var B=new RegExp(E,"im");for(var D=0;D",'"',"&");for(var A in C){if(YAHOO.lang.hasOwnProperty(C,A)){D=D.replace(C[A],B[A])}}return D};vB_PHP_Emulator.prototype.unescape_cdata=function(C){var B=/<\=\!\=\[\=C\=D\=A\=T\=A\=\[/g;var A=/\]\=\]\=>/g;return C.replace(B,"")};vB_PHP_Emulator.prototype.htmlspecialchars=function(D){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"));var B=new Array("&","<",">",""");for(var A=0;A=128){D=D.replace(B[C],"%u00"+A)}}}D=D.replace("%25","%u0025");return D};vB_PHP_Emulator.prototype.ucfirst=function(D,A){if(typeof A!="undefined"){var B=D.indexOf(A);if(B>0){D=D.substr(0,B)}}D=D.split(" ");for(var C=0;C-1){this.add_variable(D[E].name,D[E].options[D[E].selectedIndex].value)}}}};vB_Hidden_Form.prototype.fetch_variable=function(A){for(var B=0;B %s",this.action);document.body.appendChild(this.form).submit()};vB_Hidden_Form.prototype.build_query_string=function(){var B="";for(var A=0;A overlay handler for '%s'.",this.overlay.id)}}vB_Select_Overlay_Handler.prototype.hide=function(){if(this.browser_affected){var C=YAHOO.util.Dom.getRegion(this.overlay);var B=document.getElementsByTagName("select");for(var A=0;A=65&&A<=90&&!C&&!B)||(A>=97&&A<=122&&C)}function log_out(B){var A=document.getElementsByTagName("html")[0];A.style.filter="progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";if(confirm(B)){return true}else{A.style.filter="";return false}}function set_cookie(B,C,A){console.log("Set Cookie :: %s = '%s'",B,C);document.cookie=B+"="+escape(C)+"; path=/"+(typeof A!="undefined"?"; expires="+A.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;cookie_begin=0;while(cookie_beginA.right||B.rightA.bottom||B.bottom0){window.location=vBmenu.menus[vBmenu.activemenu].addr+"&page="+pagenum}return false};vBpagenav.prototype.ibtn_onclick=function(A){return this.form.gotopage()};vBpagenav.prototype.itxt_onkeypress=function(A){return((A?A:window.event).keyCode==13?this.form.gotopage():true)};function vbmenu_register(B,A,C){if(typeof (vBmenu)=="object"){return vBmenu.register(B,A)}else{return false}}function string_to_node(B){var A=document.createElement("div");A.innerHTML=B;var C=A.firstChild;while(C&&C.nodeType!=1){C=C.nextSibling}if(!C){return A.firstChild.cloneNode(true)}else{return C.cloneNode(true)}}function set_unselectable(B){B=YAHOO.util.Dom.get(B);if(!is_ie4&&typeof B.tagName!="undefined"){if(B.hasChildNodes()){for(var A=0;A$\ eS:B֢yk+JE{OK|d4f\9CpCFZae\obL=-k}Goyj9RNcWcaj{ 4Qr{~];J-j}Gڦu{~}?JY 't˜ˑL#xa@ռم6]CLo7,M4t8x9% \&c|&Q6K|-ƛ[xR-cؙsqǽ 5i^`.ks5 .:=T'n454!.cfUg=Sps ~yk>uo/QtIB\d fع[r.B%8{e'mk0~;WAYH#q5E[||/˗0_o<5?%; q2Qdl,Kf\tMV3"nZlQ>΄*#OtJ˵{SupCyY\qJqwfO03P`aD[KoVHzr}3,D!,!G5t.xzMw[mxQR?"05 E!Ƽ#Wv:+z7/d4vd[r/Ú="J%`G +xrSBH!喾dthg>5+%rm_}5"DEߙftOlfWK93f^]@t*, ;%`hThj4š VP .qr&٫Y4/vN7g'k2>FljBmc7ܕw7BC PR҃6{BW-[ 9K<(sL4*fpהx۟Pv]EFhYmNa7 Ђru: UrAbΊVe~%@hQY[u݋uX>$ z@LnrdR .Wc|^N!d`]z+epZu"C{Zd',߷B jah} XHY|`މ贄}Z2> ,׌wSa^ֹ}ZgY8qf{0.}'7tdۊwMX+J("8 bL= ХOa;'4I:s|dtE6NRrH;yCcGۻߔF.@1_eWgϠT TTDWSދ`Vz`D7>c2"ƙK>[k3:%MeZMRYX(W3y8QWV=DGT;,iϔjB-yi*8^kʟN&.+QzF gtFe(CecsҴ:af"?xe +5 Dd&d/6'^C:c*|Q,0?waiѫZJneٵ03(zyX ]4R? N7yd)TYJ1"%'8}a,aĆd&8PO,bQa.u-j!\b.5'fn}լRU.ѡJKV- ;-G[S-8x6d 9B`$Sp]&c 7Y:v^hy:;b+6MInwyfepZ2Щ˖/*======================================================================*\ || #################################################################### || || # vBulletin 4.1.7 || # ---------------------------------------------------------------- # || || # Copyright 2000-2011 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ var layout_reserved_names=new Array("xyz_modified","xyz_widgetid","xyz_widgetinstanceid","xyz_column");function vB_CMS_Layout_Config(C,A,B){if(AJAX_Compatible&&(typeof vb_disable_ajax=="undefined"||vb_disable_ajax<2)){this.init(C,A,B)}}vB_CMS_Layout_Config.prototype.init=function(H,B,G){this.ddtargets=Array();this.sGroup=B;this.widgetbox=YAHOO.util.Dom.get("widgetbox");this.form=YAHOO.util.Dom.get("cpform");this.activebox=null;this.backupbox=null;this.containerid=H;this.container=YAHOO.util.Dom.get(H);this.parambox=YAHOO.util.Dom.get("parambox");this.parambox_content=YAHOO.util.Dom.get("parambox_content");this.titlebox=YAHOO.util.Dom.get("ctrl_title").getElementsByTagName("input")[0];this.gridselect=YAHOO.util.Dom.get("ctrl_gridid").getElementsByTagName("select")[0];if(typeof this.inited=="undefined"){this.inited=false;this.idlist=Array();this.ddobjs=Array();this.ajaxreq=null;YAHOO.util.Event.on("paramsave","click",this.saveparam,this,true);YAHOO.util.Event.on("paramcancel","click",this.cancelparam,this,true);YAHOO.util.Event.on(this.form,"submit",this.save,this,true);YAHOO.util.Event.on("addwidget","click",this.addwidget_event,this,true);YAHOO.util.Event.on(this.gridselect,"change",this.fetchgrid,this,true);YAHOO.util.Dom.setStyle(this.parambox,"display","");this.overlay=new vB_Overlay(this.parambox)}var F=this.container.getElementsByTagName("ul");var C=0;for(var E=0;E=0){this.addwidget(1,this.widgetbox.options[this.widgetbox.selectedIndex].value,this.widgetbox.options[this.widgetbox.selectedIndex].text,0)}};vB_CMS_Layout_Config.prototype.addwidget=function(E,G,I,K){var J=document.createElement("li");var C=this.fetch_freeid();J.setAttribute("id","widget"+C);J.widgetid=G;J.widgetinstanceid=K;YAHOO.util.Dom.addClass(J,"widget_container");var L=document.createElement("div");L.setAttribute("id","widget"+C+"_div");J.appendChild(L);var D=document.createElement("div");D.setAttribute("id","widget"+C+"_handle");YAHOO.util.Dom.addClass(D,"widget_title");L.appendChild(D);var B=document.createElement("div");B.setAttribute("id","widget"+C+"_desc");YAHOO.util.Dom.addClass(B,"widget_description");if(!G){YAHOO.util.Dom.addClass(D,"widget_title_primary");YAHOO.util.Dom.addClass(B,"widget_description_primary")}else{if(K){YAHOO.util.Dom.addClass(D,"widget_title_active");YAHOO.util.Dom.addClass(B,"widget_description_active")}}L.appendChild(B);var A=document.createElement("div");if(G){var F=document.createElement("div");F.setAttribute("id","widget"+C+"_button");F.innerHTML="x";D.appendChild(F);YAHOO.util.Dom.addClass(F,"closebutton")}A.innerHTML=I;D.appendChild(A);A.setAttribute("title",I);YAHOO.util.Dom.addClass(A,"title");var H=YAHOO.util.Dom.get("widgetlist_column"+E);if(H){H.appendChild(J)}else{YAHOO.util.Dom.get("widgetlist_column1").appendChild(J)}this.ddobjs[C]=new vB_CMS_Layout_Widget(J.id,this.sGroup,this)};vB_CMS_Layout_Config.prototype.fetch_freeid=function(){for(var A=0;A0&&this.overlay.check_status(0)&&!YAHOO.util.Connect.isCallInProgress(this.overlay.ajax_req)){this.overlay.set_status(2,"load grid html");this.overlay.showprogress();this.overlay.ajaxreq=YAHOO.util.Connect.asyncRequest("POST","cms_admin.php",{success:this.displaygrid,failure:this.handle_ajax_error,timeout:vB_Default_Timeout,scope:this},SESSIONURL+"securitytoken="+SECURITYTOKEN+"&adminhash="+ADMINHASH+"&ajax=1&do=gridhtml&gridid="+A)}};vB_CMS_Layout_Config.prototype.displaygrid=function(O){this.overlay.hideprogress();if(!this.overlay.check_status(2)){return }if(O.responseXML){var M=O.responseXML.getElementsByTagName("error");if(M.length){this.set_status(0,"display - error");alert(M[0].firstChild.nodeValue)}else{this.overlay.set_status(3,"handle_ajax_response - success");var K=string_to_node(O.responseXML.getElementsByTagName("html")[0].firstChild.nodeValue);YAHOO.util.Dom.setStyle(this.container,"display","none");var E=this.container.getElementsByTagName("ul");var A=K.getElementsByTagName("ul");var L,B,J,F;for(var I=0;Ithis.lastY){this.goingUp=false}}this.lastY=B};vB_CMS_Layout_Widget_DDProxy.prototype.onDragOver=function(K,B){var A=this.getEl();var I=YAHOO.util.Dom.get(B);var E=this.getDragEl();if(I.nodeName.toLowerCase()=="li"){var F=A.parentNode;var C=I.parentNode;if(I.parentNode.id!=A.parentNode.id){this.setborder(C)}if(this.goingUp){C.insertBefore(A,I)}else{C.insertBefore(A,I.nextSibling)}}else{if(I.nodeName.toLowerCase()=="ul"&&I.id!=A.parentNode.id){this.setborder(I);var J=I.getElementsByTagName("li");var G=YAHOO.util.Dom.getY(E);var D=true;for(var H=0;H-1){alert(vbphrase.do_not_use_the_following_input_field_names_in_widgets)}B[F].name="widgets["+this.id.substr(6)+"]["+C[1]+"][]"}else{if(PHP.in_array(B[F].name,layout_reserved_names)>-1){alert(vbphrase.do_not_use_the_following_input_field_names_in_widgets)}B[F].name="widgets["+this.id.substr(6)+"]["+B[F].name+"]"}}var A=fetch_tags(this.owner.activebox,"textarea");for(F=0;F-1){alert(vbphrase.do_not_use_the_following_input_field_names_in_widgets)}A[F].name="widgets["+this.id.substr(6)+"]["+C[1]+"][]"}else{if(PHP.in_array(A[F].name,layout_reserved_names)>-1){alert(vbphrase.do_not_use_the_following_input_field_names_in_widgets)}A[F].name="widgets["+this.id.substr(6)+"]["+A[F].name+"]"}}var E=fetch_tags(this.owner.activebox,"select");for(F=0;F-1){alert(vbphrase.do_not_use_the_following_input_field_names_in_widgets)}E[F].name="widgets["+this.id.substr(6)+"]["+C[1]+"][]"}else{if(PHP.in_array(E[F].name,layout_reserved_names)>-1){alert(vbphrase.do_not_use_the_following_input_field_names_in_widgets)}E[F].name="widgets["+this.id.substr(6)+"]["+E[F].name+"]"}}this.owner.backupbox=this.cloneform(this.owner.activebox);this.owner.parambox.appendChild(this.owner.backupbox);YAHOO.util.Dom.setStyle(this.owner.backupbox,"display","none");this.owner.overlay.show_overlaybox()}}};vB_CMS_Layout_Widget_DDProxy.prototype.cloneform=function(H){var G=H.cloneNode(true);var B=G.getElementsByTagName("input");for(var F=0;F?g F"gjYC!\]Xgٴ_;L@NZF%(e3眈6G<3Kz[8g Fd*h O7JT9DAa"aᱤDnճ lq<RPHDLe&3Z-rd@b9FLBJ˶0h\UbUv$52s :FlShrWj"؝Dy!{so_ GK ry1_gD$ץ3C~q QjfFd]X3 {p8K1*\u`L%ы@\ic_x~Mp k@CD,UWg4iYIguyU '5w@DNrh 0&mnԉ2u1 }­ &݈<`BG-7m9yduzH!N䊺|>&BU COhGIbcz½T(&N]h:څ|GH$Dϥ!w}SY&T~ŀ4"!K*ؤ<)(hieRt&(0WcCebʦܵ_$Ԧ|[6ǯ:QAV񱂑=TGӈ"a៱H!tR#M2&d\K[p/+(%&8uf Ɍ,XĔv@a'i;C!*5(}7wnҲndPsRm4Oo_ '>,%@ze_5Lut[Cp #t ),@)`jA4F%TCr-3u͏".`q((Y~+HjTaC)9nֹEG )AKh%lR#Ji ]::?= V,J/*======================================================================*\ || #################################################################### || || # vBulletin 4.1.7 || # ---------------------------------------------------------------- # || || # Copyright 2000-2011 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ var jsAction;var curr_SectId=false;var curr_parentcat=false;var curr_catid=false;var curr_nodeid=false;var submitAction;var hiddenDiv;function applyChanges(C,B,A){form=document.getElementById(C);if(form!==undefined){if(typeof (A)!="undefined"){vB_Editor[A].uninitialize()}form.action=B;form.submit()}}function setChecked(B,A){if(document.getElementById(A)!==undefined){document.getElementById(A).checked=B}}function setCategoryList(F,E,C,G,B,D,A){if(F==""||E==""||document.getElementById(F)==undefined){return }params="";if(G==""){url="../ajax.php"}else{url=G}if(B==""){B="all"}request=url+"?do=find_categories&type="+B+"&name="+E;if(D!=""){request+="&value="+D}if(A){request+="&sort=1"}categoryKeys=document.getElementsByName(C);postdata="";for(catid in categoryKeys){checkBox=document.getElementById(E+"_"+catid);if((checkBox!=undefined)&&checkBox.checked){postdata+="checkedcat[]="+catid+"&"}}load_html(F,request,postdata,null,null)}function checkTitles(A,B){msg="";if(document.getElementById("cms_node_title")!=undefined){if(document.getElementById("cms_node_title").value.length<3){msg=A+" "}}if(document.getElementById("cms_node_url")!=undefined){if(document.getElementById("cms_node_url").value.length<3){msg=msg+B}}if(msg!=""){alert(msg);return false}return true}function setFormValue(A,B){if(document.getElementById(A)!=undefined){document.getElementById(A).value=B}else{var C=document.createElement("input");C.type="hidden";C.name=A;C.id=A;C.value=B;document.getElementById("cms_data").appendChild(C)}}function searchNodes(A,B){if(A==undefined){A="."}url=A+"/ajax.php?do=find_leaves";if(document.getElementById("contenttypeid")!=undefined&&document.getElementById("contenttypeid").value!=""){url=url+"&contenttypeid="+document.getElementById("contenttypeid").value+"&formid="+encodeURI(B)}if(document.getElementById("title_filter")!=undefined&&document.getElementById("title_filter").value!=""){url=url+"&title_filter="+encodeURI(document.getElementById("title_filter").value)}if(document.getElementById("state_filter")!=undefined&&document.getElementById("state_filter").value!=""){url=url+"&state_filter="+document.getElementById("state_filter").value}if(document.getElementById("author_filter")!=undefined&&document.getElementById("author_filter").value!=""){url=url+"&author_filter="+document.getElementById("author_filter").value}load_html("search_results",url,"",null,null)}function flagCategory(B){if(B==undefined){B=curr_parentcat}if(parseInt(B)<1){YAHOO.util.Dom.setStyle(document.getElementById("catchecked_img_0"),"display","")}else{YAHOO.util.Dom.setStyle(document.getElementById("catchecked_img_0"),"display","none")}i=1;while(document.getElementById("catedit_id_"+i)!=undefined){var A=document.getElementById("catchecked_img_"+i);if(document.getElementById("catedit_id_"+i).value==B){YAHOO.util.Dom.setStyle(A,"display","")}else{YAHOO.util.Dom.setStyle(A,"display","none")}i++}if(document.getElementById("target_categoryid")!=undefined){document.getElementById("target_categoryid").value=B}}function flagSection(A){if("filter"==submitAction){document.getElementById("sectionid").value=A;document.getElementById("cms_data").submit()}i=1;while(document.getElementById("sectedit_id_"+i)!=undefined){if(document.getElementById("sectedit_id_"+i).value==A){document.getElementById("sectchecked_img_"+i).style.display="inline";YAHOO.util.Dom.addClass("sectchecked_ul_"+i,"section_row")}else{document.getElementById("sectchecked_img_"+i).style.display="none";YAHOO.util.Dom.removeClass("sectchecked_ul_"+i,"section_row")}i++}if(document.getElementById("target_categoryid")!=undefined){document.getElementById("target_categoryid").value=false}}function setSection(C,A,B){if(B==undefined){B=-1}if(jsAction=="move_section"||jsAction=="publish_section"||jsAction=="unpublish_section"||jsAction=="move_node"||jsAction=="publish_node"||jsAction=="unpublish_node"||jsAction=="new"||jsAction=="filter_category"||jsAction=="filter_section"||jsAction=="filter_nodesection"){document.getElementById("sectionid").value=C;document.getElementById("do").value=jsAction;document.getElementById("cms_data").submit()}else{if(jsAction=="new_section"||jsAction=="save_section"){setFormValue("target_sectionid",C);return false}else{if(jsAction=="doCategory"){flagSection(C);document.getElementById("catedit_category_list").style.display="block";setFormValue("sectionid",C);setFormValue("curr_SectId",C);curr_parentcat=curr_catid;console.log("parendtcat fixed "+curr_parentcat);load_html("catedit_category_list",script_location+"/ajax.php?do=list_categories§ionid="+C,"",null,flagCategory)}else{if(jsAction=="doSection"){flagSection(C);setFormValue("target_sectionid",C);setFormValue("sectionid",curr_SectId)}else{if(document.getElementById("sectionName")!=undefined){document.getElementById("sectionName").innerHTML=A}if(document.getElementById("sectionid")!=undefined){document.getElementById("sectionid").value=C}document.getElementById("catedit_category_list").style.display="none";return false}}}}}function checkShouldSave(D,B,C,A){form=document.getElementById(D);if(form===undefined){return false}if(!checkFormChanged(D,B)){if(A!==""){form.action=A}form.submit();return true}if(confirm(C)){if(A!==""){form.action=A}form.submit()}return false}function checkFormChanged(D,C){form=document.getElementById(D);if(form===undefined){return false}for(var B=0;B0||parseInt(document.getElementById("sectionid").value)>0)){alert(B);return }if(curr_catid){setFormValue("categoryid",curr_catid)}setFormValue("do","new_category");document.getElementById("cms_data").submit()}}function setEditedSection(A){document.getElementById("section_title").value=PHP.trim(document.getElementById("section_title").value);if(""==document.getElementById("section_title").value){alert(A);return }setFormValue("title",document.getElementById("section_title").value);setFormValue("sectionid",curr_SectId);setFormValue("nodeid",curr_nodeid);document.getElementById("do").value=submitAction;document.getElementById("cms_data").submit()}function swapSections(B,A){setFormValue("nodeid",B);setFormValue("nodeid2",A);document.getElementById("do").value="swap_sections";document.getElementById("cms_data").submit()}function setCategoryView(){document.getElementById("catedit_section_list").style.display="none";document.getElementById("catedit_category_list").style.display="block";document.getElementById("section_tab").style.backgroundColor="#ffffff";document.getElementById("category_tab").style.backgroundColor="#bbbbbb"}function setSectionView(){document.getElementById("catedit_section_list").style.display="block";document.getElementById("catedit_category_list").style.display="none";document.getElementById("section_tab").style.backgroundColor="#bbbbbb";document.getElementById("category_tab").style.backgroundColor="#ffffff"}function clearSectionFlags(){i=1;while(document.getElementById("sectedit_id_"+i)!=undefined){document.getElementById("sectchecked_img_"+i).style.display="none";i++}}function getSectionList(A){load_html("cms_sections_list",script_location+"/ajax.php?do=list_allsection&order="+A,"",null,null)}function showNodeWindow(B){jsAction=B;document.getElementById("sel_node_0").style.display="block";document.getElementById("sel_node_0").focus();var C=YAHOO.util.Dom.getRegion("sel_node_0");var A=YAHOO.util.Dom.get("iframeie6die");if(A){YAHOO.util.Dom.setStyle(A,"top",C.top+"px");YAHOO.util.Dom.setStyle(A,"width",C.width+"px");YAHOO.util.Dom.setStyle(A,"height",C.height+"px");YAHOO.util.Dom.setStyle(A,"right",C.right+"px");YAHOO.util.Dom.setStyle(A,"left",C.left+"px");YAHOO.util.Dom.setStyle(A,"display","block")}if(document.getElementById("title_filter")!=undefined&&document.getElementById("title_filter").value!=""){document.getElementById("title_filter").value=""}if(document.getElementById("section_search_button")!=undefined){document.getElementById("section_search_button").click()}}function deleteGrouping(B,A){if(confirm(A)){document.getElementById("do").value="delete_"+B;document.getElementById("cms_data").submit()}else{return false}}function clearSearch(){if(document.getElementById("state_filter")!=undefined){document.getElementById("state_filter").selectedIndex=-1}if(document.getElementById("title_filter")!=undefined){document.getElementById("title_filter").value=""}if(document.getElementById("author_filter")!=undefined){document.getElementById("author_filter").selectedIndex=-1}if(document.getElementById("contenttypeid")!=undefined){document.getElementById("contenttypeid").selectedIndex=-1}}function toggleSubSection(A,C,B){if(parseInt(A)>0&&document.getElementById("sect_toggle_"+A)!=undefined){sect_body=document.getElementById("detail_list").tBodies[0];if(document.getElementById("sect_toggle_"+A).innerHTML==" -"){document.getElementById("sect_toggle_"+A).innerHTML=" +";for(i=sect_body.rows.length-1;i>0;i--){if(parseInt(sect_body.rows[i].cells[0].innerHTML)==A){if(iparent_level){sect_body.deleteRow(i)}}break}}}}else{foundit=false;for(i=1;iparent_level){sect_body.rows[i].style.display="block";i++}}break}}if(foundit){document.getElementById("sect_toggle_"+A).innerHTML=" -"}else{curr_SectId=A;load_html("hidden_content",script_location+"/ajax.php?do="+B+A+"&level="+C,"",null,addSections);document.getElementById("sect_toggle_"+A).innerHTML=" -"}}}return false}function checkUrlAvailable(A,C,B){if(A!=undefined){hiddenDiv=C;document.getElementById(hiddenDiv).innerHTML="";load_html(hiddenDiv,getBaseUrl()+"/ajax.php?do=checkurl","url="+A.value+"&nodeid="+B,null,showDupUrl)}}function showDupUrl(){if(document.getElementById(hiddenDiv).innerHTML!=""){alert(document.getElementById(hiddenDiv).innerHTML)}}function addSections(){if(document.getElementById("hidden_content")!=undefined){xfr_body=document.getElementById("sect_xfer").tBodies[0];sect_body=document.getElementById("detail_list").tBodies[0];for(var A=1;A%{}|\\^~[\]`\r\n\t\x00-\x1f\x7f]/g;document.getElementById(D).value=C.replace(B,"-").replace(/(-+)/gi,"-").replace(/(^-|-$)/gi,"");document.getElementById(A).value=C}function toggleCheckBox(B,A,C,D){for(unitId=1;unitId<=C;unitId++){switch(D){case"-1":document.getElementById(B+"_"+A+"_"+unitId.toString()).checked=!document.getElementById(B+"_"+A+"_"+unitId.toString()).checked;break;case"0":document.getElementById(B+"_"+A+"_"+unitId.toString()).checked=false;break;case"1":document.getElementById(B+"_"+A+"_"+unitId.toString()).checked=true;break;default:break}}};u}64C h ܠtz`vRGrX)ՉݴMfD15C8b|m}6怎Z`= f9Ato:%ۖJso@βY:Kt ]hte L]t.,Ş>7 8v;-aST~z'x").attr({type:"hidden",id:"previewinput",name:"preview",value:"1"}).appendTo("form");A(this).closest("form").submit();return false});A("a.newreplylink",M).unbind().click(function(P){var O=A("#qr_threadid",M).val();A.ajax({type:"POST",url:"ajax.php?do=getquotes&t="+O,data:SESSIONURL+"securitytoken="+SECURITYTOKEN+"&do=getquotes&t="+O,success:function(R){var Q=A(R).find("quotes").text();G(Q)},dataType:"xml"});return false});A('.quickreplycontainer [name="cancel"]').unbind().live("click",function(P){var O=A(this).closest(".quickreplycontainer");O.remove();return false});A("a.quickreply").unbind().click(function(O){var P=A(this).attr("id").substr(3);if(!A("#qrcontainer_"+P,M).length){J(this,"");A("#qrcontainer_q_"+P,M).remove()}return false});A("a.quickreplyquote").unbind().click(function(O){var P=A(this).attr("id").substr(5);if(!A("#qrcontainer_q_"+P,M).length){A.ajax({type:"POST",url:"ajax.php?do=getquotes&p="+P,data:SESSIONURL+"securitytoken="+SECURITYTOKEN+"&do=getquotes&p="+P,success:N,dataType:"xml",context:A(this)})}return false});function N(P){var O=A(P).find("quotes").text();var Q=A(this).attr("id").substr(5);if(O){J(this,O);A("#qrcontainer_"+Q,M).remove()}}function J(R,Q){var S=A(R).attr("id").substr(3);if(!A("#qrcontainer_"+S,M).length){var P=A(".qr_defaultcontainer",M).clone().attr("id","qrcontainer_"+S).removeClass("qr_defaultcontainer");P.find('input[name="p"]').val(S);var O=P.find('textarea[name="message"]');if(Q.length){O.val(Q)}O.textinput();P.insertAfter(A(R).closest("div.postfoot")).show();P.parent().siblings().find(".quickreplycontainer").remove()}}function G(Q){var P;if(!A("#qrcontainer_default",M).length){P=A(".qr_defaultcontainer",M).clone().attr("id","qrcontainer_default").removeClass("qr_defaultcontainer")}else{P=A("#qrcontainer_default",M)}var O=P.find('textarea[name="message"]').textinput();if(Q.length){O.val(Q)}P.insertAfter(A(".qr_defaultcontainer",M)).show();A.mobile.silentScroll(P.position().top)}A("a.tablink",M).each(function(){A(this).click(A(this),E);A(this).closest("li").unbind("click").click(A(this),E)});function E(Q){var O=Q.data;var R=O.attr("id").substr(4);var P=O.parents("[data-role=content]").find(".page-"+R);if(!P.length){A("[data-role=page]").animationComplete(function(){A("a.tablink").removeClass("ui-btn-active");A("a.tab-"+R).not(".tablinklist").addClass("ui-btn-active");var S=A(".page-"+R);S.removeClass("hidden").show().siblings(".tabbody").addClass("hidden");S.find(".ui-listview").listview("refreshthumbs")});return true}if(O.hasClass("tablinklist")){A("a.tablink").not(".tablinklist").removeClass("ui-btn-active")}else{O.addClass("ui-btn-active").parent().siblings("li").find("a").removeClass("ui-btn-active")}P.removeClass("hidden").show().siblings(".tabbody").addClass("hidden");P.find(".ui-listview").listview("refreshthumbs");return false}A(".navbar").each(function(){var O=A(this).parent().find("div.pagetitle");if(O.length){O.after(A(this))}});A("a.dismiss").click(function(){var O=A(this).attr("id").substr(14);A.ajax({type:"POST",url:"ajax.php?do=dismissnotice",data:SESSIONURL+"securitytoken="+SECURITYTOKEN+"&do=dismissnotice¬iceid="+O,success:K,dataType:"xml",context:A(this)})});function K(O){var P=A(O).find("dismissed").text();A("li.navbar_notice_"+P).remove()}if(typeof FB!=="undefined"){FB.init({appId:FB_appid,status:true,cookie:true,xfbml:true});A("#fb_regloginbtn").click(function(){if(FB.getSession(true)){F()}else{FB.login(function(O){if(O.session){F()}},this.loginperms)}return false});A("#fb_reglogoutbtn").click(function(){FB.logout(F);return false});A("#facebookassociate").click(function(){A("#vb_login_username").val(A("#facebookusername").val());A("#vb_login_password").val(A("#facebookpassword").val());A("#facebookassociateform").submit();return false});A('[name="link"]',M).unbind().live("vclick",function(O){A("").attr({type:"hidden",id:"linkinput",name:"link",value:"1"}).appendTo("form");A(this).closest("form").submit();return false});A('[name="nolink"]',M).unbind().live("vclick",function(O){A("").attr({type:"hidden",id:"nolinkinput",name:"nolink",value:"1"}).appendTo("form");A(this).closest("form").submit();return false});function F(){var O=window.top.location.href.replace(/#.*/,"");var P=(window.top.location.search.substring(1)?"&":"?");window.top.location=O+P+"dofbredirect=1"+window.top.location.hash}}if(A(".sidebar_container .categories ul li",M).length){A("a.blogcategorylink",M).show().click(function(){if(!A(this).siblings(".categories").length){A(this).after(A(".sidebar_container .categories",M).first().clone(true));A(this).siblings(".content_container",M).hide()}else{A(this).siblings(".categories",M).remove();A(this).siblings(".content_container",M).show()}return false});A("button.categoriesback",M).click(function(){var O=A(this).parents("div.categories");O.siblings(".content_container",M).show();O.remove()})}if(A(".sidebar_container .blogusername",M).length){A(".memberinfoheader .userinfo",M).html(A(".sidebar_container .blogusername",M).html());A(".memberinfoheader .avatar",M).html(A(".sidebar_container .bloguseravatar",M).html())}A("a.blogpostcommentlink",M).click(function(){A.mobile.silentScroll(A("form#qc_form",M).last().position().top);return false});A("a.blogcommentslink",M).click(function(){A.mobile.silentScroll(A("div.comments",M).last().position().top);return false});A("a.articlecommentlink",M).click(function(){A.mobile.silentScroll(A("#form_widget_comments",M).last().position().top);return false});A('[name="draft"]',M).unbind().click(function(O){A("").attr({type:"hidden",id:"draftinput",name:"draft",value:"1"}).appendTo("form");A(this).closest("form").submit();return false});if(A("ul.breadcrumb li",M).length>1){A(M).data("breadcrumbshow",false);A("div.pagetitle h1",M).before(A("").attr("href","#").html(A("").attr("src",IMGDIR_MOBILE+"/arrow-left.png").addClass("backbutton")).click(function(O){O.preventDefault()}));A("div.pagetitle",M).click(function(){if(!A(M).data("breadcrumbshow")){A(".breadcrumb",M).show();var O=A(".breadcrumb",M).offset();A(".breadcrumboverlay",M).offset(O).show();A("div.pagetitle img.backbutton",M).attr("src",IMGDIR_MOBILE+"/arrow-down.png");A(M).data("breadcrumbshow",true)}else{A(".breadcrumb",M).hide();A(".breadcrumboverlay",M).offset({top:0,left:0}).hide();A("div.pagetitle img.backbutton",M).attr("src",IMGDIR_MOBILE+"/arrow-left.png");A(M).data("breadcrumbshow",false)}}).after(A("
").addClass("breadcrumboverlay"))}if(A(".cmssections ul li",M).length){A("a.cmssectionlink",M).show().click(function(){if(!A(this).parent().siblings(".cmssections").length){A(this).parent().siblings(".content_container",M).before(A(".cmssections",M).first().clone(true));A(this).parent().siblings(".categories",M).remove();A(this).parent().siblings(".content_container",M).hide()}else{A(this).parent().siblings(".cmssections",M).remove();A(this).parent().siblings(".content_container",M).show()}return false});A("button.cmssectionsback",M).click(function(){var O=A(this).parents("div.cmssections");O.siblings(".content_container",M).show();O.remove()})}if(A(".categories ul li",M).length){A("a.cmscategorylink",M).show().click(function(){if(!A(this).parent().siblings(".categories").length){A(this).parent().siblings(".content_container",M).before(A(".categories",M).first().clone(true));A(this).parent().siblings(".cmssections",M).remove();A(this).parent().siblings(".content_container",M).hide()}else{A(this).parent().siblings(".categories",M).remove();A(this).parent().siblings(".content_container",M).show()}return false});A("button.cmscategoriesback",M).click(function(){var O=A(this).parents("div.categories");O.siblings(".content_container",M).show();O.remove()})}A("button[data-submitname]",M).each(function(){A(this).unbind().click(function(Q){var O=A(this).attr("data-submitvalue");var P=A(this).attr("data-submitname");A("").attr({type:"hidden",id:P+"input",name:P,value:O}).appendTo("form");A(this).closest("form").submit();return false})});A('#pmform [name="move"]',M).click(function(O){A('#pmform [name="dowhat"]',M).val("move");A("#pmform",M).submit();O.preventDefault()});A('#pmform [name="delete"]',M).click(function(O){if(confirm("Are you sure?")){A('#pmform [name="dowhat"]',M).val("delete");A("#pmform",M).submit()}O.preventDefault()});A('button[name="moderate"]',M).click(function(O){A(".inlinemodcheckboxradio",M).toggle();A(".inlinemodbuttons",M).toggle()});A("button.inlinemod",M).unbind().click(function(P){var O=A(this).attr("name");A("").attr({type:"hidden",id:O+"input",name:"do",value:O}).appendTo("form");A(this).closest("form").submit();return false});A(".postbit",M).each(function(){var O=A(this).find("label.ui-btn");if(O.length){O.parent().addClass("inlinemodcheckboxradio");O.removeClass("ui-btn-corner-all");O.children("span").removeClass("ui-btn-corner-all")}});var I=D();A("a.multiquote",M).unbind().click(function(){H(A(this).attr("id").substr(3));return false}).each(function(){var O=A(this).attr("id").substr(3);L(O,(A.inArray(O,I)>-1))});function D(){var O=A.cookie("vbulletin_multiquote");if(O!=null&&O!=""){O=O.split(",")}else{O=new Array()}return O}function L(P,O){if(O){A("#mq_"+P,M).addClass("highlight");A("#mq_image_"+P,M).attr("src",BBURL+"/"+IMGDIR_BUTTON+"/multiquote-selected_40b.png")}else{A("#mq_"+P,M).removeClass("highlight");A("#mq_image_"+P,M).attr("src",BBURL+"/"+IMGDIR_BUTTON+"/multiquote_40b.png")}}function H(T){var R=D();var P=new Array();var S=false;for(Q in R){if(!R.hasOwnProperty(Q)){continue}if(R[Q]==T){S=true}else{if(R[Q]){P.push(R[Q])}}}L(T,!S);if(!S){P.push(T);if(typeof mqlimit!="undefined"&&mqlimit>0){for(var Q=0;Q<(P.length-mqlimit);Q++){var O=P.shift();L(O,false)}}}A.cookie("vbulletin_multiquote",P.join(","),{path:"/"});return false}A(".bbcode_container a.view",M).click(function(Q){var O=A(this).parents(".bbcode_container").eq(0).find(".bbcode_code");var P=window.open("","bbcode_code");P.document.write("Popup");P.document.write('

[Back]

');P.document.write(O.outerHTML());P.document.write("
");P.document.close();return false})});A("[data-role=page]").live("pageshow",function(F){var D=this,C=window.location.href;var E=/do=(postreply|postthread)/gi;if(E.test(C)&&A(".postbit",D).length){setTimeout(function(){A.mobile.silentScroll(A(".postbit",D).last().position().top)},400)}E=/#post(\d+)/gi;var G=E.exec(C);if(G){var H=G[1]||"";if(H){setTimeout(function(){A.mobile.silentScroll(A("#post_"+H,D).last().position().top)},400)}}E=/&(new_comment|comments)/gi;if(E.test(C)&&A("div.comments",D).length){setTimeout(function(){A.mobile.silentScroll(A("div.comments",D).last().position().top)},400)}})})(jQuery,this);(function(A,B){A.widget("mobile.imagereg",A.mobile.widget,{options:{theme:null},_create:function(){var D=this.element,E=this.options,C=this;D.find("#refresh_imagereg").removeClass("hidden").click(this,this.fetch_image);D.find("#imagereg").click(this,this.fetch_image);D.ajaxError(function(H,I,G,F){alert("error in: "+G.url+" \nerror:\n"+I.responseText)})},fetch_image:function(D){var C=D.data.element;D.preventDefault();C.find("#progress_imagereg").removeClass("hidden");A.ajax({type:"POST",url:"ajax.php?do=imagereg",data:SESSIONURL+"securitytoken="+SECURITYTOKEN+"&do=imagereg&hash="+C.find("#hash").val(),success:D.data.handle_ajax_response,dataType:"xml",context:D.data})},handle_ajax_response:function(D){var E=this.element;E.find("#progress_imagereg").addClass("hidden");if(D){var C=A(D).find("error").text();if(C){alert(C)}else{var F=A(D).find("hash").text();if(F){E.find("#hash").val(F);E.find("#imagereg").attr("src","image.php?"+SESSIONURL+"type=hv&hash="+F)}}}}})})(jQuery);(function(A,B){A.widget("mobile.vbpagenav",A.mobile.widget,{lowpage:1,highpage:1,numberoflinks:1,height:20,navbuttonwidth:20,pagenumberwidth:20,useqmark:false,options:{theme:null,pagenumber:1,totalpages:1,address:"",address2:"",anchor:""},_create:function(){var E=this.element,I=this.options,C=this;if(I.address.search(/\?/)==-1){this.useqmark=true}else{this.useqmark=false}var F=/\\?&?(page|pagenumber)=?\d+/gi;I.address=I.address.replace(F,"");A("
").addClass("ui-vbpagenav-pagenumbers").appendTo(E);var G=A("",{href:I.address+I.address2+(this.useqmark?"?":"&")+"page=1"+(I.anchor?"#"+I.anchor:""),role:"button"}).text("First").addClass("ui-vbpagenav-first").appendTo(E).buttonMarkup({theme:I.theme,icon:"arrow-l",iconpos:"notext",corners:false,shadow:false,iconshadow:true}).click(function(){if(I.pagenumber==1){return false}return true});this.height=parseInt(G.css("height"))+parseInt(G.css("padding-top"))+parseInt(G.css("padding-bottom"))+parseInt(G.css("border-top-width"))+parseInt(G.css("border-bottom-width"));this.navbuttonwidth=parseInt(G.css("width"))+parseInt(G.css("padding-left"))+parseInt(G.css("padding-right"))+parseInt(G.css("border-left-width"))+parseInt(G.css("border-right-width"));A("",{href:I.address+I.address2+(this.useqmark?"?":"&")+"page="+I.totalpages+(I.anchor?"#"+I.anchor:""),role:"button"}).text("Last").addClass("ui-vbpagenav-last").appendTo(E).buttonMarkup({theme:I.theme,icon:"arrow-r",iconpos:"notext",corners:false,shadow:false,iconshadow:true}).click(function(){if(I.pagenumber==I.totalpages){return false}return true});var H=E.find("div.ui-vbpagenav-pagenumbers");var D=A("",{href:"#",role:"button"}).text("#").addClass("ui-vbpagenav-pagenumber").buttonMarkup({theme:I.theme,corners:false,inline:true,shadow:false,iconshadow:true}).addClass("ui-btn-icon-notext").appendTo(H);this.pagenumberwidth=parseInt(D.css("width"))+parseInt(D.css("padding-left"))+parseInt(D.css("padding-right"))+parseInt(D.css("border-left-width"))+parseInt(D.css("border-right-width"));D.remove();A("[data-role=page]").live("pageshow pagecreate orientationchange resize",function(){C.refresh()})},refresh:function(){var J=this.options,G=this.element,D=this;var I=G.find("div.ui-vbpagenav-pagenumbers");var C=A(document).width();this.numberoflinks=parseInt((C-this.navbuttonwidth*2)/this.pagenumberwidth)+1;this.lowpage=J.pagenumber-parseInt(this.numberoflinks*1.5)+1;if(this.lowpage<1){this.lowpage=1}this.highpage=J.pagenumber+parseInt(this.numberoflinks*1.5)+1;if(this.highpage>J.totalpages){this.highpage=J.totalpages}var F=C/2;var H=F-(J.pagenumber-this.lowpage+0.5)*this.pagenumberwidth;if(H>this.navbuttonwidth||((this.highpage-this.lowpage+1)*this.pagenumberwidth)D-this.navbuttonwidth){C=this.highpage;this.highpage=this.highpage+this.numberoflinks-1;if(this.highpage>I.totalpages){this.highpage=I.totalpages}for(i=C+1;i<=this.highpage;i++){E._buildPagenumber(i,false)}F=(this.numberoflinks-2)*this.pagenumberwidth;if((this.highpage-this.lowpage+1)*this.pagenumberwidth+H.offset().left-F=this.lowpage;i--){C._buildPagenumber(i,true)}}D=(this.numberoflinks-2)*this.pagenumberwidth;if(G.offset().left+D>this.navbuttonwidth){D=this.navbuttonwidth-G.offset().left}G.css("left",function(I,J){if(D){return(parseInt(J)+D).toString()+"px"}return this.navbuttonwidth+"px"})},_buildPagenumber:function(F,D){var I=this.options,E=this.element,C=this;var H=E.find("div.ui-vbpagenav-pagenumbers");var G=A("",{href:I.address+I.address2+(this.useqmark?"?":"&")+"page="+F+(I.anchor?"#"+I.anchor:""),role:"button"}).text(F.toString()).addClass("ui-vbpagenav-pagenumber").buttonMarkup({theme:I.theme,corners:false,inline:true,shadow:false,iconshadow:true}).addClass("ui-btn-icon-notext").live("swipeleft",function(){C.swipeleft()}).live("swiperight",function(){C.swiperight()});if(D){G.prependTo(H)}else{G.appendTo(H)}if(F==I.pagenumber){G.removeClass("ui-btn-up-d").addClass("ui-btn-up-e").click(function(){return false})}}})})(jQuery);(function(A,C){var B={};A.widget("mobile.listview",A.mobile.listview,{_itemApply:function(F,G){var D=this;G.find(".ui-li-count").addClass("ui-btn-up-"+(F.jqmData("counttheme")||this.options.countTheme)+" ui-btn-corner-all");G.find("h1, h2, h3, h4, h5, h6").addClass("ui-li-heading");G.find("p, dl").addClass("ui-li-desc");F.find("li").find(">img").eq(0).addClass("ui-li-thumb").each(function(){A(this).closest("li").addClass(A(this).is(".ui-li-icon")?"ui-li-has-icon":"ui-li-has-thumb");if(!A(this).hasClass("ui-li-icon")){A(this).one("load",function(){D._refreshthumb(this)}).each(function(){if(this.complete){A(this).trigger("load")}})}});var E=G.find(".ui-li-aside");if(E.length){E.each(function(H,I){A(I).prependTo(A(I).parent())})}if(A.support.cssPseudoElement||!A.nodeName(G[0],"ol")){return }},refresh:function(N){this._createSubPages();var R=this.options,D=this.element,Q=this,V=D.jqmData("dividertheme")||R.dividerTheme,O=D.jqmData("splittheme"),H=D.jqmData("spliticon"),P=D.children("li"),L=A.support.cssPseudoElement||!A.nodeName(D[0],"ol")?0:1;if(L){D.find(".ui-li-dec").remove()}for(var J=0,G=P.length;J").buttonMarkup({shadow:true,corners:true,theme:W,iconpos:"notext",icon:H||Y.jqmData("icon")||R.splitIcon}))}})}else{if(T.jqmData("role")==="list-divider"){E+=" ui-li-divider ui-btn ui-bar-"+V;T.attr("role","heading");if(L){L=1}}else{E+=" ui-li-static ui-body-"+M}}D.find("li > .ui-btn-inner").bind("click",function(X){var W=A(this).find("a").first().attr("href");if(W){var Y=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;if(!Y.test(W)){W=BBURL+"/"+W}window.top.location=W}return false});var I=T.find("[type='radio'], [type='checkbox']");if(I.length){var K=A("
"):"").parent().appendTo(A.mobile.pageContainer);newPage.page();var O=S.find("a:first");if(!O.length){O=A("").html(U||R).prependTo(S.empty());O.attr("href",window.top.location+"#"+M)}else{var T=A("").attr("href",window.top.location+"#"+M).addClass("splitlink").click(function(){window.top.location=window.top.location+"#"+M;return false}).appendTo(S)}}).listview()},refreshthumbs:function(){var G=this.options,F=this.element,E=this,D=F.children("li");D.each(function(I){var H=A(this);H.find("img.ui-li-thumb").each(function(){E._refreshthumb(this)})})},_refreshthumb:function(D){A(D).removeAttr("width").removeAttr("height").css({width:"",height:""});if(D.width>D.height&&D.width>=80){D.height=D.height*80/D.width;D.width=80}else{if(D.width<=D.height&&D.height>=80){D.width=D.width*80/D.height;D.height=80}}if(D.width<=80){A(D).css("left",((100-D.width)/2)+"px")}if(D.height<=80){var E=D;setTimeout(function(){var F=A(E).parents(".ui-btn-inner").first().innerHeight();A(E).css("top",((F-E.height)/2)+"px")},80)}}})})(jQuery);jQuery.fn.outerHTML=function(A){return(A)?this.before(A).remove():jQuery("

").append(this.eq(0).clone()).html()};jQuery.cookie=function(B,I,L){if(typeof I!="undefined"){L=L||{};if(I===null){I="";L.expires=-1}var E="";if(L.expires&&(typeof L.expires=="number"||L.expires.toUTCString)){var F;if(typeof L.expires=="number"){F=new Date();F.setTime(F.getTime()+(L.expires*24*60*60*1000))}else{F=L.expires}E="; expires="+F.toUTCString()}var K=L.path?"; path="+(L.path):"";var G=L.domain?"; domain="+(L.domain):"";var A=L.secure?"; secure":"";document.cookie=[B,"=",encodeURIComponent(I),E,K,G,A].join("")}else{var D=null;if(document.cookie&&document.cookie!=""){var J=document.cookie.split(";");for(var H=0;H0){return true}if(A){YAHOO.util.Event.stopEvent(A)}if(YAHOO.util.Connect.isCallInProgress(this.ajax_req)){return false}else{if(!this.ready()){if(this.objectid==this.factory.open_objectid){this.full_edit();return false}this.factory.close_all()}}this.factory.open_objectid=this.objectid;this.factory.editorcounter++;this.editorid="vB_Editor_QE_"+this.factory.containertype+this.factory.editorcounter;this.originalhtml=this.messageobj.innerHTML;this.unchanged=null;this.unchanged_reason=null;this.fetch_editor();return false};vB_QuickEditor.prototype.fetch_editor=function(){if(this.progress_indicator){this.progress_indicator.style.display=""}document.body.style.cursor="wait";YAHOO.util.Connect.asyncRequest("POST",this.factory.ajaxtarget+"?do="+this.factory.ajaxaction+"&"+this.factory.objecttype+"="+this.objectid,{success:this.display_editor,failure:this.error_opening_editor,timeout:vB_Default_Timeout,scope:this},SESSIONURL+"securitytoken="+SECURITYTOKEN+"&do="+this.factory.ajaxaction+"&"+this.factory.objecttype+"="+this.objectid+"&editorid="+PHP.urlencode(this.editorid))};vB_QuickEditor.prototype.error_opening_editor=function(A){vBulletin_AJAX_Error_Handler(A);window.location=this.factory.target+"?"+SESSIONURL+"do="+this.factory.getaction+"&"+this.factory.objecttype+"="+this.objectid};vB_QuickEditor.prototype.handle_save_error=function(A){vBulletin_AJAX_Error_Handler(A);this.show_advanced=false;this.full_edit()};vB_QuickEditor.prototype.display_editor=function(ajax){if(ajax.responseXML){if(this.progress_indicator){this.progress_indicator.style.display="none"}document.body.style.cursor="auto";if(fetch_tag_count(ajax.responseXML,"disabled")){window.location=this.failed_location+this.objectid}else{if(fetch_tag_count(ajax.responseXML,"error")){}else{if(ajax.responseXML.getElementsByTagName("contenttypeid").length>0){vBulletin.attachinfo={contenttypeid:ajax.responseXML.getElementsByTagName("contenttypeid")[0].firstChild.nodeValue,userid:ajax.responseXML.getElementsByTagName("userid")[0].firstChild.nodeValue,attachlimit:ajax.responseXML.getElementsByTagName("attachlimit")[0].firstChild.nodeValue,max_file_size:ajax.responseXML.getElementsByTagName("max_file_size")[0].firstChild.nodeValue,auth_type:ajax.responseXML.getElementsByTagName("auth_type")[0].firstChild.nodeValue,asset_enable:ajax.responseXML.getElementsByTagName("asset_enable")[0].firstChild.nodeValue,posthash:ajax.responseXML.getElementsByTagName("posthash")[0].firstChild.nodeValue,poststarttime:ajax.responseXML.getElementsByTagName("poststarttime")[0].firstChild.nodeValue};var values=ajax.responseXML.getElementsByTagName("values");if(values.length>0&&values[0].childNodes.length){vBulletin.attachinfo.values={};for(var i=0;i0&&phrases[0].childNodes.length){for(var i=0;i"+E[B].firstChild.nodeValue+""}A+="";this.show_errors(A)}else{var C=D.responseXML.getElementsByTagName("message");this.restore(C[0].firstChild.nodeValue,"node");this.factory.obj_init(this.objectid)}}return false};vB_QuickEditor.prototype.show_errors=function(A){set_unselectable("quick_edit_errors_hide");YAHOO.util.Dom.get("ajax_post_errors_message").innerHTML=A;var B=YAHOO.util.Dom.get("ajax_post_errors");var C=(is_saf?"body":"documentElement");YAHOO.util.Dom.setStyle(B,"left",(is_ie?document.documentElement.clientWidth:self.innerWidth)/2-200+document[C].scrollLeft+"px");YAHOO.util.Dom.setStyle(B,"top",(is_ie?document.documentElement.clientHeight:self.innerHeight)/2-150+document[C].scrollTop+"px");YAHOO.util.Dom.removeClass(B,"hidden")};vB_QuickEditor.prototype.hide_errors=function(A){this.errors=false;YAHOO.util.Dom.addClass("ajax_post_errors","hidden");if(A!=true){vB_Editor[this.editorid].check_focus()}};function vB_QuickEditor_Delete_Events(){}vB_QuickEditor_Delete_Events.prototype.delete_button_handler=function(C){var B=vB_QuickEditor_Factory.open_objectid;var A=vB_QuickEditor_Factory.controls[B];if(this.id=="rb_del_leave"&&this.checked){A.deletebutton.disabled=true}else{A.deletebutton.disabled=false}};vB_QuickEditor_Delete_Events.prototype.reason_key_trap=function(C){var B=vB_QuickEditor_Factory.open_objectid;var A=vB_QuickEditor_Factory.controls[B];C=C?C:window.event;switch(C.keyCode){case 9:YAHOO.util.Dom.get(A.editorid+"_save").focus();return false;break;case 13:A.save();return false;break;default:return true}};vB_QuickEditor_Delete_Events.prototype.delete_items_key_trap=function(C){var B=vB_QuickEditor_Factory.open_objectid;var A=vB_QuickEditor_Factory.controls[B];C=C?C:window.event;if(C.keyCode==13){if(open_obj.deletebutton.disabled==false){open_obj.delete_post()}return false}return true};ANI@zY*dՄ\S ;pD*a,8IqVLdp7ra?>Qc60@vL)Y Q ƴ@@raʺYd q|LLSˈ.U롥IP9  Q8WԦ+fɓkv~BВ"AR*z2#Zuf#Zw.Od&Q-$렅ô#j(-%|j0CU8,;n,9O_#_\p15b ѵR)ydcY۲wOy#e{Y5Ϧuh#,  H]LԇE1|v0Hī eԓÎ{Kڞ80t@3tCTᮝtadΈ \Փ/CtEj=e\qWLmE, y iu2IpՑY̥$M)NY ;X׍lA_QxWLu S\ʬ.Bd}F9傠*G8JrV"y% DEɹCR5/:( GdD\U/SpC {BoiqXL$Y\{9ZDmlT m efq5"JV pg(XES?jDQu؄;*ݐ+0I00J+5ViGhӨtGK1GYx`Uxf|a(5tcY D0z]"s.y芢S|t1Fb1F<LW6P/ۨ3vfqBmUJ8UKqq#V 0)[J?jkd\i;p;k: B\o]L1Ml(({M!RYH.̿<1fn7d!ʲA\Xo>i|i M1sk:GU^>oڶE\@?{9 ,ys 2Z\a;Y%BzP*Vư.}欼$)tFR!r7"Z>lUr-8&TJ 2 q})tQqL5٘:]:Q#ATF3~NblѹpԖu*`| '`_Yi28INY#5*q. >EU?92w!b<$1"a5/,7 kLʬŹ5l5ji* 5ۀZ>s-P|Mfq-{>? n9a0o=㍼Og0n{W1l:!G'lX`7]]zbD# pb6_ڞǃ1Zd4\Wp/C=%8q_ 1|ud[ *B `:3n86_|rB[bV!􍈱霳7Y{DH,V(}Z.mAl@lHZ_cq-'f78JZ Y `':0\}nw`:%*׼$Mߦ[ 'MoMfXPW⏌XXәVO쀍LVr+ ^1A-Q93}f3L_ZWѲW<_8\qaJzOilKnM֫pQU$ - ^݊vZٿd \{p8=)8qa,%錫