function getElementsByClassName(G,F){var A=[];if(F.getElementsByClassName){A=Array.prototype.slice.call(F.getElementsByClassName(G))}else{var E=new RegExp("(^| )"+G+"( |$)");var D=F.getElementsByTagName("*");for(var C=0,B=D.length;C<B;C++){if(E.test(D[C].className)){A.push(D[C])}}}return A}function zTglc(A,B){if(A.className){if(A.className==B){A.className=""}else{if(A.className.match(" "+B)){A.className=A.className.replace(" "+B,"")}else{A.className=A.className+" "+B}}}else{A.className=B}}function zCi(){if(!("placeholder" in document.createElement("input"))){var A=document.body.getElementsByTagName("input");for(var B=0;B<A.length;B++){if(A[B].type=="text"){if(!A[B].getAttribute("placeholder")){continue}A[B].value=A[B].getAttribute("placeholder");A[B].onfocus=function(){if(this.value==this.getAttribute("placeholder")){this.value=""}};A[B].onblur=function(){if(this.value==""){this.value=this.getAttribute("placeholder")}}}}}}var validationFunctions=new Object();validationFunctions.required=isReq;validationFunctions.pattern=isPat;validationFunctions.numeric=isNum;validationFunctions.email=isEmail;validationFunctions.match=isMatch;validationFunctions.minmax=isMinMax;var errorMessages=new Object();errorMessages.required="This field is required.";errorMessages.pattern="This field is required.";errorMessages.numeric="Please enter only numbers into this field.";errorMessages.email="Please enter a valid email address.";errorMessages.match="This field must match its counterpart.";errorMessages.minmax="Please answer within the specified range of characters.";function isReq(B){switch(B.type){case"file":case"hidden":case"text":case"textarea":case"select-one":if(B.value){return true}return false;case"radio":var C=B.form[B.name];for(var A=0;A<C.length;A++){if(C[A].checked){return true}}return false;case"checkbox":return B.checked}}function isPat(D,C){var C=C||D.getAttribute("pattern");var B=new RegExp("^"+C+"$","");var A=B.test(D.value);if(!A&&D.getAttribute("patternDesc")){A=D.getAttribute("patternDesc")}return A}function isNum(A){return isPat(A,"\\d+")}function isEmail(A){return isPat(A,"[\\d\\w._%+-]+@[\\d\\w.-]+\\.[\\w]{2,4}")}function isMatch(D){var B=D.getAttribute("twin");var E=D.parentNode;while(E.nodeName!="FORM"){var E=E.parentNode}var A=E.elements;for(var C=0;C<A.length;C++){if(A[C].name==B){if(A[C].value==D.value){return true}else{return false}break}}}function isMinMax(B){var A=B.getAttribute("range");A=A.split(",");errorMessages.minmax="Your entry must be between "+A[0]+" and "+A[1]+" characters.";return isPat(B,"(.|\n|\r|\t){"+A[0]+","+A[1]+"}")}function createCounter(E){var C=E.getAttribute("range");C=C.split(",");var F=document.createTextNode(C[1]+"-character limit");var B=document.createElement("p");B.id=E.id+"_max";B.className="maxinfo alert";B.appendChild(F);E.parentNode.insertBefore(B,E.nextSibling);if(C[0]>1){var A=document.createTextNode(C[0]+"-character minimum");var D=document.createElement("p");D.id=E.id+"_min";D.className="mininfo alert";D.appendChild(A);E.parentNode.insertBefore(D,E.nextSibling)}E.onkeypress=E.onchange=function(){var G=this.getAttribute("range");G=G.split(",");if(this.value.length<G[1]){gEI(E.id+"_max").innerHTML=(G[1]-this.value.length)+" characters left"}else{gEI(E.id+"_max").innerHTML="You have reached the character limit";this.value=this.value.substring(0,G[1])}};E.removeAttribute("counter")}var W3CDOM=document.createElement&&document.getElementsByTagName;function validateForms(){if(!W3CDOM){return }var A=document.forms;for(var D=0;D<A.length;D++){var C=A[D].elements;for(var B=0;B<C.length;B++){if(C[B].getAttribute("counter")){createCounter(C[B])}}if(!A[D].onsubmit){A[D].onsubmit=function(){return validate(this)}}}}function validate(G){var C=G||this;var B=C.elements;var F=true;for(var A=0;A<B.length;A++){B[A].className=B[A].className.replace(/invalid/,"");var E=B[A].getAttribute("validate");if(!E||B[A].getAttribute("disabled")){continue}var D=validationFunctions[E](B[A]);if(D!=true){if(B[A].type=="radio"){obj=B[A].parentNode;do{if(obj.nodeName=="FIELDSET"){break}}while(obj=obj.parentNode);obj.className+=" invalid"}else{B[A].className+=" invalid"}F=false;message=(B[A].getAttribute("alert"))?B[A].getAttribute("alert"):errorMessages[E];B[A].focus();break}}if(!F){alert(message)}return F}function check_modal(){var A=document.getElementsByTagName("a");for(var B=0;B<A.length;B++){if(A[B].getAttribute("target")=="modal"){A[B].setAttribute("data-url",A[B].getAttribute("href"));A[B].setAttribute("href","javascript:void(0)");A[B].setAttribute("target","");isIE6=/msie|MSIE 6/.test(navigator.userAgent);if(A[B].getAttribute("data-type")=="pop"||isIE6){A[B].onclick=function(){zpu(0,this.getAttribute("data-url"),404,300,"modal")}}else{A[B].onclick=function(){return prep_modal(this.getAttribute("data-url"),this.getAttribute("data-modclass"),this.getAttribute("data-type"),this.getAttribute("data-modwidth"),this.getAttribute("data-modheight"))}}}}return }function createOverlay(A){var B=document.createElement("div");B.id="oL";if(A){B.className=A}B.style.height=window.document.body.scrollHeight+"px";document.body.appendChild(B);return B}function prep_modal(B,H,C,A,D){if(!B){return }if(C=="pop"){zpu(0,B,(A)?A:404,(D)?D:300,"modal")}else{var G=createOverlay(H);var F=document.createElement("div");F.id="modc";if(H){F.className=H}var E=1;document.body.appendChild(F);F.style.left=((zIfw/2)-((F.clientWidth+2)/2))+"px";F.style.top=((zIfh/2)-((F.clientHeight+2)/2))+"px";F.innerHTML='<iframe src="'+B+'" scrolling="no" frameborder="0" class="modf" name="modf" id="modf" onload="frameLoad(this,'+E+',1)"></iframe>';if(H!="downtime"){G.onclick=function(){hide_modal()}}if(H!="downtime"){addEventSimple(window,"keypress",esc_hide_modal)}return false}}var s;var h=0;function rotate(A){h+=A;if(h<0){h=s.length-1}if(h==s.length){h=0}for(var B=0;B<s.length;B++){(B==h)?s[B].className="":s[B].className="hide"}if(parent.frames.modf){parent.setFrameHeight(parent.document.getElementById("modf"))}}function frameLoad(A,B,C){if(B){setFrameHeight(A,C)}if(B){s=A.contentWindow.document.getElementsByTagName("dl")}A.parentNode.className+=" loaded"}function setFrameHeight(A,B){if(!A){return }A.style.height=A.parentNode.style.height=A.contentWindow.document.body.offsetHeight+"px";A.style.width=A.parentNode.style.width=A.contentWindow.document.body.offsetWidth+"px";if(B){A.parentNode.style.left=((zIfw/2)-((A.clientWidth+2)/2))+"px";A.parentNode.style.top=((zIfh/2)-((A.clientHeight+2)/2))+"px"}}function esc_hide_modal(C){var A=(window.event)?event.keyCode:C.keyCode;var B=(window.event)?27:C.DOM_VK_ESCAPE;if(A==B){if(parent.frames.modf){parent.hide_modal()}else{hide_modal()}}}function hide_modal(A){if(!A){A=gEI("modc")}if(!A){return }document.body.removeChild(gEI("oL"));document.body.removeChild(A);removeEventSimple(window,"keypress",esc_hide_modal)}function do_logout(B,D){var C=document.createElement("iframe");C.src=B;C.scrolling="no";C.frameborder="0";C.style.display="none";document.body.appendChild(C);change_login_state("0",D);return false}function change_login_state(J,K){if(!gEI("lis")){return }if(!J){J=1}var I=gEI("lis").getElementsByTagName("label")[0];var C=gEI("m_login");var A=gEI("m_name");var B=gEI("guid");var E=gEI("m_mail");if(readCookie("LK")){var G=readCookie("LK");var F=G.split("&");minfo=new Array();for(var D=0;D<F.length;D++){var H=F[D].split("=");minfo[H[0]]=H[1]}if(J==1){I.innerHTML="Membername";C.innerHTML="(If you're not <span>"+minfo.CN+'</span>, <a href="http://membership.about.com/memreg?action=logoff&successurl='+window.location+"&surlanchor=%23lis&cob="+gs+"&product="+K+'" onclick="return do_logout(this.href,\''+K+"');\">click here</a>)";A.value=minfo.CN;A.className="logged_in";A.readOnly=true;B.value=minfo.GUID;if(E){E.value=minfo.mail;E.className="logged_in"}}}if(J==0){I.innerHTML='Guest Name<em title="Required field">*</em>';C.innerHTML='<a href="http://www.about.com/gi/pages/login.htm" onclick="return prep_modal(this.href);">Login with Membername</a> or <a href="http://login.about.com/registration.htm?successurl='+window.location+"&surlanchor=%23lis&cob="+gs+"&product="+K+'">Register</a>';A.value=A.className="";A.readOnly=false;if(E){E.value=E.className=""}}return }function readCookie(B){var D=B+"=";var A=document.cookie.split(";");for(var C=0;C<A.length;C++){var E=A[C];while(E.charAt(0)==" "){E=E.substring(1,E.length)}if(E.indexOf(D)==0){return E.substring(D.length,E.length)}}return null}function splitList(C,B){if(C.nodeName!="OL"&&C.nodeName!="UL"){return }if(!B){B=2}var A=document.createElement("div");if(C.id){A.id=C.id}if(C.className){A.className=C.className}var J=new Array();var K=C.getElementsByTagName("li");var I=Math.ceil(K.length/B);for(var H=0;H<B;H++){var G=document.createElement(C.nodeName);G.className=C.className;if(C.nodeName=="OL"){G.start=(H*I)+1}zTglc(G,"col"+(H+1));for(var F=0;F<I;F++){if(C.getElementsByTagName("li")[(H*I)+F]){var E=C.getElementsByTagName("li")[(H*I)+F].cloneNode(true);G.appendChild(E)}}J.push(G)}for(var D=0;D<J.length;D++){A.appendChild(J[D])}C.parentNode.replaceChild(A,C)}function splitLists(){var K=getElementsByClassName("split",document),F,L,A,I=K.length+0,B,C,H,G,D,J,E;while(K.length){F=K.shift();if(F&&(F.nodeName=="UL"||F.nodeName=="OL")){C=parseInt(F.getAttribute("data-columns"),10)||2;A=document.createElement("div");A.className=F.className+" split-list";A.id=F.id;F.parentNode.insertBefore(A,F);L=F.cloneNode(true).getElementsByTagName("li");D=document.createElement(F.nodeName);D.style.width=(100/C).toFixed()-0.1+"%";H=Math.ceil(L.length/C);for(G=0;G<C;G++){J=D.cloneNode(false);E=Math.min(L.length,H);for(B=0;B<E;B++){J.appendChild(L[0]);J.className="c"+(B+1);if(J.nodeName=="OL"){J.start=(B*H)+1}}A.appendChild(J)}F.parentNode.removeChild(F)}}}function addEventSimple(C,A,B){if(C.addEventListener){C.addEventListener(A,B,false)}else{if(C.attachEvent){C.attachEvent("on"+A,B)}}}function removeEventSimple(C,A,B){if(C.removeEventListener){C.removeEventListener(A,B,false)}else{if(C.detachEvent){C.detachEvent("on"+A,B)}}}function findPos(A){var B=curtop=0;if(A.offsetParent){do{B+=A.offsetLeft;curtop+=A.offsetTop}while(A=A.offsetParent)}return[B,curtop]}function fbl_on(){gEI("fbl").innerHTML='<iframe src="http://www.facebook.com/plugins/like.php?href=http://'+gs+'.about.com/&amp;show_faces=false&amp;font=verdana" scrolling="no" frameborder="0" allowTransparency="true" ref="content" onload="frameLoad(this);hint(\'Please click the Like button again to update Facebook!\',this.parentNode,\'fblr\');"></iframe>'}function hint(D,C,G){if(!D||!C){return }var E=document.createElement("div");E.className="hint";if(G){E.id=G}var F=document.createElement("span");F.className="up";F.innerHTML="&uarr;";E.appendChild(F);var A=document.createElement("p");A.innerHTML=D;E.appendChild(A);C.appendChild(E);var B=setTimeout(function(){var H=setTimeout(function(){E.style.opacity="0";var I=setTimeout(function(){E.parentNode.removeChild(E)},500)},3000)},500)}function oauth(C){var B=gEI("fbbox");if(!C){B.checked=false;return false}else{B.checked=true;var D=B.parentNode;D.className+=" auth";if(D.nodeName!="FORM"){do{D=D.parentNode}while(D.nodeName!="FORM")}for(var A=0;A<D.elements.length;A++){if(D.elements[A].name=="successurl"){if(D.elements[A].value.indexOf("fb=1")<0){D.elements[A].value=D.elements[A].value.replace("success=1","success=1&fb=1")}}}h=document.createElement("input");h.type="hidden";h.name="oat";h.value=C;D.appendChild(h);fb_warn_user(C)}return true}function de_oauth(){i=gEI("fbbox");i.checked=false;var B=i.parentNode;B.className="fbbx";gEI("fb_badge").parentNode.removeChild(gEI("fb_badge"));if(B.nodeName!="FORM"){do{B=B.parentNode}while(B.nodeName!="FORM")}for(var A=0;A<B.elements.length;A++){if(B.elements[A].name=="oat"){B.removeChild(B.elements[A])}else{if(B.elements[A].name=="successurl"){B.elements[A].value=B.elements[A].value.replace("&fb=1","")}}}}function fb_warn_user(A){if(!A){return false}if(!FB.getSession()){fb_init()}FB.api("/me?access_token="+A,function(D){var C=D;var B=document.createElement("img");B.src="https://graph.facebook.com/me/picture?access_token="+A;B.alt=C.name;var E=document.createElement("p");E.innerHTML='This response will be published to <a href="'+C.link+'">'+C.name+'</a>\'s Facebook Wall when it is approved. If this is not you, please <span class="a" onclick="fb_log_out();">log out</span>.';var F=document.createElement("div");F.id="fb_badge";F.appendChild(B);F.appendChild(E);gEI("fbbox").parentNode.appendChild(F)})}function fb_init(){FB.init({appId:"121030274606741",status:false,cookie:false,xfbml:false})}function fb_log_out(){FB.logout(function(A){de_oauth()})}var zIfw=self.innerWidth?self.innerWidth:(document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:(document.body?document.body.clientWidth:0));var thin=0;