/**************** Do not modify this top section ****************************/
var crsTitleText="<FONT COLOR='#400040' SIZE=+2><B>" + crsTitle +"</B></FONT>";
// is it a dummies course?
dummiesDir=""; //depends on whether we're on a series page
if (typeof(isDummies) != "undefined" && isDummies==true)
{
	crsTitleText="<span class=\"courseTitle\">" + crsTitle +"</span>";
	dummiesDir="dummies/";
	if (location.href.indexOf("/series/") > -1) dummiesDir="../dummies/";
}
// backbutton will not be shown if showBackButton is set to "no" or ?noback=yes is passed in parm
var showBackButton="yes";
var backButtonText = "<TD ALIGN=RIGHT><A HREF='javascript:history.back()'><IMG SRC='" + dummiesDir + "back.gif' HEIGHT=32 WIDTH=29 border=0 alt='Go Back'></A></TD>"

if (self.name=="popcat") showBackButton="";
if (location.search.indexOf("noback") > -1 || showBackButton  != "yes") backButtonText="";
var topMenuBar="<TABLE WIDTH='100%'><TR><TD ALIGN=LEFT>" + crsTitleText +"</TD>" + backButtonText + "</TR></TABLE>";
var bottomMenuBar="<TABLE WIDTH='100%'><TR><TD ALIGN=LEFT>&nbsp;</TD>" + backButtonText + "</TR></TABLE>";

function writeCatalogTopBBar() {
  document.write(topMenuBar);
  if (showBar=="yes") document.write(crsTitleText +"<BR>");
}

function writeCatalogBotBBar() {
  document.write(bottomMenuBar);
}
/***********************************************************/

/**************** To customize, modify as follows: ****************************/
/*  To enable a menu bar, set showBar="yes" or call page with ?showbar parm  */
/*  Then modify catalogMenuBar, which is the text of the menu bar */
/*  Use single quotes for any quotes within the text string                        */

var showBar="no";
/ * custom toolbar defintion  */
function openDemo() {
	window.open("/dpec/scripts/signon.exe?text1=demo1&text2=demo1","course_window","status=yes,resizable=yes,width=640,height=480,scrollbars=yes");
}
catalogMenuBar="<CENTER><FONT SIZE='1'>"
catalogMenuBar=catalogMenuBar+"<A HREF='javascript:openDemo();'>Free Courses</A> | ";
catalogMenuBar=catalogMenuBar+"<A HREF='psu/default.htm'>Pricing & Sign-up</A> | ";
catalogMenuBar=catalogMenuBar+"<A HREF='/dpec/signon.htm'>Course Login</A> | ";
catalogMenuBar=catalogMenuBar+"<A HREF='contents.htm'>Course Catalog</A> | ";
catalogMenuBar=catalogMenuBar+"<A HREF='features.htm'>Features and Benefits</A> | ";
catalogMenuBar=catalogMenuBar+"<A HREF='http://www.mindleaders.com/webshare/coursevote/default.asp'>Vote for New Courses</A> | ";
catalogMenuBar=catalogMenuBar+"<A HREF='aboutml.htm'>About MindLeaders</A> | ";
catalogMenuBar=catalogMenuBar+"<A HREF='contact.htm'>Contact Us</A> | ";
catalogMenuBar=catalogMenuBar+"<A HREF='default.htm'>Home</A></CENTER><BR><BR>";

if (location.search.indexOf("showbar") > -1 || showBar  == "yes")
{
   topMenuBar=catalogMenuBar;
   bottomMenuBar=catalogMenuBar;  //set to "" to omit bottom menu bar
}