/*Personal Moods - By iAlex - Open Source*/

var iMoodList=[
"abandoned",
"abnormal",
"abused",
"accepted",
"accomplished",
"achy",
"active",
"addicted",
"adored",
"adventurous",
"affectionate",
"aggravated",
"aggressive",
"agitated",
"alienated",
"alive",
"alluring",
"alone",
"aloof",
"alright",
"amazed",
"amazing",
"ambitious",
"amorous",
"amused",
"angelic",
"angry",
"angsty",
"annoyed",
"antisocial",
"antsy",
"anxious",
"apathetic",
"apologetic",
"aroused",
"artistic",
"ashamed",
"awesome",
"awful",
"awkward",
"bad",
"baffled",
"balanced",
"bashful",
"beaming",
"beautiful",
"bemused",
"betrayed",
"bewildered",
"bewitched",
"bipolar",
"bitchy",
"bitter",
"bittersweet",
"bizarre",
"blah",
"blasphemous",
"blessed",
"blissful",
"blonde",
"blue",
"bootylicious",
"bored",
"bothered",
"bouncy",
"braindead",
"bratty",
"brave",
"breathless",
"broken",
"broken-hearted",
"bruised",
"bubbly",
"busy",
"buzzed",
"callous",
"calm",
"cantankerous",
"carefree",
"careless",
"catty",
"cautious",
"cavalier",
"challenged",
"changed",
"chaotic",
"charming",
"cheeky",
"cheerful",
"cheery",
"cheesy",
"cherished",
"childish",
"chilled",
"chillin",
"chipper",
"classy",
"claustrophobic",
"clean",
"clever",
"clingy",
"clueless",
"clumsy",
"cocky",
"cold",
"colorful",
"comfortable",
"compassionate",
"competitive",
"complacent",
"complete",
"complicated",
"concerned",
"confident",
"confined",
"conflicted",
"confused",
"confuzzled",
"congested",
"connected",
"contemplative",
"content",
"controlled",
"cool",
"corny",
"cosmic",
"courageous",
"coy",
"cozy",
"crabby",
"crafty",
"cranky",
"crappy",
"crazy",
"creative",
"cruel",
"crushed",
"cuddly",
"cunning",
"curious",
"cursed",
"cute",
"cynical",
"damned",
"dancy",
"dandy",
"dangerous",
"daring",
"dark",
"daunted",
"dazed",
"dead",
"decadent",
"decaffeinated",
"deceived",
"decent",
"deep",
"defeated",
"defensive",
"defiant",
"deficient",
"deflated",
"dejected",
"delicious",
"delighted",
"delirious",
"demented",
"demonic",
"demure",
"dense",
"depraved",
"depressed",
"deprived",
"deranged",
"deserted",
"desolate",
"desperate",
"despondent",
"destroyed",
"destructive",
"detached",
"determined",

"devastated",
"devilish",
"devious",
"devoted",
"different",
"dirty",
"disappointed",
"discarded",
"discombobulated",

"disconnected",
"discouraged",
"diseased",
"disenchanted",
"disgruntled",
"disgusted",
"disillusioned",
"disoriented",
"distant",
"distracted",
"distraught",
"disturbed",
"ditched",
"ditzy",
"divine",
"dizzy",
"dodgy",
"domestic",
"done",
"doomed",
"dorky",
"doubtful",
"dour",
"down",
"drained",
"dramatic",
"dreamy",
"driven",
"drowsy",
"drunk",
"dry",
"ducky",
"dull",
"dumb",
"eager",
"eccentric",
"ecstatic",
"edgy",
"eek!",
"effervescent",
"eh",
"elated",
"electric",
"electrified",
"embarrassed",
"emotional",
"emotionless",
"empathetic",
"empowered",
"empty",
"enamored",
"enchanted",
"encouraged",
"energetic",
"energized",
"enigmatic",
"enlightened",
"enraged",
"enraptured",
"enthralled",
"envious",
"erotic",
"ethereal",
"euphoric",
"evil",
"exasperated",
"excellent",
"excited",
"excluded",
"exhausted",
"exotic",
"expectant",
"experimental",
"explosive",
"exuberant",
"fabulous",
"faded",
"fake",
"famished",
"fancy",
"fantastic",
"fat",
"fatigued",
"fed up",
"feisty",
"feline",
"festive",
"fetching",
"feverish",
"fickle",
"fidgety",
"fine",
"finite",
"fired up",
"flabbergasted",
"flashy",
"flattered",
"flighty",
"flippant",
"flirty",
"fluffy",
"flummoxed",
"flustered",
"focused",
"foggy",
"foolish",
"forgetful",
"forgiving",
"forgotten",
"forsaken",
"fortuitous",
"foxy",
"fragile",
"frantic",
"frazzled",
"freaked",
"freaky",
"free",
"freezing",
"fresh",
"friendly",
"frightened",
"frisky",
"frozen",
"fruity",
"frumpy",
"frustrated",
"fulfilled",
"full",
"fun",
"funky",
"funny",
"furious",
"geeky",
"generous",
"genki",
"giddy",
"giggly",
"girly",
"glad",
"glamorous",
"gleeful",
"gloomy",
"glorious",
"glowing",
"glum",
"goofy",
"gorgeous",
"gothic",
"grand",
"grateful",
"great",
"greedy",
"groggy",
"groovy",
"grouchy",
"grr",
"grumpy",
"guilty",
"happy",
"hardcore",
"hated",
"hateful",
"haunted",
"heartbroken",
"heavenly",
"helpful",
"helpless",
"heroic",
"hesitant",
"high",
"hip",
"hollow",
"homesick",
"hopeful",
"hopeless",
"horny",
"horrible",
"hostile",
"hot",
"humbled",
"humiliated",
"hungover",
"hungry",
"hurt",
"hyper",
"hyperactive",
"hypocritical",
"hysterical",
"icky",
"idiotic",
"ignorant",
"ignored",
"illuminated",
"imaginative",
"immature",
"impatient",
"impish",
"important",
"impressed",
"inadequate",
"incomplete",
"incredible",
"incredulous",
"indecisive",
"indulgent",
"industrious",
"infatuated",
"inferior",
"infinite",
"infuriated",
"innocent",
"inquisitive",
"insane",
"insatiable",
"insecure",
"insightful",
"insignificant",
"inspired",
"insulted",
"intellectual",
"intelligent",
"interested",
"intimidated",
"intoxicated",
"intrigued",
"introspective",
"inventive",
"invincible",
"invisible",
"irked",
"irritable",
"irritated",
"isolated",
"jaded",
"jazzed",
"jealous",
"jiggy",
"jinxed",
"jittery",
"jolly",
"joyful",
"jubilant",
"jumbled",
"kawaii",
"keen",
"kinky",
"lame",
"lazy",
"lethargic",
"liberated",
"lifeless",
"listless",
"livid",
"lonely",
"longing",
"loopy",
"lost",
"loud",
"lousy",
"lovable",
"loved",
"lovely",
"lovesick",
"lovestruck",
"loving",
"loyal",
"lucky",
"lustful",
"mad",
"magical",
"malicious",
"manipulative",
"marvelous",
"masochistic",
"mature",
"mean",
"medicated",
"melancholy",
"mellow",
"melodramatic",
"mercurial",
"merry",
"miffed",
"misanthropic",
"mischievous",
"miserable",
"moody",
"mopey",
"morbid",
"morose",
"mortified",
"motivated",
"mushy",
"musical",
"mysterious",
"mystified",
"naive",
"naked",
"narcissistic",
"nasty",
"natural",
"naughty",
"nauseous",
"neglected",
"nerdy",
"nervous",
"neurotic",
"neutral",
"nonchalant",
"nostalgic",
"numb",
"oblivious",
"obnoxious",
"obscene",
"obsessed",
"optimistic",
"organized",
"orgasmic",
"outgoing",
"outraged",
"overjoyed",
"overloaded",
"overstimulated",
"overwhelmed",
"overworked",
"pained",
"panicked",
"paranoid",
"passionate",
"passive",
"pathetic",
"patient",
"peaceful",
"peachy",
"peeved",
"pensive",
"peppy",
"perfect",
"perky",
"perplexed",
"perturbed",
"perverted",
"pessimistic",
"petrified",
"philosophical",
"pi",
"pink",
"pissed",
"pissed off",
"pissy",
"placid",
"playful",
"pleasant",
"pleased",
"pmsy",
"poetic",
"pooped",
"popular",
"positive",
"pouty",
"powerful",
"powerless",
"precious",
"preppy",
"pressured",
"pretty",
"productive",
"protective",
"proud",
"psyched",
"psychic",
"psycho",
"psychotic",
"pure",
"puzzled",
"queasy",
"quiet",
"quirky",
"quixotic",
"rad",
"radiant",
"rambunctious",
"random",
"randy",
"raunchy",
"ready",
"rebellious",
"reborn",
"recalcitrant",
"reclusive",
"reflective",
"refreshed",
"regal",
"regretful",
"rejected",
"rejuvenated",
"relaxed",
"relieved",
"religious",
"reluctant",
"reminiscent",
"renewed",
"repulsed",
"resentful",
"reserved",
"resigned",
"resourceful",
"rested",
"restless",
"rich",
"ridiculed",
"righteous",
"romantic",
"royal",
"rude",
"rushed",
"sad",
"sadistic",
"safe",
"salty",
"sane",
"sappy",
"sarcastic",
"sardonic",
"sassy",
"sated",
"satisfied",
"saturnine",
"saucy",
"scandalous",
"scared",
"scattered",
"schizophrenic",
"screwed",
"secretive",
"secure",
"sedated",
"seductive",
"self-conscious",
"selfish",
"sensitive",
"sensual",
"sentimental",
"serene",
"serious",
"sexy",
"shady",
"shaken",
"shallow",
"shattered",
"sheepish",
"shifty",
"shiny",
"shocked",
"shy",
"sick",
"silly",
"sinful",
"sinister",
"smiley",
"smitten",
"smooth",
"smug",
"snazzy",
"sneaky",
"sober",
"sorrowful",
"sour",
"spacey",
"spastic",
"speechless",
"spiffy",
"spiteful",
"spoiled",
"spontaneous",
"spunky",
"stoked",
"stoned",
"stressed",
"strong",
"stubborn",
"stumped",
"stunned",
"stunning",
"stupid",
"stylish",
"subdued",
"sublime",
"submissive",
"successful",
"sullen",
"superb",
"surly",
"surprised",
"surreal",
"suspicious",
"swamped",
"swanky",
"sweet",
"swell",
"sympathetic",
"talented",
"talkative",
"tearful",
"tenacious",
"tense",
"terrible",
"thoughtful",
"thrilled",
"tipsy",
"tired",
"torn",
"tortured",
"touchy",
"toxic",
"tragic",
"tranquil",
"trapped",
"tricky",
"trippy",
"triumphant",
"troubled",
"twisted",
"twitchy",
"twitterpated",
"ugh",
"undecided",
"uneasy",
"unfulfilled",
"unhappy",
"unique",
"unknown",
"unloved",
"unlucky",
"unmotivated",
"unsatisfied",
"unsettled",
"unstable",
"unsure",
"unwanted",
"upbeat",
"uplifted",
"upset",
"useful",
"useless",
"vain",
"vengeful",
"vexed",
"vibrant",
"vicious",
"victorious",
"villainous",
"vindictive",
"violated",
"violent",
"virtuous",
"vulnerable",
"wacky",
"wanted",
"wasted",
"weak",
"weary",
"weepy",
"weird",
"whatever",
"whimsical",
"whiney",
"wicked",
"wild",
"wired",
"wise",
"wishful",
"wistful",
"witchy",
"withdrawn",
"witty",
"wonderful",
"woozy",
"worn",
"worried",
"worthless",
"wounded",
"wretched",
"wrong",
"yucky",
"yummy",
"zany",
"zapped",
"zealous",
"zoned",
"zonked" //No comma on last line
];

if(document.modifyForm){
      var iMoodTable=document.modifyForm.personaltext.parentNode.parentNode.parentNode.parentNode.parentNode;
      var iMoodDiv=document.createElement('div');
      iMoodDiv.innerHTML='<table cellpadding="2" cellspacing="2" border="0"><tr><td width="154" valign="top"><font size="-1">Mood:</font></td><td width="245"><font size="-1" id="iMoodFont"></font></td><td width="245"><font size="-2">If you wish to display a mood, select it here.</font></td></tr></table>';
      iMoodTable.parentNode.insertBefore(iMoodDiv, iMoodTable);
      var iMoodFont=document.getElementById('iMoodFont');
      var iMoodSelect=document.createElement('select');
      var iMoodText=document.modifyForm.personaltext;
      iMoodSelect.options[0]=new Option('Mood');
      for(i=0;i<iMoodList.length;i++){
            iMoodSelect.options[iMoodSelect.length]=new Option(iMoodList[i]);
      }
      if(iMoodText.value.match(/\[Mo0:(\d+)\]/)){
            iMoodSelect.selectedIndex=RegExp.$1;
            iMoodText.value=iMoodText.value.replace(/\[Mo0:(\d+)\]/g, '');
      }
      iMoodFont.appendChild(iMoodSelect);
      if(document.addEventListener){
            document.modifyForm.addEventListener('submit', function(){
                  iMoodText.value=iMoodText.value+'[Mo0:'+iMoodSelect.selectedIndex+']';
            }, false);
      }
      else{
            document.modifyForm.attachEvent('onsubmit', function(){
                  iMoodText.value=iMoodText.value+'[Mo0:'+iMoodSelect.selectedIndex+']';
            });
      }
}
if(location.href.match(/action=(display|viewprofile|(user)?recent|calendarview|search2|pmview|)/) || location.href.match(/index.cgi$/) && document.title.match(/Preview/) && document.postForm){
      var iTd=document.getElementsByTagName('td');
      for(i=0;i<iTd.length;i++){
            if(iTd.item(i).width=="20%" && iTd.item(i).className.match(/windowbg(2)?/) && iTd.item(i).vAlign=="top" && iTd.item(i).innerHTML.match(/member is/) && iTd.item(i).innerHTML.match(/\[Mo0:(\d+)\]/)){
                  if(RegExp.$1>0){
                        var iMoodDisplay=document.createElement('div');
                        iMoodDisplay.innerHTML='Mood: '+iMoodList[RegExp.$1-1];
                        iTd.item(i).appendChild(iMoodDisplay);
                  }
                  iTd.item(i).innerHTML=iTd.item(i).innerHTML.replace(/\[Mo0:(\d+)\]/g, '');
            }
      }
}

//-->