<!-- Hide from JavaScript-Impaired Browsers
//Script by Skydrift 2003
//Portiions of scripts by Elliot (Blade)
//RT Camm (Art)
//R_E http://endymion.spiritbones.org/index.php
//Robert Wedge http://www.expandinghead.com/
function ecodeit(){
var silent = document.ttb.bx.value;
if(silent.length <= '1') {
window.status='There\'s nothing to Encode!';
setTimeout('staTus()',2500);
}
else{
document.ttb.bx.value = (escape(silent));
}
}
function decodeit(){
var lamb = document.ttb.bx.value;
if(lamb.length <= '1') {
window.status='There\'s nothing to Decode!';
setTimeout('staTus()',2500);
}
else{
document.ttb.bx.value = (unescape(lamb));
}
}
function pri(){
if (navigator.appName.substring(0,5) == "WebTV"){
location.href="#";
}
document.open(); 
document.write('<html><body bgcolor="#ffffff" text="#000000" link="800000" hspace="20" vspace="20" transition="wipeup">'); document.write('</small>'+Date()+'</small>'); document.write('<img src="/im/clear.gif" width="400" height="1" border="0" />');
document.write('<a onclick=print()><small>Print</small></a><br />'); document.write('<xmp>'); document.write(document.ttb.bx.value); document.write('</xmp></body></html>'); document.close();
} 

function viewit() {
temp=document.ttb.bx.value;
preWindow=open("", "preWindow","status=no, toolbar=no, width=560 menubar=no");
preWindow.document.open(); preWindow.document.write(temp); preWindow.document.close();
}
function copy()  {
document.ttb.bx.focus();
document.ttb.bx.select();
}
function res(){ 
document.ttb.bx.value = '';
} 
function viewit2() {
temp=document.btb.bx2.value;
preWindow=open("", "preWindow","status=no, toolbar=no, width=560 menubar=no");
preWindow.document.open(); preWindow.document.write(temp); preWindow.document.close();
}
function copy2()  {
document.btb.bx2.focus();
document.btb.bx2.select();
}
function res2(){ 
document.btb.bx2.value = '';
} 
function Switch(){ 
document.btb.bx2.value += document.ttb.bx.value; 
setTimeout('no()',1000);
} 
function fsiz(){ 
document.ttb.bx.value+='<Script Language="javascript"> <!-- Hide 
// 
//--> 
</sc'+'ript> '; 
} 
function fsiz2(){ 
document.btb.bx2.value+='<Script Language="javascript"> <!-- Hide 
// 
//--> 
</sc'+'ript> '; 
} 
function replaceText() {
K1 = document.btb
all_text = K1.bx2.value;
old_word = K1.E2.value;
new_word = K1.E3.value;
working = true; if (confirm("This will replace ALL instances of:\n\n` " +old_word+ "´\n\nwith:\n\n` " +new_word+" ´\n\nAre you sure you want to continue?"))
left_index = 0;
while (working) {
J1 = all_text.indexOf(old_word, left_index);
if (J1==-1) {working = false; break}
all_text_left = all_text.substring(0, J1) 
J2 = J1+old_word.length;
all_text_right = all_text.substring(J2,
all_text.length);
all_text = all_text_left + new_word +
all_text_right;
left_index = J1+new_word.length;
}
document.btb.bx2.value = all_text
}
function initializer()

{

        hexidec=new makeArray(1);

}

function makeArray(n)

{

        this.length = n;

        for (var i=1; i<=n;i++)

                this[i]=0;

        return this;

}



function getColor(form){


        form.hexadecimal.value=document.bgColor;

        rgb=form.hexadecimal.value;

        c="0123456789abcdef";

        red=c.indexOf(rgb.substring(1,2))*16+c.indexOf(rgb.substring(2,3));

        green=c.indexOf(rgb.substring(3,4))*16+c.indexOf(rgb.substring(4,5));

        blue=c.indexOf(rgb.substring(5,6))*16+c.indexOf(rgb.substring(6,7));

        form.red.value=red;

        form.green.value=green;

        form.blue.value=blue;

        form.hexadecimal.focus();

        form.hexadecimal.select();


}



function getHex(form)

{


        var c="0123456789abcdef";

        if ((form.red.value >255) || (form.green.value > 255) || (form.blue.value > 255))

        {window.alert("What colors are you trying to convert? Value: 0 to 255!")}else

        {

        red=form.red.value;

        green=form.green.value;

        blue=form.blue.value;


        with (Math) {

                numOne=c.substring(floor(red/16),floor(red/16)+1);

                numTwo=c.substring(red%16,(red%16)+1);

                numThree=c.substring(floor(green/16),floor(green/16)+1);

                numFour=c.substring(green%16,(green%16)+1);

                numFive=c.substring(floor(blue/16),floor(blue/16)+1);

                numSix=c.substring(blue%16,(blue%16)+1);        


        }

                     
        form.hexadecimal.value="#"+numOne+""+numTwo+""+numThree+""+numFour+""+numFive+""+numSix;

        form.red.focus();

        form.red.select();

        document.bgColor=form.hexadecimal.value;

        form.hexadecimal.focus();

        form.hexadecimal.select();

        

}}

function getRGB(form)

{

        

        hex=form.hexadecimal.value;


        pound=0;

        for (i=0;i<7;i++){

        hexidec[i]=hex.charAt(i);

        temp=hexidec[i];

        if (temp=='#')

        pound++;

        if ((temp=='a')||(temp=='A'))

        hexidec[i]=10;

        if ((temp=='b')||(temp=='B'))

        hexidec[i]=11;

        if ((temp=='c')||(temp=='C'))

        hexidec[i]=12;

        if ((temp=='d')||(temp=='D'))

        hexidec[i]=13;

        if ((temp=='e')||(temp=='E'))

        hexidec[i]=14;

        if ((temp=='f')||(temp=='F'))

        hexidec[i]=15;

        

        }

        

        form.red.value=((hexidec[0+pound]*16)- -hexidec[1+pound]);

        form.green.value=((hexidec[2+pound]*16)- -hexidec[3+pound]);

        form.blue.value=((hexidec[4+pound]*16)- -hexidec[5+pound]);

        document.bgColor=form.hexadecimal.value;

        

}
function makeit(form){
var txt ='<html>\n<head>\n';
if(document.ttb.n1.value != "")          
txt+='<title>'+document.ttb.n1.value+'</title>\n';
if(document.ttb.m1.value != "")          
txt+='<meta name="description"'
+' content="'+document.ttb.m1.value+'" />\n';
if(document.ttb.m2.value != "")          
txt+='<meta name="keywords"'
+' content="'+document.ttb.m2.value+'" />\n';
if(document.ttb.pct.checked)
txt+='<meta http-equiv="Page-Enter" content="revealTrans(Duration=5,Transition=23)" />\n';
txt+='</head>\n';
txt+='<body';
if(document.ttb.n2.value != "")          
txt+=' bgcolor="'+document.ttb.n2.value+'"';
if(document.ttb.n3.value != "")          
txt+=' background="'+document.ttb.n3.value+'"';
if(document.ttb.n4.value != "")          
txt+=' text="'+document.ttb.n4.value+'"';
if(document.ttb.n5.value != "")          
txt+=' link="'+document.ttb.n5.value+'"';
if(document.ttb.n6.value != "")          
txt+=' vlink="'+document.ttb.n6.value+'"';
if(document.ttb.n7.value != "")          
txt+=' transition="'+document.ttb.n7.value+'"';
txt+='>\n';
document.ttb.bx.value=txt;
}
function make1(form) { 
{
if (document.ttb.Last.value != "") { 
document.ttb.bx.value +='<a href="'+document.ttb.Last.value+'">\n'
+document.ttb.Title.value+'</a>\n';
}  
}
}
function make2(form) { 
{
if (document.ttb.Last.value != "") { 
document.ttb.bx.value +='<option value="'+document.ttb.Last.value+'">\n'
+document.ttb.Title.value+'</option>\n';
}  
}
}
function make3(form) { 
{
if (document.ttb.Last.value != "") { 
document.ttb.bx.value +=''+document.ttb.Last.value+'\n';
}  
}
}
// Table Generator version 2
// Written by Joey Mornin



// Start Generator Function
function process() {
        
        // No errors
        self.onerror = null
        
        // Set Variables
        var rows = document.ttb.rows.value * 1
        var cols = document.ttb.cols.value * 1
        var width = document.ttb.width.value * 1
        var border = document.ttb.border.value * 1
        var cellpadding = document.ttb.cellpadding.value * 1
        var align = document.ttb.align.value
        var tdalign = document.ttb.tdalign.value
        
        var bgcolor = document.ttb.bgcolor.value
        if (bgcolor == "" || bgcolor == null) { bgcolor = "white" }

        
        var valign = document.ttb.valign.value
        
        // Table tag creation
        var bx = "<table width=\"" + width + "\""
        bx += " border=\"" + border + "\""
        bx += " cellpadding=\"" + cellpadding + "\"\n"
        bx += "align=\"" + align + "\""
        bx += " bgcolor=\"" + bgcolor + "\">\n"
        
        
        // Calculate the width for <TD>
        var tdwidth = width / cols
        
        // Start Main Loop
        for (i = 1; i <= rows; i++) {
                bx += "<!-- Row " + i + " -->\n"
                bx += "<tr>\n"
                
                // TD Loop
                for (t = 1; t <= cols; t++) {
                        bx += "<td width=\"" + tdwidth + "\" align=\"" + tdalign + "\" valign=\"" + valign + "\">\n"
                        bx += "[ Row " + i + ", Column " + t +" ]\n"
                        bx += "</td>\n"
                }
                
                bx += "</tr>\n"
        }
        
        // Finally, display the code
        if (bx.indexOf("NaN") != -1) {
                bx = "Sorry, there was an error generating your table.\n"
                bx += "Please check all the fields and then try again."
        } else {
                bx += "</table>"
        }
        document.ttb.bx.value = bx

        // As a nice feature, send the cursor to the code
        document.ttb.bx.focus() 
}
// End Generator Function


// Begin Form Clearer
function clearit() {

        // Make sure that they want to clear it
        if (confirm("Are you sure you want to clear all the data that you've entered?")) {
        
                // Clear the form
                document.ttb.reset()
        
                // Set focus back to first element
                document.form.elements[0].focus()
        } else {
                document.ttb.bx.focus()
        }
}
// End Form Clearer
// 3-Mar-1996 Copyright (C) 1996 by Geoff Inglis. You
// may use these routines in your pages (commercial or
// noncommercial) as long as you include these lines.
// You may not Re-sell this code. Questions (or if you
// use this code) E-mail: inglis@axsnet.com 
TheCookieName = 'NETSCAPE_LIVEWIRE.BigCookieinthesky';
numDays       = 183;  //Days 'till Cookie expires.(eg. 183 days = 6 months)
function WriteOneBigCookie () {
var expire = new Date ();
expire.setTime (expire.getTime() + (numDays * 24 * 3600000)); //6 months from now!
//                                     (dd) (hr) (ms in hr)
var WholeCookie = expire ;
//Text entry
WholeCookie = WholeCookie + '`' + document.btb.bx2.value;
//Put cookie in the Oven Bake 'till done.
document.cookie = TheCookieName +"=" + escape (WholeCookie) +
"; expires=" + expire.toGMTString() ;
}
function UpdateForm () {
MakeCookieArray(GetCookie(TheCookieName));
('ckArray: ' + ckArray[0]);
if (ckArray[0] != "*") {
document.btb.ExpDate.value  = ckArray[0];
document.btb.bx2.value   = ckArray[1];
}
}
function GetCookie (CookieName) {
var cname = CookieName + "=";
var i = 0;
while (i < document.cookie.length) {
var j = i + cname.length;
if (document.cookie.substring(i, j) == cname){
var leng = document.cookie.indexOf (";", j);
if (leng == -1) leng = document.cookie.length;
return unescape(document.cookie.substring(j, leng));
}
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break; //thats -1 plus 1, duh.
}
return "*";
}
function DelEatCookie (name) {
var expire = new Date();
expire.setTime (expire.getTime() - 2 * 86400001);  
document.cookie = name + "=*; expires=" + expire.toGMTString();
}
function MakeCookieArray(cookieValue) {
var i = 0,indx = 0, citemlen =0;
ckArray = new Array();
if ( cookieValue == null ) {ckArray[0]= "*";return}//Data has expired or never entered.
if ( cookieValue == "*"  ) {ckArray[0]= "*";return}//Data has expired or never entered.
while (citemlen < cookieValue.length) {
citemlen=(cookieValue.indexOf("`", indx)>0)
?cookieValue.indexOf("`", indx):cookieValue.length;
ckArray[i]= cookieValue.substring(indx, citemlen); i++;
indx = citemlen + 1;
}
}
// expanding head
function CkSize() {
var textlimit = 2400;
var getcode = document.btb.bx2.value;
var overflow = (getcode.length - textlimit);
if (overflow > 0) {
if (confirm("Warning, You are attempting to save "+getcode.length+"
characters\nThis exceeds the safe limit by "+overflow+"
charcters\nCancel if you wish Abort")) {
alert("Saving Data")
// setCookieFunctio();
  }
else {
alert("Action Cancelled");
  }
 }
else {
alert("Safe limit, Saving code");
// setCookieFunction();
 }
}
function reverse() {
text = "";
str = document.forms[0].elements[0].value=document.forms[0].elements[0].value;
for (i = 0; i <= str.length; i++)
text = str.substring(i, i+1) + text;
document.forms[0].elements[0].value = document.forms[0].elements[0].value = text;
}
function lower() {
document.forms[0].elements[0].value = document.forms[0].elements[0].value.toLowerCase()
}
function caps() {
document.forms[0].elements[0].value = document.forms[0].elements[0].value.toUpperCase()
}
function whatIsThis() {
document.forms[0].elements[0].value = escape(document.forms[0].elements[0].value)
}
function dontLikeThis() {
document.forms[0].elements[0].value = unescape(document.forms[0].elements[0].value)
}
var ls="";
var dq='"';
var sq="'";
var rr="\r";
function jsPars () {
ls=document.ttb.bx.value; 
if (ls=="") {
alert("Error");
}
else {
htmlPar () ;
  }
}
function htmlPar () {
document.ttb.bx.value="Working......." ;
pos=ls.indexOf (dq) ;
pos1=ls.indexOf (sq) ;
if ((pos>-1)&&(pos1>-1)) {
reWrt () ;
}
if (pos>-1) {
qt=sq;  
}
else {
qt=dq;  
}
while (ls.indexOf (rr)>-1) {
lc=ls.indexOf (rr) ;
ls=ls.substring (0,lc)+""+ls.substring (lc+1,ls.length) ;  
}
nls="<script type="+qt+"text/javascript"+qt+">"+rr+"<!-- Hide from JavaScript-Impaired Browsers"+rr+"document.write("+qt+ls.substring(0,36)+qt;
ls=ls.substring (36,ls.length);
lsl=ls.length;
pp=50;
if (pp>lsl) {
pp=lsl ;
}
while (lsl>0) {
nls+="\r+"+qt+ls.substring(0,pp)+qt;
ls=ls.substring(pp,lsl);
lsl=ls.length;
if (pp>lsl) {
pp=lsl ;
  }
}
nls+=");"+rr+"// End Hiding -->"+rr+"</sc"+"ript>";
document.ttb.bx.value=nls+rr+"<!-- Size:"+nls.length+" bytes --> "+rr;
}
function Seeit(funk1, funk2, funk3){ if (navigator.appName.substring(0,5) == "WebTV"){ location.href="#"}
document.open();
document.write('<html><head><title>Loading.'
+'...</title><\/head>'); 
document.write('<body transition="wipeup" background="'+funk2+'">');
document.write('<br /><br /><br /><br />'
+'<div align="center">'
+'<img src='+funk1+'>');
document.writeln('</div></body></html>');
document.close();
} 
function tarea(form){
var txt ='<form action="">\n';
txt+='<textarea';
if(document.ttb.tan.value != "")          
txt+=' name="'+document.ttb.tan.value+'"';
if(document.ttb.tar.value != "")          
txt+=' rows="'+document.ttb.tar.value+'"';
if(document.ttb.tac.value != "")          
txt+=' cols="'+document.ttb.tac.value+'"';
if(document.ttb.tabc.value != "")          
txt+=' bgcolor="'+document.ttb.tabc.value+'"';
if(document.ttb.tatc.value != "")          
txt+=' text="'+document.ttb.tatc.value+'" cursor="'
+document.ttb.tatc.value+'"';
if(document.ttb.taaa.checked)
txt+=' autoactivate';
if(document.ttb.tagr.checked)
txt+=' growable';
if(document.ttb.tanh.checked)
txt+=' nohighlight';
if(document.ttb.tab0.checked)
txt+=' border="0"';
txt+='>\n</textarea>\n</form>\n';
document.ttb.bx.value=txt;
}
function rell()     { 
document.ttb.bx.value +='<link rel="next" href="" />\n';
}
function bass()     { 
document.ttb.bx.value +='<base href="">\n';
}
function subb()     { 
document.ttb.bx.value +='<sub>\n';
}
function esubb()     { 
document.ttb.bx.value +='</sub>\n';
}

function hhr()     { 
document.ttb.bx.value +='<hr />\n';
}
function ul()     { 
document.ttb.bx.value +='<ul>\n';
}
function eul()     { 
document.ttb.bx.value +='</ul>\n';
}
function li()     { 
document.ttb.bx.value +='<li>\n';
}
function eli()     { 
document.ttb.bx.value +='</li>\n';
}

function opt()     { 
document.ttb.bx.value +='<option value="">\n';
}
function eopt()     { 
document.ttb.bx.value +='</option>\n';
}

function aler()     { 
document.ttb.bx.value +='<form action="">\n'
+'<input type="button" onclick="alert(\'Your' +'Message\')" value="Click Here" />\n'
+'</form>\n';
}
function sty()     { 
document.ttb.bx.value +='<style type="text/css">\n'
+'body {\n'
+'background-color: #;}\n'
+'p {\n'
 +'font-size: 12px;\n'
 +'color: #;\n'
 +'font-weight: bold;\n'
+'background-color: transparent;}\n'
+'a:link {\n'
+' color: #;\n'
+' background-color: transparent;\n'
+' font-weight: bold;\n'
+' text-decoration: none;}\n'
+'a:visited {\n'
+' color: #;\n'
+' background-color: transparent;\n'
+' font-weight: bold;\n'
+' text-decoration: none;}\n'
+'a:active {\n'
+' color: #;\n'
+' background-color: transparent;\n'
+' font-weight: bold;\n'
+' text-decoration: none;}\n'
+'a:hover {\n'
+' color:#;\n'
+' background-color: transparent;\n'
+' font-weight: bold;\n'
+' text-decoration: overline;}\n'
+'</style>\n'; 
}
function par()     { 
document.ttb.bx.value +='<p>\n'; 
} 
function epar()     { 
document.ttb.bx.value +='</p>\n'; 
} 
function inpu()     { 
document.ttb.bx.value +='<input type="" name="" size="" />\n'; 
} 

function end()     { 
document.ttb.bx.value +='</body>\n</html>\n'; 
}
function getit()     { 
document.ttb.bx.value +=
'<html>\n<head>\n<title></title>\n</head>\n<body bgcolor=""'
+' text="" link="" vlink="">\n'; 
}
function mrqe()     { 
document.ttb.bx.value +=
'<marquee scrollamount="2" scrolldelay="3"' +' behavior="scroll" loop="3" direction="right"' +'width="60%">~Marquee Text~</marquee>\n'; 
}

function scop()     { 
document.ttb.bx.value +=
'<audioscope bgcolor="white" border="0"'
+' rightcolor="red" leftcolor="blue" rightoffset="5"'
+' leftoffset="-5" gain="5" height="20"' +'width="300">\n'; 
}
function menu()     { 
document.ttb.bx.value +=
'<form action=""><select name="list"'
+' onclick="if(options[selectedIndex].value)'
+'window.location.href=(options[selectedIndex]'
+'.value)">\n<option>Menu</option>\n'
+'<option value="URL">Title</option>\n'
+'<option value="URL">Title</option>\n'
+'<option value="URL">Title</option>\n'
+'<option value="URL">Title</option>\n'
+'</select></form>\n'; 
}
function nofram()     { 
document.ttb.bx.value +='<noframes>\nPlease Reload\n</noframes>\n'; 
}
function end()     { 
document.ttb.bx.value +='</body>\n</html>\n'; 
}
function link()     { 
document.ttb.bx.value +='<a href="">\n'; 
}
function elink()     { 
document.ttb.bx.value +='</a>\n'; 
}
function mid()     { 
document.ttb.bx.value += '<embed src="" name="firstsound" hidden="true" autostart="true" loop="-1" />\n' ; 
} 
function img()     { 
document.ttb.bx.value += '<img src="" width="" height="" border="0" alt="" />\n'  ; 
} 
function font()     { 
document.ttb.bx.value += '<font size="" color="">\n'; 
} 
function efont()     { 
document.ttb.bx.value +='</font>\n'; 
} 
function table()     { 
document.ttb.bx.value += '<table bgcolor=\"\" width=\"\" border=\"\" align=\"center\"><tr><td align=\"center\">\n'; 
} 
function etable()     { 
document.ttb.bx.value += '</td></tr></table>\n'; 
} 
function center()     { 
document.ttb.bx.value += '<div align=\"center\">\n'; 
} 
function ecenter()     { 
document.ttb.bx.value += '</div>\n'; 
}
function clck()     { 
document.ttb.bx.value += '<clock dayofweek month day year' +' time seconds></clock>\n'; 
}
function brk()     { 
document.ttb.bx.value += '<br />\n'; 
}
function dil()     { 
document.ttb.bx.value += '<dl>\n'; 
}
function dit()     { 
document.ttb.bx.value += '<dt>\n'; 
}
function eedit()     { 
document.ttb.bx.value += '</dt>\n'; 
}
function edil()     { 
document.ttb.bx.value += '</dl>\n'; 
}
function butt(form){
var txt ='\n';
if(document.ttb.urll.value != "")          
txt+='<form action="'+document.ttb.urll.value+'"' +' method="get">\n';
if(document.ttb.tex.value != "")          
txt+='<input type="submit"' +' value="'+document.ttb.tex.value+'"';
if(document.ttb.bimg.value != "")          
txt+=' borderimage="'+document.ttb.bimg.value+'"';
if(document.ttb.bwd.value != "")          
txt+=' width="'+document.ttb.bwd.value+'"';
if(document.ttb.btc.value != "")          
txt+=' text="'+document.ttb.btc.value+'"';
if(document.ttb.tex.value != "")          
txt+=' />\n';
txt+='</form>\n';
document.ttb.bx.value=txt;
}
// End Hiding -->

