/**scripts/web_Tag_functions
 * @author dbenedetto
 * Note: When coming from job detail, checks to see if omni_adDetail is defined and uses value
 */
// This is for FloridaCareerLink and QCEmployMe do not remove (in production they are 316 & 329
if (typeof(js_specialEvent) == "undefined") {
	var js_specialEvent = '';
}
//returns value of URL variableName passed in
function getURLVar(urlVarName)
{
   var urlHalves = String(document.location).toLowerCase().split('?');
   var urlVarValue = '';
   if(urlHalves[1]){
      var urlVars = urlHalves[1].split('&');
      for(var i=0; i<=(urlVars.length); i++)
	  {
         if(urlVars[i])
		 {
            var urlVarPair = urlVars[i].split('=');
            if (urlVarPair[0] && urlVarPair[0] == urlVarName.toLowerCase())
			{
               urlVarValue = urlVarPair[1];
            }
         }
      }
   }
   return urlVarValue;
}

function NumbersPresent(sText)
{
   var NumChars = "0123456789";
   var IsNumber=false;
   var Char;
	
   for (i = 0; i < sText.length; i++) 
      { 
      Char = sText.charAt(i); 
      if (NumChars.indexOf(Char) != -1) 
         {
         IsNumber = true;
         }
      }
   //if numbers are present isnumber = true
   return IsNumber;
   
}

function setChannel(myValue,s_searchPage)
{	sChannel = myValue;
	if (sChannel == "")
	{
		sChannel = "Jobs";
	}
	if(typeof(omni_employerAccount) != "undefined")
		{
			setProp20(omni_employerAccount);
		}
	else
	{
		setProp20("");
	}
	if (s_searchPage == "1")//first page of results only
	{	
		if(typeof(omni_searchCity) != "undefined")
		{
			setProp15(omni_searchCity);
		}
		if(typeof(omni_searchCompany)!= "undefined")
		{
			setProp18(omni_searchCompany);
		}
		if(typeof(omni_searchState)!= "undefined")
		{
			setProp14(omni_searchState);
		}
		if(typeof(omni_searchZip)!= "undefined")
		{
			setProp16(omni_searchZip);
		}
		if(typeof(omni_searchCategory)!= "undefined")
		{
			setProp1(omni_searchCategory);
		}
		if(typeof(omni_searchWords)!= "undefined")
		{
			setProp12(omni_searchWords);
		}
		if (myValue !="Resume Search")
		{
			setProp11("Job Search");
			setEvent("event1");
		}
		else
		{
			setProp11(myValue);	
		}	
	}
}

function setEvent(myValue, instantiate)
{
	if (instantiate == 1)//instantiate
	{
		sEvent = "";
	}
	if (sEvent == "")//dont append comma
	{
		sEvent = myValue;
	}
	else
	{
		sEvent = sEvent + "," + myValue;
	}
}

function setProductID(myValue)
{
	sProductID = myValue;
}
function setProp1(myValue)//category search
{
	sProp1 = myValue;
}

function setProp2(myValue)//employer CreateAd category assignment
{
	sProp2 = myValue;
}

function setProp9(myValue)
{
	sProp9 = myValue;
}

function setProp11(myValue)
{
	sProp11 = myValue;
}

function setProp12(myValue)
{
	sProp12 = myValue;
}

function setProp14(myValue)
{
	sProp14 = myValue;
}

function setProp15(myValue)
{
	sProp15 = myValue;
}

function setProp16(myValue)
{
	sProp16 = myValue;
}

function setProp18(myValue)
{
	sProp18 = myValue;
}

function setProp20(myValue)
{
	sProp20 = myValue;
}
function setProduct(myValue)
{
	sProducts = myValue;
}

function setServer(myValue)
{
	sServer = myValue;
}

function setEvars(myValue)
{
	sEvars = myValue;
}

function getChannel()
{
	return sChannel;
}

function getEvent()
{
	return sEvent;
}

function getServer()
{
	return sServer;
}

function getProductID()
{
	return sProductID;
}

function getProp1()
{
	return sProp1;
}

function getProp2()
{
	return sProp2;
}

function getProp9()
{
	return sProp9;
}
function getProp11()
{
	return sProp11;
}

function getProp12()
{
	return sProp12;
}

function getProp14()
{
	return sProp14;
}

function getProp15()
{
	return sProp15;
}

function getProp16()
{
	return sProp16;
}

function getProp18()
{
	return sProp18;
}

function getProp20()
{
	return sProp20;
}

function getEvars()
{
	return sEvars;
}

function getProduct()
	{
		return sProducts;
	}
function PageTracker(s_searchPage,s_Global_Navigation_ID, js_userStatus,js_specialEvent,dyna_URL_Alias)
{
	var ArrayDirs;
	var thisDir;
	var j;
	var subOne = "";
	var subTwo = "";
	var subThree = "";
	var subFour = "";
	var js_PageName = "";
	var lastCharNum = 0;
	var dyna_URL_Alias = (dyna_URL_Alias == null) ? "" : dyna_URL_Alias;//default to blank, this is used to override the displayed page URL
	var js_specialEvent = (js_specialEvent == null) ? "" : js_specialEvent;
	var adProduct = ";ad";//default product for ads
	var jpProduct = ";jp";//default product for job packs
	var uppProduct = ";upp";//default product for unlimited posting plans
	var raProduct = ";ra";//default product for resume access
	var fsProduct = ";fs";//default product for featured jobseeker
	var feProduct = ";fe";//default product for featured employer

	if(typeof(omni_productList)!= "undefined")
	{
		adProduct = omni_productList;
		jpProduct = omni_productList;
		uppProduct = omni_productList;
		raProduct = omni_productList;
		fsProduct = omni_productList;
		feProduct = omni_productList;
	}
	//SET DEFAULTS/INSTANTIATE GLOBAL VARIABLES
	setProp9("Job Seeker");//jobseeker or employer, defaulted job seeker
	setChannel("Jobs",0);//default channel
	setEvent("event9",1);//default event is "page views"
	setServer(window.location.hostname);
	setProp1("");//category search
	setProp2("");//employer category assignment (ad posting)
	setProp11("");
	setProp12("");//keyword search
	setProp14("");//state search
	setProp15("");//city search
	setProp16("");//zip search
	setProp18("");//company search
	setEvars("");//not currently used
	setProduct("");
	setProductID(""); //invoiceID defaulted to blank
	if(typeof(omni_productID)!= "undefined")
	{
		setProductID(omni_productID);
	}
	//PREPARE FOR PAGE ASSIGNMENT
	//if url path is passed in, use path passed in (some URL paths are multi-purposeful)
	if (dyna_URL_Alias != "")
	{
		sPath = dyna_URL_Alias.toLowerCase();
	}
	else
	{
		sPath = location.pathname.toLowerCase();
	}
	lastCharNum = sPath.length - 1;
	if (sPath.substring(lastCharNum) == "/")//Remove last slash because file name is not present, now we fall into subTwo="" logic
		{
			sPath = sPath.substring(1,lastCharNum);
		}
	sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
	ArrayDirs = sPath.split("/");
	j = ArrayDirs.length;
	
	subOne = ArrayDirs[j - 1];
	if (j >= 2) 
	{
		subTwo = ArrayDirs[j - 2];
		if (j >= 3) 
		{
			subThree = ArrayDirs[j - 3];
			if (j >= 4) 
			{
				subFour = ArrayDirs[j - 4];
			}
		}
	}
	if (s_Global_Navigation_ID == 'e')
	{
		setChannel("Employer",0);
		setProp9 ("Employer");
	}
	else if (s_Global_Navigation_ID == 's')
	{
		setChannel("Job Seeker",0);
		setProp9("Job Seeker");
	}
	else if (s_Global_Navigation_ID == 'c')
	{
		setChannel("corporate");
		setProp9("corporate");
	}
	//PAGE ASSIGNMENT
	if (subTwo != "" && NumbersPresent(subTwo) == 1)//page is static builder for each site
	{
		if (subTwo.substring(0, 11) == "job_search_") 
		{
			js_PageName = "Search";
			setChannel("Job Search",0);	
		}
		else {
			if (j >= 4 && subFour == "jobs_city") 
			{
				js_PageName = "Browse By City";
				omni_searchCity = subTwo;
				setChannel("Browse Jobs",s_searchPage);				
			}
			else if (j >= 4 && subFour == "jobs_title")
				{
					js_PageName = "Browse By Job Title";
					setChannel("Browse Jobs",s_searchPage);
				}
			else {
				switch (subOne) {
					case "autonotify_jobs.htm": //p/info/NNN/help.htm
						js_PageName = "Job Agents";
						break;
					case "free-job-search-tools.htm": //confirm
						js_PageName = "Candidate Home";
						break;
					case "help.htm"://p/info/NNN/help.htm
						js_PageName = "Help";
						break;
					case "help_seeker.htm":
						js_PageName = "Help";
						break;
					case "job_posting_choices.htm":
						setEvent("prodview");
						js_PageName = "Employer Product Info";
						setProduct(allProduct);
						break;
					case "privacy.htm":
						js_PageName = "Privacy";
						break;
					case "terms_of_use.htm":
						js_PageName = "Terms Of Use";
						break;
					case "terms_of_use_detail.htm":
						js_PageName = "Terms Of Use";
						break;
				}
			}
		}
	}
	else {
		if (subTwo == "") {
			switch (subOne) {
				case "employer":
					js_PageName = "Employer Account Page";
					break;
				case "login_form.cfm":
					js_PageName = "Employer Login";
					break;
				case "login_form_seeker.cfm":
					js_PageName = "Candidate Login";
					break;
				case "corporate":
					js_PageName = "Corporate Home";
					break;
				case js_seekerHomeLink.substring(0,js_seekerHomeLink.lastIndexOf('/')):
					js_PageName = "Home";
					break;
				case js_employerHomeLink.substring(0,js_employerHomeLink.lastIndexOf('/')):
					js_PageName = "Employer Page";
					break;
				case "createad":
					setProduct(adProduct);
					setEvent("prodview");
					//if q = 1 product info/ if q=0 employer registration
					if (getURLVar("q") == 1)
					{
						js_PageName = "Employer Registration";
					}
					else
					{
						js_PageName = "Employer Product Info";
					}
					break;
			}
		}
		else {
			switch (subTwo) {
				case "advsearch":
					switch (subOne) {
						case "advjobsearch_search.cfm":
							js_PageName = "Advanced Search";
							break;
						case "advjobsearch_result.cfm":
							js_PageName = "Search Results";
							setChannel("Advanced Search", s_searchPage);//updates schannel and [if 1st time]: sevents and prop11, prop15,prop14, prop18 and prop12, prop1
							break;
						default:
							break;
					}
					break;
				case "browseads":
					switch (subOne) {
						case "bycategory.cfm":
							js_PageName = "Browse By Category";
							setChannel("Browse Jobs", 0);
							break;
						case "bycompany.cfm":
							js_PageName = "Browse By Company";
							setChannel("Browse Jobs", 0);
							break;
						case "index.cfm":
							js_PageName = "Browse Jobs";
							setChannel("Browse Jobs", s_searchPage);
							break;
						default:
							js_PageName = "Browse Jobs";
							setChannel("Browse Jobs", s_searchPage);
							break;
					}
					break;
				case "bulkplans":
					setProduct(uppProduct);
					switch(subOne)
					{
						case "cc_action.cfm":
							setEvent("purchase");
							js_PageName = "Employer UPP CC Purchase";
							break;
						case "invoice_action.cfm":
							setEvent("purchase");
							js_PageName = "Employer UPP Invoice Purchase";
							break;
						case "pay_cc.cfm":
							setEvent("scCheckout");
							js_PageName = "Employer UPP Submit Credit Info";
							break;
					}
					break;
				case "createad":
					if (subThree == "")
					{	
						setProduct(adProduct);
						js_PageName = "Post a Job";
						if(typeof(omni_searchCategory)!= "undefined")
						{
							//setProp2(omni_searchCategory);
							setProp2(omni_searchCategory.replace(/;/g,","));
						}
						switch (subOne) {
							case "cc_action.cfm":
								setEvent("event18,purchase");
								if (js_specialEvent == "newAccountCreateAd")
								{
									js_PageName = "New Employer First Ad CC Purchase";
								}
								else if (js_specialEvent == "CreateAd")
								{
									js_PageName = "Employer Ad CC Purchase";	
								}
								break;
							case "index.cfm":
								setProduct(adProduct);
								setEvent("prodview");
								if (getURLVar("q") == 1)//if q = 1 product info/ if q=0 employer registration
								{
									js_PageName = "Employer Registration";
								}
								else
								{
									js_PageName = "Employer Create Ad Detail Selection";
								}
								
								break;
							case "pay_cc.cfm":
								setEvent("scCheckout");
								if (js_specialEvent == "newAccount") {
									js_PageName = "New Employer Create First Ad Submit Credit Info";
								}
								else 
								{
									js_PageName = "Employer Create Ad Submit Credit Info";
								}
								break;
							case "pay_inv.cfm":
								setEvent("event18,purchase");
								if (js_specialEvent == "newAccountCreateAd") {
									js_PageName = "New Employer First Ad Invoice Purchase";
								}
								else if(js_specialEvent == "CreateAd")
								{
									js_PageName = "Employer Ad Invoice Purchase";
								}
								break;
							case "step2.cfm":
								if (js_specialEvent == "newAccount")
									{
										js_PageName = "New Employer Create First Ad Detail Selection";
										setEvent("event6,prodview");
									}
								else
								{
									js_PageName = "Employer Create Ad Detail Selection";
									setEvent("prodview");
								}
								break;
						}
						break;
					}
					else if (subThree == "employer")
						{
							js_PageName = "Post a Job";	
							setProduct(adProduct);
							if(typeof(omni_searchCategory)!= "undefined")
							{
									//setProp2(omni_searchCategory);
								setProp2(omni_searchCategory.replace(/;/g,","));
							}
							switch (subOne) 
							{
								case "createad":
									setProduct(adProduct);
									setEvent("prodview");
									if (getURLVar("q") == 1)//if q = 1 product info/ if q=0 employer registration
									{
										js_PageName = "Employer Registration";
									}
									else
									{
										js_PageName = "Employer Create Ad Detail Selection";
									}
									break;
								case "index.cfm":
									setProduct(adProduct);
									setEvent("prodview");
									js_PageName = "Employer Create Ad Detail Selection";
									break;
								case "inv_action.cfm":
									js_PageName = "Employer Ad Invoice Receipt";	
									break;
								case "pay_cc.cfm":
									setEvent("scCheckout");
									if (js_specialEvent == "newAccount")
									{
										js_PageName = "New Employer Create First Ad Submit Credit Info";
									}
									else
									{
										js_PageName = "Employer Create Ad Submit Credit Info";	
									}
									break;
								case "pay_inv.cfm":
									setEvent("event18,purchase");
									if (js_specialEvent == "newAccountCreateAd") {
										js_PageName = "New Employer First Ad Invoice Purchase";
									}
									else if(js_specialEvent == "CreateAd")
									{
										js_PageName = "Employer Ad Invoice Purchase";
									}
									break;
								case "pay_choose.cfm":
									setEvent("scCheckout");
									if (js_specialEvent == "newAccount")
									{
										js_PageName = "New Employer Create First Ad Opt Payment";
									}
									else
									{
										js_PageName = "Employer Create Ad Opt Payment";	
									}
									break;
								case "step3.cfm":
									setEvent("scCheckout");
									if (js_specialEvent == "newAccount")
									{
										js_PageName = "New Employer Create First Ad Enhancements";
									}
									else
									{
										js_PageName = "Employer Create Ad Enhancements";
									}
									break;
							}
							break;
						}
				case "createbulk":
					setProduct(uppProduct);
					switch(subOne)
					{
						case "index.cfm":
							setEvent("prodview");
							js_PageName = "Employer UPP Detail Selection";
							break;
						case "pay_choose.cfm":
							setEvent("scCheckout");
							js_PageName = "Employer UPP Opt Payment";
							break;
					}
					break;
				case "employer":
					js_PageName = "Employer Account Page";
					switch (subOne) {
						case "createad":
							setProduct(adProduct);
							setEvent("prodview");
							js_PageName = "Employer Create Ad Detail Selection";
							break;
						case "createbulk":
							setProduct(uppProduct);
							setEvent("prodview");
							js_PageName = "Employer UPP Detail Selection";
							break;
						case "featuredrecruiter":
							js_PageName = "Employer Featured Employer Info";
							setProduct(feProduct);
							setEvent("prodview");
							break;
						case "index.cfm":
							js_PageName = "Employer Account Page";
							break;
						case "jobpacks":
							js_PageName = "Employer Job Pack Detail Selection";
							setProduct(jpProduct);
							setEvent("prodview");
							break;
						case "updateemployer":
							js_PageName = "Employer Profile";
							break;
					}
					break;
				case "featuredjobseeker":
					setProduct(fsProduct);
					switch (subOne)
					{
						case "cc_action.cfm":
							js_PageName = "Featured Candidate CC Purchase";
							setEvent("purchase");
							break;
						case "index.cfm":
							js_PageName = "Featured Candidate Info";
							setEvent("prodview");
							break;
						case "pay_cc.cfm":
							js_PageName = "Featured Candidate Submit Credit Info";
							setEvent("scCheckout");
							if (getProductID() != "")
							{
								setProductID("S" + sProductID);
							}
							break;
						case "pay_choose.cfm":
							js_PageName = "Featured Candidate Opt Payment";
							setEvent("scCheckout");
							break;
						case "step2.cfm":
							js_PageName = "Featured Candidate Selection";
							setEvent("scCheckout");
							break;
					}
					break;
				case "featuredrecruiter":
					setProduct(feProduct);
					switch (subOne)
					{
						case "cc_action.cfm":
							js_PageName = "Featured Employer CC Purchase";
							setEvent("purchase");
							break;
						case "index.cfm":
							js_PageName = "Featured Employer Info";
							setEvent("prodview");
							break;
						case "inv_action.cfm":
							js_PageName = "Featured Employer Invoice Purchase";
							setEvent("purchase");
							break;
						case "pay_cc.cfm":
							js_PageName = "Featured Employer Submit Credit Info";
							setEvent("scCheckout");
							break;
						case "pay_choose.cfm":
							js_PageName = "Featured Employer Opt Payment";
							setEvent("scCheckout");
							break;
						case "selection":
							js_PageName = "Featured Employer Selection";
							setEvent("prodview");
							break;
					}
					break;
				case "forgotpassword":
					switch (subOne) {
						case "forgotpassword_form.cfm":
							js_PageName = "Employer - Password";
							break;
						case "seekerforgotpassword_form.cfm":
							js_PageName = "Candidate Password";
							break;
						case "seekerforgotpasswordhint_form.cfm":
							js_PageName = "Candidate Password";
							break;
					}
					break;
				case "home":
					if (subOne.length >= 11)//this is a url like home/1_recruiter.htm
					{
						js_PageName = "Employer Page";
					}
					else //this is a url like home/1.htm
					{
						js_PageName = "Home";
					}
					break;
				case "home.cfm"://poweredBy
					js_PageName = "Powered By Home";
					break;
				case "info":
					switch (subOne) {
						case "about_us.cfm":
							js_PageName = "About Us";
							break;
						case "contact.cfm":
							js_PageName = "Contact Us";
							break;
						case "featured_jobseeker.htm":
							js_PageName = "Featured Candidate Intro";
							setEvent("prodview");
							setProduct(fsProduct);
							break;
						case "featured_employer.htm":
							js_PageName = "Featured Employer Intro";
							setEvent("prodview");
							setProduct(feProduct);
							break;
						case "how-this-works.cfm":
							js_PageName = "About Us";
							break;
						case "job_pack_pricing.htm":
							setEvent("prodview");
							js_PageName = "Employer Job Pack Info";
							setProduct(jpProduct);
							break;
						case "job_posting_choices.htm":
							setEvent("prodview");
							js_PageName = "Employer Product Info";
							setProduct(adProduct);
							break;
						case "pricing.cfm":
							js_PageName = "Employer Product Pricing Info"
							setProduct(";ad,;jp,;ra,;upp,;tj,;ab,;fe");
							setEvent("prodview");
							break;
						case "privacy.cfm":
							js_PageName = "Privacy";
							break;
						case "resume_access.cfm":
							js_PageName = "Resume Agents";
							break;
						case "resume_access.htm":
							js_PageName = "Employer Resume Access Info";
							setEvent("prodview");
							setProduct(raProduct);
							break;
						case "unlimited_info.htm":
							setEvent("prodview");
							js_PageName = "Employer UPP Info";
							setProduct(uppProduct);
							break;
					}
					break;
				case "jobpacks":
					setProduct(jpProduct);
					switch (subOne) {
						case "cc_action.cfm":
							js_PageName = "Employer Job Pack CC Purchase";
							setEvent("purchase");
							break;
						case "index.cfm":
							js_PageName = "Employer Job Pack Detail Selection";
							setEvent("prodview");
							break;
						case "invoice_action.cfm":
							js_PageName = "Employer Job Pack Invoice Purchase";
							setEvent("purchase");
							break;
						case "pay_cc.cfm":
							js_PageName = "Employer Job Pack Submit Credit Info";
							setEvent("scCheckout");
							break;	
						case "pay_choose.cfm":
							js_PageName = "Employer Job Pack Opt Payment";
							setEvent("scCheckout");
							break;						
					}
					break;
				case "jobs_city":
					js_PageName = "Browse By City";
					omni_searchCity = "city list";
					setChannel("Browse Jobs",s_searchPage);
					break;
				case "jobs_title":
					js_PageName = "Browse By Job Title";
					setChannel("Browse Jobs",s_searchPage);
				case "localresumeaccess":
					setProduct(raProduct);	
					switch (subOne)
					{
						case "cc_action.cfm":
							js_PageName = "Employer Resume Access CC Purchase";
							setEvent("purchase");
							break;
						case "pay_cc.cfm":
							js_PageName = "Employer Resume Access Submit Credit Info";
							setEvent("scCheckout");	
							break;
					}
					break;
				case "logout":
					switch (subOne) {
						case "log_out_seeker.cfm":
							js_PageName = "Candidate Logout";
							break;
						case "log_out_recruiter.cfm":
							js_PageName = "Employer Logout";
							break;
						default:
							js_PageName = "Other Logout";
							break;
					}
					break;
				case "modifyaccount":
					js_PageName = "Candidate Profile";
					switch (subThree)//went up a level to ensure modifyaccount is in a seeker folder
					{
						case "seekerlogin":
							js_PageName = "Candidate Profile";
							break;
					}
					break;
				case "postapplication"://postApplication/index
					switch (subOne) {
						case "application_action.cfm":
							setEvent("event2");
							js_PageName = "Post Resume";
							break;
						default:
							js_PageName = "Post Resume";
							break;
					}
					break;
				case "postingsadmin":
					switch (subOne)
					{
						case "action.cfm":
							js_PageName = "View My Resume";
							break;
					}
					break;
				case "postresume"://postResume/index
					js_PageName = "Post Resume";
					switch (subOne) {
						case "resume_action.cfm":
							setEvent("event2");
							js_PageName = "Post Resume";
							break;
						case "index.cfm":
							js_PageName = "Post Resume";
							if(js_specialEvent == "newAccount")
							{
								setEvent("event3");
							}
					}
					break;
				case "recruiterregistration":
					js_PageName = "Employer Registration";
					switch (subOne) {
						case "action.cfm":
							setEvent("event6");
							break;
					}
					break;
				case "resumeaccesslocal":
					setProduct(raProduct);
					switch (subOne) 
					{
						case "index.cfm":
							js_PageName = "Employer Resume Access Detail Selection";
							setEvent("prodview");
							break;
						case "pay_choose.cfm":
							js_PageName = "Employer Resume Access Opt Payment";
							setEvent("scCheckout");
							break;
					}
					break;
				case "savesearch":
					switch (subOne) {
						case "savesearch_form.cfm":
							//seeker or employer?
							if (subThree == "employer") 
							{
								js_PageName = "Resume Agents";
							}
							else 
							{
								js_PageName = "Job Agents";
							}
							break;
						case "display_saved_searches.cfm":
							//seeker new search?
							js_PageName = "Job Agents";
							if (js_specialEvent =="newSearch")
							{
								setEvent("event7");
							}
							break;
					}
					break;
				case "search":
					switch (subOne) {
						case "detail.cfm":
							js_PageName = "Job Details";
							setEvent("event8");
							if (omni_adDetail != "undefined")
							{
								setProduct(omni_adDetail);
							}
							break;
						case "details_nav.cfm":
							js_PageName = "Job Details";
							setEvent("event8");
							if (omni_adDetail != "undefined")
							{
								setProduct(omni_adDetail);
							}
							break;
						case "employer_ad_detail.cfm":
							js_PageName = "Job Details";
							setEvent("event8");
							if (omni_adDetail != "undefined")
							{
								setProduct(omni_adDetail);
							}
							break;
						case "index.cfm":
							js_PageName = "Search";
							setChannel("Job Search", s_searchPage);//updates schannel and sevents
							break;
						default:
							js_PageName = "Search";
							setChannel("Job Search", s_searchPage);//updates schannel and sevents
							break;
					}
					break;
				case "searchresumes":
					switch (subOne) {
						case "detail.cfm":
							js_PageName = "Resume Details";
							setProp11("Resume Search");
							break;
						case "result.cfm":
							if (subThree =="employer")
							{
								js_PageName = "Resume Search";
								setChannel("Resume Search",s_searchPage);
								setProp11("Resume Search");
							}
							else
							{
								js_PageName = "Resume Search Preview";
								setProp11("Resume Search Preview");
							
							}
							break;
						case "search.cfm":
							js_PageName = "Resume Search";
							setProp11("Resume Search");
							break;
						case "searchresumes_searchform.cfm"://preview
							js_PageName = "Post Resume Preview";
							setProp11("Resume Search");
							break;
					}
					break;
				case "seekerlogin":
					js_PageName = "Candidate Account Page";
					switch (subOne) {
						case "featuredjobseeker":
							js_PageName = "Featured Candidate Info";
							setEvent("prodview");
							setProduct(fsProduct);
							break;
						case "index.cfm":
							js_PageName = "Candidate Account Page";
							break;
						case "modifyaccount":
							js_PageName = "Candidate Profile";
							break;
						case "postresume":
							js_PageName = "Post Resume";
							break;
					}
					break;
				case "seekerregistration":
					switch (subOne) {
						case "validate_captcha.cfm":
							js_PageName = "Sign Up";
							break;
						case "registration_action.cfm":
							js_PageName = "Sign Up";
							break;
					}
					break;
				case "sendresume":
					switch (subOne) {
						case "sendresume.cfm":
							//window.alert("Path found 1 SendResume.cfm");
							js_PageName = "Apply Job";
							break;
						case "sendresume_action.cfm":
							//window.alert("Path found 1 SendResume.cfm");
							if (omni_adDetail != "undefined")
							{
								setEvent("event5:" + omni_adDetail);
							}
							else 
							{
								setEvent("event5");
							}
							js_PageName = "Apply Job";
							break;
						default:
							//window.alert("Path found DEFAULT " + subOne);
							js_PageName = "Apply Job";
							break;
					}
					break;
				case "updateemployer":
					switch (subOne) 
					{
						case "action.cfm":
							//window.alert("Path found 1 Update Employer.cfm");
							js_PageName = "Update Employer Profile";
							break;
						default:
							js_PageName = "Employer Profile";
							break;
					}
				break;
			}
		}
	}
	//FINALIZE VARIABLES
	if (js_PageName != "")
	{
		sPage = js_PageName;
	}
	s.pageName ="rhw." + sPage; //<!---Unique Page Name Identifier--->
	s.prop1 = getProp1().toLowerCase();//category search
	s.prop2 = getProp2().toLowerCase();//employer ad category assignments
	s.prop9 = getProp9();
	s.prop10 = js_userStatus;//registered or anonymous, passed in
	s.prop11 = getProp11();//Resume Search
	s.prop12 = getProp12();//keyword search
	s.prop14 = getProp14();//state search
	s.prop15 = getProp15();//prop15 is for city search
	s.prop16 = getProp16();//zip search
	s.prop18 = getProp18();//company search
	s.prop20 = getProp20();//employer Account number (SN-EMPID)
	s.products = getProduct().toLowerCase();//product
	s.productID = getProductID();//productID/ invoicenumber
	s.channel = getChannel();
	s.events = getEvent().toLowerCase();
	s.server = getServer().toLowerCase();
	s.evars = getEvars();//not currently used
//window.alert("s.pagename = " + s.pageName + "   s.channel = " + s.channel + "  s.prop1 = " + s.prop1 +  "    s.prop2 = " + s.prop2 + "   s.prop9 = " + s.prop9 + "   s.prop10 = " + s.prop10+ "   s.prop11 = " + s.prop11+ "   s.prop12 = " + s.prop12+ "   s.prop14 = " + s.prop14+ "   s.prop15 = " + s.prop15+ "   s.prop16 = " + s.prop16+ "   s.prop18 = " + s.prop18 + "   s.products = " + s.products+ "   s.events = " + s.events+ "   s.server = " + s.server+ "   s.evars = " + s.evars +  "    s.prop20 = " + s.prop20 + "      s.productID = " + s.productID);
	
}