/*                                                                 *//* ================== Site-specific settings ======================*//* ================== for                    ======================*//* ==================== Version 121603 ============================*//*                                                                 */// New for McClatchy tracking ... Nov. 9, 2004/* ================ MANDATORY MCCLATCHY TAGGING   ================ *//* ================ By Bill Hunter, version 1.04  ================ */// Set some global variablesvar mcclatchy_cat = "TAC|UNKNOWN";var host = window.location.hostname;var qs = window.location.search;var myURL = window.location.href;var tail = "UNKNOWN";var sections = new Array(); // Create only, we'll fill later// Convert host and myURL to lowercasehost = host.toLowerCase();myURL = myURL.toLowerCase();// Get the path from the URLmyURL = myURL.split(host)[1];// If the path ends in a query string (?), remove the query string//	so you can test the pagename in the sections array//	Else if there are any ".html" (or other)  pages, strip back to the slash (/)//	other extensions can be added, such as ".asp" or ".htm"//	If you want to test ".html" pages in the array, comment out the "else if"if (myURL.lastIndexOf('?') > -1){	myURL = myURL.substring(0, myURL.lastIndexOf('?'));} else if (myURL.lastIndexOf('\.html') > -1){	myURL = myURL.substring(0, myURL.lastIndexOf('/'));}// Strip trailing slashes before going furtherif (myURL.lastIndexOf('/') == myURL.length-1) {myURL = myURL.substr(0, myURL.length-1)}/* =============================================================== *//* ================    USER MAINTAINED ARRAYS     ================ *//* ================          HOSTS ARRAY          ================ */// Array of hosts, mapped to mcclatch_cat (set tag based on host)var hosts = new Array();	hosts["apartments.com"] = "TAC|TP-AP";	hosts["capwiz.com"] = "TAC|TP-CW";	hosts["careersite.com"] = "TAC|TP-CS";	hosts["cars.com"] = "TAC|TP-CR";	hosts["cityfeet.com"] = "TAC|TP-CF";	hosts["coupons.com"] = "TAC|TP-CC";	hosts["customcoupon.com"] = "TAC|TP-CC";	hosts["employmentwizard.com"] = "TAC|TP-CS";	hosts["financialcontent.com"] = "TAC|TP-FC";	hosts["healthology.com"] = "TAC|TP-HG";	hosts["legacy.com"] = "TAC|TP-LG";	hosts["mycapture.com"] = "TAC|TP-MT";	hosts["newspaperads.com"] = "TAC|TP-HV";	hosts["p2ionline.com"] = "TAC|TP-PT";	hosts["pqarchiver.com"] = "TAC|TP-AR";	hosts["planetdiscover.com"] = "TAC|TP-PD";	hosts["communities.southsound.com"] = "TAC|SP";	hosts["southsound.com"] = "TAC|SP";	hosts["southsoundcars.com"] = "TAC|TP-CR";	hosts["southsoundclassified.com"] = "TAC|SC";	hosts["southsoundclassifieds.com"] = "TAC|SC";	hosts["southsoundhomes.com"] = "TAC|HM";	hosts["southsoundjobs.com"] = "TAC|TP-CS";	hosts["southsoundjobmatch.com"] = "TAC|TP-CS";	hosts["southsoundshopping.com"] = "TAC|TP-HV";	hosts["southsoundshopping.thenewstribune.com"] = "TAC|TP-HV";	hosts["southsoundrealestate.com"] = "TAC|HM";	hosts["southsoundrealty.com"] = "TAC|HM";	hosts["southsoundrentals.com"] = "TAC|TP-AP";	hosts["tacoma-proxy.nandomedia.com"] = "TAC|NT";	hosts["tacoma-preview.nandomedia.com"] = "TAC|NT";	hosts["classifieds.thenewstribune.com"] = "TAC|SC";	hosts["forums.thenewstribune.com"] = "TAC|TP-WC";	hosts["nie.thenewstribune.com"] = "TAC|NT";	hosts["secure.thenewstribune.com"] = "TAC|NT";	hosts["thenewstribune.com"] = "TAC|NT";	hosts["classifieds.tribnet.com"] = "TAC|SC";	hosts["nie.tribnet.com"] = "TAC|NT";	hosts["tribnet.com"] = "TAC|NT";	hosts["tribnetwc-proxy.nandomedia.com"] = "TAC|NT";	hosts["uclick.com"] = "TAC|UC";	hosts["wsj.com"] = "TAC|WS";// Set our "mcclatch_cat" tag based on the host// then build our arrayfor (var i in hosts){	if (host.match(i)){		mcclatchy_cat = hosts[i];		buildSections(i);		break;	} else if (myURL.match("/tribnet/legacy")) { // Added to handle Legacy domain issue		mcclatchy_cat = "TAC|TP-LG"; tail = "NEWS|LOCAL|SEARCH";	} else {mcclatchy_cat = "TAC|UNKNOWN"; tail = "UNKNOWN";}}/* ================         SECTIONS ARRAY        ================ */// Function to build our array of paths, mapped to McClatchy tagsfunction buildSections(site) {	// We maintain different arrays for different hosts	// so find the correct host before adding paths// THENEWSTRIBUNE.COM	if ((site == "thenewstribune.com") || (site == "tribnet.com") || (site == "tacoma-proxy.nandomedia.com")) {		if (myURL == "") {tail = "News"; return}  // Root value		sections["/24hour"] = "News|Nation_World";		sections["/24hour/business"] = "News|Business";		sections["/24hour/consumer"] = "News|Business";		sections["/24hour/entertainment"] = "News|Entertainment";		sections["/24hour/entertainment/awards/oscars"] = "News|Entertainment|Movies";		sections["/24hour/entertainment/music"] = "News|Entertainment|Music";		sections["/24hour/food_wine"] = "News|Entertainment|Dining";		sections["/24hour/sports"] = "News|Sports";		sections["/24hour/travel"] = "News|Entertainment";		sections["/24hour/weird"] = "News|Entertainment";		sections["/aboutus"] = "Other";		sections["/adventure"] = "News|Sports";		sections["/adventure/travel"] = "News|Entertainment";		sections["/ae"] = "News|Entertainment";		sections["/ae/movies"] = "News|Entertainment|Movies";		sections["/ae/music"] = "News|Entertainment|Music";		sections["/ae/restaurants"] = "News|Entertainment|Dining";		sections["/archives"] = "News|Search";		sections["/business"] = "News|Business";		sections["/cgi-bin/email"] = "Other";		sections["/circulation"] = "Other";		sections["/cityfeet"] = "Class|Real_Estate|Search";		sections["/elections"] = "News";		sections["/entertainment"] = "News|Entertainment";		sections["/front"] = "News";		sections["/health"] = "News";		sections["/news"] = "News";		sections["/news/backtalk"] = "News|Local";		sections["/news/breaking"] = "News|Local";		sections["/news/census"] = "News|Local";		sections["/news/columnists"] = "News|Local";		sections["/news/crime"] = "News|Local";		sections["/news/education"] = "News|Local";		sections["/news/election2004/local"] = "News|Local";		sections["/news/local"] = "News|Local";		sections["/news/military"] = "News|Local";		sections["/news/nationworld"] = "News|Nation_World";		sections["/news/northwest"] = "News|Local";		sections["/news/pending"] = "Test";		sections["/news/projects"] = "News|Local";		sections["/news/religion"] = "News|Local";		sections["/news/showandtell"] = "News|Local";		sections["/news/special"] = "News|Local";		sections["/news/vitals"] = "News|Local";		sections["/news/youandme"] = "News|Local";		sections["/news/obituaries"] = "News|Local";		sections["/obituaries"] = "News|Local|Search";		sections["/opinion"] = "News|Local";		sections["/photos"] = "News|Local";		sections["/projects"] = "News|Local";		sections["/register-bin"] = "Other";		sections["/registration"] = "Other";		sections["/search"] = "News|Search";		sections["/search-bin"] = "News|Search";		sections["/search_tmpl"] = "News|Search";		sections["/shopping"] = "Other";		sections["/soundlife"] = "News|Entertainment";		sections["/sports"] = "News|Sports";		sections["/sports/colleges"] = "News|Sports|College";		sections["/sports/highschools"] = "News|Sports|Preps";		sections["/sports/mariners"] = "News|Sports|Pro";		sections["/sports/rainiers"] = "News|Sports|Pro";		sections["/sports/seahawks"] = "News|Sports|Pro";		sections["/sports/sonics"] = "News|Sports|Pro";		sections["/sports/storm"] = "News|Sports|Pro";		sections["/ss"] = "News|Entertainment";		sections["/stats"] = "News|Sports";		sections["/test"] = "Test|Level1";		sections["/test/bhunter"] = "Test|BHunter";		sections["/test/psd2"] = "Test|Level2";		sections["/test/psd2/psd3"] = "Test|Level3";		sections["/traffic"] = "News|Local";		sections["/user_registration"] = "Other";		sections["/weather"] = "News|Local";		sections["/ww2"] = "News|Local";// SECURE.THENEWSTRIBUNE.COM	} else if (site == "secure.thenewstribune.com") {		if (myURL == "") {tail = "Other"; return}  // Root value		sections["/cgi-bin"] = "Other";		sections["/circulation"] = "Other";		sections["/classifieds"] = "Class";		sections["/news"] = "News|Local";		sections["/obits"] = "News|Local";		sections["/pigskin"] = "Other";		sections["/soundlife"] = "News|Local";		sections["/sports"] = "News|Local";		tail = "Other";		// Set a default value// APARTMENTS.COM and SOUTHSOUNDRENTALS.COM	} else if ((site == "apartments.com") || (site == "southsoundrentals.com")) {		if (myURL == "") {tail = "Class|Real_Estate"; return}  // Root value		sections["/search"] = "Class|Real_Estate|Search";		tail = "Class|Real_Estate|Search";		// Set a default value// CAPWIZ.COM	} else if (site == "capwiz.com") {		if (myURL == "") {tail = "News|Search"; return}  // Root value		sections["/tribnet"] = "News|Search";		tail = "News|Search";		// Set a default value// CAREERSITE.COM and SOUTHSOUNDJOBS.COM	} else if ((site == "careersite.com") || (site == "southsoundjobs.com") || (site == "southsoundjobmatch.com") || (site == "employmentwizard.com")) {		if (myURL == "") {tail = "Class|Employment"; return}  // Root value		sections["/faq"] = "Class|Employment";		sections["/perl/candidate"] = "Class|Employment";		sections["/perl/employer"] = "Class|Employment";		sections["/perl/vaui"] = "Class|Employment";		sections["/perl/vaui/Search"] = "Class|Employment|Search";		sections["/perl/vrui"] = "Class|Employment";		sections["/postajob"] = "Class|Employment";		sections["/topjobs.asp"] = "Class|Employment|Search";		tail = "Class|Employment";		// Set a default value// CARS.COM and SOUTHSOUNDCARS.COM	} else if ((site == "cars.com") || (site == "southsoundcars.com")) {		if (myURL == "") {tail = "Class|Automotive"; return}  // Root value		sections["/go/search"] = "Class|Automotive|Search";		sections["/go/index.jsp"] = "Class|Automotive|Search";		sections["/go/buyindex.jsp"] = "Class|Automotive|Search";		sections["/go/kbb"] = "Class|Automotive|Search";		sections["/carsapp/tribnet"] = "Class|Automotive";		sections["/go/crp"] = "Class|Automotive";		sections["/news/stories"] = "Class|Automotive";		tail = "Class|Automotive|Search";		// Set a default value// CUSTOMCOUPON.COM	} else if ((site == "customcoupon.com") || (site == "coupons.com")) {		if (myURL == "") {tail = "Other"; return}  // Root value		sections["/cgi-bin/valuecenter.cgi"] = "Other";		tail = "Other";		// Set a default value// FINANCIALCONTENT.COM	} else if (site == "financialcontent.com") {		if (myURL == "") {tail = "News|Business"; return}  // Root value		sections["/engine"] = "News|Business";		tail = "News|Business";		// Set a default value// FORUMS.THENEWSTRIBUNE.COM	} else if (site == "forums.thenewstribune.com") {		if (myURL == "") {tail = "Other"; return}  // Root value		tail = "Other";// HARVESTSWIFT.COM	} else if (site == "newspaperads.com") {		if (myURL == "") {tail = "Other"; return}  // Root value		sections["/thenewstribune"] = "Other";		tail = "Other";		// Set a default value// HEALTHOLOGY.COM	} else if (site == "healthology.com") {		if (myURL == "") {tail = "News"; return}  // Root value		sections["/nip_v2.asp"] = "News";		sections["/search_new.asp"] = "News|Search";		tail = "News";		// Set a default value// LEGACY.COM	} else if (site == "legacy.com") {		if (myURL == "") {tail = "News|Local|Search"; return}  // Root value		sections["/tribnet"] = "News|Local|Search";		tail = "News|Local|Search";// MYCAPTURE.COM	} else if (site == "mycapture.com") {		if (myURL == "") {tail = "News|Local"; return}  // Root value		sections["/mycapture"] = "News|Local";		tail = "News|Local";		// Set a default value// NIE.THENEWSTRIBUNE.COM and NIE.TRIBNET.COM	} else if ((site == "nie.thenewstribune.com") || (site == "nie.tribnet.com")) {		if (myURL == "") {tail = "Other"; return}  // Root value		sections["/orderonline2"] = "Other";		sections["/pdf"] = "Other";		tail = "Other";		// Set a default value// P2IONLINE.COM and SOUTHSOUNDSHOPPING.COM	} else if ((site == "p2ionline.com") || (site == "southsoundshopping.com")) {		if (myURL == "") {tail = "Other"; return}  // Root value		sections["/sections"] = "Other";		sections["/shoppingchannel"] = "Other";		sections["/default2.asp"] = "Other";		tail = "Other";		// Set a default value// PLANETDISCOVER.COM	} else if (site == "planetdiscover.com") {		if (myURL == "") {tail = "Other|Search"; return}  // Root value		sections["/search"] = "Other|Search";		tail = "Other|Search";		// Set a default value// PROQUEST ARCHIVES	} else if (site == "pqarchiver.com") {		if (myURL == "") {tail = "News|Local|Search"; return}  // Root value		sections["/tribnet"] = "News|Local|Search";// COMMUNITIES.SOUTHSOUND.COM	} else if (site == "communities.southsound.com") {		if (myURL == "") {tail = "Other"; return}  // Root value		sections["/search"] = "Other|Search";		sections["/pgs"] = "Other";		tail = "Other";		// Set a default value// SOUTHSOUND.COM	} else if (site == "southsound.com") {		if (myURL == "") {tail = "Other|Search"; return}  // Root value		sections["/ss"] = "Other|Search";		tail = "Other|Search";		// Set a default value// SOUTHSOUNDCLASSIFIEDS.COM, SOUTHSOUNDCLASSIFIED.COM and CLASSIFIEDS.TRIBNET.COM		} else if ((site == "southsoundclassifieds.com") || (site == "southsoundclassified.com") || (site == "classifieds.tribnet.com") || (site == "classifieds.thenewstribune.com")) {		if (myURL == "") {tail = "Class"; return}  // Root value		sections["/default.asp"] = "Class|Search";		sections["/greatdeals.asp"] = "Class|Search";		sections["/lightning-listing.asp"] = "Class|Search";		sections["/listing.asp"] = "Class|Search";		sections["/obits"] = "News|Local|Search";		sections["/place_an_ad"] = "News|Local|Search";		sections["/search.asp"] = "Class|Search";		tail = "Class|Search";		// Set a default value// SOUTHSOUNDHOMES.COM, SOUTHSOUNDREALESTATE.COM, SOUTHSOUNDREALTY.COM and CITYFEET.COM	} else if ((site == "southsoundhomes.com") || (site == "southsoundrealestate.com") || (site == "southsoundrealty.com") || (site == "cityfeet.com")) {		if (myURL == "") {tail = "Class|Real_Estate"; return}  // Root value		sections["/announcements"] = "Class|Real_Estate";		sections["/search"] = "Class|Real_Estate|Search";		sections["/tacoma"] = "Class|Real_Estate|Search";		tail = "Class|Real_Estate|Search";// SOUTHSOUNDSHOPPING.COM	} else if ((site == "southsoundshopping.com") || (site == "southsoundshopping.thenewstribune.com")) {		if (myURL == "") {tail = "Other"; return}  // Root value		sections["/registration_error.asp"] = "Other";		tail = "Other";// TACOMA-PREVIEW.NANDOMEDIA.COM (preview site)	} else if (site == "tacoma-preview.nandomedia.com") {		if (myURL == "") {tail = "Test"; return}  // Root value		sections["/news"] = "Test";		tail = "Test";		// Set a default value// UCLICK.COM	} else if (site == "uclick.com") {		if (myURL == "") {tail = "News|Entertainment"; return}  // Root value		sections["/client/tac"] = "News|Entertainment";		tail = "News|Entertainment";	// Set a default value// WALLSTREETJOURNAL.COM	} else if (site == "wsj.com") {		if (myURL == "") {tail = "News|Business"; return}  // Root value		tail = "News|Business";		// Set a default value	}}/* ================ END OF USER MAINTAINED ARRAYS ================ *//* =============================================================== *//* ================      PATH WALKER ROUTINE      ================ */// Start walking up the URL pathwhile (myURL.lastIndexOf('/') > -1){	if (sections[myURL]) {tail = sections[myURL]; break;}	myURL = myURL.substring(0, myURL.lastIndexOf('/'));}override_prop6 = mcclatchy_cat + "|" + tail;/* =============== END MANDATORY MCCLATCHY TAGGING =============== *//////////////////////////////////////////////////////////////////////////var default_pageName='';/* Blank defaults to HTML page title */var default_server='TheNewsTribune.com';/* Blank defaults to host domain if available */var default_channel='';/* Blank defaults to high-level path if available */var default_pageType='';/* Blank defaults to blank */var default_pageValue='';/* Blank defaults to blank */var default_product='';/* Blank defaults to blank */var default_URL=window.location.href;var default_version='';/* Blank defaults to blank */var default_pagelevel='';/* Blank defaults to section vs. front calculation */var default_content_source='';/* Blank defaults to blank */var default_prop5='';/* Blank defaults to blank */var default_prop6='';/* Blank defaults to blank */var default_prop7='';/* Blank defaults to blank */var default_prop8='';/* Blank defaults to blank */var default_prop9='';/* Blank defaults to blank */var default_prop10='';/* Blank defaults to blank *//*                                                                 *//* ++++++++++++++++++++ New code as of 121603 ++++++++++++++++++++ *//*                                                                 *//* ++++++++++ Code for tracking non-standardized pages +++++++++++ */// var override_URL;if(!override_URL)override_URL="G5-"+document.URL;/* ++++++++ End Code for tracking non-standardized pages +++++++++ *//* ++++++++++++++++++++ New code for Cars.com ++++++++++++++++++++ */// if (host.match(/cars.com/)) {// }var car_make, car_model, car_zip;if(car_make || car_model || car_zip) {	var override_prop8;	if(!override_prop8)override_prop8=car_make+"|"+car_model+"|"+car_zip;}/* ++++++++++++++++++ End New code for Cars.com ++++++++++++++++++ */var default_prop11='';/* Blank defaults to blank *//*                                                                 */var default_dynamicAccountSelection=false; /* Set to true to turn on dyanamic account selection */var default_dynamicAccountList='nmtracking,nmtesttest=docs.nandomedia';/*                 Set to form of account(s)=matching_string,account(s)=matching_string, etc.                   where account is the site identifier and matching string is either the domain                    or a string that will be matched against the dynamicAccountMatch string.                   The stats will go to the first account group that matches. To send to multiple                   accounts, separate the site identifiers by a comma.                         */var default_dynamicAccountMatch='docs.nandomedia'; /* Blank defaults to matching against domain */var reserve_popular_stories=false;/* This causes stats.js to ignore attempts to set prop10 and prop11 so that they are clear for use by popular pages code */        /* Do NOT set this to true for Modesto as long as their popular pages code            attempts to directly set s_prop11.       */var popular_headline_min_length=20; /* Set a minimum length of a headline in case it has to be truncated in the list */var popular_root_url1='http://www.thenewstribune.com'; /* e.g., 'http://www.modbee.com' */var popular_root_url2='http://www.thenewstribune.com';        /* These two should be set to the two most common root URLs used in the            URLs of stories being measured for Most Popular Story.            Both root URLs should refer to the same doc root.  *//*                                                                 *//* ++++++++++++++++++++++++ End new code +++++++++++++++++++++++++ *//*                                                                 */var default_trackDownloadLinks=false;/* Set to true to enable tracking of downloads */var default_linkDownloadFileTypes='aif,aiff,aifc,au,avi,dif,doc,dv,exe,mid,midi,mov,mpg,mp2,mp3,mpeg,mpv2,msg,pdf,ppt,pps,qtl,ra,ram,rm,rpm,rv,txt,vbe,wav,wm,wma,wmv,wvx,xls,zip';/* Only files types listed in the string will be tracked *//*                                                                 */var default_trackExternalLinks=false;/* Set to true to track outside links */var default_linkInternalFilters='nandomedia,nando,nandotimes,sportserver';/* List internal i.e., non-tracked domains in string *//*                                                                 */var default_channels_by_server=false;/* Prefix server name in channel report */var default_pages_by_channel=false; /* Add channel name to page name prefix (after server name) */var default_pages_by_server=true;/* Prefix server name to page name *//*                                                                 */var prefix_spacer_prepage=' -- ';/* No override. This can be set only sitewide */var prefix_spacer_prechannel=' | ';/* No override. This can be set only sitewide *//*/*                                                                 *//* ================= End Site-specific settings ===================*//*                                                                 */