// Dynamically generate plantlog sidebar menu

var fullUrl = top.location.href
var page

document.write('<ul id="sidebarmenu">');

// --- Overview
page = fullUrl.match("plantlog-overview.html")
if(page == "plantlog-overview.html")
{
	document.write('<li class="here" style="width: 100%;"><a href="plantlog-overview.html" target="_top">Overview<span class="bullet">&bull;</span></a></li>');
}
else
{
	document.write('<li style="width: 100%;"><a href="plantlog-overview.html" target="_top">Overview</a></li>');
	
}

// --- How It Works
page = fullUrl.match("plantlog-howitworks.html")
if(page == "plantlog-howitworks.html")
{
	document.write('<li class="here"  style="width: 100%;"><a href="plantlog-howitworks.html" target="_top">How It Works<span class="bullet">&bull;</span></a></li>');
}
else
{
	document.write('<li style="width: 100%;"><a href="plantlog-howitworks.html" target="_top">How It Works</a></li>');
}

// --- Screenshots
page = fullUrl.match("plantlog-screenshots.html")
if(page == "plantlog-screenshots.html")
{
	document.write('<li class="here" style="width: 100%;"><a href="plantlog-screenshots.html" target="_top">Screenshots<span class="bullet">&bull;</span></a></li>');
}
else
{
	document.write('<li style="width: 100%;"><a href="plantlog-screenshots.html" target="_top">Screenshots</a></li>');
}


// --- Hardware
page = fullUrl.match("plantlog-hardware.html")
if(page == "plantlog-hardware.html")
{
	document.write('<li class="here" style="width: 100%;"><a href="plantlog-hardware.html" target="_top">Hardware<span class="bullet">&bull;</span></a></li>');
}
else
{
	document.write('<li style="width: 100%;"><a href="plantlog-hardware.html" target="_top">Hardware</a></li>');
}


// --- Frequently Asked Questions
page = fullUrl.match("plantlog-faq.html")
if(page == "plantlog-faq.html")
{
	document.write('<li class="here" style="width: 100%;"><a href="plantlog-faq.html" target="_top">Frequently Asked Questions<span class="bullet">&bull;</span></a></li>');
}
else
{
	document.write('<li style="width: 100%;"><a href="plantlog-faq.html" target="_top">Frequently Asked Questions</a></li>');
}

// --- Release Notes
page = fullUrl.match("plantlog-release-notes.html")
if(page == "plantlog-release-notes.html")
{
	document.write('<li class="here" style="width: 100%;"><a href="plantlog-release-notes.html" target="_top">Version Release Notes<span class="bullet">&bull;</span></a></li>');
}
else
{
	document.write('<li style="width: 100%;"><a href="plantlog-release-notes.html" target="_top">Version Release Notes</a></li>');
}

// --- Request Info
page = fullUrl.match("plantlog-requestinfo.html")
if(page == "plantlog-requestinfo.html")
{
	document.write('<li class="here" style="width: 100%;"><a href="plantlog-requestinfo.html" target="_top">Request Information<span class="bullet">&bull;</span></a></li>');
}
else
{
	document.write('<li style="width: 100%;"><a href="plantlog-requestinfo.html" target="_top">Request Information</a></li>');
}

document.write('</ul>');