var BtnLID; var BtnRID; var sectionID; var asliID; var popupmailID; var darkenBGID; var mainID; var scrollTID; var scrollbarW; var scrollbarH; var btnLogID; var btnWM; var LIbuttonsID; var upordown=false; var navButtonsID=''; var bTarg=206; var bTargXY=''; var zilchPX; function init(st){ if(window.innerWidth) zilchPX="px"; else zilchPX=0; LIbuttonsID=document.getElementById("LIbuttons"); btnLogID=document.getElementById("btnLog"); btnWMID=document.getElementById("btnWM"); scrollbarWH(); popupmailID=document.getElementById("popupmail"); darkenBGID=document.getElementById("darkenBG"); BtnLID=document.getElementById("BtnL"); BtnRID=document.getElementById("BtnR"); sectionID=document.getElementById("section"); asliID=document.getElementById("asli"); mainID=document.getElementById("main"); scrollTID=document.getElementById("scrollT"); if(st != '') setST(st); adjustVids(); adjustPos(); window.onresize=adjustPos; } function init2(st){ if(window.innerWidth) zilchPX="px"; else zilchPX=0; scrollbarWH(); popupmailID=document.getElementById("popupmail"); darkenBGID=document.getElementById("darkenBG"); BtnLID=document.getElementById("BtnL"); BtnRID=document.getElementById("BtnR"); sectionID=document.getElementById("section"); asliID=document.getElementById("asli"); mainID=document.getElementById("main"); scrollTID=document.getElementById("scrollT"); if(st != '') setST(st); window.onresize=adjustPos; } function writeSections(){ var arbitraryID=document.getElementById("porknpot"); var str='      <select id="section" name="section" onchange="gotoSection()" style="color: #00ff00; background-color: #000000">'; str += '            <option id="home" value="index.php">Home</option>'; str += '            <option id="vote" value="princess/princesses.php">Vote</option>'; str += '            <option id="products" value="products.php">Products</option>'; str += '            <option id="download" value="download.php">Download</option>'; str += '            <option id="fanbook" value="fanbook.php">Fanbook</option>'; str += '            <option id="profiles" value="profiles.php">Profiles</option>'; str += '            <option id="searchy" value="searchprofiles.php">Search</option>'; str += '            <option id="friends" value="friends.php">Friends</option>'; str += '            <option id="mail" value="bmail.php">Big Mail</option>'; str += '            <option id="blog" value="blog.php">Blog</option>'; str += '            <option id="qanda" value="QandA.php">Q\'s and A\'s</option>'; str += '            <option id="publisher" value="publisher.php">Publisher</option>'; str += '            <option id="contents" value="contents.php">Contents</option>'; str += '            <option id="abstractZ" value="abstract.php">Abstract</option>'; str += '            <option id="section1" value="section.php?sect=1">Section 1</option>'; str += '            <option id="section2" value="section.php?sect=2">Section 2</option>'; str += '            <option id="section3" value="section.php?sect=3">Section 3</option>'; str += '            <option id="section4" value="section.php?sect=4">Section 4</option>'; str += '            <option id="section5" value="section.php?sect=5">Section 5</option>'; str += '            <option id="section6" value="section.php?sect=6">Section 6</option>'; str += '            <option id="section7" value="section.php?sect=7">Section 7</option>'; str += '            <option id="section8" value="section.php?sect=8">Section 8</option>'; str += '            <option id="section9" value="section.php?sect=9">Section 9</option>'; str += '            <option id="section10" value="section.php?sect=10">Section 10</option>'; str += '            <option id="section11" value="section.php?sect=11">Section 11</option>'; str += '            <option id="section12" value="section.php?sect=12">Section 12</option>'; str += '            <option id="section13" value="section.php?sect=13">Section 13</option>'; str += '            <option id="section14" value="section.php?sect=14">Section 14</option>'; str += '            <option id="section15" value="section.php?sect=15">Section 15</option>'; str += '            <option id="section16" value="section.php?sect=16">Section 16</option>'; str += '            <option id="section17" value="section.php?sect=17">Section 17</option>'; str += '            <option id="section18" value="section.php?sect=18">Section 18</option>'; str += '            <option id="section19" value="section.php?sect=19">Section 19</option>'; str += '            <option id="section20" value="section.php?sect=20">Section 20</option>'; str += '            <option id="section21" value="section.php?sect=21">Section 21</option>'; str += '            <option id="section22" value="section.php?sect=22">Section 22</option>'; str += '            <option id="section23" value="section.php?sect=23">Section 23</option>'; str += '            <option id="section24" value="section.php?sect=24">Section 24</option>'; str += '            <option id="section25" value="section.php?sect=25">Section 25</option>'; str += '            <option id="section26" value="section.php?sect=26">Section 26</option>'; str += '            <option id="section27" value="section.php?sect=27">Section 27</option>'; str += '            <option id="section28" value="section.php?sect=28">Section 28</option>'; str += '            <option id="section29" value="section.php?sect=29">Section 29</option>'; str += '            <option id="section30" value="section.php?sect=30">Section 30</option>'; str += '            <option id="section31" value="section.php?sect=31">Section 31</option>'; str += '            <option id="section32" value="section.php?sect=32">Section 32</option>'; str += '            <option id="section33" value="section.php?sect=33">Section 33</option>'; str += '            <option id="section34" value="section.php?sect=34">Section 34</option>'; str += '            <option id="section35" value="section.php?sect=35">Section 35</option>'; str += '            <option id="section36" value="section.php?sect=36">Section 36</option>'; str += '            <option id="section37" value="section.php?sect=37">Section 37</option>'; str += '            <option id="section38" value="section.php?sect=38">Section 38</option>'; str += '            <option id="section39" value="section.php?sect=39">Section 39</option>'; str += '            <option id="section40" value="section.php?sect=40">Section 40</option>'; str += '            <option id="section41" value="section.php?sect=41">Section 41</option>'; str += '            <option id="section42" value="section.php?sect=42">Section 42</option>'; str += '            <option id="section43" value="section.php?sect=43">Section 43</option>'; str += '            <option id="section44" value="section.php?sect=44">Section 44</option>'; str += '            <option id="section45" value="section.php?sect=45">Section 45</option>'; str += '            <option id="section46" value="section.php?sect=46">Section 46</option>'; str += '            <option id="section47" value="section.php?sect=47">Section 47</option>'; str += '            <option id="section48" value="section.php?sect=48">Section 48</option>'; str += '            <option id="section49" value="section.php?sect=49">Section 49</option>'; str += '            <option id="section50" value="section.php?sect=50">Section 50</option>'; str += '            <option id="section51" value="section.php?sect=51">Section 51</option>'; str += '            <option id="section52" value="section.php?sect=52">Section 52</option>'; str += '            <option id="section53" value="section.php?sect=53">Section 53</option>'; str += '            <option id="section54" value="section.php?sect=54">Section 54</option>'; str += '            <option id="section55" value="section.php?sect=55">Section 55</option>'; str += '            <option id="section56" value="section.php?sect=56">Section 56</option>'; str += '      </select>'; arbitraryID.innerHTML=str; } function changeButt(n,s){ navButtonsID=document.getElementById(n); if(navButtonsID) navButtonsID.src=s; } function setST(st){ mainID.scrollTop=st; } function setScrollT(){ scrollTID.value=mainID.scrollTop; return true; } function ovrBtn(s){ switch(s){ case "L": BtnLID.src="images/btn_llt.jpg";BtnLID.style.cursor="pointer";break; case "R": BtnRID.src="images/btn_rlt.jpg";BtnRID.style.cursor="pointer";break; } } function outBtn(s){ switch(s){ case "L": BtnLID.src="images/btn_l.jpg";break; case "R": BtnRID.src="images/btn_r.jpg";break; } } function dwnBtn(s){ switch(s){ case "L": BtnLID.src="images/btn_ldn.jpg";break; case "R": BtnRID.src="images/btn_rdn.jpg";break; } } function ovrBtnLog(s){ switch(s){ case "O": btnLogID.src="images/logout2.png";btnLogID.style.cursor="pointer";break; case "I": btnLogID.src="images/login2.png";btnLogID.style.cursor="pointer";break; case "W": btnWMID.src="images/bigmail2.png";btnWMID.style.cursor="pointer";break; } } function outBtnLog(s){ switch(s){ case "O": btnLogID.src="images/logout.png";break; case "I": btnLogID.src="images/login.png";break; case "W": btnWMID.src="images/bigmail.png";break; } } function gotoSection(){ var ind=sectionID.selectedIndex; var str=sectionID.options[ind].value; window.location=str; } function help(theFile,name,w,h){ var dsocleft=''; var dsoctop= ''; var cWidth=''; var cHeight=''; if (window.innerWidth){ dsocleft=window.screenX; dsoctop=window.screenY; cWidth=window.innerWidth; cHeight=window.innerHeight; } else { var iebody=(document.compatMode && (document.compatMode != "BackCompat"))? document.documentElement : document.body; dsocleft=window.screenLeft; dsoctop=window.screenTop; cWidth=iebody.clientWidth; cHeight=iebody.clientHeight; } var lw=(cWidth - w) / 2; var th=(cHeight - h) /2 - 48; if(lw < 0) lw=0; if(th < 0) th=0; lw += dsocleft; th += dsoctop; lw=parseInt(lw); th=parseInt(th); var str='left=' + lw + ', top=' + th + ', width=' + w + ', height=' + h + ', scrollbars=yes'; var myWindow=window.open(theFile,name,str); myWindow.focus(); return false; } function gotoLogin(){ window.location="login.php"; } function gotoWM(){ 
window.location="http://www.childrenreality.com/bmail";
} function gotoEI(){ window.location="abstract.php"; } function keepLoggedIn(){ if(asliID.checked) asliID.value="y"; else asliID.value="n"; } function checkForm1(thisform){ var cemail, cpassword, cimageNumber; with(thisform){ cemail=email; cpassword=password; cimageNumber=imageNumber; } if(trim(cemail.value)==''){ alert('Please enter your email'); cemail.focus(); return false; } else if(!isEmail(trim(cemail.value))){ alert('Please enter a valid email address.'); cemail.focus(); return false; } else if(trim(cpassword.value)==''){ alert('Please enter your password'); cpassword.focus(); return false; } else if(!isValid3(trim(cpassword.value))){ alert('Please enter a password with only alphanumeric characters, 16 characters. No spaces.'); cpassword.focus(); return false; } else if(trim(cimageNumber.value)==''){ alert('Please enter code sequence'); cimageNumber.focus(); return false; } else if(!isValid2(trim(cimageNumber.value))){ alert('Please enter a 6 character code sequence, characters 2-9, A-H, J-N, P-Z. There is no 1, I 0, or O'); cimageNumber.focus(); return false; } else { cemail.value=trim(cemail.value); cpassword.value=trim(cpassword.value); cimageNumber.value=trim(cimageNumber.value); return true; } } function trim(str){ str="" + str; return str.replace(/^\s+|\s+$/g,''); } function isValid(str){ var regex=/^[a-z0-9 A-Z]{3,60}$/; return regex.test(str); } function isValid2(str){ var regex=/^[2-9A-Ha-hJ-Nj-nP-Zp-z]{6}$/; return regex.test(str); } function isValid3(str){ var regex=/^[a-np-z1-9A-NP-Z]{16}$/; return regex.test(str); } function isEmail(str){ var regex=/^[-_.a-z0-9]+@(([-_a-z0-9]+\.)+(ad|ae|aero|af|ag|ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg|bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk|dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum|mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu|nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa|re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st|su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i; return regex.test(str); } function checkForm4(thisform){ var cemail, cemvalidate; with(thisform){ cemail=email; cemvalidate=emvalidate; } if(trim(cemail.value)==''){ alert('Please enter your email address'); cemail.focus(); return false; } else if(!isEmail(trim(cemail.value))){ alert('Please enter a valid email address.'); cemail.focus(); return false; } else if(trim(cemvalidate.value)==''){ alert('Please enter your Email Validation sequence.'); cemvalidate.focus(); return false; } else if(!isValid3(trim(cemvalidate.value))){ alert('Please enter a valid email validation sequence, 16 characters.'); cemvalidate.focus(); return false; } else { cemail.value=trim(cemail.value); cemvalidate.value=trim(cemvalidate.value); return true; } } function checkForm2(thisform){ var gname, gemail, gmessage, cimageNumber; with(thisform){ gname=txtName; gemail=txtEmail; gmessage=mtxMessage; cimageNumber=imageNumber; } if(trim(gname.value)==''){ alert('Please enter your name'); gname.focus(); return false; } else if((trim(gemail.value) != '') && (!isEmail(trim(gemail.value)))){ alert('Please enter a valid email address or just leave blank'); gemail.focus(); return false; } else if(trim(gmessage.value)==''){ alert('Please enter your message'); gmessage.focus(); return false; } else if(!isValid2(trim(cimageNumber.value))){ alert('Please enter a 6 character code sequence, characters 2-9, A-H, J-N, P-Z. There is no 1, I 0, or O'); cimageNumber.focus(); return false; } else { return true; } } function cb(evt){ if(window.event) window.event.cancelBubble=true; else evt.cancelBubble=true; } function checkForm3(thisform){ var cname, cemail, csubject, cmessage, cimageNumber; with(thisform){ cname=popname; cemail=popemail; csubject=popsubject; cmessage=popmessage; cimageNumber=imageNumber; } if(trim(cname.value)==''){ alert('Please enter your name'); cname.focus(); return false; } else if(trim(cemail.value)==''){ alert('Please enter your email'); cemail.focus(); return false; } else if(!isEmail(trim(cemail.value))){ alert('Please enter a valid Email address'); cemail.value=""; cemail.focus(); return false; } else if(trim(csubject.value)==''){ alert('Please enter message subject'); csubject.focus(); return false; } else if(trim(cmessage.value)==''){ alert('Please enter your message'); cmessage.focus(); return false; } else if(trim(cimageNumber.value)==''){ alert('Please enter code sequence'); cimageNumber.focus(); return false; } else if(!isValid2(trim(cimageNumber.value))){ alert('Please enter a 6 character code sequence, characters 1-9, A-N, P-Z.'); cimageNumber.focus(); return false; } else { cname.value=trim(cname.value); cemail.value=trim(cemail.value); csubject.value=trim(csubject.value); cmessage.value=trim(cmessage.value); cimageNumber.value=trim(cimageNumber.value); return true; } } function changeCursor(str){ document.body.style.cursor=str; } function checkForm5(thisform){ var fname, fquestion; with(thisform){ fname=txtName; fquestion=mtxQuestion; } if(trim(fname.value)==''){ alert('Please enter your name'); fname.focus(); return false; } else if(!isValid(trim(fname.value))){ alert('Please enter your name, alphanumeric characters only with possible middle space, 3-60 characters'); fname.focus(); return false; } else if(trim(fquestion.value)==''){ alert('Please enter your question.'); fquestion.focus(); return false; } else { fname.value=trim(fname.value); return true; } } function checkQ(){ var lq=document.getElementById("quantity"); var lcn=document.getElementById("cname"); var str=lq.value; var str2=lcn.value; str=trim(str); if(str2==''){ var name=prompt("Please enter a username",""); if (name!=null && name!="") lcn.value=name; else return false; } if(str==''){ alert('Please enter a quantity'); lq.focus(); return false; } else { lq.value=str; var regex=/^[0-9]+$/; return regex.test(str); } } function gotoCategory(){ categoryID=document.getElementById("category"); var ind=categoryID.selectedIndex; window.location=categoryID.options[ind].value; } function gotoProduct(){ productID=document.getElementById("product"); var ind=productID.selectedIndex; window.location=productID.options[ind].value; } function doBigBalloon(evt){ var evt=(evt) ? evt : ((window.event) ? window.event : null); if(evt){ cb(evt); if(evt.target) targ=evt.target; else if(evt.srcElement) targ=evt.srcElement; if(targ.nodeType==3) targ=targ.parentNode; var inpopupinfoID=document.getElementById("inpopupinfo"); if(inpopupinfoID){ var nums=bTargXY.split('::'); nums[0]=parseInt(nums[0]); nums[1]=parseInt(nums[1]); if(targ.src.indexOf("images/balloon.png") != -1){ targ.src="images/balloon_new.png"; inpopupinfoID.style.left=100 + zilchPX; inpopupinfoID.style.top=80 + zilchPX; inpopupinfoID.style.width=370 + zilchPX; inpopupinfoID.style.height=200 + zilchPX; bTarg=412; } else { targ.src="images/balloon.png"; inpopupinfoID.style.left=50 + zilchPX; inpopupinfoID.style.top=40 + zilchPX; inpopupinfoID.style.width=185 + zilchPX; inpopupinfoID.style.height=100 + zilchPX; bTarg=206; } var popupinfoID=document.getElementById("popupinfo"); popupinfoID.style.left=nums[0] + zilchPX; popupinfoID.style.top=(nums[1] - bTarg) + zilchPX; } } } function popupinfo(event,hmm){ popupinfoID=document.getElementById("popupinfo"); inpopupinfoID=document.getElementById("inpopupinfo"); var iebody=(document.compatMode && (document.compatMode != "BackCompat"))? document.documentElement : document.body; var dsocleft=''; var dsoctop= ''; var cWidth=''; var cHeight=''; if (window.innerWidth){ dsocleft=window.pageXOffset; dsoctop= window.pageYOffset; cWidth=window.innerWidth; cHeight=window.innerHeight; } else { iebody=(document.compatMode && (document.compatMode != "BackCompat"))? document.documentElement : document.body; dsocleft=iebody.scrollLeft; dsoctop= iebody.scrollTop; cWidth=iebody.clientWidth; cHeight=iebody.clientHeight; } inpopupinfoID.innerHTML=document.getElementById(hmm).innerHTML; var l=dsocleft + event.clientX + 3; var t=dsoctop + event.clientY - bTarg; if (window.innerWidth){ popupinfoID.style.left=l + "px"; popupinfoID.style.top=t + "px"; } else { popupinfoID.style.pixelLeft=l; popupinfoID.style.pixelTop=t; } popupinfoID.style.visibility="visible"; inpopupinfoID.style.visibility="visible"; bTargXY=l + '::' + (t + bTarg); } function fullHeight(){ var cHeight=''; zilchPX; var inc=0; var nam; var theID=document.getElementById("main"); var foob=0; theID.style.height="auto"; document.getElementById("shiftDiv").style.height="auto"; if(window.innerWidth) zilchPX="px"; else zilchPX=0; cHeight=theID.offsetHeight; inc=cHeight - 600; if(upordown){ inc=0; upordown=false; changeButt('upordown','images/down.gif'); nam='f'; } else { upordown=true; changeButt('upordown','images/up.gif'); if(inc%2 != 0) foob=-1; nam='t'; } var fhID=document.getElementById("fullheight"); if(fhID) fhID.value=nam; cHeight=581; var x=document.getElementsByTagName('div'); for(i=0; i < x.length; i++){ nam=x[i].className; switch(nam){ case "main": x[i].style.height=cHeight + inc + zilchPX; break; case "mainBottom": x[i].style.top=1024 + inc + foob + zilchPX; break; case "mainBottomS": x[i].style.top=1036 + inc + zilchPX; break; case "mainSide": x[i].style.height=600 + inc + zilchPX; break; case "mainSideS": x[i].style.height=600 + inc + zilchPX; break; case "mainSideL2": x[i].style.height=600 + inc + zilchPX; break; case "mainSideR2": x[i].style.height=600 + inc + zilchPX; break; case "mainBottom2": x[i].style.top=1024 + inc + zilchPX; break; case "main2": x[i].style.height=cHeight + inc + zilchPX; break; case "mainSideS2": x[i].style.height=600 + inc + zilchPX; break; case "mainBottomS2": x[i].style.top=1036 + inc + zilchPX; break; case "copyTop": x[i].style.top=1473 + inc + zilchPX; break; case "copy": x[i].style.top=1500 + inc + zilchPX; break; case "copyBottom": x[i].style.top=1660 + inc + zilchPX; break; case "copyBottomS": x[i].style.top=1672 + inc + zilchPX; break; case "copySide": x[i].style.top=1500 + inc + zilchPX; break; case "copySideS": x[i].style.top=1512 + inc + zilchPX; break; case "navTop": x[i].style.top=1089 + inc + zilchPX; break; case "nav": x[i].style.top=1116 + inc + zilchPX; break; case "navBottom": x[i].style.top=1216 + inc + zilchPX; break; case "navBottomS": x[i].style.top=1228 + inc + zilchPX; break; case "navSide": x[i].style.top=1116 + inc + zilchPX; break; case "navSideS": x[i].style.top=1128 + inc + zilchPX; break; case "navTop2": x[i].style.top=1281 + inc + zilchPX; break; case "nav2": x[i].style.top=1308 + inc + zilchPX; break; case "navBottom2": x[i].style.top=1408 + inc + zilchPX; break; case "navBottomS2": x[i].style.top=1420 + inc + zilchPX; break; case "navSide2": x[i].style.top=1308 + inc + zilchPX; break; case "navSideS2": x[i].style.top=1320 + inc + zilchPX; break; } } var y=document.getElementsByTagName('img'); for(i=0; i < y.length; i++){ nam=y[i].className; switch(nam){ case "mainBL": y[i].style.top=1024 + inc + foob + zilchPX; break; case "mainBR": y[i].style.top=1024 + inc + foob + zilchPX; break; case "mainBRS": y[i].style.top=1036 + inc + zilchPX; break; case "mainBLS": y[i].style.top=1036 + inc + zilchPX; break; case "mainBL2": y[i].style.top=1024 + inc + zilchPX; break; case "mainBR2": y[i].style.top=1024 + inc + zilchPX; break; case "mainBRS2": y[i].style.top=1036 + inc + zilchPX; break; case "mainBLS2": y[i].style.left=1036 + inc + zilchPX; break; case "copyTL": y[i].style.top=1473 + inc + zilchPX; break; case "copyTR": y[i].style.top=1473 + inc + zilchPX; break; case "copyTRS": y[i].style.top=1485 + inc + zilchPX; break; case "copyBL": y[i].style.top=1660 + inc + zilchPX; break; case "copyBR": y[i].style.top=1660 + inc + zilchPX; break; case "copyBRS": y[i].style.top=1672 + inc + zilchPX; break; case "copyBLS": y[i].style.top=1672 + inc + zilchPX; break; case "navTL": y[i].style.top=1089 + inc + zilchPX; break; case "navTR": y[i].style.top=1089 + inc + zilchPX; break; case "navTRS": y[i].style.top=1101 + inc + zilchPX; break; case "navBL": y[i].style.top=1216 + inc + zilchPX; break; case "navBR": y[i].style.top=1216 + inc + zilchPX; break; case "navBRS": y[i].style.top=1228 + inc + zilchPX; break; case "navBLS": y[i].style.top=1228 + inc + zilchPX; break; case "navTL2": y[i].style.top=1281 + inc + zilchPX; break; case "navTR2": y[i].style.top=1281 + inc + zilchPX; break; case "navTRS2": y[i].style.top=1293 + inc + zilchPX; break; case "navBL2": y[i].style.top=1408 + inc + zilchPX; break; case "navBR2": y[i].style.top=1408 + inc + zilchPX; break; case "navBRS2": y[i].style.top=1420 + inc + zilchPX; break; case "navBLS2": y[i].style.top=1420 + inc + zilchPX; break; } } theID=document.getElementById("w3cID"); if(theID) theID.style.top=1672 + inc + zilchPX; var xmlhttp; if (window.XMLHttpRequest) xmlhttp=new XMLHttpRequest(); else xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); var url='fullHeight.php'; var params='fh='; if(upordown) params += 't'; else params += 'f'; xmlhttp.open("POST", url,true); xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"); xmlhttp.setRequestHeader("Content-length",params.length); xmlhttp.setRequestHeader("Connection","close"); xmlhttp.send(params); xmlhttp.onreadystatechange=function(){ if((xmlhttp.readyState==4) && (xmlhttp.status==200)){ if(xmlhttp.responseText != 't'){ ; } } }; var bodyID=document.getElementsByTagName('body')[0]; bodyID.style.visibility="visible"; } function cancelpopupinfo(){ popupinfoID=document.getElementById("popupinfo"); popupinfoID.style.top=100+zilchPX; popupinfoID.style.left=100+zilchPX; popupinfoID.style.visibility="hidden"; var arba=document.getElementById("inpopupinfo"); arba.style.visibility="hidden"; arba.innerHTML='<p>&nbsp;</p>'; } function smile50(s,evt){ var wButt=''; var evt=(evt) ? evt : ((window.event) ? window.event : null); if(evt) wButt=evt.button; if(s==50){ if(wButt==2){ if(confirm('Do you want to insert an image?')) getMyIcons('insertImage.php?destID=mtxMessage&publisher=1','insertimage',600,250,'mtxMessage'); return; } } else if(s==46){ if(wButt==2) s=-46; } else if(s>3 && s<22){ if(wButt==2) s *= -1; } smilies(s); } function smilies(s){ messageID=document.getElementById("mtxMessage"); var str=getSelText('mtxMessage',2); str=str.replace(/(?:\r\n|\n)/,'--!pork-n-pop!--'); str=str.replace(/^\[h(?:1|2|3|4|5|6)\]([\s\S]*)\[\/h(?:1|2|3|4|5|6)\]$/,'$1'); str=str.replace(/^\[su(?:p|b)\]([\s\S]*)\[\/su(?:p|b)\]$/,'$1'); str=str.replace(/^(?:\[c\]|\[r\]|\[l\])(.*)(?:\[\/c\]|\[\/r\]|\[\/l\])$/g,'$1'); str=str.replace("--!pork-n-pop!--","\r\n"); var namy='...'; var do32=''; if(str=='') str='...'; else { namy=document.getElementById("avatar"); if(namy) namy=namy.alt; } if(s==45) str=str.replace(/^\[table\]([\s\S]*)\[\/table\]$/,'$1'); else if(s==-46){ wButt=prompt("Please enter page number to jump to.","1"); if(wButt!=null && wButt!="") str=' ' + wButt + ' {' + str + '}'; else str=''; s=46; } else if(s>-23 && s<-2){ s *= -1; do32='32'; } else if(s==46) str=''; else if(s==50) str=str.replace(/^\[img\]([\s\S]*)\[\/img\]$/,'$1'); else if(s==23 || s==24){ str=str.replace(/^\[(?:o|u)l\]([\s\S]*)\[\/(?:o|u)l\]$/,'$1'); } else if(s==51){ str=str.replace(/\[img\]http:\/\/[\s\S]+?\.gif--([\s\S]+?)\[\/img\]/i,'$1'); str=str.replace(/^\[latex\]([\s\S]*)\[\/latex\]$/,'$1'); } else if(s==52){ 
str=str.replace(/\[img\]http:\/\/(.*)?\[\/img\]/gi,'[img]flatzoinkburgers://$1[/img]');
wButt=str.match(/([\s\S]*?)(http:\/\/\S+)([\s\S]*)/i); if(wButt){ str=wButt[2]; if(wButt[1]) str += ' {' + wButt[1].replace(/\s+$/,'') + ((!wButt[3])?'}':''); if(wButt[3]) str += ((!wButt[1])?' {':' ') + wButt[3].replace(/^\s+/i,'') + '}'; } else { str=str.match(/[\s\S]+/); if(str) 
str='http://... ' + '{' + str[0].replace(/^\s+/,'') + '}';
else 
str='http://...';
} str=str.replace('flatzoinkburgers','http'); } switch(s){ case 1: str="[title]" + str + "[/title]"; break; case 2: str="[quote]" + str + "[/quote]"; break; case 3: str="[qs][name]" + namy + "[/name]" + str + "[/qs]"; break; case 4: str="[smile" + do32 + "]"; break; case 5: str="[frown" + do32 + "]"; break; case 6: str="[laugh" + do32 + "]"; break; case 7: str="[embarrass" + do32 + "]"; break; case 8: str="[big smile" + do32 + "]"; break; case 9: str="[ignore" + do32 + "]"; break; case 10: str="[wow" + do32 + "]"; break; case 11: str="[jealous" + do32 + "]"; break; case 12: str="[thought" + do32 + "]"; break; case 13: str="[cry" + do32 + "]"; break; case 14: str="[angry" + do32 + "]"; break; case 15: str="[huh" + do32 + "]"; break; case 16: str="[smart" + do32 + "]"; break; case 17: str="[dunce" + do32 + "]"; break; case 18: str="[cool" + do32 + "]"; break; case 19: str="[beautiful" + do32 + "]"; break; case 20: str="[love" + do32 + "]"; break; case 21: str="[scare" + do32 + "]"; break; case 22: str="[tab]"; break; case 23: str="[ol]" + str + "[/ol]";break; case 24: str="[ul]" + str + "[/ul]";break; case 25: str="[h1]" + str + "[/h1]";break; case 26: str="[h2]" + str + "[/h2]";break; case 27: str="[h3]" + str + "[/h3]";break; case 28: str="[h4]" + str + "[/h4]";break; case 29: str="[h5]" + str + "[/h5]";break; case 30: str="[h6]" + str + "[/h6]";break; case 31: str="[sub]" + str + "[/sub]";break; case 32: str="[sup]" + str + "[/sup]";break; case 35: str="[b]" + str + "[/b]"; break; case 36: str="[i]" + str + "[/i]"; break; case 37: str="[c]" + str + "[/c]"; break; case 38: str="[l]" + str + "[/l]"; break; case 39: str="[r]" + str + "[/r]"; break; case 40: if(str=='') str='Link message here...'; str="[balloon]" + str + "%%Balloon message here...[/balloon]"; break; case 41: str="%username%"; break; case 42: str="%firstname%"; break; case 43: str="%lastname%"; break; case 44: str="%fullname%"; break; case 45: str="[table]" + str + "[/table]"; break; case 46: str="[page" + str + "]";break; case 50: str="[img]" + str + "[/img]";break; case 51: str="[latex]" + str + "[/latex]";break; case 52: str='[' + str + ']';break; default: str=''; } if(document.selection){ messageID.focus(); var sl=document.selection.createRange(); sl.text=str; sl.moveStart('character',-str.length); sl.select(); } else if(messageID.selectionStart || messageID.selectionStart=='0'){ var startPos=messageID.selectionStart; var endPos=messageID.selectionEnd; messageID.value=messageID.value.substring(0,startPos) + str + messageID.value.substring(endPos,messageID.value.length); messageID.selectionStart=startPos; messageID.selectionEnd=startPos + str.length; } else messageID.value += str; } function adjustPos(){ window.onresize=adjustPos; btnLogID=document.getElementById("btnLog"); var pTitleID=document.getElementById("pTitle"); var adjTemp=0; scrollbarWH(); LIbuttonsID=document.getElementById("LIbuttons"); var cWidth=1; var offSet=document.getElementById("copy").offsetWidth; var eX=257; if (window.innerWidth){ cWidth=window.innerWidth; offSet=(cWidth - scrollbarW - offSet)/2 - eX; if(LIbuttonsID) LIbuttonsID.style.left=cWidth - scrollbarW - 117 +"px"; zilchPX="px"; } else { var iebody=(document.compatMode && (document.compatMode != "BackCompat"))? document.documentElement : document.body; cWidth=iebody.clientWidth; offSet=(cWidth - offSet)/2 - eX; if(LIbuttonsID) LIbuttonsID.style.pixelLeft=cWidth - 117; zilchPX=0; } var clunk=0; var bWidth=cWidth - 200; if(bWidth < 631) bWidth=631; var inc=bWidth - 631; inc=inc/2; inc=Math.floor(inc); if(inc < 0) inc=0; if(pTitleID){ var ttt=(bWidth - 446)/2; ttt=Math.floor(ttt); pTitleID.style.left=ttt + zilchPX; } if(document.getElementById("mainSideLeft")){ document.getElementById("mainSideLeft").style.left=30 - inc + zilchPX; document.getElementById("mainSideRight").style.left=708 + inc + zilchPX; } if(document.getElementById("graffiti")) clunk=20; var x=document.getElementsByTagName('div'); var nam=""; var zct=''; var zct2=''; var str=''; var fem=document.getElementById('copyTL'); if(fem && fem.src.indexOf('princess/') != -1) fem=true; else fem=false; for(i=0; i < x.length; i++){ nam=x[i].className; if(!zct && nam=='vlrc' && x[i].id.match(/^rc_(.*)$/)){ zct=RegExp.$1.replace('..',' ').split('_'); if(zct[0].indexOf('-') != -1) zct[0]=zct[0].replace(/-[\w.]*/,''); zct[0]=zct[0].replace(/\./g,"/"); if(zct[0].indexOf('cus')==0){ zct[0]=zct[0].replace(/^cus(?:\/[1-9][0-9]*)?\s*/,''); if(!fem) zct[0]=zct[0].replace(/^fem(.*)/,'$1'); zct2=zct[2]; } } if(zct){ if(zct2) str='url("profiles/' + zct[1] + '/rc/' + zct[0] + nam + '.png' + zct2 + '")'; else if(fem){ if(zct[0]=='fem') zct[0]=''; str='url("princess/images/rc/' + zct[0] + nam + '.png")'; } else { if(zct[0]=='fem') zct[0]=''; str='url("images/rc/' + zct[0] + nam + '.png")'; } x[i].style.backgroundImage=str; if(nam=="trrc"){ zct=''; zct2=''; } continue; } switch(nam){ case "shiftDiv": x[i].style.left=offSet + zilchPX; break; case "leftBanner": adjTemp=141 + offSet; if(adjTemp < 0) adjTemp=0; x[i].style.width=adjTemp + zilchPX; break; case "leftBannerS": adjTemp=153 + offSet; if(adjTemp < 0) adjTemp=0; x[i].style.width=adjTemp + zilchPX; break; case "mainTop": x[i].style.left=71 - inc + zilchPX; x[i].style.width=623 + 2*inc + zilchPX; break; case "mainBottom": x[i].style.left=71 - inc + zilchPX; x[i].style.width=623 + 2*inc + zilchPX; break; case "main": x[i].style.left=57 - inc + zilchPX; x[i].style.width=bWidth + clunk + zilchPX; break; case "mainSideS": x[i].style.left=720 + inc + zilchPX; break; case "mainBottomS": x[i].style.left=83 - inc + zilchPX; x[i].style.width=623 + 2*inc + zilchPX; break; case "mainTop2": x[i].style.left=71 - inc + zilchPX; x[i].style.width=623 + 2*inc + zilchPX; break; case "mainSideL2": x[i].style.left=30 - inc + zilchPX; break; case "mainSideR2": x[i].style.left=708 + inc + zilchPX; break; case "mainBottom2": x[i].style.left=71 - inc + zilchPX; x[i].style.width=623 + 2*inc + zilchPX; break; case "main2": x[i].style.left=57 - inc + zilchPX; x[i].style.width=bWidth + zilchPX; break; case "mainSideS2": x[i].style.left=720 + inc + zilchPX; break; case "mainBottomS2": x[i].style.left=83 - inc + zilchPX; x[i].style.width=623 + 2*inc + zilchPX; break; case "coa": x[i].style.left=520 + 2*inc + zilchPX; if(document.getElementById("editprofile")){if(520 + 2*inc < 623) x[i].style.top=30 + zilchPX; else x[i].style.top=0 + zilchPX;} break; case "emailviewer": x[i].style.width=598 + 2*inc - x[i].id.split('_')[1] + zilchPX; break; case "emailviewer2": x[i].style.width=582 - x[i].id.split('_')[1] + zilchPX; } } var y=document.getElementsByTagName('img'); for(i=0; i < y.length; i++){ nam=y[i].className; switch(nam){ case "banner": y[i].style.left=131 + offSet + zilchPX; break; case "bannerS": y[i].style.left=143 + offSet + zilchPX; break; case "flag": y[i].style.left=71 - inc + zilchPX; break; case "flagS": y[i].style.left=83 - inc + zilchPX; break; case "mainTL": y[i].style.left=30 - inc + zilchPX; break; case "mainTR": y[i].style.left=694 + inc + zilchPX; break; case "mainBL": y[i].style.left=30 - inc + zilchPX; break; case "mainBR": y[i].style.left=694 + inc + zilchPX; break; case "mainTRS": y[i].style.left=706 + inc + zilchPX; break; case "mainBRS": y[i].style.left=706 + inc + zilchPX; break; case "mainBLS": y[i].style.left=42 - inc + zilchPX; break; case "logosm": y[i].style.left=579 + 2*inc + zilchPX; if(document.getElementById('oldfirst')){if(579 + 2*inc < 623) y[i].style.top=38 + zilchPX; else y[i].style.top=0 + zilchPX;} break; case "mainTL2": y[i].style.left=30 - inc + zilchPX; break; case "mainTR2": y[i].style.left=694 + inc + zilchPX; break; case "mainBL2": y[i].style.left=30 - inc + zilchPX; break; case "mainBR2": y[i].style.left=694 + inc + zilchPX; break; case "mainTRS2": y[i].style.left=706 + inc + zilchPX; break; case "mainBRS2": y[i].style.left=706 + inc + zilchPX; break; case "mainBLS2": y[i].style.left=42 - inc + zilchPX; break; } } var publisherID=document.getElementById("publisherID"); var profiles=document.getElementById("profiles"); var sheet; var hashy; var tt=document.getElementsByTagName('table'); var namy=""; var isMail=false; var sheesh; for(i=0; i < tt.length; i++){ namy=tt[i].className; if(namy=="domebaby") tt[i].style.width=616 + 2*inc + zilchPX; else if(namy=="emailviewer"){ tt[i].style.width=610 + 2*inc + zilchPX; isMail=true; } else if(namy.indexOf('istable_')==0){ sheesh=namy.split('_')[1]; hashy='isinput_' + sheesh; hashy=document.getElementById(hashy).value; if(navigator.appName=="Microsoft Internet Explorer" && document.styleSheets){ if(document.styleSheets[0].cssText.search(new RegExp("table." + namy,"i")) == -1) document.styleSheets[0].addRule("table." + namy,hashy) } else if(!document.getElementById('istable_'+sheesh)){ sheet=document.createElement('style'); sheet.id='istable_'+sheesh; sheet.innerHTML="table." + namy + "{" + hashy + "}"; document.body.appendChild(sheet); } } else if(publisherID && namy != "goobersmack" && namy != "q"){ tt[i].style.width=615 + 2*inc + zilchPX; } } tt=document.getElementsByTagName('td'); var anID; for(i=0; i < tt.length; i++){ namy=tt[i].className; if(publisherID && namy=="tdID2"){ tt[i].style.width=320 + 2*inc + zilchPX; } else if(namy.indexOf('istd_')==0){ sheesh=namy.split('_')[1]; hashy='isinput_' + sheesh; hashy=document.getElementById(hashy).value; anID=hashy.match(/border-width: [^;]*;/); anID=anID[0].split(': '); anID=anID[1].replace('px;',''); anID=parseInt(anID)/2; anID=Math.round(anID); hashy=hashy.replace(/border-width: [^;]*;/g,'border-width: ' + anID + 'px;'); if(navigator.appName=="Microsoft Internet Explorer" && document.styleSheets){ if(document.styleSheets[0].cssText.search(new RegExp("td." + namy,"i")) == -1) document.styleSheets[0].addRule("td." + namy,hashy) } else if(!document.getElementById('istd_'+sheesh)){ sheet=document.createElement('style'); sheet.id='istd_'+sheesh; sheet.innerHTML="td." + namy + "{" + hashy + "}"; document.body.appendChild(sheet); } } else if((profiles || isMail) && namy=="porknholler"){ tt[i].style.width=521 + 2*inc + zilchPX; } } if(profiles || isMail){ var inputs=document.getElementsByTagName('input'); var nam; for(i=0; i < inputs.length; i++){ nam=inputs[i].className; if(nam=="porknholler"){ inputs[i].style.width=521 + 2*inc + zilchPX; } } var tareas=document.getElementsByTagName('textarea'); for(i=0; i < tareas.length; i++){ nam=tareas[i].className; if(nam=="porknholler"){ tareas[i].style.width=521 + 2*inc + zilchPX; } } } tt=document.getElementsByTagName('legend'); namy=""; for(i=0; i < tt.length; i++){ namy=tt[i].className; if(namy=="q"){ tt[i].style.visibility="visible"; } } var fhID=document.getElementById("fullheight"); if(fhID){ if(fhID.value=='t') upordown=false; else upordown=true; fullHeight(); } else { var bodyID=document.getElementsByTagName('body')[0]; bodyID.style.visibility="visible"; } } function getAbsX(elt){ return (elt.x) ? elt.x : getAbsPos(elt,"Left"); } function getAbsY(elt){ return (elt.y) ? elt.y : getAbsPos(elt,"Top"); } function getAbsPos(elt,which){ var iPos=0; while (elt != null){ iPos += elt["offset" + which]; elt=elt.offsetParent; } return iPos; } function scrollbarWH(){ var i=document.createElement('p'); i.style.width='100%'; i.style.height='200px'; var o=document.createElement('div'); o.style.position='absolute'; o.style.top='0px'; o.style.left='0px'; o.style.visibility='hidden'; o.style.width='200px'; o.style.height='150px'; o.style.overflow='hidden'; o.appendChild(i); document.body.appendChild(o); var w1=i.offsetWidth; var h1=i.offsetHeight; o.style.overflow='scroll'; var w2=i.offsetWidth; var h2=i.offsetHeight; if(w1==w2) w2=o.clientWidth; if(h1==h2) h2=o.clientWidth; document.body.removeChild(o); scrollbarW=w1-w2; scrollbarH=h1-h2; } function adjustVids(){ var vidID=''; var x=document.getElementsByTagName('div'); var str=''; var regex=/^[-_a-zA-Z0-9]+(?:\s+([2-9][0-9]{2})\s+([1-9][0-9]{2})|\s+([2-9][0-9]{2})|)$/; for(i=0; i < x.length; i++){ if(x[i].className=="youtubevid"){ if(document.all) vidID=x[i].innerText; else vidID=x[i].textContent; if(regex.test(vidID)){ vidID=vidID.split(' ')[0]; var wi=200; var he=168; if(RegExp.$1) wi=parseInt(RegExp.$1); if(RegExp.$2) he=parseInt(RegExp.$2); if(isNaN(wi)) wi=200; if(isNaN(he)) he=168; if(wi<200) wi=200; else if(wi>640) wi=640; if(he<168) he=168; else if(he>538) he=538; if(navigator.appName=="Microsoft Internet Explorer") str='<object style="width: ' + wi + 'px; height: ' + he + 'px" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="' + wi + '" height="' + he + '">'; else 
str='<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/' + vidID + '&amp;hl=en_US&amp;fs=1&amp;color1=0x222222&amp;color2=0x333366&amp;border=1" width="' + wi + '" height="' + he + '">';
x[i].innerHTML=str + '<param name="movie" value="http://www.youtube.com/v/' + vidID + '&amp;hl=en_US&amp;fs=1&amp;color1=0x222222&amp;color2=0x333366&amp;border=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param></object>';
x[i].style.visibility="visible"; } } } }
