var pageURL = window.location.href;
var urlArray = pageURL.split("../index.html");

if (urlArray.length > 4) {
var pageName1 = urlArray[4];
} else {
var pageName1 = "index.html";
}

if (pageName1 == "undefined") {
	var pageNameA = "index";
} else {
	var pageNameA = pageName1.replace(".html", "");
}
if (urlArray.length == "6") {
	var pageName2 = urlArray[5];
	var pageNameB = pageName2.replace(".html", "");
}

if (urlArray.length == 6) {
var dirName = urlArray[4];
}
//Start Left Nav
document.write ('<div id="leftNav">');


//Home
if (pageNameA == "index") {
document.write ('<p class="header selectedBg"><a href="/2011/index.html" onclick="WM_toggle\(\'home\'\)\; return false" class="selected">Home</a></p>');
} else {
document.write ('<p class="header"><a href="/2011/index.html" onclick="WM_toggle\(\'home\'\)\; return false" class="notSelected">Home</a></p>');
}

//About Us
if (pageNameA == "aboutUs") {
document.write ('<p class="header selectedBg"><a href="/2010/aboutUs.html" onclick="WM_toggle\(\'about\'\)\; return false" class="selected">About ORGANIX</a></p>');
} else {
document.write ('<p class="header"><a href="/2010/aboutUs.html" onclick="WM_toggle\(\'about\'\)\; return false" class="notSelected">About ORGANIX</a></p>');
}

//Support Us
if (pageNameA == "supportUs") {
document.write ('<p class="header selectedBg"><a href="/2010/supportUs.html" onclick="WM_toggle\(\'support\'\)\; return false" class="selected">Support Us</a></p>');
} else {
document.write ('<p class="header"><a href="/2010/supportUs.html" onclick="WM_toggle\(\'support\'\)\; return false" class="notSelected">Support Us</a></p>');
}

//Tickets
if (pageNameA == "tickets" || pageNameA == "ticketsOnline" || pageNameA== "tickets#buyTicket") {
document.write ('<p class="header selectedBg"><a href="/2010/tickets.html" onclick="WM_toggle\(\'tickets\'\)\; return false" class="selected">Tickets</a></p>');
} else {
document.write ('<p class="header"><a href="/2010/tickets.html" onclick="WM_toggle\(\'tickets\'\)\; return false" class="notSelected">Tickets</a></p>');
}


//Venues
if (dirName != "undefined" && dirName == "venues") {
document.write ('<p class="header selectedBg"><a href="#" onclick="WM_toggle\(\'venues\'\)\; return false" class="selected">Venues & Organs</a></p>');
} else {
document.write ('<p class="header"><a href="#" onclick="WM_toggle\(\'venues\'\)\; return false" class="notSelected">Venues & Organs</a></p>');
}

document.write ('<p id="venues" class="menu" style="display: none">');

if (pageNameB != "undefined" && pageNameB == "casaLoma") {
document.write ('<a href="/2010/venues/casaLoma.html" class="selected2">Casa Loma</a><br />');
} else {
document.write ('<a href="venues/casaLoma.html">Casa Loma</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "churchOfTheHolyTrinity") {
document.write ('<a href="/2010/venues/churchOfTheHolyTrinity.html" class="selected2">Church of the Holy Trinity</a><br />');
} else {
document.write ('<a href="venues/churchOfTheHolyTrinity.html">Church of the Holy Trinity</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "allSaintsKingswayAnglicanChurch") {
document.write ('<a href="/2010/venues/allSaintsKingswayAnglicanChurch.html" class="selected2"><span style="line-height:14px;margin-top:18px;">All Saints Kingsway Anglican Church</span></a><br />');
} else {
document.write ('<a href="venues/allSaintsKingswayAnglicanChurch.html"><span style="line-height:14px;margin-top:18px;">All Saints Kingsway Anglican Church</span></a><br />');
}

if (pageNameB != "undefined" && pageNameB == "metropolitanUnitedChurch") {
document.write ('<a href="/2010/venues/metropolitanUnitedChurch.html" class="selected2">Metropolitan United Church</a><br />');
} else {
document.write ('<a href="venues/metropolitanUnitedChurch.html">Metropolitan United Church</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "stJohnsAnglicanChurch") {
document.write ('<a href="/2010/venues/stJohnsAnglicanChurch.html" class="selected2">St. John’s Anglican Church</a><br />');
} else {
document.write ('<a href="venues/stJohnsAnglicanChurch.html">St. John’s Anglican Church</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "ourLadyOfSorrows") {
document.write ('<a href="/2010/venues/ourLadyOfSorrows.html" class="selected2"><span style="line-height:14px;margin-top:18px;">Our Lady of Sorrows Catholic Church</span></a><br />');
} else {
document.write ('<a href="venues/ourLadyOfSorrows.html"><span style="line-height:14px;margin-top:18px;">Our Lady of Sorrows Catholic Church</span></a><br />');
}


document.write ('</p>');

//Program Details
if (dirName != "undefined" && dirName == "programDetails") {
document.write ('<p class="header selectedBg"><a href="#" onclick="WM_toggle\(\'program\'\)\; return false" class="selected">Program Details</a></p>');
} else {
document.write ('<p class="header"><a href="#" onclick="WM_toggle\(\'program\'\)\; return false" class="notSelected">Program Details</a></p>');
}

document.write ('<p id="program" class="menu" style="display: none">');

if (pageNameB != "undefined" && pageNameB == "Carroll_Wilks_Bisson") {
document.write ('<a href="/2010/programDetails/Carroll_Wilks_Bisson.html" class="selected2">Wayne Carroll	& Alexa Wilks & Simon Bisson</a><br />');
} else {
document.write ('<a href="programDetails/Carroll_Wilks_Bisson.html">Wayne Carroll	& Alexa Wilks  <br />&nbsp;&nbsp;&nbsp & Simon Bisson</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "Ross_McDonald") {
document.write ('<a href="/2010/programDetails/Ross_McDonald.html" class="selected2">Ross McDonald</a><br />');
} else {
document.write ('<a href="programDetails/Ross_McDonald.html">Ross McDonald</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "Frederic_Champion") {
document.write ('<a href="/2010/programDetails/Frederic_Champion.html" class="selected2">Frédéric Champion</a><br />');
} else {
document.write ('<a href="programDetails/Frederic_Champion.html">Frédéric Champion</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "Thomas_Pousont") {
document.write ('<a href="/2010/programDetails/Thomas_Pousont.html" class="selected2">Thomas Pousont</a><br />');
} else {
document.write ('<a href="programDetails/Thomas_Pousont.html">Thomas Pousont</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "Mahon_Beckwith") {
document.write ('<a href="/2010/programDetails/Mahon_Beckwith.html" class="selected2">Rachel Mahon & Larry Beckwith</a><br />');
} else {
document.write ('<a href="programDetails/Mahon_Beckwith.html">Rachel Mahon & Larry Beckwith</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "Andrei_Streliaev") {
document.write ('<a href="/2010/programDetails/Andrei_Streliaev.html" class="selected2">Andrei Streliaev</a><br />');
} else {
document.write ('<a href="programDetails/Andrei_Streliaev.html">Andrei Streliaev</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "Christie_Street") {
document.write ('<a href="/2010/programDetails/Christie_Street.html" class="selected2">James David Christie & <br />&nbsp;&nbsp;&nbsp Jacob Street</a><br />');
} else {
document.write ('<a href="programDetails/Christie_Street.html">James David Christie & <br />&nbsp;&nbsp;&nbsp Jacob Street</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "Jacob_Street") {
document.write ('<a href="/2010/programDetails/Jacob_Street.html" class="selected2">Jacob Street</a><br />');
} else {
document.write ('<a href="programDetails/Jacob_Street.html">Jacob Street</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "openDoors") {
document.write ('<a href="/2010/programDetails/openDoors.html" class="selected2">Open Doors Toronto</a><br />');
} else {
document.write ('<a href="programDetails/openDoors.html">Open Doors Toronto</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "Eugenio_Fagiani") {
document.write ('<a href="/2010/programDetails/Eugenio_Fagiani.html" class="selected2">Eugenio Fagiani</a><br />');
} else {
document.write ('<a href="programDetails/Eugenio_Fagiani.html">Eugenio Fagiani</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "Eng_Wright") {
document.write ('<a href="/2010/programDetails/Eng_Wright.html" class="selected2">Sanya Eng & Patricia Wright</a><br />');
} else {
document.write ('<a href="programDetails/Eng_Wright.html">Sanya Eng & Patricia Wright</a><br />');
}

document.write ('</p>');

if (dirName != "undefined" && dirName == "bios") {
document.write ('<p class="header selectedBg"><a href="#" onclick="WM_toggle\(\'bios\'\)\; return false" class="selected">Bios</a></p>');
} else {
document.write ('<p class="header"><a href="#" onclick="WM_toggle\(\'bios\'\)\; return false" class="notSelected">Bios</a></p>');
}

document.write ('<p id="bios" class="menu" style="display: none">');

if (pageNameB != "undefined" && pageNameB == "Samuel_Bisson") {
document.write ('<a href="/2010/bios/Samuel_Bisson.html" class="selected2">Samuel Bisson</a><br />');
} else {
document.write ('<a href="bios/Samuel_Bisson.html">Samuel Bisson</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "Wayne_Carroll") {
document.write ('<a href="/2010/bios/Wayne_Carroll.html" class="selected2">Wayne Carroll</a><br />');
} else {
document.write ('<a href="bios/Wayne_Carroll.html">Wayne Carroll</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "Frederic_Champion") {
document.write ('<a href="/2010/bios/Frederic_Champion.html" class="selected2">Frédéric Champion</a><br />');
} else {
document.write ('<a href="bios/Frederic_Champion.html">Frédéric Champion</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "James_David_Christie") {
document.write ('<a href="/2010/bios/James_David_Christie.html" class="selected2">James David Christie</a><br />');
} else {
document.write ('<a href="bios/James_David_Christie.html">James David Christie</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "Sanya_Eng") {
document.write ('<a href="/2010/bios/Sanya_Eng.html" class="selected2">Sanya Eng</a><br />');
} else {
document.write ('<a href="bios/Sanya_Eng.html">Sanya Eng</a><br />');
}


if (pageNameB != "undefined" && pageNameB == "Eugenio_Fagiani") {
document.write ('<a href="/2010/bios/Eugenio_Fagiani.html" class="selected2">Eugenio Fagiani</a><br />');
} else {
document.write ('<a href="bios/Eugenio_Fagiani.html">Eugenio Fagiani</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "Rachel_Mahon") {
document.write ('<a href="/2010/bios/Rachel_Mahon.html" class="selected2">Rachel Mahon</a><br />');
} else {
document.write ('<a href="bios/Rachel_Mahon.html">Rachel Mahon</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "gordonMansell") {
document.write ('<a href="/2010/bios/gordonMansell.html" class="selected2">Gordon Mansell</a><br />');
} else {
document.write ('<a href="bios/gordonMansell.html">Gordon Mansell</a><br />');
}


if (pageNameB != "undefined" && pageNameB == "Ross_McDonald") {
document.write ('<a href="/2010/bios/Ross_McDonald.html" class="selected2">Ross McDonald</a><br />');
} else {
document.write ('<a href="bios/Ross_McDonald.html">Ross McDonald</a><br />');
}


if (pageNameB != "undefined" && pageNameB == "williamOMeara") {
document.write ('<a href="/2010/bios/williamOMeara.html" class="selected2">William O\'Meara</a><br />');
} else {
document.write ('<a href="bios/williamOMeara.html">William O\'Meara</a><br />');
}


if (pageNameB != "undefined" && pageNameB == "Thomas_Pousont") {
document.write ('<a href="/2010/bios/Thomas_Pousont.html" class="selected2">Thomas Pousont</a><br />');
} else {
document.write ('<a href="bios/Thomas_Pousont.html">Thomas Pousont</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "Jacob_Street") {
document.write ('<a href="/2010/bios/Jacob_Street.html" class="selected2">Jacob Street</a><br />');
} else {
document.write ('<a href="bios/Jacob_Street.html">Jacob Street</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "Andrei_Streliaev") {
document.write ('<a href="/2010/bios/Andrei_Streliaev.html" class="selected2">Andrei Streliaev</a><br />');
} else {
document.write ('<a href="bios/Andrei_Streliaev.html">Andrei Streliaev</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "Alexa_Wilks") {
document.write ('<a href="/2010/bios/Alexa_Wilks.html" class="selected2">Alexa Wilks</a><br />');
} else {
document.write ('<a href="bios/Alexa_Wilks.html">Alexa Wilks</a><br />');
}

if (pageNameB != "undefined" && pageNameB == "Patricia_Wright") {
document.write ('<a href="/2010/bios/Patricia_Wright.html" class="selected2">Patricia Wright</a><br />');
} else {
document.write ('<a href="bios/Patricia_Wright.html">Patricia Wright</a><br />');
}


document.write ('</p>');

if (dirName != "undefined" && dirName == "store") {
document.write ('<p class="header selectedBg"><a href="/2010/store/" onclick="WM_toggle\(\'store\'\)\; return false" class="selected">Organix Store</a></p>');
} else {
document.write ('<p class="header"><a href="/2010/store/" onclick="WM_toggle\(\'store\'\)\; return false" class="notSelected">Organix Store</a></p>');
}

document.write ('<p class="header"><a href="mailto:contactus@organixconcerts.ca" onclick="WM_toggle\(\'contact\'\)\; return false" class="notSelected">Contact Us</a></p>');

if (pageNameA == "join") {
document.write ('<p class="header selectedBg"><a href="/2010/join.html" onclick="WM_toggle\(\'join\'\)\; return false" class="selected">Join our email list</a></p>');
} else {
document.write ('<p class="header"><a href="/2010/join.html" onclick="WM_toggle\(\'join\'\)\; return false" class="notSelected">Join our email list</a></p>');
}

document.write ('<p class="header"><a href="/2009/index.html" class="notSelected">2009 Program</a></p>');
document.write ('<p class="header"><a href="/2008/index.html" class="notSelected">2008 Program</a></p>');
document.write ('<p class="header"><a href="/2007/index.html" class="notSelected">2007 Program</a></p>');
document.write ('<p class="header"><a href="/2006/index.html" class="notSelected">2006 Program</a></p>');

document.write ('<div id="sponsors" align="center">');
document.write ('<div id="sponsorsTitle"><img src="/2010/images/sponsors.gif" width="15" alt="sponsors"></div>');
document.write ('<div id="sponsorLogos">');
document.write ('<a href="http://www.torontoartscouncil.org" target="_blank"><img src="/2010/images/logo_torontoartscouncil.gif" alt="Toronto Arts Council" width="110" border="0"></a><br />');
document.write ('<a href="http://www.casavant.ca" target="_blank"><img src="/2010/images/logo_casavantfreres.gif" alt="Casavant Freres" width="100" border="0"></a><br /><br />');
document.write ('<a href="http://holytrinitytoronto.org/" target="_blank"><img src="/2010/images/logo_churchOfTheHolyTrinity.gif" alt="Church of the Holy Trinity" width="100" border="0"></a><br /><br />');
document.write ('<a href="http://www.ciocm.org/index.php?lang=e" target="_blank"><img src="/2010/images/logo_cioc.gif" alt="Canadian Organ International Competition" width="100" border="0"></a><br /><br />');
document.write ('<a href="http://www.iictoronto.esteri.it/IIC_Toronto" target="_blank"><img src="/2010/images/logo_LogoIICToronto2.gif" alt="Italian Cultural Institute" width="100" border="0"></a><br /><br />');
document.write ('<a href="javascript:void(0)" target="_blank"><img src="/2010/images/logo_alanJackson.gif" alt="Alan T Jackson" width="100" border="0"></a><br /><br />');
document.write ('<a href="http://williamomeara.com/" target="_blank"><img src="/2010/images/logo_Omeara.gif" alt="William O\'Meara" width="100" border="0"></a><br /><br />');
document.write ('<a href="javascript:void(0)" target="_blank"><img src="/2010/images/logo_Carroll-Scholorship-fund.gif" alt="Laverne and Doris Carroll Memorial Foundation" width="100" border="0"></a><br /><br />');
document.write ('<a href="javascript:void(0)" target="_blank"><img src="/2010/images/logo_Glionna-Mansel.gif" alt="Glionna Mansell Corporation" width="100" border="0"></a><br /><br />');
document.write ('<a href="mailto:mbgraphics@rogers.com" target="_blank"><img src="/2010/images/logo_mb.gif" alt="MB Graphics" width="100" border="0"></a><br /><br />');
document.write ('<a href="http://www.classicalrecordingtoronto.com" target="_blank"><img src="/2010/images/logo_classicalrecording.gif" alt="Classical Recording Toronto" width="100" border="0"></a><br /><br />');
document.write ('</div>');
document.write ('</div>');

document.write ('<div>');



