/*

Thi is the main javascript file for the Sinner Saint Burlesque site.

Written by Raymond Forbes

*/

var contentDivs = new Array();
var performerNick = new Array();
var performerBio = new Array();
var performerBioHS = new Array(); 
var performerBioTxt = new Array(); /* This is the text next to the headshot */

contentDivs[0] = document.getElementById ('mainContentDiv')
contentDivs[1] = document.getElementById ('bioDiv');
contentDivs[2] = document.getElementById ('contactDiv');
contentDivs[3] = document.getElementById ('calendarDiv');
contentDivs[4] = document.getElementById ('descriptionDiv');
contentDivs[5] = document.getElementById ('bookingDiv');
contentDivs[6] = document.getElementById ('sponsorsDiv');

performerBio["Jesse"] = "<h3>About Jesse Belle-Jones:</h3><b><i><p>Navigating a female body through academia and the world at large, Jesse Belle-Jones is a bluestocking bettie whose sultry, scholarly, scintillating acts are chock full of wit, humor, and dexterous dancing.</p></i></b><p>After years of performing and competing in Scottish Highland dance, Jesse worked as an instructor for Northwest Highland Dance Studios, training a new generation of competitors.</p><p>Throughout college and grad school she continued technique training and performance in ballet and modern dance.  She also studied vocal performance, earning a minor while she worked on her degrees in English Literature and Linguistics at Western Washington University.  Then, one day, she wandered into a burlesque show and her life was changed forever...</p><p>Her involvement in the Seattle burlesque community has exploded since her debut in 2007 as she enters her second year on the steering committee for BurlyCon and continues to be involved with Miss Indigo Blue's Academy of Burlesque.</p><p>As the newest member of Sinner Saint Burlesque, Jesse performs weekly at the Noc Noc, but has also been spotted dancing at Columbia City Theatre, The Triple Door, Can Can Kitchen & Cabaret, The Pink Door, and Everett's Blue Caboose Revue among other local venues as well as up and down the West coast.</p><p>Having graduated with her Master of Arts in Linguistics from the University of Washington in March 2009, Jesse now devotes all of her time to performance, study, and celebration of radical feminist sex-positive art.</p>";

performerBio["Patti"] = "<h3>About Patty Cupcake:</h3><b><i><p>Even at a young age Miss Patty Cupcake had an appetite for the spotlight.  She grew up accustomed to having all eyes on her as she took the stage as often as possible dabbling in everything from tap dancing, and ballet classes to jump roping and gymnastics</p></i></b><p>Wanting to the show the world what sweet sensations she was making, she expanded her creative craft.  Patty took part in a competitive dance team and competed all over the US.  Her favorite dance styles were tap and jazz.  Later, Patty took charge by filling the role as captain and choreographer for her high school dance team and showing the community what kind of creative concoctions she could come up with!</p><p>As Patty grew into her own, she felt a need to explore areas of dance that were more... decadent.  Her career in burlesque started in Miss Indigo Blue's Academy of Burlesque.  From the first class she took she was hooked and never looked back!  She took her naughty know-how to the next level by performing with the Glitzkrieg Burlesque Bombshells.  Later she took a daring dive into a new venture and became a member of Sinner Saint Burlesque.</p><p>Currently Patty is dancing with Sinner Saint Burlesque and is quickly earning a reputation for being a fun-filled, tantalizing treat on stage!  Frosted from head to toe she loves to create light-hearted, delightful routines.  Patty is the kind of sweet treat that you want to eat and guaranteed to leave you with scrumptious sensations.  She's all the fun with none of the calories, so come indulge yourself!</p>";
performerBio["Lolita"] = "<h3>About Lolita \"Ta Tas\" Valentino:</h3><b><i><p>Born and raised in Seattle, Lolita \"Tatas\" Valentino was born into a family of girls by a opera singing artist and a computer genius. Lolita’s world as a child was filled with Barbie’s, dress-up, and magical ponies. Her favorite color has always been glitter. She wanted to do burlesque before she even knew what it was!</p></i></b><p>Throughout her teenage years, Lolita spent much of her time painting and making her own clothes and pretending she lived in a different decade. Currently a senior at the University of Washington, printmaking has become a main love.</p><p>Lolita stumbled upon burlesque when she found an ad for Miss Indigo Blue’s Academy of Burlesque. While taking Burlesque 101, she also had a main role in the documentary “A Wink and a Smile” directed by Deirdre Timmons, a look into the lives of 10 women as they are experiencing the art of burlesque for the first time. Lolita instantly fell in love with the art. She took as many classes and workshops as she could held by Miss Indigo Blue and The Shanghai Pearl. Lolita is most interested in the expression of gender and creating obscure, theatrical scenarios for the stage. Bringing kitsch and comedy, her goal is to entertain. She also makes all her own costumes and head-dresses, which is a specialty of hers!</p><p>You can find Lolita at various venues around town, but you can mostly find her kicking her legs at the Noc Noc on Thursday nights with Sinner Saint Burlesque!</p>";
performerBio["Ember"] = "<h3>About Ember Divine:</h3><b><i><p>Ember was born and raised in the Midwest, where she spent most of her time learning the art of classical ballet.  From the age of 2 ½, she was dancing and performing, and she hasn’t stopped since.</p></i></b><p>Ember trained with such icons of ballet as Alexandra Danilova and Philip Jerry at the prestigious Summerfest School in Grand Rapids, Michigan.  When she was 14, she joined the Grand Rapids Ballet for three seasons, where she was featured in many roles that called for both strength and grace.  It was here that she began to learn the art of high-quality performance production, and the spark ignited a flair for performance that still burns.</p><p>Off to university, where Ember obtained a biological sciences degree while also co-producing, directing, and being a performing and contributing member of Impact Dance Theatre.  Ember’s love for dance and her fascination with the beautiful shapes of the human body intertwined, and her passions burned even brighter.</p><p>The mesmerizing pull of the Pacific Northwest brought Ember to a dance studio in Snohomish County, where she performed, taught, outfitted her teenaged students, and created dances and productions, for 11 years.  She’s studied Hawaiian, swing, Irish, hip hop, and tap, and continues to study tai chi, qigong, and yoga. Ember’s repertoire of choreography runs an amazing range of flavors.</p><p>  All this dancing was making Ember’s fire was burn hotter, and she began her journey into burlesque when she guided talented performer Dane Ballard in choreography for his very first boy-lesque act. Her own burlesque debut was in summer, 2008 with Sinner Saint in Las Vegas at the Miss Exotic World Burlesque competition.  Ember’s fires for dance, movement, and pretty ladies have since brought her talents to the stage at the Noc Noc, as a member of Sinner Saint. She enjoys mixing her disciplines thoroughly, and savoring every morsel, to fully appreciate the divine tastes of form and movement. And she loves to share her pleasures!</p>";
performerBio["Audrey"] = "<h3>About Audrey McManus:</h3><b><i><p>Audrey McManus is an East Coast transplant to the Emerald City who is still holding on to her dressed up and fast paced ways.  Growing up in a performing family with both parents doing community theater, singing show tunes and performing at weddings, Audrey and her two siblings were in showbiz at very young ages.  She was a poster child for a portrait company, an actress and tap dancer all before high school.</p></i></b><p>After graduating with a BFA in Sculpture and Art History, Audrey put her Fine Arts degree to work mainly in performance and guerrilla art pieces that are best not discussed in writing on public forums.  In 2001 she became a member of The Princesses of Porn with The Dukes of Dykedom, a Boston based high-femme, butch drag, lesbian burlesque troupe.  She performed all over the East Coast including at the Slipper Room, Lovergirl, Cornell University, Brown University, New York University, Smith College, The International Drag King Extravaganza, Theater Offensive’s Out of the Edge Festival, and in countless shows with Truth Serum Productions and Pussy Whipped Productions.  Audrey has shared the stage with Murray Hill, Dred, the Pontani Sisters, Drag King Mo B. Dick, Melissa Ferrick, Tristan Taormino, and Scotty the Blue Bunny.<./p><p>A big move to the west coast in 2003 kept Audrey focused mainly on her career as a Sexuality Educator.  She did do a few guest spots with the Kentucky Friend Woman and the Queen Bees in Seattle and a few shows on visits back east – but selling sex toys and helping people have better, more fulfilling sex lives became her true passion and took up most of her time.</p><p>In 2007 Audrey joined the cast of SexLife Live, a late night talk show about sex, sexuality and relationships and her passion for teaching about sex merged with the performer within.  In the time that she was a co-host and producer of SexLife Live she interviewed many performers and sexuality educators, most notably Betty Dodson, Midori and Nina Hartley.</p><p>Audrey joined up with Sinner Saint Burlesque in 2008 as a Co-Producer and Stage Manger for the troupe bringing with her a love and passion for burlesque and a panache for promoting.   After only a year with the troupe, Audrey took over as the sole producer of Sinner Saint Burlesque in January 2009.  She is also the co-producer of Mixx, a queer performance/dance night that happens on a semi monthly bases.   She enjoys the behind the scenes aspects of putting together a show and is know to spend a little too long on the mic before finally handing it over to the MC.</p>";
performerBio["Evilyn"] = "<h3>About Evilyn Sin Claire:</h3><b><i><p>Born to a Rock’n’roller father (of Jr. Cadillac fame) and Bellydancing mama (the world renowned, Delilah), Evilyn Sin Claire shook and shimmied, undulated and ululated through tents and temples all her young life. She studied theatre intently and, with a spot of foreshadowing, was featured as vaudville’s saucy red headed strumpet, Eva Tanguay, at the historic Moore Theater at the tender age of 16.</p></i></b><p>After a year as a professional bellydancer, Evilyn (aka Laura Rose), sought to try something new. Having grown into a dramatic, sensual and buxom young woman, she wanted to take her dance somewhere more overtly sexual, but still respect the Middle Eastern dance style as it was taught to her. Thus began her love affair with burlesque!</p><p>Evilyn Sin Claire combines a simmering sultry personality with dance vocabulary strong in exotic undulations and isolations. Always the “Wild Child,” each act she creates is a different persona, and a different fantasy world she invites you to enter. Sometimes femme fatale, sometimes joyous to the point of mania...Evilyn’s bold stage presence and smoldering eyes commands the audience’s full attention. Evilyn enjoys working with all styles of burlesque; comedy, avant garde, classic, fusion, theatrical, political. Her favorite sport is dress-up.</p><p>Getting her start with Burning Hearts Burlesque, she danced at the very popular Bedroom Club at the Fenix Underground until its closing in 2006. She is one of the founding members of Sinner Saint Burlesque, which competed in the Miss Exotic World Pageant in 2008. She dances weekly and for special engagements with Sinner Saint Burlesque, as well as, The Pink Door, The Rebar (Evilyn is also a cast member of the comedy variety show Get Loweded!), The annual Moisture Festival, The Rendevous, The Blue Caboose Review, Columbia City Cabaret, with Pure Cirkus (all over the Northwest), Columbia City Cabaret, and more.</p><p>Evilyn Sin Claire and her alter ego, Laura Rose, teach bellydance, stage persona and stage make-up through Visionary Dance Studios in Seattle, WA, and is also available for private instruction. Please contact her for booking through Sinner Saint Burlesque.</p>";
performerBio["Polly"] = "<h3>About Polly Wood: </h3><p><i><b>Everybody wants to be in Polly Wood! Polly has been stripping her way through the Emerald City and beyond since 2006.  She can be seen regularly in Seattle at the Sunken Saloon at the Seamonster, Burlesque Behind the Pink Door, and Jet City Burlesque's benefit shows. In addition, she’s performed at The Bedroom Club, Columbia City Cabaret, the Can Can Kitchen & Cabaret, Neighbors, Dr. Sketchy’s, The Blue Caboose Revue, Sinner Saint Burlesque Revue, Neighbors, Rockabilly Rumbles, B.O.O.B.S. 2007 (Portland, OR) and BreastFest! </b></i></p><p>Polly is honored to be a cast member of Land of the Sweets: The Burlesque Nutcracker, Houses of the UNHoly: The Led Zeppelin Rocklesque Extravaganza, and Through the Looking Glass: The Burlesque Alice in Wonderland.</p><p>She’s also the shorter half of the duo \"The Pervy Princesses\" (their act is NOT sanctioned by Disney!), with the super-powered Rhinestone Housewife herself, Hottie McNaughty, and they’ve performed at the Seattle Erotic Arts festival, NorWesCon, Live Girls Cabaret, and more! </p><p>Polly got her start at Miss Indigo Blue’s Academy of Burlesque, but she’s no stranger to the spotlight. She first stepped on stage as the Crocodile in Peter Pan, at the tender age of 6! When not being an ecdysiast, she’s often treading the boards in Seattle’s fringe theatre scene, as well as having been featured in numerous indie films. Was a joy it was when she learned that she could combine her love of acting and dancing with her love of exhibitionism! </p><p>Like the sunny city she takes her name from, Polly has a little something for everyone, from chicken drumsticks to Irish dancing & Alfred Hitchcock to large puffy snowsuits! Polly delights audiences with her special brand of campy charm, and if you are lucky, barbecue sauce. Seattle’s Tinseled Tart will have you seeing stars!</p>";
performerBio["Sweethearts"] = "<p><b>The Sinner Sweethearts are the quirky, deliciously sexy, impossibly organized stage hands of Sinner Saint Burlesque. Their job description is miles long, but where they shine is in their role as pick-up artists. You can see them between each act, as they race across the stage to collect the clothing and props unleashed by our lovely performers.</b></p><p>They are the ones who set out each performer\'s props and stage attire with amazing accuracy, knowing exactly where a piece needs to go for each act. Each week presents them with a different collection of performers, our regular troupe members as well as special guests, who each have very precise directives for how they need their acts set up.  At times, this job can be daunting, and these girls are constantly on their toes.</p><a class=\"sidebar-image-pullout right\" ><img src=\"images/sweetheartpic1.jpg\" /></a><p>The Sinner Sweethearts are not only smokin hot, but are some of the hardest workers in the industry.  Every week they deliver not only a job well done, but they deliver it in an adorable package of ribbons and lace.  They have taken their freedom of costuming to star level, helping to complete the overall look of allure and sex appeal in our show.</p><a class=\"sidebar-image-pullout left\" ><img src=\"images/sweetheartpic2.jpg\" /></a><p>It takes a special kind of person to excel at being a Sinner Sweetheart.  They are detail-oriented and quick-witted, and still find time to look lovely for the audience.  These girls help represent Sinner Saint Burlesque, as they are on stage more than anyone else, except the host.</p><p>Teasing and playful, it's quite clear that they have fun with what they do, bringing an incomparable finesse to our show every week.</p><img src=\"images/sweetheartpic3.jpg\" />";

performerBioHS["Jesse"] = "<img src=\"images/jesseheadshot.jpg\" />";
performerBioHS["Patti"] = "<img src=\"images/pattiheadshot.jpg\" />";
performerBioHS["Evilyn"] = "<img src=\"images/evilynheadshot.jpg\" />";
performerBioHS["Lolita"] = "<img src=\"images/lolitaheadshot.jpg\" />";
performerBioHS["Polly"] = "<img src=\"images/pollyheadshot.jpg\" />";
performerBioHS["Ember"] = "<img src=\"images/emberheadshot.jpg\" />";
performerBioHS["Audrey"] = "<img src=\"images/audreyheadshot.jpg\" />";
performerBioHS["Raymond"] = "<img src=\"images/raymondheadshot.jpg\" />";

performerBioTxt["Jesse"] = "<img src=\"images/jessebiobanner.jpg\" />";
performerBioTxt["Patti"] = "<img src=\"images/pattibiobanner.jpg\" />";
performerBioTxt["Evilyn"] = "<img src=\"images/evilynbiobanner.jpg\" />";
performerBioTxt["Lolita"] = "<img src=\"images/lolitabiobanner.jpg\" />";
performerBioTxt["Polly"] = "<img src=\"images/pollybiobanner.jpg\" />";
performerBioTxt["Ember"] = "<img src=\"images/emberbiobanner.jpg\" />";
performerBioTxt["Audrey"] = "<img src=\"images/audreybiobanner.jpg\" />";
performerBioTxt["Raymond"] = "<img src=\"images/raymondbiobanner.jpg\" />";

/* This array holds all the content for the bio page */


function showMainContent()
{
	clearContentDivs();
	contentDivs[0].style.display = "block";
}

function showBio(performer)
{
	
		clearContentDivs();
		document.getElementById("bioDiv").innerHTML = "";
			
		var bioInfo;
		switch (performer)
		{
			case 'Jesse':
				document.getElementById("bioDiv").innerHTML = "<a class=\"sidebar-image-pullout left\"> " + performerBioHS["Jesse"] + "</a>" + performerBioTxt["Jesse"] + performerBio["Jesse"];
				break;
			
			case 'Evilyn Sinclaire':
				document.getElementById("bioDiv").innerHTML = "<a class=\"sidebar-image-pullout left\">" + performerBioHS["Evilyn"] + "</a>" + performerBioTxt["Evilyn"] + performerBio["Evilyn"];
				break;
			
			case 'Patti':
				document.getElementById("bioDiv").innerHTML =  "<a class=\"sidebar-image-pullout left\">" + performerBioHS["Patti"] + "</a>" + performerBioTxt["Patti"] + performerBio["Patti"];
				break;
			
			case 'Lolita':
				document.getElementById("bioDiv").innerHTML = "<a class=\"sidebar-image-pullout left\">" + performerBioHS["Lolita"] + "</a>" + performerBioTxt["Lolita"] +  performerBio["Lolita"];
				break;
			
			case 'Polly':
				document.getElementById("bioDiv").innerHTML = "<a class=\"sidebar-image-pullout left\">" + performerBioHS["Polly"] + "</a>" + performerBioTxt["Polly"] + performerBio["Polly"];
				break;
			
			case 'Ember':
				document.getElementById("bioDiv").innerHTML = "<a class=\"sidebar-image-pullout left\">" + performerBioHS["Ember"] +"</a>" + performerBioTxt["Ember"] + performerBio["Ember"];
				break;
			
			case 'Audrey':
				document.getElementById("bioDiv").innerHTML = "<a class=\"sidebar-image-pullout left\">" + performerBioHS["Audrey"] + "</a>" + performerBioTxt["Audrey"] + performerBio["Audrey"];
				break;
					
			case 'Sinner Sweethearts':
				document.getElementById("bioDiv").innerHTML = performerBio["Sweethearts"];
			default:
				break;
		}
		contentDivs[1].style.display = "block";
}

function showContact()
{
	clearContentDivs();
	contentDivs[2].style.display = "block";

}


function showCalendar()
{
	clearContentDivs();
	contentDivs[3].style.display = "block";
	
}

function showDescription()
{
	clearContentDivs();
	contentDivs[4].style.display = "block";
	
}

function showBooking()
{
	clearContentDivs();
	contentDivs[5].style.display = "block";
	
}

function showSponsors()
{
	clearContentDivs();
	contentDivs[6].style.display = "block";
	
}

function clearContentDivs()
{
	for (i=0; i < contentDivs.length; i++)
	{
		contentDivs[i].style.display = "none";
		
	}
	
	return;
	
}

var fader = new Array(), fadeQ = new Array();
var RGB = new Array(256), k = 0, hex = ["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];
for (var i = 0; i < 16; i++) for (var j = 0; j < 16; j++) RGB[k++] = hex[i] + hex[j];

function fadeObj(number, id, colOff, colOn, spdIn, spdOut, def) {
  this.number = number;
  this.id = id;
  this.colOff = [parseInt(colOff.substr(0, 2), 16), parseInt(colOff.substr(2, 2), 16), parseInt(colOff.substr(4, 2), 16)];
  this.colOn = [parseInt(colOn.substr(0, 2), 16), parseInt(colOn.substr(2, 2), 16), parseInt(colOn.substr(4, 2), 16)];
  this.colNow = [parseInt(colOff.substr(0, 2), 16), parseInt(colOff.substr(2, 2), 16), parseInt(colOff.substr(4, 2), 16)];
  this.spdIn = spdIn;
  this.spdOut = spdOut;
  this.def = def;
  this.direction = false;
  this.active = false;
  this.message = new Array();
  this.messageNow = 0;
}

function fadeCmd(number, message, direction) {
  this.number = number;
  this.message = message;
  this.direction = direction;
}

function fade(number, message, direction) {
  if (fader[number].def && fader[number].messageNow == 0 && fader[number].direction) {
    fadeQ[fadeQ.length] = new fadeCmd(number, 0, false);
    fadeQ[fadeQ.length] = new fadeCmd(number, message, direction);
    message = 0;
    direction = false;
  } else fadeQ[fadeQ.length] = new fadeCmd(number, message, direction);
  setTimeout(function() { fadeBegin(number); }, 20);
}

function fadeBegin(number) {
  for (var x = 0; x < fadeQ.length; x++) {
    for (var y = x + 1; y < fadeQ.length; y++) {
      if (fadeQ[x].number == fadeQ[y].number && fadeQ[x].message == fadeQ[y].message && fadeQ[x].direction != fadeQ[y].direction) {
        fadeQ.splice(x, 1);
        fadeQ.splice(y - 1, 1);
      }
    }
  }
  if (!fader[number].active) {
    for (var x = 0; x < fadeQ.length; x++) {
      if (fadeQ[x].number == number && fadeQ[x].direction != fader[number].direction) {
        var del = fadeQ.splice(x, 1);
        setTimeout(function() { fadeEng(number, del[0].message, del[0].direction); }, 0);
        break;
      }
    }
  }
}

function fadeEng(number, message, direction) {
  if (!fader[number].active) {
    fader[number].active = true;
    fader[number].direction = direction;
    fader[number].messageNow = message;
    document.getElementById(fader[number].id).innerHTML = fader[number].message[message];
  }
  var iniCol = (direction) ? fader[number].colOff : fader[number].colOn;
  var endCol = (direction) ? fader[number].colOn : fader[number].colOff;
  var incCol = fader[number].colNow;
  var spd = (direction) ? fader[number].spdIn : fader[number].spdOut;
  for (var x = 0; x < 3; x++) {
    var incr = (endCol[x] - iniCol[x]) / spd;
    incCol[x] = (incr < 0) ? Math.max(incCol[x] + incr, endCol[x]) : Math.min(incCol[x] + incr, endCol[x]);
  }
  document.getElementById(fader[number].id).style.color = "#" + RGB[parseInt(incCol[0])] + RGB[parseInt(incCol[1])] + RGB[parseInt(incCol[2])];
  if (incCol[0] == endCol[0] && incCol[1] == endCol[1] && incCol[2] == endCol[2]) {
    fader[number].active = false;
    for (var x = 0; x < fadeQ.length; x++) {
      if (fadeQ[x].number == number) {
        var del = fadeQ.splice(x, 1);
        setTimeout(function() { fadeEng(number, del[0].message, del[0].direction); }, 0);
        return false;
      }
    }
    if (!direction) {
      if (fader[number].def) {
        setTimeout(function() { fadeEng(number, 0, true); }, 0);
      } else document.getElementById(fader[number].id).innerHTML = "&nbsp;";
    }
  } else setTimeout(function() { fadeEng(number, message, direction); }, 0);
}


function throbFade() {
  fade(2, Math.floor(throbStep / 2), (throbStep % 2) ? false : true);
  setTimeout("throbFade();", (throbStep % 2) ? 100 : 10000);
  if (++throbStep > fader[2].message.length * 2 - 1) throbStep = 0;
}

fader[2] = new fadeObj(2, 'fade2', 'bbbbbb', '000000', 30, 30, false);
fader[2].message[0] = "\"Showstoppers!\" <p>- msnbc.com</p>";
fader[2].message[2] = "\"The venue is great, the drinks are stong, and the show makes me feel so dirty, I want to go to church and confess my naughty thoughts!\"<p> - Lucky Penny</p>";
fader[2].message[3] = "\"Sinner Saint is the best bang for your buck on a Thursday night!  These gorgeous women are too hot to handle.\" <p> - The Von Foxies</p>";
fader[2].message[4] = "\"The dancers are fantastic, and things get about as risque as the law allows.\" <p> - The Stranger</p>";

var throbStep = 0;
setTimeout("throbFade();", 1000);
