//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 date function
//====================================

//ActivDirectory Version
var version = "5.2";

//-Geographic name of directory, publisher, and product to appear on titlebar and results page
var title = "Southeast Los Angeles";
var trakVal = "ROSSEL09"; //- Insert book code
var traip = "ross.innovectra.net";
var spinecode = trakVal;	// - Don't touch!, same as trakVal
var bookloc = trakVal;		// - Don't touch!, same as trakVal
var issuedate = "04";
var year = "2009";
var corp = "Ross Yellow Pages";
var publisher = "Ross";
var brandname = "Yellow Pages";
var product = "Yellow Pages";
var corplink = "www.rossyellowpages.com";
var orderNumber = ""
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)						         ---

//-- The 20 Popular Headings Section is static. Comment out in tree.htm if it not needed --

//- Attorney Guide
	var attorneySection = new Array();
	attorneySection[0] = new Array("Yellow Pages", "yp01", 364, 0);			//- Main link

//- Chruch Guide
	var churchSection = new Array();
	churchSection[0] = new Array("Church Guide", "yp01", 98, 0);			//- Main link

//- Dentist Guide
	var dentistSection = new Array();
	dentistSection[0] = new Array("Dentist Guide", "yp01", 177, 0);			//- Main link

//- Golf Guide
	var golfSection = new Array();
	golfSection[0] = new Array("Golf Guide", "yp01", 232, 0);			//- Main link

//- Physician & Surgeon Guide
	var physicianSection = new Array();
	physicianSection[0] = new Array("Physician & Surgeon Guide", "yp01", 263, 0);			//- Main link

//- Restaurant Guide
	var restaurantSection = new Array();
	restaurantSection[0] = new Array("Restaurant Guide", "yp01", 402, 0);			//- Main link

//- Restaurant Menu Guide
	var menuSection = new Array();
	menuSection[0] = new Array("Restaurant Menu Guide", "yp01", 298, 0);			//- Main link

//- Wedding Guide
	var weddingSection = new Array();
	weddingSection[0] = new Array("Wedding Guide", "yp01", 500, 0);			//- Main link

//- 20 Popular Headings
	var coverSection = new Array();
	coverSection[0] = new Array("20 Popular Headings", "yp01", 355, 0);			//- Main link

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

//- Info & Town Maps
	var mapsSection = new Array();
	mapsSection[0] = new Array("Info & Town Maps", "comm", 1, 0);			//- Main link
	mapsSection[1] = new Array("Emergency Numbers", "emerg", 1, 0);			//- Subsection
	mapsSection[2] = new Array("Table of Contents", "cust", 1, 0);			//- Subsection

//- Things To Do 
	var custSection = new Array();
	custSection[0] = new Array("Things To Do", "cust", 1, 0);			//- Main link
	custSection[1] = new Array("Emergency Numbers", "emerg", 1, 0);			//- Subsection
	custSection[2] = new Array("Table of Contents", "cust", 1, 0);			//- Subsection

//- Community Pages
	var commSection = new Array();
	commSection[0] = new Array("Community Info", "w01", 2, 1);			//- Main link
	commSection[1] = new Array("Emergency Numbers", "emerg", 1, 0);			//- Subsection
	commSection[2] = new Array("Table of Contents", "cust", 1, 0);			//- Subsection


//- 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("Indice alfabetico de Categorias", "index02", 1, 1);		//- Switch on if nec.
	indexSection[2] = new Array("Third Headings Index", "index03", 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, 1);
	ypSection[2] = new Array("Yellow Pages", "yp03", 1, 0);



//- Coupons -- insert the yp01 page the coupons start on
	var couponSection = new Array();
	couponSection[0] = new Array("Coupons", "yp01", 1, 0);				//- Turn on if there are coupons

//- 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("White Pages", "b01", 1, 0);
	whiteSection[1] = new Array("Bell", "w01", 20, 1);
	whiteSection[2] = new Array("Cudahy", "w01", 36, 1);
	whiteSection[3] = new Array("Huntington Park", "w01", 46, 1);
	whiteSection[4] = new Array("Lynwood", "w01", 79, 1);
	whiteSection[5] = new Array("Maywood", "w01", 107, 1);
	whiteSection[6] = new Array("South Gate", "w01", 119, 1);
	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);

//- Government Pages
	var govSection = new Array();
	govSection[0] = new Array("Government Pages", "gov", 1 , 0);					//- Main link
	govSection[1] = new Array("Government Pages", "gov", 2 , 0);				//- in SW books
	govSection[2] = new Array("Government Pages", 1 , 0)				//- in West books
	govSection[3] = new Array("Government Pages", "gov", 4 , 0);
	govSection[4] = new Array("Government Pages", "gov", 6 , 0);					//- in a few SW books
	govSection[5] = new Array("Government Pages", "gov", 6 , 0);
	govSection[6] = new Array("Government Pages", "gov", 8 , 0);
	govSection[7] = new Array("Government Pages", "gov", 10 , 0);

//- Yellow Sections (Although generally not in the drop-down, these may used by other areas of the GUI, so do not touch)
	var ypSection = new Array();
	ypSection[0] = new Array("Yellow Pages", "yp01", 1, 0);
	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.rossyellowpages.com", 1);

//-Background GUI color; tab colors
var color = "000000";
var tabbkg = "C2D3FC";
var tabtext = "C2D3FC";
var noTabSections = new Array('comm',
				'cover',
				'coupon',
				'cust',
				'emerg',
				'gov',
				'featured',
				'w01',
				'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 = "000000";
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";

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

//-PAGE WIDTH
var pageWidth = 693;

//-Featured Advertisers
// Enter number of banner ads (not including Superpages) or maxFeaturedAdvertisers
var bannernumber = 4;

// as the last featured advertiser
var advertisers = new Array();
advertisers[0] = new Array("", 1);
advertisers[1] = new Array("", 2);
advertisers[2] = new Array("", 3);
advertisers[3] = new Array("", 4);

//Double truck ads
var doubleTrucks = new Array(); //Enter page numbers separated by commas

// Enter first page and number before first page of Yellow Page section here
var twobeforefirst = 0;
var beforefirst = 0;
var firstpage = 1;

//- Yellow Pages end page number, default section selection
var section="cover";
var number = 1;
var page = 0;
var emergSection = 'w01';
var numCouponIndex = 2;
var doubleCoupon = false;

//USERHELP PAGE CONFIGURATION
var textcolor = "000000"

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

// PAGE RANGES START HERE
var maxCover = -1;
var minCover = -1;
var maxW01 = 156;
var minW01 = 1;
var maxIndex02 = 19;
var minIndex02 = 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 = 108;
var minYP01 = 1;
var maxIndex = 20;
var minIndex = 1;
var maxYp02 = 104;
var minYp02 = 1;

