<!--
// Ad Generator
// Glenn Hutchison 2008
// All right reserved.

var 	buildNavigation = "<table width='100%' class='leftside' cellspacing='0' cellpadding='1' border='0'><tr><td class='nav'>&nbsp;</td></tr>",
	arrayLink = new Array("Home","High Schools","HS Sports","PocketSites","Restaurants","WBB Paper"),
	arrayUrl = new Array("index.html","hs_websites.html","hs_sports.html","pocketsites.html","restaurants.html","http://www.weeklybargainbulletin.com");
	buildBottomNav = " ",
	bottomNavLink = new Array("About","Contact"),
	bottomNavUrl = new Array("about_wbblive.html","contact.html");
	loc = window.location.href;
	loc.indexOf("//");
	loc.substring(loc.indexOf("//")+3);
	locNum = loc.substring(loc.indexOf("//")+3).split("/").length - 2;
	prefix = "";

if(locNum == 1) {
	prefix = "../";
}


//Build Main Nav
for(i = 0; i < arrayLink.length; i++)
{	
	buildNavigation += "<tr><td class='nav'><a href='" + prefix + arrayUrl[i] + "' class='nav'>" + arrayLink[i] + "</a></td></tr>";
}

buildNavigation += "<tr><td class='leftside'>&nbsp;</td></tr></table>";


//Build Bottom Nav
for(i = 0; i < bottomNavLink.length; i++)
{	
	buildBottomNav += "<a class='bottomnav' href='" + prefix + bottomNavUrl[i] + "' class='nav'>" + bottomNavLink[i] + "</a>";

	if(i < bottomNavLink.length - 1)
	{
		buildBottomNav += "&nbsp;&nbsp;|&nbsp;";
	}
}


//CANCELS BOTTOM NAV
buildBottomNav = " ";


-->