/**************** Do not modify this top section ****************************/
//var crsTitleText="<FONT COLOR='#400040' SIZE=+2><B>" + crsTitle +"</B>";
// 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='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 popUp(fname, width, height)
{
if (parent.frames.length == 0 ) { // there is no frams, link is not in a framed window.
	width = (typeof(width) != "undefined")? width : 450
	height = (typeof(height) != "undefined")? height : 500
	topx = (screen.height - height)/2;
	leftx = (screen.width - width)/2;
	
	settings = "width=" + width + ", height=" + height +", scrollbars=yes, toolbar=0, scrolling=yes, top=" +topx +",left=" +leftx
	window.open(fname, "details", settings);
	}
else // we'r in a frammed window.
	{
	parent.main.location = fname
	}
}

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='../courses/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='../courses/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='../courses/aboutml.htm'>About MindLeaders</A> | ";
catalogMenuBar=catalogMenuBar+"<A HREF='../courses/contact.htm'>Contact Us</A> | ";
catalogMenuBar=catalogMenuBar+"<A HREF='../courses/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
}


