// CONFIG.JS updated by installer
//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
//- fix to expiry function, hand/arrow roll-over, AT&T branding
//====================================

//ActivDirectory Version
var version = "5.1.6";

//-Geographic name of directory, publisher, and product to appear on titlebar and results page
var title = "El Paso"; 	// -- Enter title from requisition
var type = " Yellow & White Pages";
var trakVal = "ATSELP07";	//-- enter bookcode
var traip = "att.innovectra.net";
var spinecode = trakVal;
var bookLoc = trakVal;				
var issuedate = "06";
var year = "2007";
var corp = "AT&T";
var publisher = "AT&T";
var brandname = "AT&T Yellow Pages";
var product = "Yellow Pages";
var corplink = "www.yellowpages.com";
var orderNumber = "800-745-8720"
var atkOff = 0;
var uniqueID = "LAN-{00D22CDC-5444-4056-8648-BDB10050FBC7}";

//-- Enter the number that corresponds to the book's region:
var region = 1;  //1 = Southwest (AR, KS, OK, MO, TX); 2 = Midwest (IN, MI, OH, WI); 3 = SNET (CT); 4 = West (CA & NV)


//--- 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)						         ---

//- Midwest book Customer Guide -- Add subsections here and in tree.htm if nec.
//- Switch of the customer guide section below coupons if this one is switch on!
	var midwestCustSection = new Array();
	midwestCustSection[0] = new Array("Customer Guide", "cust", 1, 0);		//- Main link
	midwestCustSection[1] = new Array("Emergency Numbers", "cust", 1, 1);		//- Subsection
	midwestCustSection[2] = new Array("Telephone Services Guide", "cust", 3, 1);	//- Subsection
	midwestCustSection[3] = new Array("Community Living", "cust", 12, 1);	//- Subsection
	midwestCustSection[4] = new Array("Zip Codes & Street Guide", "cust", 37, 1);	//- Subsection

//- Tourism & Entertainment Guide -- in many SW books
	var tourismSection = new Array();
	tourismSection[0] = new Array("Tourist & Entertainment Guide", "tourism", 1, 0);	//- Main link
	tourismSection[1] = new Array("Welcome Letter", "tourism", 2, 1);			//- Subsection
	tourismSection[2] = new Array("Table of Contents", "tourism", 3, 1);			//- Subsection

//- Community Living Pages -- in many SW, West and SNET books
	var commSection = new Array();
	commSection[0] = new Array("Community Living Table Of Contents", "comm", 1, 1);			//- Main link

//- Brand Name Index -- tree.htm activated this section in West books. Switch off here if it is not needed in a West book.
	var brandSection = new Array();
	brandSection[0] = new Array("Brand Name Index", "brand", 1, 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, 1);			//- Switch on if nec.
	indexSection[2] = new Array("Third Headings Index", "index03", 1, 1);			//- Switch on if nec.
	
//- Yellow Page Index01 sections -- usually just one. Switch on others, if nec.
	var index01Section = new Array();
	index01Section[0] = new Array("Indice alfabetico en espanol", "index01", 1, 1);			//- Generally needed	

//-- The 20 Popular Headings Section is static. Comment out in tree.htm if it not needed --

//- Yellow Pages Specialty Guides -- switch of test yellow, then switch on the guides below.
//- If there is just a single guide, open tree.htm, comment out the multiple guide section and uncomment single.
	var guideSection = new Array();
	guideSection[0] = new Array("Yellow Pages Specialty Guides", "yp01", 1, 1);	//-Used if there is a single guide
	guideSection[1] = new Array("Test Yellow Section", "yp01", 1, 0);			//-Be sure to switch this off first
	guideSection[2] = new Array("Automotive", "yp01", 156, 1);
	guideSection[3] = new Array("Cellular Telephone", "yp01", 222, 1);
	guideSection[4] = new Array("Chiropractic", "yp01", 246, 1);
	guideSection[5] = new Array("Dental Care", "yp01", 333, 1);
	guideSection[6] = new Array("Financial Planning", "yp01", 386, 1);
	guideSection[7] = new Array("Golf", "yp01", 1, 0);
	guideSection[8] = new Array("Health & Fitness", "yp01", 394, 1);
	guideSection[9] = new Array("Health Care", "yp01", 712, 1);
	guideSection[10] = new Array("Home Improvement", "yp01", 456, 1);
	guideSection[11] = new Array("Insurance", "yp01", 516, 1);
	guideSection[12] = new Array("Landscaping", "yp01", 534, 1);
	guideSection[13] = new Array("Pet", "yp01", 1, 0);
	guideSection[14] = new Array("Real Estate", "yp01", 775, 1);
	guideSection[15] = new Array("Restaurants", "yp01", 1, 0);
	guideSection[16] = new Array("Retirement Living", "yp01", 1, 0);
	guideSection[17] = new Array("Shopping Malls", "yp01", 1, 0);
	guideSection[18] = new Array("Wedding", "yp01", 990, 1);
	
//- Coupons -- in most books
	var couponSection = new Array();
	couponSection[0] = new Array("Coupons", "coupon", 1, 1);			//- Switch off if no coupons

//- SW, West, SNET Customer Guide -- Add subsections here and in tree.htm if nec.
//- Switch off if it is a midwest book and you are using the customer guide above. 
	var custSection = new Array();
	custSection[0] = new Array("Customer Guide", "cust", 1, 1);				//- Main link
	custSection[1] = new Array("Emergency Numbers", "emerg", 1, 1);				//- Subsection
	custSection[2] = new Array("Other Important Numbers", "emerg", 2, 1);				//- Subsection
	custSection[3] = new Array("Table Of Contents", "cust", 1, 1);				//- Subsection
	

//- 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("El Paso Residence", "w01", 1, 1);
	whiteSection[1] = new Array("El Paso Business", "b01", 1, 1);
	whiteSection[2] = new Array("New Mexico Communities", "w02", 1, 1);
	whiteSection[3] = new Array("White Pages", "w03", 1, 0);
	whiteSection[4] = new Array("White Pages", "w04", 1, 0);
	whiteSection[5] = new Array("White Pages", "w05", 1, 0);
	whiteSection[6] = new Array("White Pages", "w06", 1, 0);
	whiteSection[7] = new Array("White Pages", "w07", 1, 0);
	whiteSection[8] = new Array("White Pages", "w08", 1, 0);
	whiteSection[9] = new Array("White Pages", "w09", 1, 0);
	whiteSection[10] = new Array("White Pages", "w10", 1, 0);
	whiteSection[11] = new Array("White Pages", "w11", 1, 0);
	whiteSection[12] = new Array("White Pages", "w12", 1, 0);
	whiteSection[13] = new Array("White Pages", "w13", 1, 0);
	whiteSection[14] = new Array("White Pages", "w14", 1, 0);
	whiteSection[15] = new Array("White Pages", "w15", 1, 0);
	whiteSection[16] = new Array("White Pages", "w16", 1, 0);
	whiteSection[17] = new Array("White Pages", "w17", 1, 0);
	whiteSection[18] = new Array("White Pages", "w18", 1, 0);
	whiteSection[19] = new Array("White Pages", "w19", 1, 0);
	whiteSection[20] = new Array("White Pages", "w20", 1, 0);

//- SW, West, SNET Government Pages -- Regional variations are automatically handled in tree.htm, so leave all
// sections switched on below.
	var govSection = new Array();
	govSection[0] = new Array("Government", "gov", 1 , 1);					//- Main link
	govSection[1] = new Array("Helpful Numbers", "gov", 1 , 1);				//- in SW books
	govSection[2] = new Array("Easy Reference Listings", "gov", 1 , 1)				//- in West books
	govSection[3] = new Array("City", "gov", 3 , 1);
	govSection[4] = new Array("Regional", "gov", 6 , 0);					//- in a few SW books
	govSection[5] = new Array("County", "gov", 4 , 1);
	govSection[6] = new Array("State", "gov", 5 , 1);
	govSection[7] = new Array("Federal", "gov", 7 , 1);

//- TDD Section -- tree.htm activated this section in Midwest books. Switch off here if it is not needed.
	var tddSection = new Array();
	tddSection[0] = new Array("TDD Section", "tdd", 1, 1);

//- 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);
	

// --- SET THESE ONCE PER PUBLISHER ---
//-Rotating logos & associated links
var link = new Array();
link[0] = new Array("www.attyp.com", 2);
link[1] = new Array("www.yellowpages.com", 1);
link[2] = new Array("www.yellowpages.com/sp/advertise/", 3);
link[3] = new Array("www.attyp.com", 4);

//-Background GUI color; tab colors
var color = "067AB4";
var tabbkg = "C2D3FC";
var tabtext = "9EBCFA";
var tabLimit = 10;
var noTabSections = new Array('tourism',
				'comm',
				'brand',
				'cover',
				'coupon',
				'cust',
				'emerg',
				'gov',
				'tdd',
				'featured',
				'university',
				'recycle',
				'dining',
				'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

//- Search result and tab colors. Add colors if necessary
var secColor0 = "FFFFCE";
var secColor1 = "FFFFFF";
var secColor2 = "F8CC33";
var secColor3 = "99FFFF";
var secColor4 = "FFCCCC";
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";
var secColor17 = "FFFF66";
var secColor18 = "FFCC99";
var secColor19 = "CCFFCC";
var secColor20 = "CCCC33";
var secColor21 = "FF99FF";
var secColor22 = "FF9999";
var secColor23 = "996600";
var secColor24 = "00FF00";
var secColor25 = "CC0033";
var secColor26 = "FFFF00";

// - Add even page numbers of double truck pairs here --
//Double truck ads
var doubleTrucks = new Array(40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,128,144,224,284,314,480,482,486,488,490,492,494,484,496,498,500,704,734,740,886);

//- 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 = 'emerg';
var numCouponIndex = 1;
var doubleCoupon = false;

//-Featured Advertisers links color
var featuredColor = "FFFF00";
var pageWidth = 665;

//USERHELP PAGE CONFIGURATION
var textcolor = "1478BD"

//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;


//- Yellow Pages end page number, default section selection
// PAGE RANGES START HERE
var maxExtras = -1;
var minExtras = -1;
var maxCover = -1;
var minCover = -1;
var maxIndex = 49;
var minIndex = 1;
var maxCust = 39;
var minCust = 1;
var maxEmerg = 2;
var minEmerg = 1;
var maxComm = 23;
var minComm = 1;
var maxB01 = 112;
var minB01 = 1;
var maxW02 = 24;
var minW02 = 1;
var maxW01 = 305;
var minW01 = 1;
var maxCoupon = 19;
var minCoupon = 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 = 1007;
var minYP01 = 1;
var maxGov = 8;
var minGov = 1;
var maxFeatured = 14;
var minFeatured = 1;
var maxIndex01 = 45;
var minIndex01 = 1;


