//GENERAL CONFIGURATION

//====================================
//Enhancements:
// 5.1.4- 7/05:
//- added special handling for Safari
//- added corporate logo tracking
//====================================
// 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 trakVal = "DEXFLO08";	// - Enter book code here
var traip = "dex.innovectra.net";
var bookLoc = trakVal;		// - Don't touch!, same as trakVal
var spinecode = trakVal;	// - Don't touch!, same as trakVal
var title = "Florence";
var issuedate = "06";
var year = "2008";
var corp = "DEX";
var publisher = "Dex";
var brandname = "Yellow Pages";
var product = "Electronic Directory";
var corplink = "www.dexknows.com";
var orderNumber = "(800) 747-3817"
var atkOff = 0;
var uniqueID = null;
var checkExpired = true;

//--- 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 Categories", "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);

//- 911 Pages
	var emerSection = new Array();
	emerSection[0] = new Array("911 Pages", "comm", 1, 1);					//- Main link

//- Community Pages 
	var commSection = new Array();
	commSection[0] = new Array("Community Pages", "comm", 2, 1);				//- Main link

//- Paginas Comunitarias 
	var comunitariasSection = new Array();
	comunitariasSection[0] = new Array("Paginas Comunitarias", "comm", 13, 0);			//- Main link

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

//- Coupon Index 
	var couponindexSection = new Array();
	couponindexSection[0] = new Array("Coupon Index", "couponindex", 1, 0);			//- Main link

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

//- Phone Services 
	var phoneSection = new Array();
	phoneSection[0] = new Array("Phone Service Pages", "comm", 9, 1);			//- Main link

//- Recycling Guide 
	var recycleSection = new Array();
	recycleSection[0] = new Array("Recycling and Garbage", "recycle", 1, 0);			//- Main link

//- Restaurant Menus 
	var restaurantSection = new Array();
	restaurantSection[0] = new Array("Restaurant Menus", "yp01", 1, 0);			//- 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", "b01", 1, 0);
	whiteSection[1] = new Array("White Pages", "w01", 1, 1);
	whiteSection[2] = new Array("White Pages", "w01", 1, 0);
	whiteSection[3] = new Array("White Pages", "w01", 1, 0);
	whiteSection[4] = new Array("White Pages", "w01", 1, 0);
	whiteSection[5] = new Array("White Pages", "w01", 1, 0);
	whiteSection[6] = new Array("White Pages", "w01", 1, 0);
	whiteSection[7] = new Array("White Pages", "w01", 1, 0);
	whiteSection[8] = new Array("White Pages", "w01", 1, 0);
	whiteSection[9] = new Array("White Pages", "w01", 1, 0);
	whiteSection[10] = new Array("White Pages", "w01", 1, 0);
	whiteSection[11] = new Array("White Pages", "w01", 1, 0);
	whiteSection[12] = new Array("White Pages", "w01", 1, 0);
	whiteSection[13] = new Array("White Pages", "w01", 1, 0);
	whiteSection[14] = new Array("White Pages", "w01", 1, 0);
	whiteSection[15] = new Array("White Pages", "w01", 1, 0);
	whiteSection[16] = new Array("White Pages", "w01", 1, 0);
	whiteSection[17] = new Array("White Pages", "w01", 1, 0);
	whiteSection[18] = new Array("White Pages", "w01", 1, 0);
	whiteSection[19] = new Array("White Pages", "w01", 1, 0);
	whiteSection[20] = new Array("White Pages", "w01", 1, 0);

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

//- Informacion en Espanol.
	var spanishSection = new Array();
	spanishSection[0] = new Array("Informacion en Espanol", "index02", 1, 0);	//- Main link
	spanishSection[1] = new Array("Informacion comunitaria", "comm02", 1, 0);	//- Switch on if nec.
	spanishSection[2] = new Array("Indice de Categorias", "index02", 1, 0);		//- Switch on if nec.


//- 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("Paginas Amarillas", "yp02", 1, 0);
	ypSection[2] = new Array("Yellow Pages", "yp03", 1, 0);

//-Featured Advertisers
	var featuredSection = new Array();
	featuredSection[0] = new Array("Featured Advertisers", "featured", 1, 0);	//- Main link
	featuredSection[1] = new Array("Featured Advertiser", "featured", 1, 0);	//- Switch on if nec.
	featuredSection[2] = new Array("Featured Advertiser", "featured", 2, 0);	//- Switch on if nec.
	featuredSection[3] = new Array("Featured Advertiser", "featured", 3, 0);	//- Switch on if nec.
	featuredSection[4] = new Array("Featured Advertiser", "featured", 4, 0);	//- Switch on if nec.
	featuredSection[5] = new Array("Featured Advertiser", "featured", 5, 0);	//- Switch on if nec.
	featuredSection[6] = new Array("Featured Advertiser", "featured", 6, 0);	//- Switch on if nec.
	featuredSection[7] = new Array("Featured Advertiser", "featured", 7, 0);	//- Switch on if nec.
	featuredSection[8] = new Array("Featured Advertiser", "featured", 8, 0);	//- Switch on if nec.
	featuredSection[9] = new Array("Featured Advertiser", "featured", 9, 0);	//- Switch on if nec.
	featuredSection[10] = new Array("Featured Advertiser", "featured", 10, 0);	//- Switch on if nec.
	featuredSection[11] = new Array("Featured Advertiser", "featured", 11, 0);	//- Switch on if nec.
	featuredSection[12] = new Array("Featured Advertiser", "featured", 12, 0);	//- Switch on if nec.
	featuredSection[13] = new Array("Featured Advertiser", "featured", 13, 0);	//- Switch on if nec.
	featuredSection[14] = new Array("Featured Advertiser", "featured", 14, 0);	//- Switch on if nec.
	featuredSection[15] = new Array("Featured Advertiser", "featured", 15, 0);	//- Switch on if nec.
	featuredSection[16] = new Array("Featured Advertiser", "featured", 16, 0);	//- Switch on if nec.
	featuredSection[17] = new Array("Featured Advertiser", "featured", 17, 0);	//- Switch on if nec.
	featuredSection[18] = new Array("Featured Advertiser", "featured", 18, 0);	//- Switch on if nec.
	featuredSection[19] = new Array("Featured Advertiser", "featured", 19, 0);	//- Switch on if nec.
	featuredSection[20] = new Array("Featured Advertiser", "featured", 20, 0);	//- Switch on if nec.

// Enter number of banner ads (not including Superpages) or maxFeaturedAdvertisers
var bannernumber = 0;

// as the last featured advertiser
var advertisers = new Array();


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

//-Background GUI color; tab colors
var color = "0066CC";
var tabbkg = "C2D3FC";
var tabtext = "C2D3FC";
var noTabSections = new Array('comm',
				'comm01',
				'cover',
				'coupon',
				'couponindex',
				'cust',
				'emerg',
				'gov',
				'featured',
				'extras'); 

//-Default GUI text color
var guiTextColor = "FFFFFF";

//GUI and results links text sizes (in pts) and colors
var links800 = 7;
var links = 7;
var categoryColor= "CCFFFF"; //Match text color in keyword searches
var activeLinksColor = "FFFF00";  //Color of active sub-sections in section list
var linksColor = "FFFFFF";  //Color of sub-sections in section list
var resultColor = "FFFFCE"; //Color of matches in searches
var headingColor= "FFFFFF"; // Color of heading below results
var nomatchColor= "FFFF00"; //Color of text if no matches found
var searchItemColor = "CCFFCC"; //Search item in keyword searches
var doubleTruckResultColor = "FFCEFF"; //Search item in keyword searches for DT ads
var secColor0 = "FFFFCE";
var secColor1 = "FFFFFF";
var secColor2 = "FFCCCC";
var secColor3 = "99FFFF";
var secColor4 = "FFFFCC";
var secColor5 = "99FF99";
var secColor6 = "FFCCFF";
var secColor7 = "FFFF66";
var secColor8 = "FFCC99";
var secColor9 = "CCFFCC";
var secColor10 = "CCCC33";
var secColor11 = "FF99FF";
var secColor12 = "FF9999";
var secColor13 = "996600";
var secColor14 = "00FF00";
var secColor15 = "CC0033";
var secColor16 = "FFFF00";

// - 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 = 'comm';
var numCouponIndex = 2;
var doubleCoupon = false;

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

//USERHELP PAGE CONFIGURATION
var textcolor = "0066CC"

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

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


// PAGE RANGES START HERE
var maxCover = -1;
var minCover = -1;
var maxFeatured = 0;
var minFeatured = 0;
var maxIndex = 15;
var minIndex = 1;
var maxW01 = 61;
var minW01 = 1;
var maxGov = 42;
var minGov = 35;
var maxComm = 34;
var minComm = 1;
// Enter first page and number before first page of Yellow Page section here
var twobeforefirst = 0;
var beforefirst = 0;
var firstpage = 1;
var maxYP01 = 102;
var minYP01 = 1;
