//venue objects

/*
var seven = new Object;
seven.icon = "<a href=\"http:\/\/www.sevenfeathers.com\" target=\"_blank\"><img src=\"images\/seven.gif\" alt=\"Seven Feathers Casino & Resort\" style=\"border:none;\" /></a>";
seven.setting = "";
seven.settingSaturday = "";
seven.info = "<a href=\"http:\/\/www.sevenfeathers.com\" class=\"text_22\" target=\"_blank\">Seven Feathers Casino & Resort</a><br />" +
			    "146 Chief Miwaleta Lane<br />" +
			    "Canyonville, OR 97417<br /><br />" +
                "<i>For <a href=\"http:\/\/www.sevenfeathers.com\/dining\/dining-reservations\" class=\"text_22\" target=\"_blank\">Cabaret Show</a> reservations, call the box office at <b>1-800-548-8461 ext 1334</b></i>";
seven.directions = "<a href=\"http:\/\/sevenfeathers.com\/about-us\/directions\" class=\"text_22\" target=\"_blank\">Directions to Seven Feathers</a>";
seven.time = "Shows start at 7pm & 9pm";
seven.timeSaturday = "Shows start at 7pm & 9pm";
seven.timeSunday = "Shows start at 2pm & 7pm";
seven.title = "Seven Feathers Cabaret Lounge Canyonville, OR 7pm & 9pm";
seven.titleSunday = "Seven Feathers Cabaret Lounge Canyonville, OR 2pm & 7pm";
seven.header = "Born To Be Wild - <i>featuring Joe Carolus!</i>";
seven.subheader = "Bringing it on with piano, vocals, and style!";
*/

var capri = new Object;
capri.icon = "<a href=\"http:\/\/www.capriristoranteitaliano.net\/\" target=\"_blank\"><img src=\"images\/capri.gif\" alt=\"Capri Ristorante Italiano\" style=\"border:none;\" /></a>";
capri.clowns = "<div><span class=\"text_0\"><i>On the Patio w/</i></span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
capri.setting = "";
capri.info = "<a href=\"http:\/\/www.capriristoranteitaliano.net\/\" class=\"text_22\" target=\"_blank\">Capri Ristorante Italiano</a><br />" +
			 "15121 Main Street<br />" +
			 "Mill Creek, WA  98012<br />" +
			 "(425) 357-8500";
capri.directions = "<a href=\"http:\/\/maps.google.com\/maps?f=q&hl=en&geocode=&q=Capri+Ristorante+Italiano&sll=37.0625,-95.677068&sspn=51.488837,89.296875&ie=UTF8&ll=47.862298,-122.227364&spn=0.043016,0.087204&z=13\" class=\"text_22\" target=\"_blank\">Directions to Capri</a>";
capri.title = "Capri Ristorante Mill Creek, 8pm";
capri.titleMonday = "Capri Ristorante Mill Creek, 7pm";
capri.time = "8:00 pm 'til 11:00 pm!";
capri.timeMonday = "7 'til 10pm";
capri.timeThursday = "6 'til 9pm - All Ages";
capri.timeSaturday = "9 'til LATE!";
capri.header = "Performance venue information for Joe Carolus!";
capri.subheader = "Bringing it on with solo piano and vocals!";
capri.clownstitle = "Capri Ristorante Mill Creek, 6pm w/ The Stackable Clowns!";
capri.clownsheader = "Performance venue info for <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a>!";
capri.clownssubheader = "Joe's happening piano trio will be out on the Patio!";

var buckleys = new Object;
buckleys.icon = "<a href=\"http:\/\/www.buckleysseattle.com\/btmainpage.htm\" target=\"_blank\"><img src=\"images\/buckleys.gif\" alt=\"Buckley's in Belltown\" style=\"border:none;\" /></a>";
buckleys.clowns = "<div><span class=\"text_0\">...with his trio</span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
buckleys.setting = "";
buckleys.info = "<a href=\"http:\/\/www.buckleysseattle.com\/btmainpage.htm\" class=\"text_22\" target=\"_blank\">Buckley's in Belltown</a><br />" +
"2331 2nd Avenue<br/>" +
"Seattle, WA 98121<br/>" +
"(206) 588-8879";
buckleys.directions = "<a href=\"http:\/\/www.buckleysseattle.com/btdirections.htm\" class=\"text_22\" target=\"_blank\">Directions to Buckley's</a>";
buckleys.title = "Buckley's in Belltown, 9pm w/ The Stackable Clowns!";
buckleys.time = "9:30 pm 'til 12:30 am";
buckleys.timeSaturday = "9:30 pm 'til 12:30 am";
buckleys.header = "Performance venue information for Joe Carolus!";
buckleys.subheader = "Bringing it on with solo piano and vocals!";
buckleys.clownstitle = "Buckley's in Belltown, 9:30p w/ The Stackable Clowns!";
buckleys.clownsheader = "Performance venue info for <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a>!";
buckleys.clownssubheader = "Joe's happening piano trio delivers the goods!";

var mukilteo = new Object;
mukilteo.icon = "<a href=\"http:\/\/www.mukilteolodge.com\" target=\"_blank\"><img src=\"images\/mukilteo.gif\" alt=\"Mukilteo Lodge\" style=\"border:none;\" /></a>";
mukilteo.clowns = "<div><span class=\"text_0\">...with his trio</span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
mukilteo.setting = "Benefit for Breast Cancer Awareness";
mukilteo.settingSaturday = "";
mukilteo.info = "<a href=\"http:\/\/www.mukilteolodge.com\" class=\"text_22\" target=\"_blank\">Mukilteo Lodge</a><br />" +
"7928 Mukilteo Speedway<br />" +
"Mukilteo, WA  98275<br />" +
"(425) 374-3333";
mukilteo.directions = "<a href=\"http:\/\/www.mukilteolodge.com\/Contact.aspx\" class=\"text_22\" target=\"_blank\">Directions to Mukilteo Lodge</a>";
mukilteo.time = "6 'til 10pm";
mukilteo.timeSaturday = "9:00 pm 'til Midnight";
mukilteo.title = "Mukilteo Lodge Mukilteo, 6pm w/ The Stackable Clowns!";
mukilteo.header = "Performance venue information for Joe Carolus!";
mukilteo.subheader = "Bringing it on with solo piano and vocals!";
mukilteo.clownstitle = "Mukilteo Lodge Mukilteo, 9pm w/ The Stackable Clowns!";
mukilteo.clownsheader = "Performance venue info for <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a>!";
mukilteo.clownssubheader = "Joe's happening piano trio delivers the goods!";

var emorys = new Object;
emorys.icon = "<a href=\"http:\/\/www.emorys.com\/music.php\" target=\"_blank\"><img src=\"images\/emorys.gif\" alt=\"Emory's On Silver Lake\" style=\"border:none;\" /></a>";
emorys.clowns = "<div><span class=\"text_0\">...with his trio</span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
emorys.setting = "<div class=\"text_0 top_padding_5\"><i>Out on the deck overlooking Silver Lake!</i></div>";
emorys.info = "<a href=\"http:\/\/www.emorys.com\/music.php\" class=\"text_22\" target=\"_blank\">Emory's On Silver Lake</a><br />" +
			  "11830 19th Ave SE<br/>" +
			  "Everett, WA 98208<br/>" +
			  "(425) 337-7772";
emorys.directions = "<a href=\"http:\/\/maps.google.com\/maps?f=d&hl=en&geocode=&time=&date=&ttype=&saddr=&daddr=11830+19th+Ave.+SE,+Everett,+WA+98208&sll=47.890419,-122.206415&sspn=0.009669,0.020084&ie=UTF8&ll=47.890406,-122.206399&spn=0.009669,0.020084&z=16&om=1\" class=\"text_22\" target=\"_blank\">Directions to Emory's</a>";
emorys.title = "Emory's - On Silver Lake, 9pm w/ The Stackable Clowns!";
emorys.time = "9:00 pm 'til Midnight";
emorys.timeSaturday = "9:00 pm 'til Midnight";
emorys.timeSunday = "5:00 pm 'til 8:00 pm";
emorys.header = "Performance venue information for Joe Carolus!";
emorys.subheader = "Bringing it on with solo piano and vocals!";
emorys.clownstitle = "Emory's - On Silver Lake, 9pm w/ The Stackable Clowns!";
emorys.clownstitlesunday = "Emory's - On Silver Lake, 5pm w/ The Stackable Clowns!";
emorys.clownsheader = "Performance venue info for <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a>!";
emorys.clownssubheader = "Joe's happening piano trio delivers the goods!";

var wilde = new Object;
wilde.icon = "<a href=\"http:\/\/www.wilderover.com\" target=\"_blank\"><img src=\"images\/wilde.gif\" alt=\"Wilde Rover in Kirkland\" style=\"border:none;\" /></a>";
wilde.clowns = "<div><span class=\"text_0\">...with his trio</span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
wilde.setting = "";
wilde.info = "<a href=\"http:\/\/www.wilderover.com\" class=\"text_22\" target=\"_blank\">Wilde Rover in Kirkland</a><br />" +
"111 Central Way<br/>" +
"Kirkland , WA 98033<br/>" +
"(425) 822-8940";
wilde.directions = "<a href=\"http:\/\/www.wilderover.com\/contact\" class=\"text_22\" target=\"_blank\">Directions to Wilde Rover</a>";
wilde.title = "Wilde Rover in Kirkland, 9pm w/ The Stackable Clowns!";
wilde.time = "9:00 pm 'til 12:00 am";
wilde.timeThursday = "9:00 pm 'til Midnight";
wilde.timeSaturday = "9:00 pm 'til Midnight";
wilde.header = "Performance venue information for Joe Carolus!";
wilde.subheader = "Bringing it on with solo piano and vocals!";
wilde.clownstitle = "Wilde Rover in Kirkland, 9pm w/ The Stackable Clowns!";
wilde.clownsheader = "Performance venue info for <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a>!";
wilde.clownssubheader = "Joe's happening piano trio delivers the goods!";

var grand = new Object;
grand.icon = "<a href=\"http:\/\/www.grandcru-winebar.com\/Pages\/Main.aspx\" target=\"_blank\"><img src=\"images\/grand.gif\" alt=\"Grand Cru Bar & Lounge\" style=\"border:none;\" /></a>";
grand.clowns = "<div><span class=\"text_0\">...with his trio</span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
grand.setting = "";
grand.info = "<a href=\"http:\/\/www.grandcru-winebar.com\/Pages\/Main.aspx\" class=\"text_22\" target=\"_blank\">Grand Cru Bar & Lounge</a><br />" +
"1020 108th Ave NE, Ste. 100<br />" +
"Bellevue, WA 98004<br />" +
"(425) 455-4278";
grand.directions = "<a href=\"http:\/\/www.grandcru-winebar.com\/Pages\/Directions.aspx\" class=\"text_22\" target=\"_blank\">Directions to Grand Cru Lounge</a>";
grand.time = "5 'til 7pm";
grand.timeSaturday = "8:00 pm 'til 11:00 pm!"
grand.title = "Grand Cru Bar Bellevue, 5:00p";
grand.header = "Performance venue information for Joe Carolus!";
grand.subheader = "Bringing it on with solo piano and vocals!";
grand.clownstitle = "Grand Cru Bar Bellevue, 8pm w/ The Stackable Clowns!";
grand.clownsheader = "Performance venue info for <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a>!";
grand.clownssubheader = "Joe's happening piano trio delivers the goods!";

var tervelli = new Object;
tervelli.icon = "<a href=\"http:\/\/olive-you.com\" target=\"_blank\"><img src=\"images\/tervelli.gif\" alt=\"Tervelli Ultralounge\" style=\"border:none;\" /></a>";
tervelli.clowns = "<div><span class=\"text_0\">...with his trio</span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
tervelli.setting = "";
tervelli.settingSaturday = "";
tervelli.info = "<a href=\"http:\/\/olive-you.com\" class=\"text_22\" target=\"_blank\">Tervelli Ultralounge</a><br />" +
"89 Kirkland Ave <br/>" +
"Kirkland, WA 98033<br/>" +
"(425) 250-1555 ";
tervelli.directions = "<a href=\"http:\/\/olive-you.com\/contact\" class=\"text_22\" target=\"_blank\">Directions to Tervelli</a>";
tervelli.title = "Tervelli Ultralounge Kirkland, 6pm";
tervelli.time = "6:00 pm 'til 9:00 pm!"
tervelli.timeSaturday = "9:00 pm 'til Late!";
tervelli.header = "Performance venue information for Joe Carolus!";
tervelli.subheader = "Bringing it on with solo piano and vocals!";
tervelli.clownstitle = "Tervelli Ultralounge Kirkland, 9pm w/ The Stackable Clowns!";
tervelli.clownsheader = "Performance venue info for <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a>!";
tervelli.clownssubheader = "Joe's happening piano trio delivers the goods!";

//one-off benefit object (Seattle Brain Cancer Walk - 6/26/2010)
var cancer = new Object;
cancer.icon = "<a href=\"http:\/\/www.braincancerwalk.org\" target=\"_blank\"><img src=\"images\/cancer.gif\" alt=\"Seattle Brain Cancer Walk\" style=\"border:none;\" /></a>";
cancer.clowns = "<div><span class=\"text_0\">...with his trio</span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
cancer.setting = "";
cancer.info = "<a href=\"http:\/\/www.braincancerwalk.org\" class=\"text_22\" target=\"_blank\">Seattle Brain Cancer Walk</a><br />" +
"Seattle Center's<br/>" +
"Mural Amphitheatre<br/>" +
"Seattle, WA<br/>";
cancer.directions = "<a href=\"http:\/\/www.seattlecenter.com\/transportation\/directions.asp\" class=\"text_22\" target=\"_blank\">Directions to Seattle Center</a>";
cancer.title = "Brain Cancer Wlk, Seattle Ctr, 9:00a w/ The Stackable Clowns!";
cancer.timeSaturday = ""; //"9:00 am - 10:00 am";
cancer.clownstitle = "Brain Cancer Walk, Seattle, w/ The Stackable Clowns!"; //"Brain Cancer Walk, Seattle Center, 9:00am w/ The Stackable Clowns!";
cancer.clownsheader = "Performance venue info for <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a>!";
cancer.clownssubheader = "Giving back to benefit a great cause!";

var mia = new Object;
mia.icon = "<a href=\"http:\/\/miaromaitalian.com\" target=\"_blank\"><img src=\"images\/mia.gif\" alt=\"Mia Roma\" style=\"border:none;\" /></a>";
mia.clowns = "<div><span class=\"text_0\">...with his trio</span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
mia.setting = "";
mia.settingSaturday = "";
mia.info = "<a href=\"http:\/\/miaromaitalian.com\" class=\"text_22\" target=\"_blank\">Mia Roma</a><br />" +
"7620 NE Bothell Way<br/>" +
"Kenmore, WA 98028<br/>" +
"(425) 486-6200";
mia.directions = "<a href=\"http:\/\/miaromaitalian.com\" class=\"text_22\" target=\"_blank\">Directions to Mia Roma</a>";
mia.title = "Mia Roma Kenmore, 9pm";
mia.time = "9:00 pm 'til Midnight!"
mia.timeSaturday = "9:00 pm 'til Midnight!";
mia.header = "Performance venue information for Joe Carolus!";
mia.subheader = "Bringing it on with solo piano and vocals!";
mia.clownstitle = "Mia Roma Kenmore, 9pm w/ The Stackable Clowns!";
mia.clownsheader = "Performance venue info for <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a>!";
mia.clownssubheader = "Joe's happening piano trio delivers the goods!";

var sun = new Object;
sun.icon = "<a href=\"http:\/\/www.suncadiaresort.com\/cle-elum-hotel-directions.php\" target=\"_blank\"><img src=\"images\/sun.gif\" alt=\"Lodge at  Suncadia\" style=\"border:none;\" /></a>";
sun.clowns = "";
sun.setting = "";
sun.settingSaturday = "";
sun.info = "<a href=\"http:\/\/www.suncadiaresort.com\/cle-elum-hotel-directions.php\" class=\"text_22\" target=\"_blank\">Lodge at  Suncadia</a><br />" +
"Great Room<br/>" +
"3600 Suncadia Trail<br/>" +
"Cle Elum, WA 98922<br/>" +
"(509) 649-6400";
sun.directions = "<a href=\"http:\/\/www.suncadiaresort.com\/cle-elum-hotel-directions.php\" class=\"text_22\" target=\"_blank\">Directions to Suncadia </a>";
sun.title = "Suncadia Lodge Cle Elum, 6pm";
sun.time = "6:00 pm 'til 8:00 pm"
sun.timeSaturday = "6:00 pm 'til 8:00 pm";
sun.header = "Performance venue information for Joe Carolus!";
sun.subheader = "Bringing it on with solo piano and vocals!";
sun.clownstitle = "";
sun.clownsheader = "";
sun.clownssubheader = "";

var kpub = new Object;
kpub.icon = "<a href=\"http:\/\/www.kirklandpub.com/\" target=\"_blank\"><img src=\"images\/kpub.gif\" alt=\"The K Pub\" style=\"border:none;\" /></a>";
kpub.clowns = "<div><span class=\"text_0\">...with his trio</span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
kpub.setting = "";
kpub.settingSaturday = "";
kpub.info = "The K Pub<br />" +
"21 Central Avenue<br/>" +
"Kirkland, WA 98033<br/>" +
"(425) 216-3612";
kpub.directions = "<a href=\"http:\/\/www.kirklandpub.com\/location.html\" class=\"text_22\" target=\"_blank\">Directions to K Pub</a>";
kpub.title = "The K Pub Kirkland, 9pm";
kpub.time = "9:00 pm 'til Midnight!"
kpub.timeSaturday = "9:00 pm 'til Midnight!";
kpub.header = "Performance venue information for Joe Carolus!";
kpub.subheader = "Bringing it on with solo piano and vocals!";
kpub.clownstitle = "The K Pub Kirkland, 9pm w/ The Stackable Clowns!";
kpub.clownsheader = "Performance venue info for <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a>!";
kpub.clownssubheader = "Joe's happening piano trio delivers the goods!";



var privateEvent = new Object;
privateEvent.info = "";
privateEvent.icon = "<img src=\"images\/joe.gif\" style=\"border:none;\" />";
privateEvent.title = "Private Event - with Joe Carolus";
privateEvent.header = "Private Event featuring Joe Carolus";
privateEvent.subheader = "Make your next party or private event your best!";
privateEvent.time = "";
privateEvent.timeSaturday = "";


/*
var monkey = new Object;
monkey.icon = "<a href=\"http:\/\/www.badmonkeybistro.com\" target=\"_blank\"><img src=\"images\/monkey.gif\" alt=\"Bad Monkey Bistro & Lounge\" style=\"border:none;\" /></a>";
monkey.clowns = "<div><span class=\"text_0\">...with his trio</span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
monkey.setting = "";
monkey.info = "<a href=\"http:\/\/www.badmonkeybistro.com\" class=\"text_22\" target=\"_blank\">Bad Monkey Bistro & Lounge</a><br />" +
"400 Boren Avenue N<br />" +
"Seattle, WA 98109<br />" +
"(206) 467-1111";
monkey.directions = "<a href=\"http:\/\/www.badmonkeybistro.com\/directions.html\" class=\"text_22\" target=\"_blank\">Directions to Bad Monkey Bistro</a>";
monkey.time = "Happy Hour, 4 'til 7pm";
monkey.title = "Bad Monkey Bar Seattle, 4:00p";
monkey.header = "Performance venue information for Joe Carolus!";
monkey.subheader = "Bringing it on with solo piano and vocals!";

var tandem = new Object;
tandem.icon = "<a href=\"http:\/\/www.tandemwinebar.com\" target=\"_blank\"><img src=\"images\/tandem.gif\" alt=\"Tandem Wine & Cheese Bar\" style=\"border:none;\" /></a>";
//tandem.clowns = "<div><span class=\"text_0\">...with his trio</span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
tandem.setting = "";
tandem.settingSaturday = "";
tandem.info = "<a href=\"http:\/\/www.tandemwinebar.com\" class=\"text_22\" target=\"_blank\">Tandem Wine & Cheese Bar</a><br />" +
"10123 Main Place<br />" +
"Bothell, WA 98011<br />" +
"(425) 398-WINE (9463)";
tandem.directions = "<a href=\"http:\/\/www.tandemwinebar.com\/location\" class=\"text_22\" target=\"_blank\">Directions to Tandem Wine Bar</a>";
tandem.time = "7 'til 10pm";
tandem.timeSaturday = "7 'til 10pm";
tandem.title = "Tandem Wine Bar Bothell, 7pm";
tandem.titleSaturday = "Tandem Wine Bar Bothell, 7pm";
tandem.header = "Performance venue information for Joe Carolus!";
tandem.subheader = "Bringing it on with solo piano and vocals!";

var tandemNye = new Object;
tandemNye.icon = "<a href=\"http:\/\/www.tandemwinebar.com\" target=\"_blank\"><img src=\"images\/tandem.gif\" alt=\"Tandem Wine & Cheese Bar\" style=\"border:none;\" /></a>";
tandemNye.setting = "<i>Join Joe and friends for an <u>exclusive</u>, fun New Year’s Eve Celebration!</i>";
tandemNye.info = "<a href=\"http:\/\/www.tandemwinebar.com\" class=\"text_22\" target=\"_blank\">Tandem Wine & Cheese Bar</a><br />" +
"10123 Main Place<br />" +
"Bothell, WA 98011<br />" +
"(425) 398-WINE (9463)";
tandemNye.directions = "<a href=\"http:\/\/www.tandemwinebar.com\/location\" class=\"text_22\" target=\"_blank\">Directions to Tandem Wine Bar</a>";
tandemNye.time = "New Year's Eve - 7pm 'til 1am";
tandemNye.title = "Tandem Wine Bar Bothell, 7pm";
tandemNye.header = "Performance venue information for Joe Carolus!";
tandemNye.subheader = "Join Joe for an <u>exclusive</u>, fun New Year’s Eve Celebration!";

var privateClowns = new Object;
privateClowns.info = "";
privateClowns.title = "Private Event -    w/ The Stackable Clowns";
privateClowns.icon = "<a href=\"http:\/\/www.myspace.com\/thestackableclowns\" target=\"_blank\"><img src=\"images\/clowns.gif\" style=\"border:none;\" /></a>";
privateClowns.clownsheader = "Private Event featuring <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a>!";
privateClowns.clownssubheader = "Make your next party or private event your best!";
privateClowns.time = "";
privateClowns.timeSaturday = "";

var olive = new Object;
olive.icon = "<a href=\"http:\/\/olive-you.com\" target=\"_blank\"><img src=\"images\/olive.gif\" alt=\"Olive You\" style=\"border:none;\" /></a>";
olive.clowns = "<div><span class=\"text_0\">...with his trio</span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
olive.setting = "";
olive.settingSaturday = "";
olive.info = "<a href=\"http:\/\/olive-you.com\" class=\"text_22\" target=\"_blank\">Olive You</a><br />" +
"89 Kirkland Ave <br/>" +
"Kirkland, WA 98033<br/>" +
"(425) 250-1555 ";
olive.directions = "<a href=\"http:\/\/olive-you.com\/contact\" class=\"text_22\" target=\"_blank\">Directions to Olive You</a>";
olive.title = "Olive You Kirkland, 6pm";
olive.clownstitle = "Olive You, Kirkland 9pm w/ The Stackable Clowns!";
olive.time = "9:00 pm 'til 12:00 pm";
olive.timeSaturday = "9:00 pm 'til Late!";
olive.header = "Performance venue information for Joe Carolus!";
olive.subheader = "Bringing it on with solo piano and vocals!";
olive.clownstitle = "Olive You Kirkland, 9pm w/ The Stackable Clowns!";
olive.clownsheader = "Performance venue info for <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a>!";
olive.clownssubheader = "Joe's happening piano trio delivers the goods!";


var twisted = new Object;
twisted.icon = "<a href=\"http:\/\/www.myspace.com\/thestackableclowns\" target=\"_blank\"><img src=\"images\/clowns.gif\" style=\"border:none;\" /></a>";
twisted.clowns = "<div><span class=\"text_0\">...with his trio</span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
twisted.setting = "";
twisted.info = "<a href=\"http:\/\/www.hyattregencybellevue.com\/twistedcork\" class=\"text_22\" target=\"_blank\">Twisted Cork</a><br />" +
"900 Bellevue Way NE, Ste 100<br />" +
"Bellevue, WA 98004<br />" +
"(425) 637-0808";
twisted.directions = "<a href=\"http:\/\/maps.google.com\/maps?hl=en&ie=UTF8&q=twisted+cork+bellevue&fb=1&gl=us&hq=twisted+cork&hnear=Bellevue,+WA&pcsi=2246357129883467240,1&view=map&cid=2246357129883467240&iwloc=A&ved=0CIsBEKUG&sa=X&ei=_OB1TNG3BaTstAPiq4X7Bg\" class=\"text_22\" target=\"_blank\">Directions to Twisted Cork</a>";
twisted.time = "8:00pm 'til 11:00pm";
twisted.timeSaturday = "8pm 'til Midnight";
twisted.title = "Twisted Cork, Bellevue, 8pm w/ The Stackable Clowns!";
twisted.header = "Performance venue information for Joe Carolus!";
twisted.subheader = "Bringing it on with solo piano and vocals!";
twisted.clownstitle = "Twisted Cork, Bellevue, 8pm w/ The Stackable Clowns!";
twisted.clownsheader = "Performance venue info for <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a>!";
twisted.clownssubheader = "Joe's happening piano trio delivers the goods!";

var hardrock = new Object;
hardrock.icon = "<a href=\"http:\/\/www.hardrock.com\/locations\/cafes3\/cafe.aspx?LocationID=500&MIBEnumID=3\" target=\"_blank\"><img src=\"images\/hardrock.gif\" style=\"border:none;\" /></a>";
hardrock.clowns = "<div><span class=\"text_0\">...with his trio</span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
hardrock.settingSaturday = ""; //"Doors open at 8, no cover charge";
hardrock.info ="<a href=\"http:\/\/www.hardrock.com\/locations\/cafes3\/cafe.aspx?LocationID=500&MIBEnumID=3\" class=\"text_22\" target=\"_blank\">Hard Rock Cafe</a><br />" +
"Hard Rock Cafe Seattle<br />" +
"116 Pike Street<br />" +
"Seattle, WA  98101<br />" +
"(206) 204-2233";
hardrock.directions = "<a href=\"http:\/\/www.hardrock.com\/locations\/cafes3\/directions.aspx?LocationID=500&MIBenumID=3\" class=\"text_22\" target=\"_blank\">Directions to Hard Rock Cafe</a>";
hardrock.time = "9pm 'til 1am";
hardrock.timeSaturday = "9pm 'til 1am";
hardrock.title = "Hard Rock Cafe, Seattle, 9pm w/ The Stackable Clowns!";
hardrock.header = "Performance venue information for Joe Carolus!";
hardrock.subheader = "Bringing it on with solo piano and vocals!";
hardrock.clownstitle = "Hard Rock Cafe, Seattle, 9pm w/ The Stackable Clowns!";
hardrock.clownsheader = "Performance venue info for <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a>!";
hardrock.clownssubheader = "Joe's happening piano trio delivers the goods!";


var operation = new Object;
operation.icon = "<a href=\"http:\/\/www.singforfood.org\" target=\"_blank\"><img src=\"images\/operation.gif\" alt=\"Benefiting Operation Sack Lunch\" style=\"border:none;\" /></a>";
operation.clowns = "<div><span class=\"text_0\">...with his trio</span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
operation.setting = "";
operation.info = "<a href=\"http:\/\/www.singforfood.org\" class=\"text_22\" target=\"_blank\">Pyramid Ale House - Benefit</a><br />" +
"1201 First Avenue South<br/>" +
"Seattle, WA 98134<br/>" +
"(206) 682-3377<br/>";
operation.directions = "<a href=\"http:\/\/www.mapquest.com\/maps?address=1201+1st+Avenue+S&city=Seattle&state=WA&zipcode=98134&country=US\" class=\"text_22\" target=\"_blank\">Directions to Pyramid Ale House</a>";
operation.title = "Pyramid Ale Beer Garden, 5:30p w/ The Stackable Clowns!";
operation.time = "5:30 pm - 7:10 pm";
operation.clownstitle = "Pyramid Ale Beer Garden, 5:30p w/ The Stackable Clowns!";
operation.clownsheader = "Performance venue info for <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a>!";
operation.clownssubheader = "Giving back to benefit a great cause!";


var patterson = new Object;
patterson.icon = "<a href=\"http:\/\/www.washingtonwinecompany.com/wine/node/6\" target=\"_blank\"><img src=\"images\/patterson.gif\" alt=\"Patterson Cellars\" style=\"border:none;\" /></a>";
patterson.clowns = "<div><span class=\"text_0\">...with his trio</span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
patterson.setting = "";
patterson.info = "<a href=\"http:\/\/www.washingtonwinecompany.com/wine/node/6\" class=\"text_22\" target=\"_blank\">Patterson Cellars</a><br />" +
"19501 144th Ave NE Suite D 600<br/>" +
"Woodinville, WA 98072<br/>" +
"(425) 483-8600";
patterson.directions = "<a href=\"http:\/\/www.washingtonwinecompany.com/wine/node/1\" class=\"text_22\" target=\"_blank\">Directions to Patterson Cellars</a>";
patterson.title = "Patterson Cellars, 12:30 - 3:30 pm w/ The Stackable Clowns!";
patterson.time = "12:30 pm 'til 3:30 pm";
patterson.timeSaturday = "12:30 'til 3:30 pm";
patterson.clownsheader = "Performance venue info for <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a>!";
patterson.clownssubheader = "Joe's happening piano trio delivers the goods!";

var vivendo = new Object;
vivendo.icon = "<a href=\"http:\/\/www.vivendorestaurant.com\" target=\"_blank\"><img src=\"images\/vivendo.gif\" alt=\"Vivendo Restaurant & Bar\" style=\"border:none;\" /></a>";
vivendo.clowns = "<div><span class=\"text_0\">...with his trio</span> <a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"text_22\" target=\"_blank\">The Stackable Clowns</a></div>";
vivendo.setting = "";
vivendo.info = "<a href=\"http:\/\/www.vivendorestaurant.com\" class=\"text_22\" target=\"_blank\">Vivendo Restaurant & Bar</a><br />" +
"23718 Bothell Everett Highway<br />" +
"Bothell, WA 98021-9363<br />" +
"(425) 487-3202";
vivendo.directions = "<a href=\"http:\/\/maps.google.com\/maps\/place?cid=13409495108938150970&q=vivendo+restaurant+bothell&hl=en&gl=us\" class=\"text_22\" target=\"_blank\">Directions to Vivendo</a>";
vivendo.time = "8 'til 11pm";
vivendo.title = "Vivendo Restaurant Bothell, 8:00p";
vivendo.header = "Performance venue information for Joe Carolus!";
vivendo.subheader = "Bringing it on with solo piano and vocals!";
*/

//slideshow image arrays and variables (system for multiple shows per page)
var preLoadImage_a = new Array();
var preLoadImage_b = new Array();

var imageArray_a = new Array();
var imageArray_b = new Array();

var captionArray_a = new Array();
var captionArray_b = new Array();

var timeout_a;
var timeout_b;

var counter_a = 0;
var counter_b = 0;

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 7500;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 5;


//global variables for schedule displays
var gigCalendar = new Array();
var showDisplayed = false;
var dayShow = "Tonight!";


function replaceEmail()
{
	var emailLinks = ['#contactJoe_1', '#contactJoe_2', '#contactChris'];

	for(i=0; i<3; i++) {
		$(emailLinks[i]).each(function(){
		var to_replace = '[at-no-spam]';
		$(this).html( $(this).html().replace(to_replace, '@') )
		.attr('href', $(this).attr('href').replace(to_replace, '@') );
		});
	}
}


//create gig(event) object property values with listGig() parameters:
//date (single gig days - for now)
//title (description on calendar)
//venue (detail object from preset list)
//Stackable Clowns gig (boolean value)
//private venue gig (boolean value)
function runSchedule()
{
	//special case - double header gig (Bad Monkey & Capri 9/17/2010)
	/*
	var currentDate = new Date();
	var cutoffDate = new Date('09/17/2010 19:00:00');
			
	//special case - double header gig (Bad Monkey & Capri 9/17/2010)
	if(currentDate < cutoffDate)
	{
		listGig("09/17/2010", monkey.title, monkey);
	}
	else
	{
		listGig("09/17/2010", capri.title, capri);
	}
	*/

    listGig("02/10/2012", kpub.clownstitle, kpub, true);

    //Use when schedule is blank
	//populateShow(null, null, null);

	//reference syntax for private gig (Joe & Clowns)
	//listGig("09/18/2010", privateEvent.title, privateEvent, false, true);
	//listGig("09/18/2010", privateClowns.title, privateClowns, true, true);

}

//populate properties for each gig object, add to gig calendar array
function listGig(gigDate, gigTitle, gigVenue, gigClowns, gigPrivate)
{
	var currentDate = new Date();
	var compareDate = new Date(gigDate);
	var dateDay = Date.WeekdayNames[compareDate.getDay() + 1];
	
	currentDate = new Date(FormatDateTime(currentDate, 2));
	compareDate = new Date(FormatDateTime(compareDate, 2));
	
	//filter out past dates for calendar
	if(compareDate >= currentDate)
	{
		var gig = new Object;

		gig.start = gigDate;
		gig.title = gigTitle;
		gig.detail = gigVenue;
		gig.clowns = gigClowns;
		gigCalendar.push(gig);
		
		if(compareDate > currentDate)
		{
			dayShow = "This " + dateDay + "!";
		}
		
		//show next upcoming gig on homepage
		if(!showDisplayed && !gigPrivate)
		{
			populateShow(gigDate, gigVenue, gigClowns);
			showDisplayed = true;
		}
	}
}

//Home page venue information display
function populateShow(gigDate, venue, stackable) {
	
	//special case - double header gig (Bad Monkey & Capri 9/3/2010)
	/*
	if(venue == monkey)
	{
		dayShow = "This Evening!";
	}
	
	//special case - one-off benefit gig 10/24/2010)
	if(venue == mukilteo && (weekday.getDay() == 0))
	{
		dayShow = " - And Show Your Support!";
	}
	*/

    //special case - till start of Oregon gig (Seven Feathers Casino)
    //if (venue == seven) {
    //    dayShow = "Later This Month!";
    //}


    var html = "";

    if (!venue) {

        html = "<table cellpadding=\"0\" cellspacing=\"0\">" +
	    "<tr><td class=\"text_9\"><i>Check back soon for upcoming performances...</i>" +
	    "</td></tr></table>";

        $('#divShow').attr('style', 'width:400px;');
    }
    else {

        var weekday = new Date(gigDate);
        var time;
        var setting = (weekday.getDay() == 0 || weekday.getDay() == 4) ? venue.setting : "";
        var clowns = (stackable) ? venue.clowns : "";

        if (weekday.getDay() == 6)
            time = venue.timeSaturday;
        else if (weekday.getDay() == 4)
            time = venue.timeThursday;
        else if (weekday.getDay() == 1)
            time = venue.timeMonday;
        else if (weekday.getDay() == 0)
            time = venue.timeSunday;
        else
            time = venue.time;


        html = "<table cellpadding=\"0\" cellspacing=\"0\">" +
	    "<tr><td class=\"layout_venueIcon\">" + venue.icon + "</td>" +
	    "<td class=\"layout_venueInfo text_9\">" + clowns + setting +
	    "<div class=\"top_padding_10\">" + venue.info + "</div>" +
	    "<div class=\"top_padding_10\">" + venue.directions + "</div>" +
	    "</td></tr></table>";

        $('#tdCaption').html("See Joe Live " + dayShow);
        $('#tdCaptionDate').html(FormatDateTime(gigDate, 1) + "&nbsp;&nbsp;&nbsp;" + time);

        $('#divShow').attr('class', 'top_padding_10');
    }
    
	$('#divShow').html(html);
}


//Calendar page venue information display
function showGigDetails(date, venue, stackable)
{
    var divDetails = $('#divDetails');

    if(divDetails.css('display') == 'none')
    {
		var header = (stackable) ? venue.clownsheader : venue.header;
		var subheader = (stackable) ? venue.clownssubheader : venue.subheader;
		var html;
		
		if(venue.info != "")
		{
			var weekday = new Date(date);
			var clowns = (stackable) ? venue.clowns : "";
			var time;  //= (weekday.getDay() == 6) ? venue.timeSaturday : venue.time;

			if (weekday.getDay() == 6)
			    time = venue.timeSaturday;
			else if (weekday.getDay() == 4)
			    time = venue.timeThursday;
			else if (weekday.getDay() == 1)
			    time = venue.timeMonday;
			else if (weekday.getDay() == 0)
			    time = venue.timeSunday;
			else
			    time = venue.time;


            html =
			"<table cellpadding=\"0\" cellspacing=\"0\" style=\"width:420px; background-color:#dddddd;\" align=\"center\">" +
			"<tr><td class=\"text_10\" style=\"text-align:center;\">" + header +
			"<a href=\"Javascript:showGigDetails();\"><img src=\"images\/close.gif\" style=\"position:absolute; left:430px; top:8px;\" border=\"0\" title=\"Close Window\"></td></tr>" +
			"<tr><td class=\"text_9\" style=\"text-align:center;\"><i>" + subheader + "</i></td></tr>" +
			"<tr><td class=\"top_padding_15\">" +
				"<table cellpadding=\"0\" cellspacing=\"0\">" +
				"<tr><td class=\"layout_venueIcon\">" + venue.icon + "</td>" +
				"<td class=\"layout_venueInfo text_9\"><b>" + FormatDateTime(date, 1) + "</b><br/>" +
				"<img src=\"images/spacer.gif\" width=\"25\" height=\"1\"><b><i> - " + time + "</i></b>" +
				"<div class=\"top_padding_10\">" + venue.info + "</div>" +
				"<div class=\"top_padding_10\">" + venue.directions + "</div>" +
				"</td></tr></table>" +
			"</td></tr>" +
			"<tr><td class=\"top_padding_15\">&nbsp;</td></tr>" +
			"<tr><td align=\"center\"><a href=\"Javascript:showGigDetails();\" class=\"text_22\">Close Window</a></td></tr>" +
			"</table>";

		}
		else
		{
			html =
			"<table cellpadding=\"0\" cellspacing=\"0\" style=\"width:420px; background-color:#dddddd;\" align=\"center\">" +
			"<tr><td class=\"text_10\" style=\"text-align:center;\">" + header + 
			"<a href=\"Javascript:showGigDetails();\"><img src=\"images\/close.gif\" style=\"position:absolute; left:430px; top:8px;\" border=\"0\" title=\"Close Window\"></td></tr>" +
			"<tr><td class=\"text_9\" style=\"text-align:center;\"><i>" + subheader + "</i></td></tr>" +
			"<tr><td class=\"top_padding_15\">" +  
				"<table cellpadding=\"0\" cellspacing=\"0\">" +
				"<tr><td class=\"layout_venueIcon\">" + venue.icon + "</td>" +
				"<td class=\"layout_venueInfo\" align=\"center\"><a href=\"mailto:joe@joecarolus.com?subject=Booking Inquiry\" class=\"text_22\">Book Joe Carolus <br/>or The Stackable Clowns</a>" +
				"</td></tr></table>" +
			"</td></tr>" +
			"<tr><td class=\"top_padding_15\">&nbsp;</td></tr>" +
			"<tr><td align=\"center\"><a href=\"Javascript:showGigDetails();\" class=\"text_22\">Close Window</a></td></tr>" +
			"</table>";
		}
    
		divDetails.html(html);
		divDetails.modal();
    }    
    else
    {
        $.modal.close();
    }
}


function popUp(linkName, no_tools)
{
	var actionWindow;	
	
	if(no_tools)
	{
		actionWindow = window.open('', 'Link', 'width=860, height=600, status=0, scrollbars=1, menubar=0, toolbar=0, location=0, resizable=yes, minimize=yes, left=0, top=0, screenX=0, screenY=0');
	}
	else
	{
		actionWindow = window.open('', 'Link', 'width=800, height=600, status=0, scrollbars=1, menubar=1, toolbar=0, location=1, resizable=yes, minimize=yes, left=0, top=0, screenX=0, screenY=0');
	}
	
	actionWindow.location.href = linkName;
	actionWindow.focus();
}

function popUpImage(linkName)
{
	var actionWindow;	
	
	actionWindow = window.open('', 'Link', 'width=740, height=730, status=0, scrollbars=1, menubar=0, toolbar=0, location=0, resizable=yes, minimize=yes, left=0, top=0, screenX=0, screenY=0');
	
	actionWindow.location.href = linkName;
	actionWindow.focus();
}

function popUpSmall(linkName)
{
	var actionWindow;	
	
    actionWindow = window.open('', 'Link', 'width=400, height=400, status=0, scrollbars=0, menubar=0, toolbar=0, location=0, resizable=no, minimize=yes, left=0, top=0, screenX=0, screenY=0');
	
	actionWindow.location.href = linkName;
	actionWindow.focus();
}


function drawHeader(pagename)
{
	var linkClass_1 = (pagename == "Performer" || pagename == "Friends") ? "text_16" : "text_1";
	var linkClass_2 = "headerLinks_blue";
	var headerImage = "banner_blue.jpg";
	var headerImageSpecial = "banner_blue.jpg";
	
	//special case (September Promotions)
	//var currentDate = new Date();
	//var compareDate_1 = new Date('12/31/2010 23:59:00');
	//var compareDate_2 = new Date('10/09/2010 22:00:00');

	//if(currentDate <= compareDate_1)
	//{
	//    headerImageSpecial = "banner_blue_tandem_nye.jpg";
	//}
	

	var performer	= "<a href=\"performer.htm\" class=\"" + linkClass_1 + "\">Performer</a>";
	var songwriter	= "<a href=\"songwriter.htm\" class=\"" + linkClass_1 + "\">Song Writer</a>";
	var clowns		= "<a href=\"http:\/\/www.myspace.com\/thestackableclowns\" class=\"" + linkClass_1 + "\" target=\"_blank\">The Stackable Clowns</a>";
	var calendar	= "<a href=\"calendar.htm\" class=\"" + linkClass_1 + "\">Calendar</a>";
	var music		= "<a href=\"music.htm\" class=\"" + linkClass_1 + "\">Music</a>";
	var friends		= "<a href=\"friends.htm\" class=\"" + linkClass_1 + "\">Friends</a>";
	
	switch(pagename)
	{
		case "Performer":
			performer = pagename;
			linkClass_2 = "headerLinks_red";
			headerImage = "banner_red.jpg";
			break;
		case "Song Writer":
			songwriter = pagename;
			break;
		case "Calendar":
			calendar = pagename
			break;
		case "Music":
			music = pagename
			break;
		case "Friends":
			friends = pagename;
			linkClass_2 = "headerLinks_red";
			headerImage = "banner_red.jpg";
			break;
	}

    var headerBanner = (pagename == 'Home') ? "<img src=\"images/" + headerImageSpecial + "\" height=\"150\" width=\"778\" border=\"0\" />" : "<a href=\"index.htm\"><img src=\"images/" + headerImage + "\" height=\"150\" width=\"778\" border=\"0\" /></a>";

	var tables =
    "<table cellpadding=\"0\" cellspacing=\"0\" style=\"width:778px; height:150px; background-color:#e5e5e5;\" align=\"center\">" +
    "<tr><td valign=\"top\" class=\"side_padding\" style=\"height:150px;\">" + headerBanner + "</td></tr>" +
    "<tr><td valign=\"top\" style=\"height:2px;\"></td></tr>" +
    "</table>" +   
    "<table cellpadding=\"0\" cellspacing=\"0\" style=\"width:778px;\" align=\"center\">" +
    "<tr><td valign=\"top\" class=\"side_padding\">" +
    "<table cellpadding=\"0\" cellspacing=\"0\" style=\"width:778px; background-color:#e5e5e5;\">" +
    "<tr><td style=\"width:121px;\" class=\"" + linkClass_2 + "\">" + performer + "</td>" +
    "<td style=\"width:2px;\"></td>" +
    "<td style=\"width:137px;\" class=\"" + linkClass_2 + "\">" + songwriter + "</td>" +
    "<td style=\"width:2px;\"></td>" +
    "<td style=\"width:209px;\" class=\"" + linkClass_2 + "\">" + clowns + "</td>" +
    "<td style=\"width:2px;\"></td>" +
    "<td style=\"width:111px;\" class=\"" + linkClass_2 + "\">" + calendar + "</td>" +
    "<td style=\"width:2px;\"></td>" +
    "<td style=\"width:90px;\" class=\"" + linkClass_2 + "\">" + music + "</td>" +
    "<td style=\"width:2px;\"></td>" +
    "<td style=\"width:100px;\" class=\"" + linkClass_2 + "\">" + friends + "</td>" +
    "</tr></table>" +
    "</td></tr></table>";

	document.write(tables);
}


function drawFooter(pagename)
{
	var tables;
	
	if(pagename == 'Home')
	{
		tables =
		"<table cellpadding=\"0\" cellspacing=\"0\" style=\"width:700px;\" align=\"center\">" +
		"<tr><td style=\"text-align:center;padding-top:15px;\"><a href=\"mailto:joe[at-no-spam]joecarolus.com?subject=Booking Inquiry\" id=\"contactJoe_2\" class=\"text_22\">Book Joe Carolus or The Stackable Clowns</a></td></tr>" +
		"</table>";
    }
    else
    {
		tables =
		"<table cellpadding=\"0\" cellspacing=\"0\" style=\"width:700px;\" align=\"center\">" +
		"<tr><td style=\"text-align:center;padding-top:15px;\"><a href=\"index.htm\" class=\"text_22\">Return To Home</a><img src=\"images/spacer.gif\" style=\"width:20px; height:20px;\">|<img src=\"images/spacer.gif\" style=\"width:20px; height:20px;\"><a href=\"mailto:joe[at-no-spam]joecarolus.com?subject=Booking Inquiry\" id=\"contactJoe_1\" class=\"text_22\">Book Joe Carolus or The Stackable Clowns</a><img src=\"images/spacer.gif\" style=\"width:20px; height:20px;\">|<img src=\"images/spacer.gif\" style=\"width:20px; height:20px;\"><a href=\"mailto:joe[at-no-spam]joecarolus.com\" id=\"contactJoe_2\" class=\"text_22\">Contact Joe</a></td></tr>" +
		"</table>";
    }
    
    tables +=
    "<table cellpadding=\"0\" cellspacing=\"0\" style=\"width:779px; background-color:#e5e5e5;\" align=\"center\">" +
    "<tr><td class=\"text_15\" align=\"center\" style=\"padding-top:30px;padding-bottom:10px;\">" +
	"All site contents &copy;2011 by Joe Carolus - all rights reserved<br/>" +
	"Website Design by <a href=\"mailto:chrisg[at-no-spam]chris-g.com?subject=Website Design\" id=\"contactChris\" class=\"text_15\">WonderWorks Studios</a>" +
	"</td></tr></table>";
	
	document.write(tables);
}

function preLoadImages_Home()
{
	// Specify the image array files...
	preLoadImage_a[0] = 'images/cohen.jpg';
	preLoadImage_a[1] = 'images/prestwood.jpg';
	preLoadImage_a[2] = 'images/steele.jpg';

	preLoadImage_b[0] = 'images/gabrielle.jpg';
	preLoadImage_b[1] = 'images/mccracken.jpg';
	preLoadImage_b[2] = 'images/chugg.jpg';

	// Specify the caption array text...
	captionArray_a[0] = "Joe and <a href=\"http://bmi.com/musicworld/entry/233550/\" target=\"_blank\" class=\"text_15\">Jeff Cohen</a>";
	captionArray_a[1] = "Joe and <a href=\"http://www.hughprestwood.com/\" target=\"_blank\" class=\"text_15\">Hugh Prestwood</a>";
	captionArray_a[2] = "Joe and <a href=\"http://www.jeffreysteele.net/\" target=\"_blank\" class=\"text_15\">Jeffrey Steele</a>";

	captionArray_b[0] = "Joe and <a href=\"http://www.myspace.com/mariegabrielleband\" target=\"_blank\" class=\"text_15\">Marie Gabrielle</a>";
	captionArray_b[1] = "Joe and Hugh McCracken";
	captionArray_b[2] = "<a href=\"http://www.chuggentertainment.com/\" target=\"_blank\" class=\"text_15\">Michael Chugg</a> with Friends";
	
	preLoadImages(imageArray_a, preLoadImage_a);
	preLoadImages(imageArray_b, preLoadImage_b);
}

function preLoadImages_Performer()
{
	// Specify the image array files...
	preLoadImage_a[0] = 'images/joe_performer_1.jpg';
	preLoadImage_a[1] = 'images/joe_performer_2.jpg';
	preLoadImage_a[2] = 'images/joe_performer_3.jpg';
	
	preLoadImages(imageArray_a, preLoadImage_a);
}

function preLoadImages(toArray, fromArray)
{
    for (var i = 0; i < fromArray.length; i++)
    {
        toArray[i] = new Image();
        toArray[i].src = fromArray[i];
    }
}

function runSlideShow_a() 
{
    if (document.all) {
        document.images.PictureBox_a.style.filter = "blendTrans(duration=2)";
        document.images.PictureBox_a.style.filter = "blendTrans(duration=CrossFadeDuration)";
        document.images.PictureBox_a.filters.blendTrans.Apply();
    }

    document.images.PictureBox_a.src = imageArray_a[counter_a].src;

    if (captionArray_a.length > 0) {
        if (document.getElementById) document.getElementById("CaptionBox_a").innerHTML = captionArray_a[counter_a];
    }

    if (document.all) document.images.PictureBox_a.filters.blendTrans.Play();

    counter_a += 1;

    if (counter_a > (imageArray_a.length - 1)) counter_a = 0;

    timeout_a = setTimeout('runSlideShow_a()', SlideShowSpeed);
}

function runSlideShow_b() 
{
    if (document.all) {
        document.images.PictureBox_b.style.filter = "blendTrans(duration=2)";
        document.images.PictureBox_b.style.filter = "blendTrans(duration=CrossFadeDuration)";
        document.images.PictureBox_b.filters.blendTrans.Apply();
    }

    document.images.PictureBox_b.src = imageArray_b[counter_b].src;

    if (document.getElementById) document.getElementById("CaptionBox_b").innerHTML = captionArray_b[counter_b];

    if (document.all) document.images.PictureBox_b.filters.blendTrans.Play();

    counter_b += 1;

    if (counter_b > (imageArray_b.length - 1)) counter_b = 0;

    timeout_b = setTimeout('runSlideShow_b()', SlideShowSpeed);
}

function defineElement(elementId, offset)
{
    var leftPosition = getLeftPosition();

    document.getElementById(elementId).style.left = (leftPosition + offset);
}


function getLeftPosition()
{
	var windowWidth;
	var leftPosition;

	//ensure centering of footer text
	if (parseInt(navigator.appVersion) > 3) 
	{
 		if (navigator.appName.indexOf("Microsoft") != -1) 
		{
  			windowWidth  = document.body.offsetWidth;		
 		}
		else
		{
			windowWidth = document.width;			
		}

		leftPosition = ((windowWidth - 780) / 2);
    }
    
    return leftPosition;
}


