
	
$(document).ready(function() {	
	
	
	var MFname = new Array(
	"Aaro",
	"Aaron",
	"Abraham",
	"Adam",
	"Adrian",
	"Alastor",
	"Alban",
	"Alec",
	"Alexander",
	"Alistair",
	"Alonzo",
	"Alphonse",
	"Alucard",
	"Amadeus",
	"Ambrosius",
	"Andre",
	"Angel",
	"Angelo",
	"Angelus",
	"Anthony",
	"Anton",
	"Antonius",
	"Aramis",
	"Ariel",
	"Artemis",
	"Armand",
	"Ash",
	"Athanasius",
	"Athos",
	"Auguste",
	// B Male Names
	"Balthazar",
	"Barnabas",
	"Bartholomew",
	"Basil",
	"Bela",
	"Blade",
	"Blake",
	"Blaze",
	"Boris",
	"Bram",
	"Brandon",
	// C Male Names
	"Cain",
	"Caius",
	"Caliban",
	"Calyx",
	"Carlisle",
	"Caspar",
	"Cassius",
	"Castor",
	"Caesar",
	"Cezar",
	"Chaos",
	"Charles",
	"Christian",
	"Christoph",
	"Christopher",
	"Cinder",
	"Cole",
	"Connor",
	"Conrad",
	"Corvus",
	"Cornelius",
	"Cory",
	"Crimson",
	"Crispin",
	"Crow",
	// D Male Names
	"Dagger",
	"Dagon",
	"Damian",
	"Damon",
	"Dante",
	"Darien",
	"Darius",
	"Darren",
	"David",
	"Dean",
	"Demetrius",
	"Devin",
	"Devlin",
	"Dexter",
	"Dirk",
	"Discord",
	"Donovan",
	"Dorian",
	"Doyle",
	"Draco",
	"Drake",
	"Draven",
	"Durante",
	"Dusk",
	// E Male Names
	"Edmund",
	"Edward",
	"Edgar",
	"Elijah",
	"Emery",
	"Enoch",
	"Erastus",
	"Erebos",
	"Eric",
	"Eros",
	"Ethan",
	// F Male Names
	"Forest",
	"Frederick",
	"Frey",
	// G Male Names
	"Gabriel",
	"Gaius",
	"Gareth",
	"Garrick",
	"Gregor",
	"Gregory",
	"Gethen",
	"Griffin",
	// H Male Names
	"Hadrian",
	"Hawk",
	"Hawke",
	"Heathcliffe",
	"Hector",
	"Hesperos",
	// I Male Names
	"Iago",
	"Ian",
	"Ignatius",
	"Isaac",
	"Ishmael",
	// J Male Names
	"Jacob",
	"Jaden",
	"James",
	"Janus",
	"Jareth",
	"Jeremiah",  
	"Jericho",
	"Jasper",
	"Jett",
	"John",
	"Joshua",
	"Judas",
	// K Male Names
	"Kether",
	"Kieran",
	"Knight",
	// L Male Names
	"Lance",
	"Laurent",
	"Lawrence",
	"Lazarus",
	"Leo",
	"Leon",
	"Leonard",
	"Lestat",
	"Liam",
	"Locke",
	"Louis",
	"Lucentio",
	"Lucian",
	"Lucius",
	"Lysander",
	// M Male Names
	"Magnus",
	"Malachi",
	"Marcellus",
	"Marcus",
	"Mathias",
	"Maximus",
	"Merlin",
	"Melchior",
	"Michael",
	"Modoc",
	"Mordecai",
	"Mordred",
	"Morgan",
	"Morpheus",
	"Mortimer",
	// N Male Names
	"Nathaniel",
	"Nero",
	"Nicola",
	"Nicholai",
	"Nicholas",
	"Nicodemus",
	"Noctis",
	// O Male Names
	"Oberon",
	"Obsidian",
	"Oleander",
	"Onyx",
	"Orion",
	"Orpheus",
	"Osiris",
	"Othello",
	// P Male Names
	"Paris",
	"Peirs",
	"Phoenix",
	"Porthos",
	// Q Male Names
	"Quentin",
	// R Male Names
	"Radu",
	"Raoul",
	"Raul",
	"Raphael",
	"Remus",
	"Richard",
	"Robert",
	"Roderick",
	"Romaine",
	"Romulus",
	"Rowan",
	"Rubeus",
	// S Male Names
	"Salazar",
	"Salem",
	"Samuel",
	"Santiago",
	"Saphir",
	"Sebastian",
	"Seraphimo",
	"Seth",
	"Severin",
	"Seymour",
	"Shadow",
	"Silas",
	"Silvan",
	"Simon",
	"Smoke",
	"Solomon",
	"Stephan",
	"Stone",
	// T Male Names
	"Talon",
	"Tempest",
	"Thanatos",
	"Thorne",
	"Trent",
	"Trevor",
	"Tristan",
	"Tybalt",
	// U Male Names
	"Uriah",
	// V Male Names
	"Valerian",
	"Vergil",
	"Victor",
	"Vincent",
	"Vlad",
	"Vladimir",
	// W Male Names
	"Walter",
	"William",
	"Winter",
	"Wolf",
	"Wolfgang",
	// X Male Names
	"Xander",
	"Xanthos",
	"Xavier",
	"Xerxes",
	// Z Male Names
	"Zachariah",
	"Zadok",
	"Zephyr"
	)
	
	var FFname = new Array(
	"Abigail",
	"Agatha",
	"Agony",
	"Alcina",
	"Alexandra",
	"Alexandria",
	"Alice",
	"Alvira",
	"Amanita",
	"Amaranth",
	"Amarantha",
	"Ambrosia",
	"Amelia",
	"Amethyst",
	"Anastasia",
	"Andromeda",
	"Angel",
	"Angela",
	"Angelica",
	"Angelique",
	"Anna",
	"Arachne",
	"Aradia",
	"Aria",
	"Arianna",
	"Ariadne",
	"Ariel",
	"Artemis",
	"Artemisia",
	"Astrea",
	"Astrid",
	"Astoria",
	"Audrey",
	"Autumn",
	"Aurora",
	// B Female Names
	"Barbara",
	"Beatrix",
	"Bella",
	"Belladonna",
	"Belle",
	"Bernadette",
	"Beryl",
	"Bianca",
	"Blanche",
	"Bliss",
	// C Female Names
	"Calliope",
	"Callypso",
	"Calpurnia",
	"Camilla",
	"Carlotta",
	"Carmilla",
	"Caroline",
	"Carrie",
	"Cassandra",
	"Cassiopeia",
	"Catherine",
	"Cecelia",
	"Celeste",
	"Celia",
	"Charlotte",
	"Christine",
	"Circe",
	"Claire",
	"Clara",
	"Claudia",
	"Cleopatra",
	"Columbia",
	"Coraline",
	"Cordelia",
	"Cornelia",
	"Crystal",
	// D Female Names
	"Daphne",
	"Daria",
	"Darla",
	"Dawn",
	"Delia",
	"Delilah",
	"Della",
	"Demetria",
	"Demonica",
	"Desdemona",
	"Desire",
	"Diana",
	"Diane",
	"Dolores",
	"Dora",
	"Dove",
	"Drusilla",
	"Dusk",
	// E Female Names
	"Ebony",
	"Echo",
	"Eden",
	"Elanore",
	"Electra",
	"Eldora",
	"Elena",
	"Eliza",
	"Elizabeth",
	"Eloise",
	"Elphaba",
	"Elspeth",
	"Elsinore",
	"Elvira",
	"Ember",
	"Emilie",
	"Emily",
	"Ephemera",
	"Eranthe",
	"Eris",
	"Esmerelda",
	"Estrella",
	"Esther",
	"Eterna",
	"Eternity",
	"Eudora",
	"Euphemia",
	"Eva",
	"Evalina",
	"Evangeline",
	"Eve",
	// F Female Names
	"Faith",
	// G Female Names
	"Gabriella",
	"Gabrielle",
	"Garnet",
	"Genevieve",
	"Gloria",
	"Godiva",
	// H Female Names
	"Hathor",
	"Hecate",
	"Hecuba",
	"Helen",
	"Helena",
	"Hepzibah",
	"Hesperia",
	// I Female Names
	"Ianthe",
	"Inez",
	"Ione",
	"Infinity",
	"Iris",
	"Isadora",
	"Isis",
	"Isabeau",
	"Isabella",
	"Isabelle",
	"Istar",
	"Isolde",
	"Ivy",
	"Izora",
	// J Female Names
	"Jane",
	"Jeanette",
	"Jinx",
	"Jocasta",
	"Josephine",
	"Julia",
	"Juliet",
	// K Female Names
	"Katrina",
	// L Female Names
	"Lavinia",
	"Layla",
	"Leona",
	"Lenora",
	"Lenore",
	"Leona",
	"Libitina",
	"Ligeia",
	"Lilah",
	"Lilith",
	"Lillian",
	"Lily",
	"Lolita",
	"Lorraine",
	"Lucinda",
	"Lucretia",
	"Lucy",
	"Luna",
	"Lydia",
	"Lyra",
	// M Female Names
	"Magdalena",
	"Madeline",
	"Magenta",
	"Mara",
	"Marcella",
	"Margaret",
	"Marguerita",
	"Maria",
	"Marie",
	"Marissa",
	"Martha",
	"Mary",
	"Medea",
	"Medusa",
	"Melanie",
	"Melanthe",
	"Melinda",
	"Melantha",
	"Mercedes",
	"Mercy",
	"Merula",
	"Mildred",
	"Mina",
	"Minerva",
	"Miranda",
	"Miriam",
	"Moira",
	"Mordea",
	"Morgan",
	"Morgana",
	"Morticia",
	// N Female Names
	"Nadia",
	"Nadine",
	"Nerezza",
	"Nora",
	"Nyx",
	// O Female Names
	"Obsidia",
	"Octavia",
	"Odessa",
	"Olivia",
	"Opal",
	"Ophelia",
	// P Female Names
	"Pandora",
	"Patience",
	"Pearl",
	"Penelope",
	"Perenelle",
	"Permelia",
	"Persephone",
	"Pixie",
	"Phoenix",
	"Poppy",
	"Priscilla",
	"Prudence",
	// R Female Names
	"Rachel",
	"Rain",
	"Raven",
	"Rebecca",
	"Regina",
	"Rosa",
	"Rose",
	"Rosemary",
	"Rowena",
	"Ruby",
	// S Female Names
	"Sabrina",
	"Salem",
	"Samantha",
	"Sangria",
	"Sarah",
	"Scarlet",
	"Selena",
	"Selene",
	"Seraphina",
	"Serena",
	"Serenity",
	"Shannon",
	"Silver",
	"Simone",
	"Sophia",
	"Star",
	"Sybil",
	"Sylvia",
	// T Female Names
	"Tabitha",
	"Tara",
	"Tempest",
	"Theda",
	"Theresa",
	"Thora",
	"Threnody",
	"Trinity",
	"Twilight",
	// U Female Names
	"Umbra",
	// V Female Names
	"Vaitiare",
	"Valerie",
	"Vanessa",
	"Verna",
	"Verona",
	"Veronica",
	"Vesta",
	"Victoria",
	"Violet",
	// W Female Names
	"Whisper",
	"Willow",
	"Winter",
	// X Female Names
	"Xenobia",
	// Z Female Names
	"Zillah",
	"Zinnia",
	"Zoe"
	)
	
	var Lname = new Array(
	"Adams",
	"Addams",
	"Argent",
	// B Surnames
	"Balfour",
	"Barker",
	"Batby",
	"Bathory",
	"Batsford",
	"Batson",
	"Batstone",
	"Batt",
	"Black",
	"Blackbird",
	"Blackburn",
	"Blackcat",
	"Blacklock",
	"Blackmoore",
	"Blackstone",
	"Blackthorn",
	"Blackwell",
	"Blackwing",
	"Blackwolf",
	"Blackwood",
	"Blair",
	"Blood",
	"Bloodgood",
	"Bloodhart",
	"Bloodmoore",
	"Bloodsaw",
	"Bloodstone",
	"Bloodsworth",
	"Bloodwine",
	"Bloodworth",
	"Boggart",
	"Boggarty",
	"Bonebrake",
	"Bonehart",
	"Bonehill",
	"Bonella",
	"Boneman",
	"Bones",
	"Bonesmith",
	"Bonewits",
	"Borden",
	"Broom",
	"Broomwood",
	"Burton",
	"Byron",
	// C Surnames
	"Cackler",
	"Cain",
	"Calamity",
	"Castle",
	"Castleton",
	"Cemetary",
	"Chill",
	"Chillingwood",
	"Cobweb",
	"Coffin",
	"Coffinberry",
	"Coffins",
	"Cold",
	"Coldbridge",
	"Coldeman",
	"Coldstone",
	"Coldwell",
	"Cole",
	"Collins",
	"Constantine",
	"Corbett",
	"Corbin",
	"Corpse",
	"Corpseley",
	"Creak",
	"Creakey",
	"Creep",
	"Creeper",
	"Creeps",
	"Crepsley",
	"Crimson",
	"Cross",
	"Crossway",
	"Crosswicks",
	"Crow",
	"Crowden",
	"Crowe",
	"Crowley",
	// D Surnames
	"Darcy",
	"Dark",
	"Darke",
	"Darken",
	"Darkenwald",
	"Darkes",
	"Darkmoore",
	"Darkwell",
	"Darkwood",
	"Deadman",
	"Deadmond",
	"Deadmore",
	"Deadrick",
	"Deadwood",
	"DeAngelus",
	"Dearborn",
	"Death",
	"Deathridge",
	"Deathrow",
	"December",
	"Delambre",
	"DeLioncourt",
	"Demond",
	"Demonde",
	"Demonte",
	"DeMort",
	"DeRavin",
	"Devall",
	"Devane",
	"DeVille",
	"DeWinter",
	"Dracul",
	"Drago",
	"Drake",
	"Dread",
	"Drear",
	"Dreary",
	"DuLac",
	"Dumaine",
	"Dunsany",
	// E Surnames
	"Eldritch",
	// F Surnames
	"Fang",
	"Fanger",
	"Fate",
	"Faust",
	"February",
	"Fear",
	"Fearfield",
	"Fears",
	"Frankenstein",
	"Frost",
	"Fury",
	// G Surnames
	"Ghoul",
	"Ghoulson",
	"Ghost",
	"Ghosten",
	"Ghostley",
	"Giger",
	"Goblin",
	"Goth",
	"Gotham",
	"Gothard",
	"Gothberg",
	"Gravedigger",
	"Gravemaker",
	"Graves",
	"Gravesen",
	"Gravesgard",
	"Grey",
	"Greyson",
	"Greystone",
	"Grimmauld",
	"Grimm",
	"Grimmer",
	"Grimmes",
	"Grimmins",
	"Grimsbro",
	"Grimsby",
	"Grimsman",
	"Grimwood",
	// H Surnames
	"Harker",
	"Hart",
	"Haunt",
	"Haunter",
	"Haunton",
	"Haunty",
	"Hawk",
	"Hawke",
	"Havelock",
	"Heart",
	"Heartstrom",
	"Hemlock",
	"Hex",
	"Hexem",
	"Hexter",
	"Hexwood",
	"Hollow",
	"Holmes",
	"Holmwood",
	"Hunter",
	"Hyde",
	// J Surnames
	"January",
	"Jekyll",
	// K Surnames
	"Kilgore",
	"Killar",
	"Killewich",
	"Killings",
	// L Surnames
	"LaCroix",
	"Lapidus",
	"LaRue",
	"LeFay",
	"LeStrange",
	"LeStrange",
	"Locke",
	"London",
	"Loveless",
	"Lovelock",
	"Lovett",
	"Lycan",
	// M Surnames
	"MacBeth",
	"Mandrake",
	"Marrow",
	"Masters",
	"Mist",
	"Misteri",
	"Moon",
	"Moones",
	"Moonie",
	"Moonly",
	"Monet",
	"Monster",
	"Monstery",
	"Montague",
	"Montresor",
	"Morgan",
	"Moriarty",
	"Murdoc",
	"Murray",
	"Morrow",
	"Mort",
	"Mortella",
	"Munster",
	"Mysterios",
	// N Surnames
	"Night",
	"Nightchase",
	"Nightengale",
	"Nightingdale",
	"Nightman",
	"Nightwalker",
	"Nightwine",
	"Nocton",
	"Nox",
	// O Surnames
	"October",
	"Odd",
	"Odder",
	"Oddman",
	"Oddson",
	"Owl",
	"Owley",
	"Owlford",
	"Owlsey",
	// P Surnames
	"Pale",
	"Pale",
	"Paine",
	"Pains",
	"Payne",
	"Plague",
	"Poe",
	"Poe",
	"Poe",
	"Pyre",
	"Pyre",
	"Pyre",
	// R Surnames
	"Rain",
	"Raven",
	"Ravencraft",
	"Ravendale",
	"Ravenhorst",
	"Ravensloft",
	"Ravenway",
	"Rayne",
	"Reaper",
	"Redbone",
	"Redcross",
	"Redd",
	"Redfern",
	"Redgrave",
	"Redmond",
	"Redwine",
	"Redwolf",
	"Renfield",
	"Riven",
	"Rookwood",
	"Roth",
	"Ripley",
	"Ripper",
	// S Surnames
	"Salvatore",
	"Scar",
	"Scare",
	"Scarebrook",
	"Scares",
	"Scarey",
	"Scarlati",
	"Setzer",
	"Seward",
	"Shade",
	"Shademoore",
	"Shadow",
	"Shadows",
	"Shadowton",
	"Shelley",
	"Skeleton",
	"Skelinen",
	"Skellington",
	"Skelton",
	"Skull",
	"Skullman",
	"Specter",
	"Spectre",
	"Spellman",
	"Spider",
	"Spinner",
	"Spirite",
	"Spook",
	"Spook",
	"Spook",
	"Song",
	"Snow",
	"St. Claire",
	"St. Germaine",
	"Steele",
	"Sterling",
	"Stoker",
	"Storm",
	"Storme",
	"Stormfelt",
	"Stormwind",
	"Stormyr",
	"Stone",
	"Stonewall",
	"Strange",
	"Strangeman",
	"Strangeway",
	"Striker",
	"Swan",
	"Swann",
	// T Surnames
	"Teeth",
	"Tombs",
	"Tombstone",
	"Towers",
	"Trick",
	// V Surnames
	"Valdemar",
	"Valentine",
	"Valentino",
	"Vamper",
	"Vamprine",
	"Vampyr",
	"Van Allen",
	"Van Gogh",
	"Van Halen",
	"Van Helgen",
	"Van Helsing",
	"Voorhees",
	// W Surnames
	"Webb",
	"Weird",
	"Weird",
	"West",
	"Westenra",
	"White",
	"Whitebone",
	"Whitemoon",
	"Whitewing",
	"Wild",
	"Wilde",
	"Winchester",
	"Windgate",
	"Windholm",
	"Windward",
	"Wing",
	"Wingblade",
	"Wingfield",
	"Winter",
	"Winterford",
	"Winterrose",
	"Winterwood",
	"Winters",
	"Witche",
	"Witcher",
	"Witchery",
	"Witchey",
	"Witchman",
	"Wither",
	"Wolf",
	"Wolfen",
	"Wolfmann",
	"Wolfram",
	"Wolfstone",
	"Wolftooth"
	)
	
	var r=0
	var i=0

	
	$('#gerar').click(function() {

		r=Math.floor(Math.random() * Lname.length); 
		if($('#sexo').val() == 'M') {
			i=Math.floor(Math.random() * MFname.length);
			vname = MFname[i] + ' ' + Lname[r];
			$('#nome').text(vname); 
			
			// not knowing your app, I'm just guessing here:
			var twitterParams = { 
			    text:'meu nome de vampiro é '+vname+', qual é o seu? #vampiro'
			}; 
			$('#tweet').attr('href', "http://twitter.com/share?" + $.param(twitterParams));
			
			
			
			GenPlot();
			$("#resultado").fadeIn("slow");
			
		} else if($('#sexo').val() == 'F') { 
			i=Math.floor(Math.random() * FFname.length);
			vname = FFname[i] + ' ' + Lname[r];
			$('#nome').text(vname); 
			GenPlot();
			$("#resultado").fadeIn("slow");
		}
		
	});
	
	
	
	
	var aVocab = new Array();
	
	var intIncr
	var intCat
	
	intCat =0
	intIncr=0
	
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="M"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="Este vampiro tem olhos <eyecolor>, tem pele <skincolor> e cabelo <haircolor> <hairtype> <hairstyle>. Ele veste <bottom>, <maletop> e <shoes>. Ele também costuma usar <acc>. Ele <trivstuff>."

	intCat++
	intIncr=0	
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="F"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="Este vampiro tem olhos <eyecolor>, tem pele <skincolor> e cabelo <haircolor> <hairstyle> <hairtype>. Ela veste <femaleclothes>. Ela também costuma usar <acc>. Ela <trivstuff>."
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="haircolor"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="ruivo"
	aVocab[intCat][1][intIncr++]="negro"
	aVocab[intCat][1][intIncr++]="loiro"
	aVocab[intCat][1][intIncr++]="castanho"
	aVocab[intCat][1][intIncr++]="castanho-escuros"
	aVocab[intCat][1][intIncr++]="branco"
	aVocab[intCat][1][intIncr++]="castanho claro"
	aVocab[intCat][1][intIncr++]="plateado"
	aVocab[intCat][1][intIncr++]="vermelho"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="eyecolor"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="azuis"
	aVocab[intCat][1][intIncr++]="castanhos"
	aVocab[intCat][1][intIncr++]="castanho-escuros"
	aVocab[intCat][1][intIncr++]="acinzentados"
	aVocab[intCat][1][intIncr++]="verdes"
	aVocab[intCat][1][intIncr++]="pretos"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="skincolor"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]=" escura"
	aVocab[intCat][1][intIncr++]=" muito branca"
	aVocab[intCat][1][intIncr++]=" pálida"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="hairtype"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="liso"
	aVocab[intCat][1][intIncr++]="ondulado"
	aVocab[intCat][1][intIncr++]="cacheado"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="hairstyle"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="trançado"
	aVocab[intCat][1][intIncr++]="curtos"
	aVocab[intCat][1][intIncr++]="em uma longa trança"
	aVocab[intCat][1][intIncr++]="em um longo rabo de cavalo"
	aVocab[intCat][1][intIncr++]="compridos"
	aVocab[intCat][1][intIncr++]="preso atrás da cabeça"
	aVocab[intCat][1][intIncr++]="até os ombros"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="acc"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="<jewelry>, <hat>, e <coat>"
	aVocab[intCat][1][intIncr++]="<coat>, <hat>, e <jewelry>"
	aVocab[intCat][1][intIncr++]="<coat>, <jewelry>, e <jewelry>"
	aVocab[intCat][1][intIncr++]="<jewelry> e <coat>"
	aVocab[intCat][1][intIncr++]="<hat> e <coat>"
	aVocab[intCat][1][intIncr++]="<jewelry> e <hat>"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="maletop"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="<bothtop>"
	aVocab[intCat][1][intIncr++]="<MOtop>"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="femalebottom"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="<bottom>"
	aVocab[intCat][1][intIncr++]="saia"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="femaleclothes"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="<femalebottom>, <femaletop>, e <shoes>"
	aVocab[intCat][1][intIncr++]="<dress> e <shoes>"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="femaletop"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="<bothtop>"
	aVocab[intCat][1][intIncr++]="<FOtop>"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="dress"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="um vestido longo"
	aVocab[intCat][1][intIncr++]="um vestido estilo Vitoriano"
	aVocab[intCat][1][intIncr++]="um vestido Medieval"
	aVocab[intCat][1][intIncr++]="um vestido"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="bothtop"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="uma blusa"
	aVocab[intCat][1][intIncr++]="uma camisa com mangas <length>"
	aVocab[intCat][1][intIncr++]="uma túnica com mangas <length>"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="MOtop"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="<bothtop>"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="FOtop"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="um espartilho"
	aVocab[intCat][1][intIncr++]="<bothtop>"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="bottom"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="calças"

	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="hat"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="um chapéu-coco"
	aVocab[intCat][1][intIncr++]="uma cartola"
	aVocab[intCat][1][intIncr++]="um chapéu de abas largas"
	aVocab[intCat][1][intIncr++]="um chapéu de penas"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="jewelry"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="broche <jtype>"
	aVocab[intCat][1][intIncr++]="anel <jtype>"
	aVocab[intCat][1][intIncr++]="brincos de <earringtype>"
	aVocab[intCat][1][intIncr++]="colar <jtype>"
	aVocab[intCat][1][intIncr++]="várias jóias"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="shoes"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="botas antigas de <textiletype>"
	aVocab[intCat][1][intIncr++]="sapatos antigos de <textiletype>"
	aVocab[intCat][1][intIncr++]="botas de <textiletype>"
	aVocab[intCat][1][intIncr++]="sapatos de <textiletype>"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="coat"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="uma capa"
	aVocab[intCat][1][intIncr++]="um capuz"
	aVocab[intCat][1][intIncr++]="um casaco de <textiletype>"
	aVocab[intCat][1][intIncr++]="uma capa de gola alta"
	aVocab[intCat][1][intIncr++]="uma jaqueta"
	aVocab[intCat][1][intIncr++]="um colete"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="textiletype"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="couro"
	aVocab[intCat][1][intIncr++]="pano"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="jtype"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="dourado"
	aVocab[intCat][1][intIncr++]="brilhante"
	aVocab[intCat][1][intIncr++]="prateado"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="earringtype"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="diamante"
	aVocab[intCat][1][intIncr++]="ouro"
	aVocab[intCat][1][intIncr++]="pérola"
	aVocab[intCat][1][intIncr++]="rubi"
	aVocab[intCat][1][intIncr++]="safira"
	aVocab[intCat][1][intIncr++]="prata"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="trivstuff"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="<flaw>, <trivia>, e é um <skill>"
	aVocab[intCat][1][intIncr++]="<flaw> e <trivia>"
	aVocab[intCat][1][intIncr++]="<flaw> e é um <skill>"
	aVocab[intCat][1][intIncr++]="<trivia> e é um <skill>"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="flaw"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="tem <number> cicatrizes visíveis"
	aVocab[intCat][1][intIncr++]="tem medo de água"
	aVocab[intCat][1][intIncr++]="é louco"
	aVocab[intCat][1][intIncr++]="é perigoso"
	aVocab[intCat][1][intIncr++]="é pertubado"
	aVocab[intCat][1][intIncr++]="tem várias manias excêntricas"
	aVocab[intCat][1][intIncr++]="guarda segredos terríveis"
	aVocab[intCat][1][intIncr++]="é tímido"
	aVocab[intCat][1][intIncr++]="gosta de intimidar os outros"
	aVocab[intCat][1][intIncr++]="gosta de colecionar antiguidades"	
	aVocab[intCat][1][intIncr++]="gosta de vinhos antigos"	
	aVocab[intCat][1][intIncr++]="teve um acidente que o incapacitou"
	aVocab[intCat][1][intIncr++]="desconfia de todos"
	aVocab[intCat][1][intIncr++]="é gago"
	aVocab[intCat][1][intIncr++]="é impulsivo"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="trivia"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="conheceu vários personagens históricos"
	aVocab[intCat][1][intIncr++]="tem um senso de humor mórbido"
	aVocab[intCat][1][intIncr++]="é temido em toda a Europa"
	aVocab[intCat][1][intIncr++]="é temido em toda a América do Sul"
	aVocab[intCat][1][intIncr++]="faz pouco tempo que é vampiro"
	aVocab[intCat][1][intIncr++]="é romântico"
	aVocab[intCat][1][intIncr++]="tem viajado por todo o mundo"
	aVocab[intCat][1][intIncr++]="gosta de ópera"
	aVocab[intCat][1][intIncr++]="gosta de teatro"
	aVocab[intCat][1][intIncr++]="é o líder de um grande clã"
	aVocab[intCat][1][intIncr++]="é o líder de um pequeno clã"
	aVocab[intCat][1][intIncr++]="gosta especialmente de sangue de virgens"
	aVocab[intCat][1][intIncr++]="tem olhar inocente"
	aVocab[intCat][1][intIncr++]="se recusa a tomar sangue humano"
	aVocab[intCat][1][intIncr++]="é cruel"
	aVocab[intCat][1][intIncr++]="está entre os vampiros mais antigos do mundo"
	
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="skill"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="artista <skillrate>"
	aVocab[intCat][1][intIncr++]="dançarino <skillrate>"
	aVocab[intCat][1][intIncr++]="caçador <skillrate>"
	aVocab[intCat][1][intIncr++]="líder <skillrate>"
	aVocab[intCat][1][intIncr++]="músico <skillrate>"
	aVocab[intCat][1][intIncr++]="poeta <skillrate>"
	aVocab[intCat][1][intIncr++]="cantor <skillrate>"
	aVocab[intCat][1][intIncr++]="guerreiro <skillrate>"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="skillrate"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="muito bom"
	aVocab[intCat][1][intIncr++]="excelente"
	aVocab[intCat][1][intIncr++]="nato"
	aVocab[intCat][1][intIncr++]="horrível"
	aVocab[intCat][1][intIncr++]="iniciante"
	
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="length"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="longas"
	aVocab[intCat][1][intIncr++]="médias"
	aVocab[intCat][1][intIncr++]="curtas"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="height"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="altas"
	aVocab[intCat][1][intIncr++]="baixas"
	
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="number"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]="vários"
	aVocab[intCat][1][intIncr++]="poucos"
	aVocab[intCat][1][intIncr++]="alguns"
	aVocab[intCat][1][intIncr++]="muitos"
	aVocab[intCat][1][intIncr++]="numerosos"
	
	//Leave to Copy!
	intCat++
	intIncr=0
	aVocab[intCat]= new Array();
	aVocab[intCat][0]="THIRD"
	aVocab[intCat][1] = new Array()
	aVocab[intCat][1][intIncr++]=""



	function GenNumber(nRange)
	{
                var iNumGen
		iNumGen = Math.round((Math.random() * nRange));

                return iNumGen;
	}

        function GetFrom(aArray)
	{
		var undefined
		var sReturn
		sReturn = aArray[GenNumber(aArray.length)];
		if (sReturn == undefined)
		{
			sReturn = GetFrom(aArray)
		}
		return sReturn
	}


	function GetArray(sArrayName)
	{
		for (var intLooper=0;intLooper <aVocab.length;intLooper++)
		{
			if (aVocab[intLooper][0]==sArrayName)
			{
				return aVocab[intLooper][1];
				break;
			}
		}
	}

	function ScanLine(sLine)
	{
		var iTagStart, iTagEnd
		var sKey

		if (sLine.indexOf("<") > -1)
		{
			iTagStart = sLine.indexOf("<");
			iTagEnd = sLine.indexOf(">");
			
			sKey = sLine.substr(iTagStart+1, iTagEnd-(iTagStart+1));

			sKey = GetFrom(GetArray(sKey))
			sLine = sLine.substr(0, iTagStart) + sKey + sLine.substr(iTagEnd+1, (sLine.length - iTagEnd))

		}
		

		if (sLine.indexOf("<") > - 1)
		{
			sLine = ScanLine(sLine)
		}

		return sLine;
	}


	function GenPlot()
	{

		if($('#sexo').val() == 'M') {
			sLine = GetFrom(GetArray("M"));
		} else {
			sLine = GetFrom(GetArray("F"));
		}

		sLine = ScanLine(sLine);
		
		$('#historia').text(sLine);

	}
	
	
	
	$('#sexo').dropkick();
	
	
});


