//GENERAL CONFIGURATION

//====================================
//Enhancements/Fixes:
//====================================
// 5.1.4- 7/05:
//- added special handling for Safari
//- added corporate logo tracking
//- fixed preferences bug
//====================================
// 5.1.5- 11/05
//- added Safari fix to search.htm
//====================================
// 5.1.6- 01/06
//- expiry date function fix
//====================================


//ActivDirectory Version
var version = "5.1.6";

//-Geographic name of directory, publisher, and product to appear on titlebar and results page
var title = "Lincoln & Surrounding Area"; 	// -- Enter title from requisition
var trakVal = "WINLCN08";	//-- enter book code
var traip = "windstream.innovectra.net";
var bookLoc = trakVal;
var spinecode = trakVal;
var issuedate = "12";
var year = "2008";
var corp = "Windstream";
var publisher = "Windstream";
var brandname = "Online Directory";
var product = "Online Directory";
var corplink = "www.windstreamyellowpages.com";
var orderNumber = "800-642-2124"
var atkOff = 0;
var uniqueID = null;

//--- ADD SECTIONS IN THE DROP-DOWN HERE (IF YOU NEED TO ADD A SECTION THAT IS NOT HERE, ---
//--- ADD IT HERE, IN TREE.HTM AND IN TREE.JS. ALSO IN THE SEARCH.JS FILES IF IT IS      ---
//--- A WHITE OR YELLOW SECTION)						         ---

//- 20 Popular Headings & Front Cover
	var coverSection = new Array();
	coverSection[0] = new Array("20 Popular Headings Front Cover", "cover", 1, 1);

//- Front Cover only -- Needed if 20 Headings is switched off
	var frontSection = new Array();
	frontSection[0] = new Array("Front Cover", "cover", 1, 0);

//- Inside Track -- Houston only
	var insideSection = new Array();
	insideSection[0] = new Array("Inside Track", "inside", 1, 0);

//- Community Section
	var commSection = new Array();
	commSection[0] = new Array("Community", "comm", 1, 0);

//- Urban Roundup -- Houston only
	var urbanSection = new Array();
	urbanSection[0] = new Array("Urban Roundup", "urban", 1, 0);

//- Emergency Numbers
	var emerSection = new Array();
	emerSection[0] = new Array("Emergency Numbers", "cust", 1, 1);

//- Customer & Community Information
	var custSection = new Array();
	custSection[0] = new Array("Customer Guide", "cust", 2, 1);	//- Main link
	custSection[1] = new Array("Customer Information", "cust", 1, 0);	//- Main link
	custSection[2] = new Array("Community Information", "comm", 1, 1);	//- Main link

//- Community
	var commSection = new Array();
	commSection[0] = new Array("Community Information", "comm", 1, 1);


//- Star
	var insertSection = new Array();
	insertSection[0] = new Array("Star City Scene", "insert", 1, 1);

//- Maps
	var mapSection = new Array();
	mapSection[0] = new Array("Maps", "maps", 1, 1);

//- Products
	var guideSection = new Array();
	guideSection[0] = new Array("Products and Services Guide", "guide", 1, 0);	

//- Customer Guide - in some books instead of Cust & Comm Information 
	var custgdeSection = new Array();
	custgdeSection[0] = new Array("Customer Guide", "guide", 1, 0);				//- Main link

//- Government Pages
	var govSection = new Array();
	govSection[0] = new Array("Government Blue Pages", "gov", 1 , 1);					//- Main link

//- Homeland Security Information 
	var homelandSection = new Array();
	homelandSection[0] = new Array("Homeland Security Information", "yp01", 8, 1);			//- Main link


//- White Pages - Switch on and name the white pages sections.
//- If you need more than 20 sections, they must be added here, in tree.htm, tree.js, tab.htm, and search.js files
	var whiteSection = new Array();
	whiteSection[0] = new Array("Business White Pages", "b01", 1, 0);
	whiteSection[1] = new Array("Lincoln", "w01", 1, 1);
	whiteSection[2] = new Array("Ashland", "w02", 1, 1);
	whiteSection[3] = new Array("Bennet", "w02", 13, 1);
	whiteSection[4] = new Array("Ceresco", "w02", 19, 1);
	whiteSection[5] = new Array("Cortland", "w02", 23, 1);
	whiteSection[6] = new Array("Davey", "w02", 28, 1);
	whiteSection[7] = new Array("Denton", "w02", 33, 1);
	whiteSection[8] = new Array("Douglas", "w02", 38, 1);
	whiteSection[9] = new Array("Eagle", "w02", 41, 1);
	whiteSection[10] = new Array("Firth", "w02", 48, 1);
	whiteSection[11] = new Array("Greenwood", "w02", 54, 1);
	whiteSection[12] = new Array("Gretna", "w02", 58, 1);
	whiteSection[13] = new Array("Hallam", "w02", 77, 1);
	whiteSection[14] = new Array("Hickman", "w02", 81, 1);
	whiteSection[15] = new Array("Malcolm", "w02", 89, 1);
	whiteSection[16] = new Array("Martell", "w02", 94, 1);
	whiteSection[17] = new Array("Palmyra", "w02", 98, 1);
	whiteSection[18] = new Array("Panama", "w02", 103, 1);
	whiteSection[19] = new Array("Pleasant Dale", "w02", 107, 1);
	whiteSection[20] = new Array("Raymond", "w02", 111, 1);
	whiteSection[21] = new Array("Valparaiso", "w02", 116, 1);
	whiteSection[22] = new Array("Waverly", "w02", 121, 1);

//- Yellow Page Index sections -- usually just one. Switch on others, if nec.
	var indexSection = new Array();
	indexSection[0] = new Array("Yellow Pages Headings Index", "index", 1, 1);		//- Generally needed
	indexSection[1] = new Array("Second Headings Index", "index02", 1, 0);	//- Switch on if nec.
	indexSection[2] = new Array("Third Headings Index", "index03", 1, 0);	//- Switch on if nec.

//- Coupons -- in most books
	var couponSection = new Array();
	couponSection[0] = new Array("Coupons", "coupon", 1, 0);		//- Switch on if there are coupons

//- Featured
	var featuredSection = new Array();
	featuredSection[0] = new Array("Featured Advertisers", "featured", 1, 0);	//- Main link

//- Yellow Sections (Although generally not in the drop-down, these are used by other areas of the GUI
	var ypSection = new Array();
	ypSection[0] = new Array("Yellow Pages", "yp01", 1, 1);
	ypSection[1] = new Array("Yellow Pages", "yp02", 1, 0);
	ypSection[2] = new Array("Yellow Pages", "yp03", 1, 0);
	
//-Featured Advertisers
// Enter number of banner ads (not including Superpages) or maxFeaturedAdvertisers
var bannernumber = 8;

//- add banners here
var advertisers = new Array();
advertisers[0] = new Array("abc", 1);
advertisers[1] = new Array("blueox", 2);
advertisers[2] = new Array("brock", 3);
advertisers[3] = new Array("bryan", 4);
advertisers[4] = new Array("cip", 5);
advertisers[5] = new Array("lincolnglass", 6);
advertisers[6] = new Array("skrupa", 7);
advertisers[7] = new Array("spohrs", 8);

// --- SET THESE ONCE PER PUBLISHER ---
//-Rotating logos & associated links
var link = new Array();
link[0] = new Array("www.windstreamyellowpages.com", 1);
link[1] = new Array("www.windstream.com", 2);
link[2] = new Array("www.windstreamyellowpages.com", 3);

//-Background GUI color; tab colors
var color = "BDDD7E";
var tabbkg = "BDDD7E";
var tabtext = "BDDD7E";
var noTabSections = new Array('comm',
				'insert',
				'cover',
				'maps',
				'cust',
				'emerg',
				'featured',
				'gov',
				'inside',
				'cover',
				'w02'); 


//-Default GUI text color
var guiTextColor = "0F5C94";

//GUI and results links text sizes (in pts) and colors
var links800 = 7;
var links = 7;
var categoryColor= "C63C00"; //Match text color in keyword searches
var activeLinksColor = "C63C00";  //Color of active sub-sections in section list
var linksColor = "C63C00";  //Color of sub-sections in section list
var resultColor = "C63C00"; //Color of matches in searches
var headingColor= "398600"; // Color of heading below results
var nomatchColor= "C63C00"; //Color of text if no matches found
var searchItemColor = "C63C00"; //Search item in keyword searches
var doubleTruckResultColor = "C63C00"; //Search item in keyword searches for DT ads
var yptabColor = "BDDD7E"; //color of yp alpha tabs
var secColor0 = "FFFFCC";
var secColor1 = "FF00CD";
var secColor2 = "00CD34";
var secColor3 = "9966CB";
var secColor4 = "FF9933";
var secColor5 = "FEFF33";
var secColor6 = "009999";
var secColor7 = "3599CD";
var secColor8 = "FFFF9A";
var secColor9 = "FF9A66";
var secColor10 = "FE6634";
var secColor11 = "CD6667";
var secColor12 = "CC99FF";
var secColor13 = "9999CB";
var secColor14 = "CC66CC";
var secColor15 = "319ACA";
var secColor16 = "33CDCB";


// - Add even page numbers of double truck pairs here --
//Double truck ads
var doubleTrucks = new Array();

//- Enter which section the 911 pages appear in; Enter number of coupon index pages;
//- If coupon page numbers are the same on the front and back of pages, change 'doubleCoupon' to true --
var emergSection = 'cust';
var numCouponIndex = 0;
var doubleCoupon = false;

//-Featured Advertisers links color
var featuredColor = "FFFF00";
var pageWidth = 693;

//USERHELP PAGE CONFIGURATION
var textcolor = "0054BD"

//NUMBER OF BACK/FORWARD STEPS
var maxNumSpots = 10;

// Enter first page and number before first page of Yellow Page section here
var section="featured";
var number = 0;
var page = 0;


//- Yellow Pages end page number, default section selection
// PAGE RANGES START HERE
var maxEmerg = -1;
var minEmerg = -1;
var maxAdjusted = -1;
var minAdjusted = -1;
var maxCover = -1;
var minCover = -1;
var maxW01 = 422;
var minW01 = 1;
var maxCust = 19;
var minCust = 1;
var maxFeatured = 8;
var minFeatured = 0;
// Enter first page and number before first page of Yellow Page section here
var twobeforefirst = 5;
var beforefirst = 6;
var firstpage = 7;
var maxYP01 = 1039;
var minYP01 = 7;
var maxIndex = 34;
var minIndex = 1;
var maxW02 = 129;
var minW02 = 1;
var maxGov = 80;
var minGov = 1;
var maxComm = 22;
var minComm = 1;
var maxInsert = 16;
var minInsert = 1;
var maxMaps = 24;
var minMaps = 1;

