
VANDAL_PATROL_HOST="/help/vandal_patrol";var verifyErase=false;placeCursorToAskAns=true;String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");};function goAnswersCom(f_el){var query=f_el.srchans?f_el.srchans.value:f_el.value;if(!query||query.trim()=='')
return false;window.open("http://www.answers.com/"+query,"mywindow","menubar=1,resizable=1,width=600px,height=600px,scrollbars=yes,location=1");}
function URLEncode(url_to_encode)
{var NONSAFECHARS="'\"&,!#$%^*:|\\/><~;";var plaintext=url_to_encode;var encoded="";for(var i=0;i<plaintext.length;i++){var ch=plaintext.charAt(i);if(ch==" "){encoded+="+";}else if(NONSAFECHARS.indexOf(ch)==-1){encoded+=ch;}}
return encoded;};function sendToFriend(pod,userid,plpos,isAnswered,returnto,needsans_num,failedURL){if(pod){_hbLink('SendQ',plpos);}
else if(isAnswered){_hbLink('SendQ',((userid==null||userid==0)?"NotLgd_":"Lgd_")+"UnAnsQPg_WTC");}
var url="/Q/Special:SendToFriend";var data="action=submit&"+"jsonly=1&"+"tq="+returnto+"&"+"tn="+needsans_num;eval(sendAjax(url,data,failedURL+"&action=sendToFriend&ansq=0"));}
function URLEncodeEmail(plaintext)
{var SAFECHARS="0123456789"+"ABCDEFGHIJKLMNOPQRSTUVWXYZ"+"abcdefghijklmnopqrstuvwxyz"+"-_.!~*'()";var HEX="0123456789ABCDEF";var encoded="";for(var i=0;i<plaintext.length;i++){var ch=plaintext.charAt(i);if(ch==" "){encoded+="+";}else if(SAFECHARS.indexOf(ch)!=-1){encoded+=ch;}else{var charCode=ch.charCodeAt(0);if(charCode>255){encoded+="+";}else{encoded+="%";encoded+=HEX.charAt((charCode>>4)&0xF);encoded+=HEX.charAt(charCode&0xF);}}}
return encoded;}
var linkFormHasFocus=false;var curDomain=0;var curRating=0;var ratingString='';var ratings=new Array();var links=new Array();function setDomainVariables(_ratings,_links,_ratingString){ratings=_ratings;links=_links;ratingString=_ratingString;setCurSelection('0');}
function getRatings(){return ratings;}
function setCurSelection(val){if(val!=null)
curDomain=val;else
curDomain=$('urlSelect').selectedIndex;curRating=ratings[curDomain];$('selectForm').wpRating[curRating].checked=true;}
function setRating(val){var cnt=ratings.length;curDomain=$('urlSelect').selectedIndex;ratings[curDomain]=val;$('wpRatings').value=ratings.toString();}
function addLinkFormListener(){var browserName=navigator.appName;if(browserName=="Microsoft Internet Explorer"){document.body.attachEvent('onclick',inactivateLinkForm);}
else{document.body.addEventListener('click',inactivateLinkForm,false);}}
function removeLinkFormListener(){var browserName=navigator.appName;if(browserName=="Microsoft Internet Explorer")
document.body.detachEvent('onclick',inactivateLinkForm);else
document.body.removeEventListener('click',inactivateLinkForm,false);}
function inactivateLinkForm(){if($('url_form_popup')&&!linkFormHasFocus){domainFormReset();}}
function editDomain(elm,urldomain){var div=document.getElementById(elm);var returnto=document.loginform.returnto.value;addLinkFormListener();if($('url_form_popup'))return;if(!div)return;pnode=document.createElement("div");pnode.id="url_form_popup";pnode.style.clear="both";pnode.style.position="fixed";snode=document.createElement("div");var url="/Q/Special:EditDomain";var data="url="+URLEncodeEmail(urldomain)+"&returnto="+returnto+"&action=rate";var resp=sendAjax(url,data,"");if(resp.length>0){snode.innerHTML=resp;snode.style.background="#ffffff";snode.style.zIndex="111";snode.style.margin="0px 0px 0px 0px";if(!isIE6())
snode.style.position="relative";pnode.style.visibility="visible";pnode.style.left="40%";pnode.style.top="30%";pnode.style.padding="0px";if(isIE6()){window.onload=fixFloatElement;window.onresize=fixFloatElement;window.onscroll=fixFloatElement;}
pnode.appendChild(snode);div.appendChild(pnode);RoundStatus();operaRefresh();ratings=$('wpRatings').value.toArray();ratingString=$('ratingString').value;links=new Array($('wpLinks').value);}}
function sendDomainData(){removeLinkFormListener();var returnto=document.loginform.returnto.value;var wpRatings=ratings.toString();var wpLinks=$('wpLinks').value;var url="/Q/Special:EditDomain";var data="wpRatings="+URLEncodeEmail(wpRatings)+"&wpLinks="+URLEncodeEmail(wpLinks)+"&returnto="+URLEncodeEmail(returnto)+"&action=submit";var resp=sendAjax(url,data,"");}
function domainFormReset(){removeLinkFormListener();var tobj=$('question_tools');if(tobj!=null)tobj.style.visibility="visible";tobj=$('preFooter');if(tobj!=null)tobj.style.margin="0 0 0 0";$('url_form_popup').style.visibility='hidden';tar=$('url_form_popup');tar.parentNode.removeChild($('url_form_popup'));}
function getClientHeight(){return typeof(window.innerHeight)!=="undefined"?window.innerHeight:document.documentElement.clientHeight;}
function fixFloatElement(){var offset=getClientHeight();if(document.getElementById('url_form_popup')){var footer=document.getElementById('url_form_popup');var main=document.getElementById('container');footer.style.position='absolute';footer.style.top=(document.documentElement.scrollTop+offset-footer.offsetHeight)+'px';main.style.marginBottom=footer.offsetHeight+'px';footer.style.display='block';}}
function getMoreQuestions(aid,tid){var url="/Q/Special:UnAnsweredQ"+"&action=canAnsThese&"+"ajax=1&"+"aid="+aid+"&"+"tid="+tid;new Ajax.Request(url,{parameters:"",onSuccess:function(transport){$('moreQsList').innerHTML=transport.responseText;},onException:function(requester,except){alertBrowserError();}});}
var niCurrentStateArray=null;listpics2=new Array(''+wgStaticFilesServer+'/templates/icons/x.gif');imagePreload2=new ImagePreloader(listpics2);function buildNIPopup(returnto_nons,userWSSStatus){var init_size={x:400,y:''};popup_elem.buildModal("ni_popup",init_size.x,init_size.y);var ecsapedRN=returnto_nons.replace(/\'/g,"\\'");var niformtext=''+'<form name="needsImprovement" id="needsImprovementID" style="margin:0px;"><div style="clear:both;text-align:left;">'+'<input id="ni_1" type="checkbox"  name="ni[]" value="1">&nbsp;needs spelling/grammar cleanup<br>'+'<input id="ni_2" type="checkbox"  name="ni[]" value="1">&nbsp;needs more detail<br>'+'<input id="ni_3" type="checkbox"  name="ni[]" value="1">&nbsp;is repetitive or poorly structured<br>'+'<input id="ni_5" type="checkbox"  name="ni[]" value="1">&nbsp;is one-sided<br>'+'<input id="ni_6" type="checkbox"  name="ni[]" value="1">&nbsp;is inflammatory/offensive or contains bad language<br>'+'<input id="ni_7" type="checkbox"  name="ni[]" value="1">&nbsp;contains phone number or web address<br>'+'<div id="comments">Comments:</div>'+'<textarea style="margin-left:5px;color:grey;height:50px;" id="ni_other" name="ni_other" cols="40" onKeyDown="textCounter1(this,document.getElementById(\'counter\'),80);" onKeyUp="textCounter1(this,document.getElementById(\'counter\'),80);" wrap="hard"  onmouseover=\'$("ni_popup").xDragEnabled = false;\' onmousemove=\'$("ni_popup").xDragEnabled = false;\' onmouseout=\'$("ni_popup").xDragEnabled = true;\'></textarea></br>'+'<div style="float:left;width:100%;height:65px"><div id="counter" style="height:15px;font-size:11px;margin-left:4px;"></div><div style="margin-left:4px;text-align:left;" id="msgID"></div></div>'+'<div style="text-align:center;"><a class=\'btn std\' href=\'javascript:void(0);\' onmousedown="ButtonMouseDown(this);" onmouseup="ButtonMouseUp(this);" onmouseout="ButtonMouseUp(this); $(\'ni_popup\').xDragEnabled = true;" onclick="if(!$(this).isDisabledBtn()) { _hbLink(\'NI_Popup_Submit\', \''+userWSSStatus+'\'); submitNI(\'needsImprovementID\', \'/Q/Special:NeedsImprovement\', \''+ecsapedRN+'\', \'updateNIData\'); return false; } else { xPreventDefault(); return false; }" alt="Save" title="Save" onmouseover="$(\'ni_popup\').xDragEnabled = false;" onmousemove="$(\'ni_popup\').xDragEnabled = false;"><span><span><font style="white-space: nowrap;"><input type="image" value="" src="http://site1.wikianswers.com/templates/images/blank.gif" style="display: inline; width: 1px; height: 1px;" tabindex="-1"><font>&nbsp;Save&nbsp;</font><input type="image" value="" src="http://site1.wikianswers.com/templates/images/blank.gif" style="display: inline; width: 1px; height: 1px;" tabindex="-1"></font></span></span></a>'+'&nbsp;&nbsp;&nbsp;<a class=\'btn std\' href=\'javascript:void(0);\' onmousedown="ButtonMouseDown(this);" onmouseup="ButtonMouseUp(this);" onmouseout="ButtonMouseUp(this); $(\'ni_popup\').xDragEnabled = true;" onclick="if(!$(this).isDisabledBtn()) { _hbLink(\'NI_Popup_Cancel\', \''+userWSSStatus+'\'); globalHideModal(); } else { xPreventDefault(); return false; }" alt="Cancel" title="Cancel" onmouseover="$(\'ni_popup\').xDragEnabled = false;" onmousemove="$(\'ni_popup\').xDragEnabled = false;"><span><span><font style="white-space: nowrap;"><input type="image" value="" src="http://site1.wikianswers.com/templates/images/blank.gif" style="display: inline; width: 1px; height: 1px;" tabindex="-1"><font>&nbsp;Cancel&nbsp;</font><input type="image" value="" src="http://site1.wikianswers.com/templates/images/blank.gif" style="display: inline; width: 1px; height: 1px;" tabindex="-1"></font></span></span></a>'+'</div></div></form></div>';popup_elem.fill("<div id='ni_popup_DIV' style='position: absolute; left: -10000px; top: -10000px;'><table cellpadding='0' cellspacing='0' style='background: #FFFFFF; width: "+init_size.x+"px; height: "+(init_size.y-4)+"px; border: #8E8E8E 2px solid; padding: 0px; margin: 0px;'><tr><td style='text-align: center; width: "+init_size.x+"px; height: "+(init_size.y-4)+"px; vertical-align: top; padding: 0px; margin: 0px; font-size: 16px; border: 0px;'><div id='close_ni_popup_DIV' align='right' style='height: 18px;'><img src='"+wgStaticFilesServer+"/templates/icons/x.gif' style='cursor: pointer;' title='Close' alt='Close' onclick='globalHideModal();' /></div><div id='header_ni_popup_DIV' style='background-color: #EFF6D5; padding: 0px; text-align: left; width: "+(init_size.x-24)+"px; margin: 5px 10px 10px 10px;'><font style='font-size: 16px; font-weight: bold; color: #000000;'>&nbsp;This answer... </font><font style='font-size:12px;'>(select all that apply)</font></div><div id='selection_ni_popup_DIV' style='color: #000000; font-size: 13px; padding: 7px 12px 12px 12px; text-align: left;'>"+niformtext+"</div></td></tr></table></div>");var cornersObj=new curvyCorners({tl:{radius:5},tr:{radius:5},bl:{radius:5},br:{radius:5},antiAlias:true,autoPad:false},$('header_ni_popup_DIV'));cornersObj.applyCornersToAll();init_size.y=$('ni_popup_DIV').offsetHeight;init_size.x=$('ni_popup_DIV').offsetWidth;$('ni_popup').setStyle({width:init_size.x+"px",height:init_size.y+"px"});popup_elem.pw=init_size.x;popup_elem.ph=init_size.y;$('ni_popup_DIV').style.position="static";popup_elem.centralize();cur_scroll_y=xScrollTop();cur_scroll_x=xScrollLeft();if(document.addEventListener){xModalDialog.grey.addEventListener("mousewheel",checkScroll,false);xModalDialog.grey.addEventListener("DOMMouseScroll",checkScroll,false);}
else if(document.attachEvent){xModalDialog.grey.attachEvent("onmousewheel",checkScroll);}
Event.observe(window,"scroll",stopWindowScroll,false);if(!$('ni_popup').xDragEnabled)
xEnableDrag($('ni_popup'),function(ele,mouseX,mouseY,xEventObj){var targ;if(!xEventObj)var xEventObj=window.event;if(xEventObj.target)targ=xEventObj.target;else if(xEventObj.srcElement)targ=xEventObj.srcElement;if(targ.nodeType&&targ.nodeType==3)
targ=targ.parentNode;if(targ.tagName.match(/textarea|input/i))return;Event.stopObserving($('ni_popup'),"mouseover",popupCursorCheck);Event.stopObserving($('ni_popup'),"mouseout",popupCursorCheck);Event.stopObserving($('ni_popup'),"mousemove",popupCursorCheck);$('ni_popup').style.cursor="move";},function(ele,mouseDX,mouseDY,xEventObj){var targ;if(!xEventObj)var xEventObj=window.event;if(xEventObj.target)targ=xEventObj.target;else if(xEventObj.srcElement)targ=xEventObj.srcElement;if(targ.nodeType&&targ.nodeType==3)
targ=targ.parentNode;if(targ.tagName.match(/textarea|input/i))return;var x=xLeft($('ni_popup'))+mouseDX;var y=xTop($('ni_popup'))+mouseDY;$('ni_popup').style.cursor="move";xMoveTo($('ni_popup'),x,y);},function(ele,mouseX,mouseY,xEventObj){var targ;if(!xEventObj)var xEventObj=window.event;if(xEventObj.target)targ=xEventObj.target;else if(xEventObj.srcElement)targ=xEventObj.srcElement;if(targ.nodeType&&targ.nodeType==3)
targ=targ.parentNode;if(targ.tagName.match(/textarea|input/i))return;$('ni_popup').style.cursor="auto";Event.observe($('ni_popup'),"mouseover",popupCursorCheck);Event.observe($('ni_popup'),"mouseout",popupCursorCheck);Event.observe($('ni_popup'),"mousemove",popupCursorCheck);});Event.observe($('ni_popup'),"mouseover",popupCursorCheck);Event.observe($('ni_popup'),"mouseout",popupCursorCheck);Event.observe($('ni_popup'),"mousemove",popupCursorCheck);fillNIPopup();}
var popupCursorCheck=function(event){if(!event)var event=window.event;var cursor=getCursorPosition(event);var left=xLeft($('ni_popup'));var top=xTop($('ni_popup'));var height=xHeight($('ni_popup'));var width=xWidth($('ni_popup'));if(left<cursor.x&&top<cursor.y&&left+width>cursor.x&&top+height>cursor.y&&!(left+15<cursor.x&&top+15<cursor.y&&left+width-15>cursor.x&&top+height-15>cursor.y)){$('ni_popup').setStyle({cursor:"move"});}
else{$('ni_popup').setStyle({cursor:"auto"});}};var getCursorPosition=function(e){e=e||window.event;var cursor={x:0,y:0};if(e.pageX||e.pageY){cursor.x=e.pageX;cursor.y=e.pageY;}
else{var de=document.documentElement;var b=document.body;cursor.x=e.clientX+
(de.scrollLeft||b.scrollLeft)-(de.clientLeft||0);cursor.y=e.clientY+
(de.scrollTop||b.scrollTop)-(de.clientTop||0);}
return cursor;};function updateNIData(str){var niBanner=document.getElementById("niBannerID");if(niBanner!=null){niBanner.innerHTML=str;if(str.trim().length>0){niBanner.style.display="block";document.getElementById("q_answer").style.marginTop=(niBanner.offsetHeight+30)+"px";}
else{niBanner.style.display="none";document.getElementById("q_answer").style.marginTop="10px";}}}
function fillNIPopup(){var FLAG_ONE_SIDED=1;var FLAG_PHONE_WEBADRESS=2;var FLAG_GRAMMAR_SPELLCHECK=4;var FLAG_MORE_DETAIL=8;var FLAG_POORLY_STRUCTURED=16;var FLAG_INFLAMMATORY=64;var FLAG_COMMENTS=128;niCurrentStateArray=new Array();niCurrentStateArray["ni_other"]="";for(var ii=1;ii<8;ii++)
niCurrentStateArray["ni_"+ii]=false;var obj=document.getElementById("niFlags");if(obj!=null){var flags=obj.innerHTML*1;if(flags&FLAG_GRAMMAR_SPELLCHECK){var ni_1=document.getElementById("ni_1");if(ni_1)niCurrentStateArray["ni_1"]=ni_1.checked=true;}
if(flags&FLAG_MORE_DETAIL){var ni_2=document.getElementById("ni_2");if(ni_2)niCurrentStateArray["ni_2"]=ni_2.checked=true;}
if(flags&FLAG_POORLY_STRUCTURED){var ni_3=document.getElementById("ni_3");if(ni_3)niCurrentStateArray["ni_3"]=ni_3.checked=true;}
if(flags&FLAG_PHONE_WEBADRESS){var ni_4=document.getElementById("ni_4");if(ni_4)niCurrentStateArray["ni_4"]=ni_4.checked=true;}
if(flags&FLAG_ONE_SIDED){var ni_5=document.getElementById("ni_5");if(ni_5)niCurrentStateArray["ni_5"]=ni_5.checked=true;}
if(flags&FLAG_INFLAMMATORY){var ni_6=document.getElementById("ni_6");if(ni_6)niCurrentStateArray["ni_6"]=ni_6.checked=true;}
if(flags&FLAG_PHONE_WEBADRESS){var ni_7=document.getElementById("ni_7");if(ni_7)niCurrentStateArray["ni_7"]=ni_7.checked=true;}
var comment=document.getElementById("cText");if(comment){var ni_other=document.getElementById("ni_other");if(ni_other){niCurrentStateArray["ni_other"]=comment.innerHTML;ni_other.value=comment.innerHTML;ni_other.focus();}}}}
function submitNI(formId,dest,rt,destFun){var msgDiv=document.getElementById("msgID");if(msgDiv){var changeMade=false;var hasChecked=false;for(var ii=1;ii<8;ii++){var ni=document.getElementById("ni_"+ii);hasChecked|=ni&&ni.checked;if(ni&&ni.checked!=niCurrentStateArray["ni_"+ii]){changeMade=true;break;}}
if(!changeMade){var ni_other=document.getElementById("ni_other");if(ni_other&&niCurrentStateArray["ni_other"]!=ni_other.value){changeMade=true;}}
if(changeMade)
return UpdateToolTip(formId,dest,rt,destFun);else if(!hasChecked)
msgDiv.innerHTML="Choose a flag or click Cancel to close this window.";else
globalHideModal();return false;}}
function UpdateToolTip(formId,dest,rt,destFun){if(formId=="userloginID"){setUserNameAndEmail(formId);UpdateToolTipOld(formId,dest,rt,destFun);return;}
var params=getParams(formId);var rt_param=(rt&&rt!="")?"rt="+rt:"";var url="/Q/Special:NeedsImprovement&"+params+rt_param;try{globalHideModal();repaintToolTip("<div style=\"font-size:20px;margin-top:70px\">Please wait...</div>");}
catch(e){UpdateToolTipOld(formId,dest,rt,destFun);return;}
showModalWait();new Ajax.Request(url,{parameters:"",onSuccess:function(transport){updateNIData(transport.responseText);},onException:function(requester,except){alertBrowserError();}});globalHideModal();}
function removeOneNIFlag(rt,flag){var rt_param=(rt&&rt!="")?"&rt="+rt:"";AjaxToFunc('/Q/Special:NeedsImprovement','updateNIData',"POST","flag="+flag+rt_param);}
function checkLength(txtAreaOBJ){if(txtAreaOBJ!=null&&txtAreaOBJ.value.length>60){alert("Text too long. Must be 20 characters or less");return false;}
return true;}
function showNIComment(){var comment=document.getElementById("commentTXT");var commentLNK=document.getElementById("commentLNK");if(comment){if(comment.style.display!="block"){comment.style.display='block';commentLNK.innerHTML="Hide details";_hbLink('NI_ViewDetails');}
else{comment.style.display="none";commentLNK.innerHTML="View details";_hbLink('NI_HideDetails');}}}
function textCounter1(field,countfield,maxlimit,trim){var trim=(trim==null)?1:trim;if((field.value.length>maxlimit)&&trim){field.value=field.value.substring(0,maxlimit);}
if(field.value.length==0)
countfield.innerHTML="";else{var numCharsLeft=maxlimit-field.value.length;countfield.innerHTML=numCharsLeft+((numCharsLeft==1)?" character left":" characters left");}}
reportAbuseListPics=new Array(wgStaticFilesServer+'/templates/icons/x.gif',wgStaticFilesServer+'/templates/icons/pencil.gif');reportAbuseImagePreload=new ImagePreloader(reportAbuseListPics);function reportAbusePopupMenu(){_hbLink("abuse_Qlink",jwgData.wssStatus);reportAbuseEnableBtn=function(){if($('submitReportAbuseDIV').select("a.btn")[0].isDisabledBtn()){$('submitReportAbuseDIV').select("a.btn")[0].enableBtn();}}
var content="<div id='outerReportAbuseDIV'>"+"<table cellpadding='0' cellspacing='0' style='background: #FFFFFF; width: 100%; height:100%; "+"border: #8E8E8E 2px solid; padding: 0px; margin: 0px;'><tr><td style='text-align: center; width: 100%; "+"height: 100%; vertical-align: top; padding: 0px; margin: 0px; font-size: 16px; border: 0px;'>"+"<div id='closeReportAbuseDIV' align='right'><img src='"+wgStaticFilesServer+"/templates/icons/x.gif' style='cursor: pointer;'"+"title='Close' alt='Close' onclick='javascript:reportAbusePopupMenuHide();' /></div>"+"<div id='headerReportAbuseDIV' style='background-color: #EFF6D5; padding: 0px; text-align: left; width: auto; "+"margin: 5px 10px 10px 10px;'>"+"<table><tr><td><img src='"+wgStaticFilesServer+"/templates/icons/pencil.gif' style='display: block;padding-right: 5px;top:-7px;'></td>"+"<td><font style='font-size: 12px;'> Please tell us why you think this content should be removed:</font></td></tr></table></div>"+"<form style='padding: 0px; margin: 0px;' action='javascript:reportAbuseSubmitSelection();' method='post' id='selectionReportAbuseFORM' enctype='application/x-www-form-urlencoded'>"+"<div id='selectionReportAbuseDIV' style='color: #000000; font-size: 13px; padding: 7px 12px 12px 12px; text-align: left;'>"+"<table style='margin: 0px; padding: 0px;' celpadding=5 cellspacing=0 border=0>"+"<tr><td style='vertical-align: top;'><input class='selectionReportAbuse' name='selectionReportAbuse' value='ra1&abuse_sel_spamvand' type='radio' id='ra1' onclick='javascript:return reportAbuseEnableBtn();' style='margin-bottom: 8px;' /></td><td style='vertical-align: top; padding: 1px 0px 0px 5px;'><label for='ra1' style='cursor: pointer;'> Spam/vandalism (e.g. unrelated or commercial information) </label></td></tr>"+"<tr><td style='vertical-align: top;'><input class='selectionReportAbuse' name='selectionReportAbuse' value='ra2&abuse_sel_inap'  type='radio' id='ra2' onclick='javascript:return reportAbuseEnableBtn();' style='margin-bottom: 8px;' /></td><td style='vertical-align: top; padding: 1px 0px 0px 5px;'><label for='ra2' style='cursor: pointer;'> Inappropriate content (e.g., violence or profanity) </label></td></tr>"+"<tr><td style='vertical-align: top;'><input class='selectionReportAbuse' name='selectionReportAbuse' value='ra3&abuse_sel_plagcopy' type='radio' id='ra3' onclick='javascript:return reportAbuseEnableBtn();' style='margin-bottom: 8px;' /></td><td style='vertical-align: top; padding: 1px 0px 0px 5px;'><label for='ra3' style='cursor: pointer;'> Plagiarism/copyright infringement </label></td></tr>"+"<tr><td style='vertical-align: top;'><input class='selectionReportAbuse' name='selectionReportAbuse' value='ra4&abuse_sel_other'  type='radio' id='ra4' onclick='javascript:return reportAbuseEnableBtn();' style='margin-bottom: 8px;' /></td><td style='vertical-align: top; padding: 1px 0px 0px 5px;'><label for='ra4' style='cursor: pointer;'> Other </label></td></tr>"+"</table>"+"</div><div id='submitReportAbuseDIV' style='border-top: #DCDCDC 1px dashed; padding: 7px 5px; text-align: center;'>"+"<a class='btn std grey' href='javascript:void(0);' onmousedown=\"ButtonMouseDown(this);\" onmouseup=\"ButtonMouseUp(this);\" onmouseout=\"ButtonMouseUp(this); \" onclick=\"if(!$(this).isDisabledBtn()) { if($(this).match('form a')) { bt_submit_fnc = function(tbtn) { $(tbtn).submitBtn(); }; bt_submit_fnc.defer(this); } } else { xPreventDefault(); return false; }\" alt=\"Send Report\" title=\"Send Report\"><span><span><font style=\"white-space: nowrap;\"><input type=\"image\" value=\"\" src=\"http://site1.wikianswers.com/templates/images/blank.gif\" style=\"display: inline; width: 1px; height: 1px;\" tabindex=\"-1\"><font>&nbsp;Send Report&nbsp;</font><input type=\"image\" value=\"\" src=\"http://site1.wikianswers.com/templates/images/blank.gif\" style=\"display: inline; width: 1px; height: 1px;\" tabindex=\"-1\"></font></span></span></a>&nbsp;&nbsp;&nbsp;<a class='btn std' href='javascript:void(0);' onmousedown=\"ButtonMouseDown(this);\" onmouseup=\"ButtonMouseUp(this);\" onmouseout=\"ButtonMouseUp(this); \" onclick=\"if(!$(this).isDisabledBtn()) { reportAbusePopupMenuHide(); } else { xPreventDefault(); return false; }\" alt=\"Cancel\" title=\"Cancel\"><span><span><font style=\"white-space: nowrap;\"><input type=\"image\" value=\"\" src=\"http://site1.wikianswers.com/templates/images/blank.gif\" style=\"display: inline; width: 1px; height: 1px;\" tabindex=\"-1\"><font>&nbsp;Cancel&nbsp;</font><input type=\"image\" value=\"\" src=\"http://site1.wikianswers.com/templates/images/blank.gif\" style=\"display: inline; width: 1px; height: 1px;\" tabindex=\"-1\"></font></span></span></a>"+"</div></form></td></tr></table></div>";init_size={x:0,y:0};selectionPopupMenu("outerReportAbuseDIV",init_size,content);}
function reportAbusePopupMenuHide(){_hbLink("abuse_cancelrpt",jwgData.wssStatus);popupMenuHide();}
function reportAbuseSubmitSelection(){_hbLink("abuse_sendrpt",jwgData.wssStatus);var selection='';var lid='';var selections=$$('.selectionReportAbuse');for(var c=0;c<selections.length;c++){if(selections[c].checked){var vals=selections[c].value.split('&');selection=vals[0];lid=vals[1];break;}}
if(selection!=''){_hbLink(lid,jwgData.wssStatus);$('headerReportAbuseDIV').innerHTML='';$('selectionReportAbuseDIV').innerHTML='';$('submitReportAbuseDIV').innerHTML='';$('outerReportAbuseDIV').parentNode.style.cursor="wait";$('selectionReportAbuseDIV').innerHTML="<div style='font-size: 12px; width: 100%; height: "+(popup_elem.ph-54)+"px'><div style='padding-top: 60px; text-align: center;'><img src='"+wgStaticFilesServer+"/templates/icons/ajax-loader3.gif' border=0 alt='Please wait...' /><br><font style='font-size: 12px; color: #A9A9A9;'> Please wait... </font></div></div>";var url='/Q/'+jwgData.articleData.real_returnto;var params={action:'reportabuse',sel:selection,ajaxonly:'1'};new Ajax.Request(url,{parameters:params,onSuccess:function(transport){$('outerReportAbuseDIV').parentNode.style.cursor="default";popupMenuHide();statusMessageShow("Our <a href="+VANDAL_PATROL_HOST+">Vandal Patrol</a> team is hot on the heels of the perpetrator. "+"Thanks for reporting this page - your sharp eyes help make WikiAnswers great!");$('ReportAbuse').innerHTML="Reported";$('ReportAbuse').style.fontSize='11px';$('ReportAbuse').style.color='red';},onException:function(requester,except){popupMenuHide();alertBrowserError();}});}
else return;}
var TrashMerge=Class.create({hide:function(){_hbLink('trash_cancel',this.lpos);popupMenuHide();},getPopupMenuHTML:function(){var url='/Q/Special:MergeQuestions';var params={action:'getmenu',ajaxonly:'1',hasAnswer:this.hasAnswer,alternate_count:this.alternate_count,qTitle:this.title,isHarmful:this.isHarmful};new Ajax.Request(url,{parameters:params,onSuccess:function(transport){var content=transport.responseText;trashMergeInstance.displayPopupMenu(content);fireForTrashCompletely();},onException:function(requester,except){alertBrowserError();return;}});},displayPopupMenu:function(content){var init_size={x:0,y:0};selectionPopupMenu("outerTrashMergeDIV",init_size,content);if(this.hasAnswer&&this.alternate_count==0){this.changeMergeInputsDisabledState('disabled');}},submit:function(){_hbLink('trash_continue',this.lpos);if($('mergeradiobutton')&&$('mergeradiobutton').checked){var removeAnswer=($('removeanswercheckbox')&&$('removeanswercheckbox').checked);this.submitMerge(removeAnswer);}else if($('trashradiobutton')&&$('trashradiobutton').checked){this.submitTrash();}},submitTrash:function(){window.location=this.getTrashURL();},showWaitMessage:function(){$('headerTrashMergeDIV').innerHTML='';$('selectionTrashMergeDIV').innerHTML='';$('submitTrashMergeDIV').innerHTML='';$('outerTrashMergeDIV').parentNode.style.cursor="wait";$('selectionTrashMergeDIV').innerHTML="<div style='font-size: 12px; width: 100%; height: "+(popup_elem.ph-54)+"px'><div style='padding-top: 60px; text-align: center;'><img src='"+wgStaticFilesServer+"/templates/icons/ajax-loader3.gif' border=0 alt='Please wait...' /><br><font style='font-size: 12px; color: #A9A9A9;'> Please wait... </font></div></div>";},submitMerge:function(removeAnswer){var selections=$$('.catchallselection');var selection='';for(var c=0;c<selections.length;c++){if(selections[c].checked){selection=selections[c].value;break;}}
if(selection==''){return;}
this.showWaitMessage();if(removeAnswer){this.removeAnswerAndMerge(selection);}else{this.mergeQuestion(selection);}},onMergeSuccess:function(catchAllQuestion){window.location='/Q/'+catchAllQuestion;},mergeQuestion:function(catchAllQuestion){var url='/Q/Special:MergeQuestions';var params={action:'submit',wpPrimary:decodeURIComponent(catchAllQuestion),wpSecondary:this.title,ajaxonly:'1',wpTier:'1',wpMergeIgnoreRelatedLinks:'1',wpMergeIgnoreRelatedQs:'1'};new Ajax.Request(url,{parameters:params,onSuccess:function(transport){var errorMsg=transport.responseText;if(errorMsg!=''){popupMenuHide();statusMessageShow(errorMsg);return;}
trashMergeInstance.onMergeSuccess(catchAllQuestion);},onException:function(requester,except){popupMenuHide();alertBrowserError();}});},getTrashURL:function(){var url='/Q/'+encodeURIComponent(this.title)+'&action=movefaq&topic_id=2380&wpSave=1&new_list=2380&wpTopicID=2380';return url;},removeAnswerAndMerge:function(catchAllQuestion){var url='/Q/'+this.title;var params={action:'deleteanswer',ajaxonly:'1'};new Ajax.Request(url,{parameters:params,onSuccess:function(transport){var response=transport.responseText.evalJSON();if(response.rc==true){trashMergeInstance.mergeQuestion(catchAllQuestion);}else{popupMenuHide();statusMessageShow("Sorry, can\'t remove the answer, please delete manually and try to merge again.");}},onException:function(requester,except){popupMenuHide();alertBrowserError();}});},changeMergeInputsDisabledState:function(disabled){var selections=$$('.catchallselection');for(var c=0;c<selections.length;c++){selections[c].disabled=disabled;if(!selections[c].disabled&&selections[c].checked){this.changeMergeBtnState('');}}
var labels=$$('.catchalllabel');for(var c=0;c<labels.length;c++){labels[c].style.cursor=(disabled==''?'pointer':'default');}
if($('mergeradiobutton')){$('mergeradiobutton').disabled=disabled;}},initialize:function(title,alternate_count,hasAnswer,isHarmful,lpos){this.title=(title==null?'':title);this.hasAnswer=hasAnswer;this.alternate_count=alternate_count;this.isHarmful=isHarmful;this.lpos=lpos;if(!jwgData.config.trashMergeFeatureEnabled){this.submitTrash();return;}
this.getPopupMenuHTML();},changeMergeBtnState:function(disabled){btnElm=$('submitTrashMergeDIV').select("a.btn")[0];if(btnElm.isDisabledBtn()&&!disabled){btnElm.enableBtn();}else if(!btnElm.isDisabledBtn()&&disabled){btnElm.disableBtn();}},removeAnswerChanged:function(){var checkbox=document.forms['trashMergeForm'].removeanswer;if(checkbox.checked){this.changeMergeInputsDisabledState('');}else{this.changeMergeInputsDisabledState('disabled');if(!$('trashradiobutton')||!$('trashradiobutton').checked){this.changeMergeBtnState('disabled');}}},changeMergeInputsCheckedState:function(checked){var selections=$$('.catchallselection');for(var c=0;c<selections.length;c++){selections[c].checked=checked;}
if($('mergeradiobutton')){$('mergeradiobutton').checked=checked;}},catchAllInputChanged:function(){$('mergeradiobutton').checked='checked';if($('trashradiobutton')){$('trashradiobutton').checked='';}
this.changeMergeBtnState('');},mergeInputChanged:function(){this.changeMergeBtnState('disabled');},trashInputChanged:function(){this.changeMergeInputsCheckedState('');this.changeMergeBtnState('');}});var trashMergeInstance=null;Object.extend(TrashMerge,{start:function(){qTitle=jwgData.articleData.real_returnto;alternate_count=(!Object.isUndefined(jwgData.articleData.alternate_count)?jwgData.articleData.alternate_count:0);hasAnswer=((!Object.isUndefined(jwgData.articleData.hasAnswer)&&jwgData.articleData.hasAnswer)?1:0);trashMergeInstance=new TrashMerge(qTitle,alternate_count,hasAnswer,0,'Qpage');}});var TrashMergeFromSERP=Class.create(TrashMerge,{onMergeSuccess:function(catchAllQuestion){popupMenuHide();navGo(search_page,true);},submitTrash:function(){var url=this.getTrashURL();new Ajax.Request(url,{parameters:"",onSuccess:function(transport){popupMenuHide();navGo(search_page,true);},onException:function(requester,except){alertBrowserError();}});}});Object.extend(TrashMergeFromSERP,{start:function(qTitle,alternate_count,hasAnswer){qTitle=decodeURIComponent(qTitle);trashMergeInstance=new TrashMergeFromSERP(qTitle,alternate_count,hasAnswer,0,'SERPmenu');}});var TrashMergeHarmful=Class.create(TrashMerge,{});Object.extend(TrashMergeHarmful,{start:function(){qTitle=jwgData.articleData.real_returnto;alternate_count=(!Object.isUndefined(jwgData.articleData.alternate_count)?jwgData.articleData.alternate_count:0);hasAnswer=((!Object.isUndefined(jwgData.articleData.hasAnswer)&&jwgData.articleData.hasAnswer)?1:0);trashMergeInstance=new TrashMergeHarmful(qTitle,alternate_count,hasAnswer,1,'Qpage');}});var TrashMergeAlternates=Class.create(TrashMerge,{mergeQuestion:function(catchAllQuestion){var CATCHALLQUESTION=catchAllQuestion;var url="/Q/Special:SplitMerge";var params="action=submit&"+"action_type=eq&"+"tq="+returnto_question+"&"+"mainq="+catchAllQuestion+"&"+"tier=1&"+qsplits_values;if(xDef("mergeto")&&mergeto)
params+="&mergeto="+mergeto;new Ajax.Request(url,{parameters:params,onSuccess:function(transport){var resp=transport.responseText;if(resp.indexOf('ERROR')==0){statusMessageShow("Merge failed. Check if <a href=\'/Q/"+CATCHALLQUESTION+"\'>catch-all question</a> "+"is a redirect, or has too many alternates.");}else{handleSplitMergeResponse(resp);}
popupMenuHide();},onException:function(requester,except){popupMenuHide();alertBrowserError();}});},submitTrash:function(){popupMenuHide();submitForm('Trash','batchform');}});Object.extend(TrashMergeAlternates,{start:function(){var qTitle=(singleTrashedAlt!=null?singleTrashedAlt:null);trashMergeInstance=new TrashMergeAlternates(qTitle,0,0,0,'EditAlternates');}});function unlockQuestion(){var url=encodeURI('/Q/'+jwgData.articleData.real_returnto);var params={action:'getunpreservemenu',ajaxonly:'1'};new Ajax.Request(url,{parameters:params,onSuccess:function(transport){var content=transport.responseText;selectionPopupMenu("outerUnlockQuestionDIV",{x:0,y:0},content);},onException:function(requester,except){alertBrowserError();return;}});}
var prev_title='';function ajaxMovePage(page,isLoggedIn){var title=$('question_title').select('h1')[0];var parent=null;if(title){parent=title.parentNode;}
else{if($('new_wording'))
$('new_wording').focus();return;}
parent.removeChild(title);if($('question_in_categories')!=null)$('question_in_categories').style.display="none";if($('improveQLink')!=null)$('improveQLink').style.display="none";var div=xCreateDiv({padding:"0px",margin:"0px"},null,"editable_wording");prev_title=title.innerHTML;if(prev_title.match(/\.\.\./)){var origstr=prev_title.split(/[^0-9A-Za-z\.]/);var newstr=page.split(/[^0-9A-Za-z\.]/);origstr.each(function(s,index){if(s.match(/\.\.\./)){title.innerHTML=title.innerHTML.replace(s,newstr[index]);prev_title=title.innerHTML;}});}
div.innerHTML="<form style='margin: 0px; padding: 0px;' name='movepageform' action='javascript:doSubmitAjaxMovePage("+isLoggedIn+");' method='post'>"+'<input id="new_wording" type="text" value="'+title.innerHTML+'" name="new_wording" size="200" maxlength="200" style="font-size: 20px; font-weight: bold; margin-left: 8px; width: 700px; font-family: Verdana,sans-serif;" />'+"</form><div style='padding-left: 10px; padding-top: 4px;'><small><a href='javascript:document.forms.movepageform.submit();' title='Save'><b>SAVE</b></a>  or  <a href='javascript:closeAjaxMovePage();' title='Cancel'><b>CANCEL</b></a></small></div>";parent.insertAdjacentElement("afterBegin",div);$('new_wording').focus();$('question_title').setStyle({height:"30px"});$('question_title').setStyle({height:"auto"});if(typeof(checkForCAPS)!='undefined'){if(document.addEventListener){$('new_wording').addEventListener("keypress",checkForCAPS.generic,false);}
else if(document.attachEvent){$('new_wording').attachEvent('onkeypress',checkForCAPS.generic);}
Event.observe($('new_wording'),"keypress",checkForCAPS.generic_special);Event.observe($('new_wording'),"change",checkForCAPS.generic_check);Event.observe($('new_wording'),"focus",checkForCAPS.focus);if(typeof checkErase=="undefined"||checkErase){Event.observe($('new_wording'),"keyup",handleErasedQuestionCheck);}}}
function loadAjaxMovePage(){if($("improveQLink")){eval(decodeURIComponent($("improveQLink").select("a")[0].href.replace(/^javascript:/,"")));return true;}
return false;}
var gCallCount=0;if(window.location.hash&&window.location.hash.match(/#editQ$/i)){new PeriodicalExecuter(function(pe){if(loadAjaxMovePage()||++gCallCount>100)
pe.stop();},0.1);}
function handleErasedQuestionCheck(){if(!verifyErase&&prev_title.match(/.*[a-z]{2}/g)){questionHTML=$F('new_wording').replace(/ /g,'');if(questionHTML.length==0){erasedQuestionPopup();$('new_wording').blur();verifyErase=true;}}}
erasedQuestionModal=null;function erasedQuestionPopup(){erasedQuestionModal=popup_elem;erasedQuestionModal.buildModal("erasedQuestion",490,0);erasedQuestionModal.fill("<div class=\"clsModalDialog\" id=\"modal_elem\" greyZIndex=\"100\" xDragEnabled=\"true\"><div id=\"outerModalDIV\"><table style=\"border: 2px solid #8e8e8e;\" cellSpacing=\"0\" cellPadding=\"0\"><tr><td><div id=\"closeModalDIV\" align=\"right\"><img title=\"Close\" style=\"cursor: pointer\" onclick=\"_hbLink('DontReplace', this.lpos); resetQuestion();\" alt=\"Close\" src=\"http://ward-jy/templates/icons/x.gif\"></div><div id=\"modal_int_text\" style=\"padding: 0 15px;\"><div id=\"bda_int_text\" style=\"padding: 0 15px 15px 15px; font-size: 12px; color: #000000;\">You are about to entirely replace the wording of this question. For new questions, please use the search bar at the top of the page.<br /><br /><a class='btn std' href='javascript:void(0);' onmousedown=\"ButtonMouseDown(this);\" onmouseup=\"ButtonMouseUp(this);\" onmouseout=\"ButtonMouseUp(this); \" onclick=\"if(!$(this).isDisabledBtn()) { _hbLink('DontReplace', this.lpos); resetQuestion(); return false; } else { xPreventDefault(); return false; }\" alt=\"Don't replace\" title=\"Don't replace\"><span><span><font style=\"white-space: nowrap;\"><input type=\"image\" value=\"\" src=\"http://site1.wikianswers.com/templates/images/blank.gif\" style=\"display: inline; width: 1px; height: 1px;\" tabindex=\"-1\"><font>&nbsp;Don't replace&nbsp;</font><input type=\"image\" value=\"\" src=\"http://site1.wikianswers.com/templates/images/blank.gif\" style=\"display: inline; width: 1px; height: 1px;\" tabindex=\"-1\"></font></span></span></a>&nbsp;&nbsp;&nbsp;<a class='btn std' href='javascript:void(0);' onmousedown=\"ButtonMouseDown(this);\" onmouseup=\"ButtonMouseUp(this);\" onmouseout=\"ButtonMouseUp(this); \" onclick=\"if(!$(this).isDisabledBtn()) { _hbLink('Replace', this.lpos); hideErasedQuestionModal(); return false; } else { xPreventDefault(); return false; }\" alt=\"Replace\" title=\"Replace\"><span><span><font style=\"white-space: nowrap;\"><input type=\"image\" value=\"\" src=\"http://site1.wikianswers.com/templates/images/blank.gif\" style=\"display: inline; width: 1px; height: 1px;\" tabindex=\"-1\"><font>&nbsp;Replace&nbsp;</font><input type=\"image\" value=\"\" src=\"http://site1.wikianswers.com/templates/images/blank.gif\" style=\"display: inline; width: 1px; height: 1px;\" tabindex=\"-1\"></font></span></span></a><br /></div></div></td></tr></table></div></div>");$('erasedQuestion').childElements('modal_elem')[0].style.position="static";erasedQuestionModal.centralize();_hbLink('QblankWarning',this.lid);}
function hideErasedQuestionModal(){erasedQuestionModal.hideModal();$('new_wording').focus();}
function resetQuestion(){$('new_wording').value=prev_title;if($('wysiwygwysiwyg')&&$('wysiwygwysiwyg').contentDocument&&!Prototype.Browser.IE){$('wysiwygwysiwyg').contentDocument.designMode="off";$('wysiwygwysiwyg').contentDocument.contentEditable=false;$('wysiwygwysiwyg').contentDocument.body.contentEditable=false;$('wysiwygwysiwyg').contentDocument.designMode="on";$('wysiwygwysiwyg').contentDocument.contentEditable=true;}
hideErasedQuestionModal();}
function closeAjaxMovePage(){var title=$('new_wording').value;var parent=$('editable_wording').parentNode;if($('movepageerror'))$('movepageerror').parentNode.removeChild($('movepageerror'));if(typeof(checkForCAPS)!='undefined'){if(document.addEventListener){$('new_wording').removeEventListener("keypress",checkForCAPS.generic,false);}
else if(document.attachEvent){$('new_wording').detachEvent('onkeypress',checkForCAPS.generic);}
Event.stopObserving($('new_wording'),"keypress",checkForCAPS.generic_special);Event.stopObserving($('new_wording'),"change",checkForCAPS.generic_check);Event.stopObserving($('new_wording'),"focus",checkForCAPS.focus);checkForCAPS.reset();}
parent.removeChild($('editable_wording'));var h1=document.createElement("h1");$(h1).setStyle({margin:"0pt",padding:"1px 10px"});prev_title=prev_title.gsub(/[A-Za-z]{40,}/,function(match){return match[0].truncate(40);});h1.innerHTML=prev_title;prev_title='';parent.insertAdjacentElement("afterBegin",h1);$('question_in_categories').style.display="block";$('improveQLink').style.display="block";$('question_title').setStyle({height:"30px"});$('question_title').setStyle({height:"auto"});isPostQClicked=false;}
var old_sm="";function submitAjaxMovePage(jsonly,additional_prms){var title=$('new_wording').value;if(jsonly==2){var recaptcha_on=false;if(Prototype.Browser.IE&&window.frames['recaptcha_frame']){var docObj=window.frames['recaptcha_frame'].document;recaptcha_on=true;}
else if($('recaptcha_frame')){var docObj=$('recaptcha_frame').contentDocument;recaptcha_on=true;}
if(recaptcha_on&&docObj.getElementById('recaptcha_challenge_field')&&docObj.getElementById('recaptcha_response_field')){var captcha_challenge=docObj.getElementById('recaptcha_challenge_field').value;var captcha_response=docObj.getElementById('recaptcha_response_field').value;}
else if(recaptcha_on){globalHideModal();alert("Error: There's no captcha loaded");return;}
if(recaptcha_on){$('modal_int_text').innerHTML="<div style='font-size: 12px;'><div style='padding-top: 118px; text-align: center;'><img src='"+wgStaticFilesServer+"/templates/icons/ajax-loader3.gif' border=0 alt='Please wait...' /></div></div>";}}
if($('movepageerror'))$('movepageerror').parentNode.removeChild($('movepageerror'));if(title!=''&&title!=prev_title){var sm=$('editable_wording').select('small')[0];old_sm=sm.innerHTML;sm.innerHTML="Saving...";var pere=new PeriodicalExecuter(function(pe){if(sm.innerHTML=="Saving..."){sm.innerHTML="Saving.";}
else{sm.innerHTML+='.';}},1);$('new_wording').disabled=true;var url='/Q/Special:Movepage';params={ajax:1,action:'submit',wpNewTitle:title,wpMove:"Save",wpOldTitle:prev_title,jsonly:jsonly,redirect:"none"};if(recaptcha_on){Object.extend(params,{captcha:captcha_challenge,cresponse:captcha_response});}
if(additional_prms){Object.extend(params,additional_prms);}
new Ajax.Request(url,{parameters:params,onSuccess:function(transport){pere.stop();var resp=transport.responseText;resp=resp.trim();if(jsonly==0){eval(resp);}
else if(jsonly==1){if(resp.indexOf('POPUP:')==0){eval(resp.substr(6));getCaptchaAPI.defer();}}
else if(jsonly==2){if(resp.indexOf('POPUP:')==0){eval(resp.substr(6));getCaptchaAPI.defer();}
if(resp=='OK'){if($('modal_int_text')){globalHideModal();showModalWait();}
submitAjaxMovePage(3,{captcha:params.captcha,cresponse:params.cresponse});}}
else if(jsonly==3){globalHideModal();eval(resp);if(xModalDialog){xModalDialog.grey=null;xModalDialog.instances={};if($('xModalDialogGreyElement'))
$('xModalDialogGreyElement').remove();if($('wysiwygwysiwyg')){globalHideModal();}}}},onException:function(requester,except){alertBrowserError();}});}
else closeAjaxMovePage();}
function doSubmitAjaxMovePage(isLoggedIn){if(isLoggedIn){return submitAjaxMovePage(0);}else{return submitAjaxMovePage(1);}}
function showHideResearch(){var researchBox=$('researchBox');if(!researchBox.visible())
researchBox.show();else
researchBox.hide();if(Prototype.Browser.IE&&$$(".IEold #researchBox a.btn")&&$$(".IEold #researchBox a.btn")[0]){window.setTimeout(function(){$$(".IEold #researchBox a.btn")[0].style.zoom="1";$$(".IEold #researchBox a.btn")[0].style.zoom="0";$$(".IEold #researchBox a.btn")[0].style.position="static";},100);}
Event.stopObserving(window,"scroll");}
function editQ(){action='javascript:ajaxMovePage("'+real_returnto+'", 1);';new_login();}
function editA(){action="/Q/"+real_returnto+"&action=edit";new_login();}
function editRelatedQ(){action="/Q/"+real_returnto+"&action=editrelatedq";new_login();}
function editRelatedL(){action="/Q/"+real_returnto+"&action=editrelatedlink";new_login();}
function watchQ(){action='javascript:getUpdates(isWatched);';new_login();}
function reloadQ(){action="/Q/"+quote_returnto;new_login();}
function join(){action="/Q/"+quote_returnto;new_login();registerLoginManager('register');}
function addAlternate(new_title,sameQ){params="new_title="+new_title+"&wpSave=1&similarQuestion=1&fromSuggest=1&title="+sameQ;AjaxToFunc("/wiki.phtml?action=editalternates","showThankYouMsg","POST",params);}
function showThankYouMsg(str){var msgText=$('msgText');if(msgText!=null){msgText.innerHTML="<b>Thank you</b> for helping to keep the Q&As in order!";}}
function sendCustomMetrics(dim1,dim2){var cv=_hbEvent("cv");_hbSet("cv.c16",dim1+"|"+dim2);_hbLink("SimilarQuestions");}
navGo=function(a,b,c){if(action.match(/^javascript:/)){eval(action.replace(/^javascript:/,""));}
else{window.location=action;}}
function fireForTrashCompletely(){if($('TrashCompletely')){oldPE=null;Event.observe($('TrashCompletely'),"mouseover",function(event){oldPE=Object.clone(popup_elem);text="Trash bad questions completely if they are so unusual that they will not be asked again.  This includes questions containing personal information such as e-mail addresses, social security numbers, home addresses, or the full name of non-celebrities.  <br style='margin:0 0 10px;'/>If there is a good chance a problem question will be asked again on the site it should be trashed into one of the categories listed in order to prevent it from being created again as a separate question.";popup_elem.build($('TrashCompletely').up().up(),250,30);popup_elem.makeTooltip(text);popup_elem.moveFromElemX(150);popup_elem.moveFromElemY(-195);$('tooltip_elem').style.zIndex=999;$('tooltip_elem').down('div').style.textAlign='left';$('tooltip_elem').down('div').style.padding='10px';});Event.observe($('TrashCompletely'),"mouseout",function(event){if(popup_elem.isTooltip)hideTooltip();popup_elem=oldPE;});}}
function getParent(id){if(typeof arr[id]=="undefined")
return 0;var parentID=arr[id].p;return parentID;}
function getName(id){var name=arr[id].n;return name;}
function getAncestors(id){var parentID=getParent(id);var Ancestors=new Array();while(parentID>0){var name=getName(parentID);Ancestors.push(parentID);parentID=getParent(parentID);}
return Ancestors;}
function getChildren(id){var children=new Array();for(key in arr){var parentID=getParent(key);if(parentID==id){children.push(key);}}
if(Current.Browser.WebKit)
return children;else
return children.sort(stringsCompare);}
function stringsCompare(a,b){var s1=arr[a].n;var s2=arr[b].n;return s1.localeCompare(s2);}
function showChildrenCats(id,divid,divObj){var obj;if(divObj)
obj=divObj;else
obj=document.getElementById('cats_t'+divid);if(obj!=null&&obj.innerHTML!=''){obj.style.display='block';var img=obj.parentNode.childNodes[0].childNodes[0];img.src=wgStaticFilesServer+"/templates/icons/topics-arrow-on.gif";var linkobj=$('cats_t'+id);if(id!=divid&&linkobj!=null){linkobj.innerHTML=obj.innerHTML;linkobj.style.display='block';}
return 1;}
var children=getChildren(id);var tbl="<table>";var max=children.length;var src=wgStaticFilesServer+"/templates/icons/no_chk.gif";for(var i=0;i<max;i++){var key=children[i];if((key==4423&&!isSuper())||(key==2092&&$(Object.values(qcats)).indexOf(2092)==-1))continue;var name=getName(key).replace(/\\/g,'');var hasChildren=(typeof arr[key].c!='undefined'&&arr[key].c>0)?true:false;var style="";tbl+="<tr><td style='margin: 0px; padding: 3px 3px 3px 10px; vertical-align: top;'>"
tbl+="<input name='i"+key+"' value='1' id='i"+key+"' type='hidden'>";tbl+="<img isTopCat='0' alt='Select/Deselect' title='Select/Deselect' onclick='toggleCheck(this);' src='"+src+"' class='c"+key+"'";tbl+="style='cursor: pointer; display: block; margin-top: 1px;' width='12' border='0' height='12'></td>";tbl+="<td style='margin: 0px; padding: 3px; width: 100%;'>";if(hasChildren){tbl+="<span style='white-space:nowrap;color:#003399;cursor:pointer;' class='cat"+key+"' onclick='showHideChildren(this);return false;'>";tbl+="<img border='0' src='"+wgStaticFilesServer+"/templates/icons/topics-arrow-off.gif?v=28333' class='arrowImg'/>";tbl+=name+"</span>";}
else
tbl+="<span class='cat"+key+"' style='white-space: nowrap;color:black;'>"+name.replace(/\\/g,'')+"</span>";tbl+="<div id='cats_t"+key+"' style='margin: 0px; padding: 3px 0px 0px; width: 100%; display: none;'>";tbl+="</div></td></tr>";}
tbl+="</table>";if(obj!=null&&max>0){obj.style.display='block';var img=obj.parentNode.childNodes[0].childNodes[0];img.src=wgStaticFilesServer+"/templates/icons/topics-arrow-on.gif";obj.innerHTML=tbl;}}
function showHideChildren(obj){var divNode=obj.parentNode.getElementsByTagName('div')[0];if(divNode!=null&&divNode.innerHTML!=""&&divNode.style.display=='block'){divNode.style.display='none';var img=obj.childNodes[0];img.src=wgStaticFilesServer+"/templates/icons/topics-arrow-off.gif";}else if(divNode!=null&&divNode.innerHTML!=""&&divNode.style.display=='none'){divNode.style.display='block';var img=obj.childNodes[0];img.src=wgStaticFilesServer+"/templates/icons/topics-arrow-on.gif";}else{var id=obj.className.replace("cat","");var link=arr[id].l;if(link>0)
showChildrenCats(link,id,divNode);else
showChildrenCats(id,id,divNode);}
setTimeout("repaintPage()",1);}
function printMainTree(){var tbl="<table>";var src=wgStaticFilesServer+"/templates/icons/no_chk.gif";for(n in topCatsJason){key=topCatsJason[n];var hasChildren=(typeof arr[key].c!='undefined'&&arr[key].c>0)?true:false;var parentID=getParent(key);if(key>0&&parentID==0){var name=getName(key).replace(/\\/g,'');tbl+="<tr><td style='margin: 0px; padding: 3px 3px 3px 10px; vertical-align: top;'>"
tbl+="<input name='i"+key+"' value='1' id='i"+key+"' type='hidden'>";tbl+="<img isTopCat='1' alt='Select/Deselect'";if(key!=5045||(typeof isAdmin!='undefined'&&isAdmin))
tbl+=" onclick='toggleCheck(this);'";tbl+=" title='Select/Deselect' src='"+src+"' class='c"+key+"' style='"+((key!=5045||(typeof isAdmin!='undefined'&&isAdmin))?"cursor: pointer;":"")+"display: block; margin-top: 1px;' width='12' border='0' height='12'>";tbl+="</td>";tbl+="<td style='margin: 0px; padding: 3px; width: 100%;'>";if(hasChildren){tbl+="<span style='white-space:nowrap;color:#003399;cursor:pointer;' class='cat"+key+"' onclick='showHideChildren(this);return false;'>";tbl+="<img border='0' src='"+wgStaticFilesServer+"/templates/icons/topics-arrow-off.gif?v=28333' class='arrowImg'/>";tbl+=name+"</span>";}
else{tbl+="<span style='white-space:nowrap;color:#003399;' class='cat"+key+"'>";tbl+=name+"</span>";}
tbl+="<div id='cats_t"+key+"' style='margin: 0px; padding: 3px 0px 0px; width: 100%; display: none;'>";tbl+="</div></td></tr>";}}
tbl+="</table>";fillMainList(tbl);setTimeout("repaintPage()",1);}
function showParentMirrors(parent){var strMirrors=(typeof arr[parent].m=='undefined')?"":arr[parent].m.trim();if(strMirrors!=""){var arrMirrors=strMirrors.split(",");var max=arrMirrors.length;for(var i=0;i<max;i++){showSubTree(arrMirrors[i]);copyOriginalToMirror(parent,arrMirrors[i]);}}}
function checkMirrors(orig){var strMirrors=(typeof arr[orig].m=='undefined')?"":arr[orig].m.trim();var arrMirrors=strMirrors.split(",");var max=arrMirrors.length;for(var i=0;i<max;i++){showSubTree(arrMirrors[i]);var parent=getParent(arrMirrors[i]);markParent(parent,arrMirrors[i]);copyOriginalToMirror(orig,arrMirrors[i]);showParentMirrors(parent);}}
function markParent(parent,child){var decs=getDecs("cats_t"+parent);var decsLen=decs.length;for(var x=0;x<decsLen;x++){if(decs[x].className=="c"+child)
checkCat(decs[x]);}}
function copyOriginalToMirror(orig,mirror){var mirrorObj=$('cats_t'+mirror);var origObj=$('cats_t'+orig);var childs=(typeof arr[orig].c=='undefined')?0:arr[orig].c;if(mirrorObj!=null&&origObj!=null&&childs>0){mirrorObj.innerHTML=origObj.innerHTML;mirrorObj.style.display='block';}}
function getDecs(id){var obj=document.getElementById(id);if(obj!=null){return obj.getElementsByTagName('*');}
else{return[];}}
function showSubTree(id){var ancestors=getAncestors(id);var max=ancestors.length;var toOpen=new Array();for(var i=0;i<max;i++){var obj=document.getElementById('cats_t'+ancestors[i]);if(obj!=null&&obj.style.display=='none'){showChildrenCats(ancestors[i],ancestors[i],obj);break;}else{toOpen.push(ancestors[i]);}}
max=toOpen.length;for(var x=max-1;x>=0;x--){showChildrenCats(toOpen[x],toOpen[x],null);}}
var isFirstTime=true;function showFaytSel(id){var len=selectedCatsArr.length;if(isFirstTime||(len<limit&&isSelected(id))){updateSuggested(id,1);showSubTree(id);markSelected(id);scrollTo(id);}else if(len>=limit){overLimit();}
updateCurrentCats();setTimeout("repaintPage()",1);}
function addToselectedlist(id){var orig=(typeof arr[id]=="undefined"||arr[id].l==0)?id:arr[id].l;if(selectedCatsArr.indexOf(orig,0,1)<0)
selectedCatsArr.push(orig);}
function isSelected(id){var obj=document.getElementById('cats_t'+id);if(obj!=null){var img=obj.parentNode.parentNode.childNodes[0].childNodes[1];var src=img.src;if(src.match(/no_chk\.gif/gi)==null)
return false;}
return true;}
function scrollTo(id){var obj=$("cats_t"+id);var dtop=313;if(obj!=null){if(obj.style.display=='block'){dtop=getObjXY(obj)[1];}else if(obj.style.display=='none'){obj.style.display='block';dtop=getObjXY(obj)[1];obj.style.display='none';}}
var scrOfY=0;if(document.body&&document.body.scrollTop){scrOfY=document.body.scrollTop;}else if(document.documentElement&&document.documentElement.scrollTop){scrOfY=document.documentElement.scrollTop;}
var scroll=dtop-313-scrOfY;if(isNewQuestion&&$('suggestedcats')!=null)
scroll=dtop-400-scrOfY;if($("brwscat")!=null)
setTimeout("scrollBrwscat("+scroll+")",0);}
function scrollBrwscat(scroll){var brwscat=document.getElementById('brwscat');if(brwscat!=null)
brwscat.scrollTop=scroll;}
function markSelected(id){var obj=document.getElementById('cats_t'+id);if(obj!=null){var img=obj.parentNode.parentNode.childNodes[0].childNodes[1];if(img!=null){img.src=wgStaticFilesServer+"/templates/icons/chk.gif";var span=img.parentNode.parentNode.childNodes[1].childNodes[0];span.style.backgroundColor='#f7941d';span.style.color='white';var cname=img.className;var curid=cname.replace("c","");curid=arr[curid].l>0?arr[curid].l:curid;addToselectedlist(curid);if(!isFirstTime)
deselectParents(img);var divNode=img.parentNode.parentNode.getElementsByTagName('div')[0];showChildrenCats(curid,curid,divNode);var deselectAlllspan=$('deselectAll');if(deselectAlllspan!=null&&deselectAlllspan.style.color!='#003399'){deselectAlllspan.style.display='none';}
setTimeout("repaintPage()",1);}}}
function deselectParents(img){var parent=img.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.childNodes[0].childNodes[1];while(typeof parent!='undefined'&&parent!=null&&typeof parent.getAttribute("isTopCat")!="undefined"){if(parent.src.match(/no_chk\.gif/gi)==null){var cname=parent.className;var curid=cname.replace("c","");curid=arr[curid].l>0?arr[curid].l:curid;uncheckCat(parent);deselectLinks(curid);}
if(parent.getAttribute("isTopCat")=="1")
return false;parent=parent.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.childNodes[0].childNodes[1];}}
function deselectChilds(img){var childs=img.parentNode.parentNode.getElementsByTagName('img');var max=childs.length;for(var i=0;i<max;i++){if(childs[i]!=img&&childs[i].src.match(/chk\.gif/gi)!=null&&childs[i].src.match(/no_chk\.gif/gi)==null){var cname=childs[i].className;var curid=cname.replace("c","");curid=arr[curid].l>0?arr[curid].l:curid;uncheckCat(childs[i]);deselectLinks(curid);}}}
function checkCat(img){if(img!=null){img.src=wgStaticFilesServer+"/templates/icons/chk.gif";var span=img.parentNode.parentNode.childNodes[1].childNodes[0];span.style.backgroundColor='#f7941d';span.style.color='white';var cname=img.className;var curid=cname.replace("c","");curid=arr[curid].l>0?arr[curid].l:curid;addToselectedlist(curid);updateSuggested(curid,1);var divNode=img.parentNode.parentNode.getElementsByTagName('div')[0];showChildrenCats(curid,curid,divNode);deselectParents(img);var deselectAlllspan=$('deselectAll');if(deselectAlllspan!=null&&deselectAlllspan.style.color!='#003399'){deselectAlllspan.style.display='none';}
updateCurrentCats();setTimeout("repaintPage()",1);}}
function uncheckCat(img){var len=selectedCatsArr.length;if(img!=null){img.src=wgStaticFilesServer+"/templates/icons/no_chk.gif";var span=img.parentNode.parentNode.childNodes[1].childNodes[0];span.style.backgroundColor='white';var cname=img.className;var curid=cname.replace("c","");curid=arr[curid].l>0?arr[curid].l:curid;var hasChildren=(typeof arr[curid].c!='undefined'&&arr[curid].c>0)?true:false;if(hasChildren)
span.style.color='#003399';else
span.style.color='black';selectedCatsArr.remove(curid);updateSuggested(curid,0);if(len==0){var deselectAlllspan=$('deselectAll');if(deselectAlllspan!=null){deselectAlllspan.style.display='block';}}
else if(len>0&&len<=limit){var errbox2=$('errorMsgBox2');errbox2.innerHTML="";updateHeight();}
updateCurrentCats();setTimeout("repaintPage()",1);}}
function updateCurrentCats(){var currentCatsTbl=$('currentCatsTbl');if(currentCatsTbl!=null){var str="<table width=\"100%\">";var max=selectedCatsArr.length;for(var i=0;i<max;i++){str+="<tr><td width='15'><input type='checkbox' name='suggestedCat' value='"+selectedCatsArr[i]+"' onclick='cuSuggested(this);' checked></td><td><span>"+arr[selectedCatsArr[i]].n.replace(/\\/g,'')+"</span></td></tr>";}
str+="</table>";currentCatsTbl.innerHTML=str;}
updateHeight();}
function toggleCheck(img){var src=img.src;var cname=img.className;var curid=cname.replace("c","");var len=selectedCatsArr.length;if(src.match(/no_chk\.gif/gi)!=null){if(len<limit){checkCat(img);}else{overLimit();}}else{selectedCatsArr.remove(curid);uncheckCat(img);deselectLinks(curid);}}
var limit=3;function deselectLinks(id){var decs=getDecs("catTree");var origlink=arr[id].l;var max=decs.length;for(var i=0;i<max;i++){if(decs[i].tagName.toLowerCase()=='img'&&decs[i].src.match(/\/chk\.gif/i)!=null){var cname=decs[i].className;var curid=cname.replace("c","");var curlink=arr[curid].l;if(curid==id||(curlink>0&&id==curlink)||(origlink>0&&curid==origlink)||(curlink>0&&origlink>0&&curlink==origlink)){uncheckCat(decs[i]);}}}}
function deselectAll(){printMainTree();var deselectAlllspan=$('deselectAll');if(deselectAlllspan!=null){deselectAlllspan.style.display='block';}
var suggestedcats=$('suggestedTree');if(suggestedcats!=null){var elements=suggestedcats.getElementsByTagName('input');var max=elements.length;for(var i=0;i<max;i++){elements[i].checked=false;}}
selectedCatsArr=new Array();var errbox2=$('errorMsgBox2');errbox2.innerHTML="";updateCurrentCats();updateHeight();}
function getAllSAelected(){var max=selectedCatsArr.length;var allSelectedStr="";for(var i=0;i<max;i++){if(i>0)allSelectedStr+=",";allSelectedStr+=selectedCatsArr[i];}
return allSelectedStr;}
var baseHeight=500;var targetElement=null;function callRecat(qTitle,obj){RecategorizeCats(qTitle);targetElement=obj;}
function RecategorizeCats(qTitle){var recategorizePopUp=$('catsWindow');baseHeight=500;if(recategorizePopUp!=null)
return 1;if(qTitle&&qTitle!="")
qTitle=qTitle.replace(/_/g," ");if(arr==null){AjaxToFunc(location.protocol+"//"+location.host+'/Q/Special:Cats','setCatsArr','POST','act=getList');}
var catsWindow=document.createElement('div');catsWindow.id="catsWindow";var bodyNode=document.body;var tarnsBg=document.createElement('div');catsWindow.innerHTML="<div id='ajaxLoaderImg'></div>";tarnsBg.id="tarnsBg";if(bodyNode!=null&&catsWindow!=null)
{if(tarnsBg!=null)bodyNode.appendChild(tarnsBg);bodyNode.appendChild(catsWindow);var scrOfY=0;var scrOfX=0;if(document.body&&document.body.scrollTop){scrOfY=document.body.scrollTop;scrOfX=document.body.scrollLeft;}else if(document.documentElement&&document.documentElement.scrollTop){scrOfY=document.documentElement.scrollTop;scrOfX=document.documentElement.scrollLeft;}
if(isIE6()){var hiddenIframe=document.createElement('iframe');hiddenIframe.id="hiddenIframe";bodyNode.appendChild(hiddenIframe);}
if(typeof(window.innerHeight)=='number'){var visibleAreaH=window.innerHeight;var visibleAreaW=window.innerWidth;}else{var visibleAreaH=document.documentElement.clientHeight;var visibleAreaW=document.documentElement.clientWidth;}
var leftalign=((visibleAreaW-442)/2)+scrOfX;if(visibleAreaH>500){baseHeight=visibleAreaH-25;if(Current.Browser.IE)
baseHeight=visibleAreaH-25;else
baseHeight=visibleAreaH-40;}else{baseHeight=475;}
if(window.location.href.match(/newqAdded/i)!=null)
baseHeight=baseHeight-15;catsWindow.style.height=baseHeight+"px";catsWindow.style.left=leftalign+"px";catsWindow.style.top=scrOfY+10+"px";if($('hiddenIframe')!=null){$('hiddenIframe').style.height=baseHeight+"px";$('hiddenIframe').style.top=scrOfY+"px";$('hiddenIframe').style.left=leftalign+"px";}}
var url=location.protocol+"//"+location.host+"/Q/Special:Cats&ajax=1&act=selcats&question="+encodeURI(qTitle);AjaxToFunc(url,"fillCats","POST","");questionTitle=qTitle;}
var questionTitle=null;var isLoaded=false;function onKeyPressEvent(e){if($('catsWindow')==null)
return true;if(!e)var e=window.event;var tg=(window.event&&document.all)?e.srcElement:e.target;var keynum=((e.which)||(e.keyCode));if(tg.id=="textInputId"&&($('suggestions')!=null&&$('suggestions').style.display!="none")){return true;}
else if(keynum==13){clickonfayt+="oldEvt";return doRecatogorize(questionTitle);}}
var isNewQuestion=false;function fillMainList(tbl){var catTree=document.getElementById('catTree');if(catTree!=null)
catTree.innerHTML=tbl;else
setTimeout("fillMainList('"+tbl+"')",100);}
function moveFoCusTo(id){if($(id)!=null){$(id).focus();$(id).focus();}
else
setTimeout("moveFoCusTo('"+id+"')",100);}
function fillCats(str){str=str.trim();if(str.indexOf("errormsg:")==0){eval(str.substr(9));return;}
$('catsWindow').innerHTML+=str;eval($("firstcats").innerHTML);if(qcats!=null&&qcats[0]=="4423")
isNewQuestion=true;if(arr!=null&&qcats!=null){showCatsList();}}
function repaintPage(){if(Current.Browser.Opera||Current.Browser.WebKit){$('brwscat').scrollTop+=1;$('brwscat').scrollTop-=1;}}
function closeWindow(clickedBtn){if(!isLoaded)return false;if(selectedCatsArr.indexOf(4423,0,1)>-1&&selectedCatsArr.length>1){selectedCatsArr.remove(4423);}
if(selectedCatsArr.indexOf(2092,0,1)>-1&&selectedCatsArr.length>1){selectedCatsArr.remove(2092);}
if(selectedCatsArr.indexOf(412,0,1)>-1&&selectedCatsArr.length>1){selectedCatsArr.remove(412);}
var catsList=$('catsList');if(qcats!=null&&qcats[0]=="4423"){var allsel=getSelectedSuggestedCats();if(allsel.length>0){var firstRecat=0;if(window.location.href.match(/newqAdded/i)!=null){firstRecat=1;}
var url=location.protocol+"//"+location.host+"/Q/"+encodeURI(questionTitle)+"&action=editfaq&newcats="+allsel+"&fromatlas=brute&firstRecat="+firstRecat;AjaxToFunc(url,"updateErrMsg","POST","");}
else{resetRectParams('Close');}}else{resetRectParams('Close');}}
recatPopupClosed=true;function resetRectParams(clickedBtn){wssAutoRecat(clickedBtn);var catsWindow=$('catsWindow');var tarnsBg=$('tarnsBg');var hiddenIframe=$('hiddenIframe');var bodyNode=document.body;if(bodyNode!=null)
{if(catsWindow!=null)bodyNode.removeChild(catsWindow);if(hiddenIframe!=null)bodyNode.removeChild(hiddenIframe);if(tarnsBg!=null)bodyNode.removeChild(tarnsBg);bodyNode.style.overflow="";recatPopupClosed=true;}
if(typeof ANSW!="undefined")
ANSW.AnswerTipEnabled=true;if(clickedBtn=="Save"&&window.location.href.match(/\/FAQ\/(\d+)/i)!=null){var currentCat=window.location.href.match(/\/FAQ\/(\d+)/i);if(targetElement!=null&&targetElement.parentNode!=null&&selectedCatsArr.indexOf(currentCat[1],0,1)<0)
targetElement.style.display='none';}
if(targetElement!=null&&window.location.href.match(/\/FAQ\/(\d+)/i)==null&&targetElement.parentNode!=null&&selectedCatsArr.length>0&&selectedCatsArr[0]!=4423&&clickedBtn=="Save"){selectedCatsArr=selectedCatsArr.sort(sortByNumber);targetElement.parentNode.innerHTML="In:"+" <a target=\"_blank\" href=\"/Q/FAQ/"+selectedCatsArr[0]+"\" style=\"font-weight:normal;color: rgb(127, 127, 127);\">"+arr[selectedCatsArr[0]].n+"</a>";}
selectedCatsArr=new Array();if(window.location.href.match(/newqAdded/i)!=null){var href=window.location.href.replace("&newqAdded=1","").replace(/&action=editfaq&email=WatchUpds&link=Recat/,"");window.location.href=href;}
arr=null;qcats=null;isLoaded=false;isNewQuestion=false;questionTitle=null;isFirstTime=true;targetElement=null;}
function sortByNumber(a,b)
{return a-b;}
function doRecatogorize(qTitle){if((document.all&&!isIE6())||clickonfayt=="oldEvt"||clickonfayt=="changeCatoldEvt"){var savebtn=$('buttonsTbl')?$('buttonsTbl').select("a.btn")[0]:null;if(savebtn==null||savebtn.isDisabledBtn())
return false;if(selectedCatsArr.indexOf(4423,0,1)>-1&&selectedCatsArr.length>1){selectedCatsArr.remove(4423);}
if(selectedCatsArr.indexOf(2092,0,1)>-1&&selectedCatsArr.length>1){selectedCatsArr.remove(2092);}
if(selectedCatsArr.indexOf(412,0,1)>-1&&selectedCatsArr.length>1){selectedCatsArr.remove(412);}
var allsel=getAllSAelected();if(allsel.length==0){allsel="4423";}
var firstRecat=0;if(window.location.href.match(/newqAdded/i)!=null){firstRecat=1;}
var fromatlas=getCatsFromAtlas(allsel);var url=location.protocol+"//"+location.host+"/Q/"+encodeURI(qTitle)+"&action=editfaq&newcats="+allsel+"&fromatlas="+fromatlas+"&firstRecat="+firstRecat;AjaxToFunc(url,"updateErrMsg","POST","");}else{clickonfayt="";}}
function getCatsFromAtlas(selectedCats){var suggestedcats=$('suggestedTree');var fromatlas="";var suggestedcats=$('suggestedTree');if(suggestedcats!=null){var elements=suggestedcats.getElementsByTagName('input');var max=elements.length;for(var i=0;i<max;i++){if(selectedCats.indexOf(elements[i].value,0,1)>-1){if(fromatlas!="")fromatlas+=",";fromatlas+=elements[i].value;}}}
return fromatlas;}
function getSelectedNames(){var max=selectedCatsArr.length;var str="";for(var i=0;i<max;i++){if(typeof arr[selectedCatsArr[i]]!='undefined'){if(str!="")str+=",";str+=arr[selectedCatsArr[i]].n;}}
if(str=="")
str="None";return str;}
function wssAutoRecat(clickedBtn){var wss="{"+getSelectedNames()+"}{"+getSuggestedCats()+"}{"+questionTitle+"}{"+getUserName()+"}";var cv=_hbEvent(cv);_hbSet("cv.c13",wss+"|"+clickedBtn);_hbLink("AutoRect");}
function getSelectedSuggestedCats(){var suggestedcats=$('suggestedTree');var str="";selectedCatsArr=new Array();if(suggestedcats!=null){var elements=suggestedcats.getElementsByTagName('input');var max=elements.length;for(var i=0;i<max;i++){if(elements[i].className=='SelectedAutoSuggest'){if(str!="")str+=",";str+=elements[i].value;addToselectedlist(elements[i].value)}}}
return str;}
function checkSelectedSuggestedCats(){var suggestedcats=$('suggestedTree');if(suggestedcats!=null){var elements=suggestedcats.getElementsByTagName('input');var max=elements.length;for(var i=0;i<max;i++){if(elements[i].className!='notSelectedAS'){elements[i].checked=true;cuSuggested(elements[i]);}else if(elements[i].checked!=true){elements[i].checked=false;}}}}
function getSuggestedCats(){var suggestedcats=$('suggestedTree');var str="";if(suggestedcats!=null){var elements=suggestedcats.getElementsByTagName('span');var max=elements.length;for(var i=0;i<max;i++){if(i>0)str+=",";str+=elements[i].innerHTML;}}
if(str=="")
str="None suggested";return str;}
var catsElem=null;function updateErrMsg(str){if(window.location.href.match(/newqAdded/i)!=null){var href=window.location.href.replace("&newqAdded=1","").replace(/&action=editfaq&email=WatchUpds&link=Recat/,"");wssAutoRecat('Save');window.location.href=href;}
var catsList=$('catsList');var max=selectedCatsArr.length;var str="";if(max==0&&catsElem==null){str="<a href='/Q/FAQ/4423'>"+arr[4423].n+"</a>";}
for(var i=0;i<max;i++){if(i==0)str+="<a href='/Q/FAQ/"+selectedCatsArr[i]+"'>"+arr[selectedCatsArr[i]].n.replace(/\\/g,'')+"</a>";else str+=", <a href='/Q/FAQ/"+selectedCatsArr[i]+"'>"+arr[selectedCatsArr[i]].n.replace(/\\/g,'')+"</a>";}
if(catsList!=null&&str!="")catsList.innerHTML=str+" ";if(catsElem!=null&&str!=""){if(max>0)
str="<b>"+"In:"+" </b>"+str;else{str="<a style=\"font-weight:bold;\"title=\""+questionTitle+"\" href=\"Categorize Question\" onclick=\"_hbLink('in_categorize');catsElem=this.parentNode;RecategorizeCats('"+questionTitle.replace("'","\\'")+"');return false;\">"+"Categorize"+"</a>";}
catsElem.innerHTML=str+" ";}
resetRectParams('Save');clickonfayt="";}
function updateHeight(){var errbox2=$('errorMsgBox2');var selTopics=$("catsWindow");var brwscat=$('brwscat');if(brwscat!=null){var tableHeight=baseHeight-230;var currentCats=$('currentCats');if(currentCats!=null){tableHeight=baseHeight-240-currentCats.offsetHeight;if(window.location.href.match(/newqAdded/i)!=null)
tableHeight=baseHeight-260-currentCats.offsetHeight;}else if(window.location.href.match(/newqAdded/i)!=null){tableHeight=baseHeight-250;}
brwscat.style.height=tableHeight+"px";if(errbox2.innerHTML!=""){if(brwscat!=null)brwscat.style.height=brwscat.offsetHeight-39+'px';errbox2.style.display='block';}else if(errbox2.innerHTML==""&&errbox2.style.display=='block'){errbox2.style.display='none';if(brwscat!=null)brwscat.style.height=brwscat.offsetHeight+39+'px';}}
var len=selectedCatsArr.length;if(len==0){var deselectAlllspan=$('deselectAll');if(deselectAlllspan!=null){deselectAlllspan.style.display='block';}}
setTimeout("repaintPage()",1);}
function overLimit(){var errbox2=$('errorMsgBox2');var LIMIT=limit;errbox2.innerHTML="&nbsp; You\'ve already selected "+LIMIT+" Categories";updateHeight();}
var arr=null;var qcats=null;var selectedCatsArr=new Array();function setCatsArr(str){eval(str);if(arr!=null){if(qcats!=null){setTimeout("showCatsList()",0);}}else{AjaxToFunc(location.protocol+"//"+location.host+'/Q/Special:Cats','setCatsArr','POST','act=getList');}}
function showCatsList(){printMainTree();catscancelBtn=$('catscancelBtn');if(catscancelBtn){catscancelBtn.style.visibility='visible';}
var catsform=$('catsform');var ajaxLoader=$('ajaxLoaderImg');if(ajaxLoader!=null)
ajaxLoader.style.display='none';if(catsform!=null)
catsform.style.visibility='visible';fitTitle();if(!isNewQuestion){for(key in qcats){showFaytSel(qcats[key]);}}else{$('catsWindow').className='recatNewQuestion';var suggestedcats=$('suggestedcats');var closeimg=$('closeimg');if(closeimg!=null&&window.location.href.match(/newqAdded/i)!=null)
closeimg.style.visibility='hidden';if(window.location.href.match(/newqAdded/i)!=null){var oldText=$('topTitle').innerHTML;$('topTitle').innerHTML='<span style="font-size: 16px; color: black; margin-left: 5px;">'+'Thank you for submitting your question</span><br/>'+oldText;$('topTitle').innerHTML=$('topTitle').innerHTML.replace("Categories for","Categorize");}}
checkSelectedSuggestedCats();var brwscat=$('brwscat');if(brwscat!=null){var tableHeight=baseHeight-230;var currentCats=$('currentCats');if(currentCats!=null){tableHeight=baseHeight-240-currentCats.offsetHeight;if(window.location.href.match(/newqAdded/i)!=null)
tableHeight=baseHeight-260-currentCats.offsetHeight;}else if(window.location.href.match(/newqAdded/i)!=null){tableHeight=baseHeight-250;}
brwscat.style.height=tableHeight+"px";}
updateHeight();var inputRecat=$('textInputId');if(inputRecat!=null)
inputRecat.focus();isLoaded=true;if(typeof ANSW=="undefined"){ANSW=new Object();}
ANSW.AnswerTipEnabled=false;isFirstTime=false;recatPopupClosed=false;}
function truncateString(id,len){var p=document.getElementById(id);if(p){var trunc=p.innerHTML;trunc=trunc.replace(/\.\.\.$/gi,'');if(trunc.length>len){trunc=trunc.substring(0,len);trunc=trunc.replace(/\w+$/,'');p.innerHTML=trunc+"...";}}}
function updateSuggested(id,removeORadd){var orig=(typeof arr[id]=="undefined"||arr[id].l==0)?id:arr[id].l;var suggestedcatsObj=$('suggestedcats');if(suggestedcatsObj!=null){var suggestedCats=suggestedcatsObj.getElementsByTagName('input');var max=suggestedCats.length;for(var i=0;i<max;i++){if(suggestedCats[i].value==id){if(removeORadd==1)
suggestedCats[i].checked=true;else
suggestedCats[i].checked=false;cuSuggested(suggestedCats[i]);}}}}
function isSuggestionChecked(){var suggestedcatsObj=$('suggestedcats');var isSChecked=false;if(suggestedcatsObj!=null){var suggestedCats=suggestedcatsObj.getElementsByTagName('input');var max=suggestedCats.length;for(var i=0;i<max;i++){if(suggestedCats[i].checked==true){cuSuggested(suggestedCats[i]);isSChecked=true;}}}
return isSChecked;}
function cuSuggested(obj){if(obj.checked){var len=selectedCatsArr.length;if(isFirstTime||(len>=0&&len<limit)||selectedCatsArr.indexOf(obj.value,0,1)>-1){addToselectedlist(obj.value);showSubTree(obj.value);markSelected(obj.value);scrollTo(obj.value);}else{obj.checked=false;overLimit();}
updateCurrentCats();setTimeout("repaintPage()",1);}else{selectedCatsArr.remove(obj.value);var len=selectedCatsArr.length;if(len==0){var deselectAlllspan=$('deselectAll');if(deselectAlllspan!=null){deselectAlllspan.style.display='block';}}
else if(len>0&&len<=limit){var errbox2=$('errorMsgBox2');errbox2.innerHTML="";updateHeight();}
deselectLinks(obj.value);updateCurrentCats();setTimeout("repaintPage()",1);}}
function fitTitle(){fitStringToWidth('truncateme',17);}
function fitStringToWidth(id,height){var obj=document.getElementById(id);if(obj!=null){var result=obj.innerHTML;var temp="";obj.style.display='block';if(obj.offsetHeight>height){while(obj.offsetHeight>17){temp=obj.innerHTML;obj.innerHTML=temp.substring(0,temp.length-2);}
if(result.length>obj.innerHTML.length)
{var str=obj.innerHTML;str=str.substring(0,str.length-4);result=str.replace(/\s+[^\s]*?\s*$/gi,"...");}}
obj.style.display='inline';obj.innerHTML=result;}}
attachEventToFunction(document,"keypress",onKeyPressEvent);var faytBoxId='faytBoxIdDefault';var lastOpenedItem="";var currentOpenedItem="";var clickonfayt="";var suggestionsHeight=0;var filledFaytList=false;var characterWrapLength=51;var selectedId=null;var templateName;var numOfItems=0;function HideLast(){if(lastOpenedItem=="suggestions"||lastOpenedItem==faytBoxId){var obj=document.getElementById(lastOpenedItem);if(obj!=null){obj.innerHTML='';obj.style.display='none';operaRefresh();}}
else if(currentOpenedItem!=lastOpenedItem){var obj=document.getElementById(lastOpenedItem);if(obj!=null)
obj.style.display='none';}
lastOpenedItem=currentOpenedItem;currentOpenedItem="";}
function selectItem(id,listid,inid){var newSelected=$(id);var inputObj=$(inid);var listObj1=$(listid);if(newSelected!=null&&inputObj!=null){inputObj.value=newSelected.innerHTML.replace(/<\/?b>/gi,"");}
if(selectedId&&inputObj!=null){inputObj.name=selectedId.replace(/\_(.*)/,"");}
if(templateName&&templateName=="topics.tpl"){goToCat();}}
function changeColor(element,keynum){parentElement=$(element).getOffsetParent();parentHeight=parentElement.getHeight();parentScrollTop=parentElement.scrollTop;elementScrollTop=$(element).offsetTop;nsiblingScrollTop=($(element).next()!=null)?$(element).next().offsetTop:null;if(keynum==40){if((nsiblingScrollTop>(parentScrollTop+parentHeight))||nsiblingScrollTop==null){parentElement.scrollTop=elementScrollTop;}}
else if(keynum==38){if(elementScrollTop<parentScrollTop){parentElement.scrollTop=nsiblingScrollTop-parentHeight;}}
var oldSelected=selectedId!=null?$(selectedId):null;if(oldSelected!=null){oldSelected.style.backgroundColor="";oldSelected.style.color="black";}
selectedId=element.id;if(element!=null){element.style.backgroundColor="#316ac5";element.style.color="white";}}
function startType(e,obj,faytlist){if(!e)var e=window.event;var keynum=((e.which)||(e.keyCode));var listObj=$(faytlist);var firstItem=listObj.childNodes[0];if(keynum==13){if(listObj.style.display!='none'&&selectedId!=null)
selectByclick(selectedId,faytlist,obj.id);return false;}
else{if(arr==null){AjaxToFunc(location.protocol+"//"+location.host+'/Q/Special:Cats','setCatsArr','POST','act=getList');}
var str=obj.value.trim();str=str.replace(/[^A-Za-z0-9\- \u00c0-\u00ff]/g,'');getListFromServer2(keynum,str,faytlist);}
if($('textInputId')&&$F('textInputId').replace(/ /g,'').length<=1&&keynum!=40&&keynum!=38)listObj.scrollTop=0;}
function startType2(e,obj,faytlist){if(!e)var e=window.event;var keynum=((e.which)||(e.keyCode));var listObj=$(faytlist);if(keynum==13){if(listObj.style.display!='none'&&selectedId!=null)
selectByclick(selectedId,faytlist,obj.id);return false;}
else if(keynum==40){var firstItem=listObj.childNodes[0];if(!selectedId&&firstItem!=null)
changeColor(firstItem);else if(selectedId!=null){var index=listObj.select("span").indexOf($(selectedId));var num=index+1;var nextElement=listObj.getElementsByTagName('span')[num];if(nextElement!=null)
changeColor(nextElement,keynum);}}
else if(keynum==38&&selectedId!=null){var index=listObj.select("span").indexOf($(selectedId));var num=index-1;if(num>-1){var nextElement=listObj.getElementsByTagName('span')[num];if(typeof nextElement!="undefined"&&nextElement!=null){changeColor(nextElement,keynum);}}}
else listObj.scrollTop=0;}
function selectByclick(id,listid,inid){var listObj=$(listid);var tin=$(inid);clickonfayt="changeCat";selectItem(id,listid,inid);listObj.innerHTML="";selectedId=null;if(inid=="textInputId"&&tin!=null){showFaytSel(tin.name);if($('searchscat'))tin.value="";}
hide_fnc=function(elem){elem.hide();};hide_fnc.defer(listObj);}
function getListFromServer2(keynum,text,listid){text=text.trim();if(text=="")
HideLast();if(text!=""&&keynum!=40&&keynum!=13&&keynum!=38){fillFaytList2(text);}}
function fillFaytList2(text){var listObj3=$('suggestions');var optionsList="";var optionsListAr=new Array();var firstLetterIndex=0;var i=0;var longCats=0;var re="/((^|\\b)("+text+")(.*))/i";re=eval(re);var suggestionOption="";for(key in arr){if((key=="4423"&&!isSuper())||(key=="5045"&&(typeof isAdmin=='undefined'||!isAdmin))||(key==2092&&$(Object.values(qcats)).indexOf(2092)==-1))
continue;if(key>0&&arr[key].l==0&&arr[key].n.match(re)!=null){if(arr[key].n.toLowerCase().indexOf(text.toLowerCase())==0){optionsListAr.splice(firstLetterIndex,0,"<span class=\"suggestion\" id=\""+key+"_"+i+"\" name=\""+key+"\" onmouseover=\"changeColor(this);\" onclick=\"selectByclick(this.id,'suggestions','textInputId')\" >"+highlightText(re,arr[key].n).replace(/\\/g,'')+"</span>");firstLetterIndex++;}
else{optionsListAr[i]="<span class=\"suggestion\" id=\""+key+"_"+i+"\" name=\""+key+"\" onmouseover=\"changeColor(this);\" onclick=\"selectByclick(this.id,'suggestions','textInputId')\" >"+highlightText(re,arr[key].n).replace(/\\/g,'')+"</span>";}
i++;if(arr[key].n.length>characterWrapLength)
longCats++;}}
optionsList=optionsListAr.join("");numOfItems=i+longCats;if(optionsList!=""&&listObj3!=null){listObj3.innerHTML=optionsList;var itmHeight=numOfItems*16+4;suggestionsHeight=(suggestionsHeight>0)?suggestionsHeight:$("suggestions").getHeight();listObj3.style.height=Math.min(itmHeight,suggestionsHeight)+"px";listObj3.style.display="block";lastOpenedItem="suggestions";}else if(listObj3!=null){listObj3.innerHTML="";listObj3.style.display="none";}
selectedId=null;}
function highlightText(re,txt){return txt.replace(re,"<b>$3</b>$4");}
attachEventToFunction(document,"click",HideLast);function showHint(elem,hintText,moveFromX,moveFromY){if(!moveFromX)moveFromX=-12;if(!moveFromY)moveFromY=-40;popup_elem.build(elem,260,20);popup_elem.makeTooltip(hintText);popup_elem.moveFromElemX(moveFromX);popup_elem.moveFromElemY(moveFromY);}
function selectNIMaskType(type){switch(type){case"4":{$('searchform').nimask.value="4";$("niMask_link").innerHTML="spelling/grammar"+"&nbsp;&nbsp;&nbsp;&#9660;";_hbLink("NI_Rpt_spelling",userStatus);break;}
case"8":{$('searchform').nimask.value="8";$("niMask_link").innerHTML="needs more detail"+"&nbsp;&nbsp;&nbsp;&#9660;";_hbLink("NI_Rpt_detail",userStatus);break;}
case"16":{$('searchform').nimask.value="16";$("niMask_link").innerHTML="poor structure"+"&nbsp;&nbsp;&nbsp;&#9660;";_hbLink("NI_Rpt_structure",userStatus);break;}
case"1":{$('searchform').nimask.value="1";$("niMask_link").innerHTML="one-sidedness"+"&nbsp;&nbsp;&nbsp;&#9660;";_hbLink("NI_Rpt_one-side",userStatus);break;}
case"64":{$('searchform').nimask.value="64";$("niMask_link").innerHTML="inflammatory/bad language"+"&nbsp;&nbsp;&nbsp;&#9660;";_hbLink("NI_Rpt_inflam",userStatus);break;}
case"2":{$('searchform').nimask.value="2";$("niMask_link").innerHTML="phone/web address"+"&nbsp;&nbsp;&nbsp;&#9660;";_hbLink("NI_Rpt_phone",userStatus);break;}
case"128":{$('searchform').nimask.value="128";$("niMask_link").innerHTML="other"+"&nbsp;&nbsp;&nbsp;&#9660;";_hbLink("NI_Rpt_other",userStatus);break;}
default:{$('searchform').nimask.value="-1";$("niMask_link").innerHTML="anything"+"&nbsp;&nbsp;&nbsp;&#9660;";_hbLink("NI_Rpt_forall",userStatus);}}
search_nimask=$('searchform').nimask.value;navGo(1);}
function goNIMaskSelectType(elem){auto='';popup_elem.build(elem,auto,190,true);search_NIMaskText=$('searchform').nimask.value;if(search_NIMaskText=="4")
popup_elem.addMenuItem("Spelling/grammar",true,"","left");else
popup_elem.addMenuItem("Spelling/grammar",false,'selectNIMaskType("4");',"left");if(search_NIMaskText=="8")
popup_elem.addMenuItem("Needs more detail",true,"","left");else
popup_elem.addMenuItem("Needs more detail",false,'selectNIMaskType("8");',"left");if(search_NIMaskText=="16")
popup_elem.addMenuItem("Poor structure",true,"","left");else
popup_elem.addMenuItem("Poor structure",false,'selectNIMaskType("16");',"left");if(search_NIMaskText=="1")
popup_elem.addMenuItem("One-sidedness",true,"","left");else
popup_elem.addMenuItem("One-sidedness",false,'selectNIMaskType("1");',"left");if(search_NIMaskText=="64")
popup_elem.addMenuItem("Inflammatory/bad language",true,"","left");else
popup_elem.addMenuItem("Inflammatory/bad language",false,'selectNIMaskType("64");',"left");if(search_NIMaskText=="2")
popup_elem.addMenuItem("Phone/web address",true,"","left");else
popup_elem.addMenuItem("Phone/web address",false,'selectNIMaskType("2");',"left");if(search_NIMaskText=="128")
popup_elem.addMenuItem("Other",true,"","left");else
popup_elem.addMenuItem("Other",false,'selectNIMaskType("128");',"left");popup_elem.addMenuLine();if(search_NIMaskText==""||search_NIMaskText=="-1")
popup_elem.addMenuItem("Anything",true,"","left");else
popup_elem.addMenuItem("Anything",false,'selectNIMaskType("-1");',"left");popup_elem.makeMenu();popup_elem.moveFromElemX(5);popup_elem.moveFromElemY(24);}
function selectEditedType(type){switch(type){case"edited":{$('searchform').edited.value="1";$("edited_link").innerHTML="edited"+"&nbsp;&nbsp;&nbsp;&#9660;";_hbLink("NI_Rpt_edited",userStatus);break;}
case"unedited":{$('searchform').edited.value="0";$("edited_link").innerHTML="unedited"+"&nbsp;&nbsp;&nbsp;&#9660;";_hbLink("NI_Rpt_unedited",userStatus);break;}
default:{$('searchform').edited.value="-1";$("edited_link").innerHTML="all"+"&nbsp;&nbsp;&nbsp;&#9660;";_hbLink("NI_Rpt_edall",userStatus);}}
search_edited=$('searchform').edited.value;navGo(1);}
function goEditedSelectType(elem){popup_elem.build(elem,150,85,true);search_EditedText=$('searchform').edited.value;if(search_EditedText=="1")
popup_elem.addMenuItem("Edited",true,"","left");else
popup_elem.addMenuItem("Edited",false,'selectEditedType("edited");',"left");if(search_EditedText=="0")
popup_elem.addMenuItem("Unedited",true,"","left");else
popup_elem.addMenuItem("Unedited",false,'selectEditedType("unedited");',"left");popup_elem.addMenuLine();if(search_EditedText==""||search_EditedText=="-1")
popup_elem.addMenuItem("All",true,"","left");else
popup_elem.addMenuItem("All",false,'selectEditedType("all");',"left");popup_elem.makeMenu();popup_elem.moveFromElemX(5);popup_elem.moveFromElemY(24);}
function selectFlaggedByType(type){switch(type){case userId:{$('searchform').flaggedby.value=userId;$("flaggedBy_link").innerHTML="me"+"&nbsp;&nbsp;&nbsp;&#9660;";_hbLink("NI_Rpt_byme",userStatus);break;}
case"0":{$('searchform').flaggedby.value="0";$("flaggedBy_link").innerHTML="non-supers"+"&nbsp;&nbsp;&nbsp;&#9660;";_hbLink("NI_Rpt_bynonsupers ",userStatus);break;}
case"1":{$('searchform').flaggedby.value="1";$("flaggedBy_link").innerHTML="supers"+"&nbsp;&nbsp;&nbsp;&#9660;";_hbLink("NI_Rpt_bysupers",userStatus);break;}
default:{$('searchform').flaggedby.value="-1";$("flaggedBy_link").innerHTML="all"+"&nbsp;&nbsp;&nbsp;&#9660;";_hbLink("NI_Rpt_byall",userStatus);}}
search_flaggedby=$('searchform').flaggedby.value;navGo(1);}
function goFlaggedBySelectType(elem){popup_elem.build(elem,150,105,true);search_FlaggedByText=$('searchform').flaggedby.value;if(search_FlaggedByText==userId)
popup_elem.addMenuItem("Me",true,"","left");else
popup_elem.addMenuItem("Me",false,'selectFlaggedByType("'+userId+'");',"left");if(search_FlaggedByText=="0")
popup_elem.addMenuItem("Non-supers",true,"","left");else
popup_elem.addMenuItem("Non-supers",false,'selectFlaggedByType("0");',"left");if(search_FlaggedByText=="1")
popup_elem.addMenuItem("Supers",true,"","left");else
popup_elem.addMenuItem("Supers",false,'selectFlaggedByType("1");',"left");popup_elem.addMenuLine();if(search_FlaggedByText==""||search_FlaggedByText=="-1")
popup_elem.addMenuItem("All",true,"","left");else
popup_elem.addMenuItem("All",false,'selectFlaggedByType("-1");',"left");popup_elem.makeMenu();popup_elem.moveFromElemX(5);popup_elem.moveFromElemY(24);}