rightboundary = 0;
leftboundary = -130;
themenu = null;

function pull()
{
	if (window.drawit) clearInterval(drawit);
	pullit=setInterval("pullengine()",50);
}

function draw()
{
	clearInterval(pullit)
	drawit=setInterval("drawengine()",50);
}

function pullengine()
{
	if (document.all && themenu.pixelLeft<rightboundary) themenu.pixelLeft+=5;
	else if (document.layers&&themenu.left<rightboundary) themenu.left+=5;
	else if (window.pullit) clearInterval(pullit);
}

function drawengine()
{
	if (document.all&&themenu.pixelLeft>leftboundary) themenu.pixelLeft-=5;
	else if (document.layers&&themenu.left>leftboundary) themenu.left-=5;
	else if (window.drawit) clearInterval(drawit);
}


function showToolbar()
{
	menu = new Menu();

	mstyle = new MenuStyle();
	mstyle.idName = "SmartMenu";
	mstyle.idStyle = "vertical";
	mstyle.position = "absolute";
	mstyle.bVisible = true;
	mstyle.cellSpacing = 0;
	mstyle.mainMenuWidth = null;
	if (ie) mstyle.extraStyle = "left: -140px; top: 50px;";
	if (n)  mstyle.extraStyle = "left='-140px' top='50px'";
	mstyle.onmouseover = "pull()";
	mstyle.onmouseout  = "draw()";

	menu.newMenu(mstyle);
	menu.addItem("SmartMenu", "idName", 1, "eSolutionOnline", null,  null, null, null, 1, "red", "red");
	menu.addItem("SmartMenu", "idHome", 1, "Home", null,  "/today.asp", null, null, 1);
	menu.addItem("SmartMenu", "idArticles", 1, "Articles", null,  null, null, "ArticlesSub", 1);
	menu.addItem("SmartMenu", "idInteract", 1, "Interact", null,  null, null, "InteractSub", 1);
	menu.addItem("SmartMenu", "idSearch", 1, "Search", null, "/schedule.asp", null, null, 1, "red", "red");
	menu.addItem("SmartMenu", "idRecommendedResources", 1, "RecommendedResources", null, null, null, "RecommendedResourcesSub", 1);
	menu.addItem("SmartMenu", "idSource", 1, "Source", null, null, null, "sourceSub", 1);

/////////////////// ArticlesSub

	mstyle = new MenuStyle();
	mstyle.idName = "ArticlesSub";
	mstyle.idStyle = "vertical";
	mstyle.position = "absolute";
	mstyle.bVisible = false;
	mstyle.bLeftAligned = 0;
	mstyle.mainMenuWidth = "150px";
        mstyle.bgColor = "#336666";
        mstyle.fgColor = "#000000";

	menu.newMenu(mstyle);
	menu.addItem("ArticlesSub", "ArticlesRecentUpdates", 2, "Recent Updates", "Click here to see the most recent articles written by our sourceDNA staff",  "/whatsNew.asp", null, null, 1);
	menu.addSeparator("idArticlesSub");
	menu.addItem("ArticlesSub", "ArticlesPresentation", 2, "Presentation", "HTML, Dynamic HTML, XML, VBScript, JavaScript, Visual InterDev Design-Time Controls (DTCs)",  "/schedule.asp", null, null, 1);
	menu.addItem("ArticlesSub", "ArticlesApplication", 2, "Application", "Application Services Article",  "/schedule.asp", null, null, 0);
	menu.addItem("ArticlesSub", "ArticlesData", 2, "Data", "Data Services Article",  "/schedule.asp", null, null, 0);
	menu.addItem("ArticlesSub", "ArticlesSystem", 2, "System", "System Services Article",  "/schedule.asp", null, null, 1);

/////////////////// InteractSub

	mstyle.idName = "InteractSub";

	menu.newMenu(mstyle);
	menu.addItem("InteractSub", "InteractDiscussionBoard", 2, "Discussion Board", "Got questions? Click here to get the answers you are searching for!",  "/schedule.asp", null, null, 1);
	menu.addItem("InteractSub", "InteractJobListings", 2, "Job Listings", "Whether you are looking for a job or posting one, we have the best professionals on the Web",  "/schedule.asp", null, null, 0);

/////////////////// RecommendedResourcesSub

	mstyle.idName = "RecommendedResourcesSub";
	menu.newMenu(mstyle);
	menu.addItem("RecommendedResourcesSub", "ResourcesWebSites", 2, "Web Sites", "Still looking for more information? Here you will find a list of our most highly recommended developer Web sites",  "/schedule.asp", null, null, 1);
	menu.addItem("RecommendedResourcesSub", "ResourcesBooks", 2, "Books", "Click here to see our recommendations for the best books currently available",  "/schedule.asp", null, null, 0);

/////////////////// sourceSub
	mstyle.idName = "sourceSub";

	menu.newMenu(mstyle);
	menu.addItem("sourceSub", "SourceContactUs", 2, "Contact Us", "Want us to write a specific article? Got an idea on how we can improve the site? We would love to hear from!",  "mailto:source@esolutiononline.com?subject=source", null, null, 1);
	menu.addItem("sourceSub", "SourceOurBooks", 2, "Our Books", "Our programmers  have written on subjects ranging from Visual J++ to Visual InterDev to (of course :) Windows DNA. Click here to see a listing.",  "/schedule.asp", null, null, 0);
	menu.addSeparator("sourceSub");
	menu.addItem("sourceSub", "SourceAboutUs", 2, "About Us", "Read all about our source staff members that toil away tirelessly to bring you the most up-to-date Windows2000/DNA articles on the Web",  "/aboutUs.asp", null, null, 0);


	showMenu();

	
	if (document.all) themenu = document.all["SmartMenu"].style;
	if (document.layers) themenu = document.layers["SmartMenu"];
}
