// 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
//- 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 = "DEXBLG06";	// - 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 = "Billings";
var issuedate = "01";
var year = "2006";
var corp = "DEX Media Inc";
var publisher = "Dex";
var brandname = "Yellow Pages";
var product = "Electronic Directory";
var corplink = "www.dexmedia.com";
var orderNumber = "(866) 547-5100"
var zyx = 46
var uniqueID = "LAN-{D1F6EB97-B000-4D69-9294-9CEC71D46256}";
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", 3, 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("Coupon Index", "couponindex", 1, 1);			//- Switch on if there are coupons

//- Government Pages
	var govSection = new Array();
	govSection[0] = new Array("Government Pages", "gov", 41 , 1);					//- Main link

//- Phone Services 
	var phoneSection = new Array();
	phoneSection[0] = new Array("Phone Service Pages", "comm", 21, 1);			//- Main link

//- Recycling Guide 
	var recycleSection = new Array();
	recycleSection[0] = new Array("Recycling and Garbage", "recycle", 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, 1);
	whiteSection[1] = new Array("Residence", "w01", 1, 1);
	whiteSection[2] = new Array("Surrounding Area", "w02", 1, 0);
	whiteSection[3] = new Array("Absarokee", "w02", 1, 1);
	whiteSection[4] = new Array("Belfry", "w02", 10, 1);
	whiteSection[5] = new Array("Big Timber", "w02", 11, 1);
	whiteSection[6] = new Array("Bridger", "w02", 24, 1);
	whiteSection[7] = new Array("Clark, Wyoming", "w02", 28, 1);
	whiteSection[8] = new Array("Columbus", "w02", 30, 1);
	whiteSection[9] = new Array("Crow Agency", "w02", 39, 1);
	whiteSection[10] = new Array("Custer", "w02", 42, 1);
	whiteSection[11] = new Array("Fort Smith", "w02", 44, 1);
	whiteSection[12] = new Array("Formberg", "w02", 46, 1);
	whiteSection[13] = new Array("Hardin", "w02", 48, 1);
	whiteSection[14] = new Array("Harlowton", "w02", 58, 1);
	whiteSection[15] = new Array("Huntley, Pompeys Pillar and Worden", "w02", 62, 1);
	whiteSection[16] = new Array("Hysham", "w02", 70, 1);
	whiteSection[17] = new Array("Joliet", "w02", 73, 1);
	whiteSection[18] = new Array("Laurel", "w02", 79, 1);
	whiteSection[19] = new Array("Lavina", "w02", 98, 1);
	whiteSection[20] = new Array("Lodge Grass", "w02", 99, 1);
	whiteSection[21] = new Array("Martinsdale", "w02", 102, 1);
	whiteSection[22] = new Array("Melstone and Ingomar", "w02", 103, 1);
	whiteSection[23] = new Array("Melville", "w02", 105, 1);
	whiteSection[24] = new Array("Molt", "w02", 106, 1);
	whiteSection[25] = new Array("Musselshell", "w02", 108, 1);
	whiteSection[26] = new Array("Park City", "w02", 112, 1);
	whiteSection[27] = new Array("Red Lodge", "w02", 116, 1);
	whiteSection[28] = new Array("Roundup", "w02", 131, 1);
	whiteSection[29] = new Array("Ryegate", "w02", 141, 1);
	whiteSection[30] = new Array("Wyola", "w02", 145, 1);
	

//- 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, 1);	//- Main link
	featuredSection[1] = new Array("12th Planet", "featured", 1, 1);	//- Switch on if nec.
	featuredSection[2] = new Array("Cozzens Harman Warren<BR>Harris & Odegaard PLLP", "featured", 2, 1);	//- Switch on if nec.
	featuredSection[3] = new Array("The Law Firm of Edmiston, Schermerhorn & Colton", "featured", 3, 1);	//- Switch on if nec.
	featuredSection[4] = new Array("Eye Physicians & Surgeons", "featured", 4, 1);	//- Switch on if nec.
	featuredSection[5] = new Array("Eye Physicians & Surgeons", "featured", 5, 1);	//- Switch on if nec.
	featuredSection[6] = new Array("Family Dental Care", "featured", 6, 1);	//- Switch on if nec.
	featuredSection[7] = new Array("Farmers Insurance Group", "featured", 7, 1);	//- Switch on if nec.
	featuredSection[8] = new Array("Farmers Insurance Group", "featured", 8, 1);	//- Switch on if nec.
	featuredSection[9] = new Array("Freedom Satellite", "featured", 9, 1);	//- Switch on if nec.
	featuredSection[10] = new Array("Freedom Satellite", "featured", 10, 1);	//- Switch on if nec.
	featuredSection[11] = new Array("Mitchell Chiropractic", "featured", 11, 1);	//- Switch on if nec.
	featuredSection[12] = new Array("Mitchell Chiropractic", "featured", 12, 1);	//- Switch on if nec.
	featuredSection[13] = new Array("Turley Dental Care", "featured", 13, 1);	//- 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 = 13;

// as the last featured advertiser
var advertisers = new Array();
advertisers[0] = new Array("12th", 1);
advertisers[1] = new Array("coz", 2);
advertisers[2] = new Array("ed", 3);
advertisers[3] = new Array("eye", 4);
advertisers[4] = new Array("eye", 5);
advertisers[5] = new Array("family", 6);
advertisers[6] = new Array("farmers", 7);
advertisers[7] = new Array("farmers", 8);
advertisers[8] = new Array("free", 9);
advertisers[9] = new Array("free", 10);
advertisers[10] = new Array("mitch", 11);
advertisers[11] = new Array("mitch", 12);
advertisers[12] = new Array("turley", 13);

// -- SET THESE ONCE PER PUBLISHER
//-Rotating logos & associated links
var link = new Array();
link[0] = new Array("www.dexmedia.com", 1);
link[1] = new Array("www.dexonline.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',
				'w02',
				'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 = 13;
var minFeatured = 0;
var maxIndex = 34;
var minIndex = 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 = 687;
var minYP01 = 1;
var maxW01 = 180;
var minW01 = 1;
var maxB01 = 82;
var minB01 = 1;
var maxW02 = 145;
var minW02 = 1;
var maxComm = 40;
var minComm = 1;
var maxGov = 60;
var minGov = 41;
var maxCouponindex = 2;
var minCouponindex = 1;
var maxReplace = -1;
var minReplace = -1;

