<!-- hide script from old browsers

	function initialize(categories)
	{
		var usingNetscape = "no";
//		if( navigator.appName == "Netscape" )
//		{
//			usingNetscape = "yes";
//		}
	
		var hisadone = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var hisadtwo = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var hisadthree = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var poladone = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var poladtwo = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var poladthree = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var cookadone = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var cookadtwo = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var cookadthree = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var reladone = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var reladtwo = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var reladthree = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var miscadone = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var miscadtwo = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var miscadthree = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var toyadone = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var toyadtwo = "<center><a href=\"http://www.toycrossing.com/bananagrams/index.shtml\"><img src=\"http://www.toycrossing.com/bananagrams/images/bananagrams-ad.jpg\" border=\"0\" alt=\"Learn to play Bananagrams\"></a></center>";
		var toyadthree = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var techadone = "<center><a href=\"http://www.treadmilllife.com\"><img src=\"http://www.treadmilllife.com/images/learn-about-treadmills.gif\" border=\"0\" alt=\"Learn About Treadmills\"></a></center>";
		var techadtwo = "<center><iframe src=\"http://rcm.amazon.com/e/cm?t=essentialbooks&o=1&p=20&l=ur1&category=kindle&banner=1KNAV7AGS7WAHJ5Z5ER2&f=ifr\" width=\"120\" height=\"90\" scrolling=\"no\" border=\"0\" marginwidth=\"0\" style=\"border:none;\" frameborder=\"0\"></iframe></center>";
		var techadthree = "<table width=120 cellpadding=5><tr><td><center>Toycrossing Sells <a href=\"http://www.toycrossing.com/quiddler\">Quiddler</a>!</center></td></tr></table>";
		
		var historyBanners = new Array();
//		if( usingNetscape == "no" )
//		{
			historyBanners[0] = new bannerRecord(hisadone, "history", "M", "noModify");
			historyBanners[1] = new bannerRecord(hisadtwo, "history", "M", "noModify");
			historyBanners[2] = new bannerRecord(hisadthree, "history", "M", "noModify");
//		}
//		else
//		{    
//		}

		var politicsBanners = new Array();
			politicsBanners[0] = new bannerRecord(poladone, "politics", "M", "noModify");
			politicsBanners[1] = new bannerRecord(poladtwo, "politics", "M", "noModify");
			politicsBanners[2] = new bannerRecord(poladthree, "politics", "M", "noModify");

		var cookingBanners = new Array();
			cookingBanners[0] = new bannerRecord(cookadone, "cooking", "M", "noModify");
			cookingBanners[1] = new bannerRecord(cookadtwo, "cooking", "M", "noModify");
			cookingBanners[2] = new bannerRecord(cookadthree, "cooking", "M", "noModify");
	
		var religionBanners = new Array();
			religionBanners[0] = new bannerRecord(reladone, "religion", "M", "noModify");
			religionBanners[1] = new bannerRecord(reladtwo, "religion", "M", "noModify");
			religionBanners[2] = new bannerRecord(reladthree, "religion", "M", "noModify");

		var miscBanners = new Array();
			miscBanners[0] = new bannerRecord(miscadone, "miscellaneous", "M", "noModify");
			miscBanners[1] = new bannerRecord(miscadtwo, "miscellaneous", "M", "noModify");
			miscBanners[2] = new bannerRecord(miscadthree, "miscellaneous", "M", "noModify");

		var toyBanners = new Array();
			toyBanners[0] = new bannerRecord(toyadone, "toys", "M", "noModify");
			toyBanners[1] = new bannerRecord(toyadtwo, "toys", "M", "noModify");
			toyBanners[2] = new bannerRecord(toyadthree, "toys", "M", "noModify");

		var techBanners = new Array();
			techBanners[0] = new bannerRecord(techadone, "tech", "M", "noModify");
			techBanners[1] = new bannerRecord(techadtwo, "tech", "M", "noModify");
			techBanners[2] = new bannerRecord(techadthree, "tech", "M", "noModify");

		categories["history"] = new categoryRecord(historyBanners);
		categories["politics"] = new categoryRecord(politicsBanners);
		categories["cooking"] = new categoryRecord(cookingBanners);
		categories["religion"] = new categoryRecord(religionBanners);
		categories["misc"] = new categoryRecord(miscBanners);
		categories["toys"] = new categoryRecord(toyBanners);
		categories["tech"] = new categoryRecord(techBanners);
	}


  // ****************************************
  // Do not modify any of the following lines

  function categoryRecord(bannerNames)
  {
	this.bannerNames = bannerNames;
  }
  function bannerRecord(bannerLink, counterName, groupCode, type)
  {
	this.bannerLink = bannerLink;
	this.counterName = counterName;
	this.groupCode = groupCode;
	this.type = type;
  }

  function showBanner(category, countAd)
  {
    	var categories = new Array();
	initialize(categories);

	var outputRecord = "";
  	var now = new Date();
	var bannerNum = (now.getSeconds()) % categories[category].bannerNames.length;
	var banner = categories[category].bannerNames[bannerNum];

	if( banner.type == "javascript" )
	{
  		outputRecord += "<script src=\"";
  		outputRecord += banner.bannerLink;
  		outputRecord += "\"></script>";
	}
	else
	{
		outputRecord += banner.bannerLink;
	}

	// now count this ad only if requested
	var countAdLower = "";
	if ( countAd != null )
	{
		countAdLower = countAd.toLowerCase();
	}
	if ( countAdLower == "true" )
  	{  
	      	outputRecord += " <img src=\"http://www.conservativemonitor.com/cgi-bin/counter/hitmat.cgi?";
		outputRecord += banner.counterName;
		if( banner.groupCode )
		{
			outputRecord += "+";
			outputRecord += banner.groupCode;
		}
	        outputRecord += "=NONE\" height=\"0\" width=\"0\" border=\"0\">";
	}
	document.write(outputRecord);
  	document.close();
  }

// end of script hiding -->
