<!--

//Function to Swap On-Page Variables for Referral Visitors
function smart_sub(id, val) {
		if(document.getElementById(id)) {
			if(typeof(document.getElementById(id).value) == "undefined") {
				document.getElementById(id).innerHTML = val;
			}
			else {
				document.getElementById(id).value = val;
			}
		}
	}

//Function to Swap Phone, eMail for Referral Visitors from Transitions Magazinre
function customizeByReferrer() {
		
		//SHOW STANDARD DATA FOR WWW
		
		if(location.hostname == "www.courierexpress.net") {		
			smart_sub('variable_main_phones', '770-955-3030 local<br>888-462-2022 toll free');
			smart_sub('variable_form_subject', '<input name="_subject" type="hidden" value="Contact Us Form from CE Website">');
			smart_sub('variable_appForm_subject', '<input name="_subject" type="hidden" value="Account Applications Form">');
			
			//Georgia
			smart_sub('variable_phone_ga', '770-955-3030 Local<br>888-462-2022 Toll Free');
			smart_sub('variable_email_ga', '<a href="mailto:david.redavid@courierexpress.net">david.redavid@courierexpress.net</a>');
			smart_sub('variable_email2_ga', '<a href="mailto:david.redavid@courierexpress.net">david.redavid@courierexpress.net</a>');
			smart_sub('variable_contactpg_ga', '<a href="mailto:david.redavid@courierexpress.net">Georgia</a><br>770-955-3030 local<br>1-888-462-2022 out of state<br><a href="mailto:david.redavid@courierexpress.net">david.redavid@courierexpress.net</a>');
			smart_sub('variable_oppspg_ga', '<a href="mailto:brent.stuart@courierexpress.net">Georgia</a><br>770-955-3030 local<br>1-888-462-2022 out of state<br><a href="mailto:brent.stuart@courierexpress.net">brent.stuart@courierexpress.net</a>');
			
			
			//Tennessee & Kentucky
			smart_sub('variable_phone_tnky', '615-620-3600 Local<br>866-388-7321 Toll Free');
			smart_sub('variable_email_tnky', '<a href="mailto:jeff.mcalpin@courierexpress.net">jeff.mcalpin@courierexpress.net</a>');
			smart_sub('variable_email2_tnky', '<a href="mailto:jeff.mcalpin@courierexpress.net">jeff.mcalpin@courierexpress.net</a>');
			smart_sub('variable_contactpg_tnky', '<a href="mailto:jeff.mcalpin@courierexpress.net">Tennessee &amp; Kentucky</a><br>615-620-3600 local<br>1-866-388-7321 out of state<br><a href="mailto:jeff.mcalpin@courierexpress.net">jeff.mcalpin@courierexpress.net</a>');
			smart_sub('variable_oppspg_tnky', '<a href="mailto:jason.schultz@courierexpress.net">Tennessee &amp; Kentucky</a><br>615-620-3600 local<br>1-866-388-7321 out of state<br><a href="mailto:jason.schultz@courierexpress.net">jason.schultz@courierexpress.net</a>');
			
			//Alabama, Mississippi & Florida Panhandle
			smart_sub('variable_phone_almsfl', '205-941-1880 Local<br>888-462-2023 Toll Free');
			smart_sub('variable_email_almsfl', '<a href="mailto:brad.sauls@courierexpress.net">brad.sauls@courierexpress.net</a>');
			smart_sub('variable_email2_almsfl', '<a href="mailto:brad.sauls@courierexpress.net">brad.sauls@courierexpress.net</a>');
			smart_sub('variable_contactpg_almsfl', '<a href="mailto:brad.sauls@courierexpress.net">Alabama, Mississippi &amp; Florida Panhandle</a><br>205-941-1880 local<br>1-888-462-2023 out of state<br><a href="mailto:brad.sauls@courierexpress.net">brad.sauls@courierexpress.net</a>');
			smart_sub('variable_oppspg_almsfl', '<a href="mailto:sandra.hendricks@courierexpress.net">Alabama, Mississippi &amp; Florida Panhandle</a><br>205-941-1880 local<br>1-888-462-2023 out of state<br><a href="mailto:sandra.hendricks@courierexpress.net">sandra.hendricks@courierexpress.net</a>');
			
			//Florida
			smart_sub('variable_phone_fl', '407-888-9505 Local<br>888-318-9508 Toll Free');
			smart_sub('variable_email_fl', '<a href="mailto:john.higgins@courierexpress.net">john.higgins@courierexpress.net</a>');
			smart_sub('variable_email2_fl', '<a href="mailto:john.higgins@courierexpress.net">john.higgins@courierexpress.net</a>');
			smart_sub('variable_contactpg_fl', '<a href="mailto:john.higgins@courierexpress.net">Florida</a><br>407-888-9505 local<br>1-888-318-9508 out of state<br><a href="mailto:john.higgins@courierexpress.net">john.higgins@courierexpress.net</a>');
			smart_sub('variable_oppspg_fl', '<a href="mailto:carlos.quinones@courierexpress.net">Florida</a><br>407-888-9505 local<br>1-888-318-9508 out of state<br><a href="mailto:carlos.quinones@courierexpress.net">carlos.quinones@courierexpress.net</a>');
			
			//Western North Carolina & South Carolina
			smart_sub('variable_phone_ncsc', '704-521-8222 Local<br>800-453-7844 Toll Free');
			smart_sub('variable_email_ncsc', '<a href="mailto:greg.cross@courierexpress.net">greg.cross@courierexpress.net</a>');
			smart_sub('variable_email2_ncsc', '<a href="mailto:greg.cross@courierexpress.net">greg.cross@courierexpress.net</a>');
			smart_sub('variable_contactpg_ncsc', '<a href="mailto:greg.cross@courierexpress.net">Western North Carolina &amp; South Carolina</a><br>704-521-8222 local<br>1-800-453-7844 out of state<br><a href="mailto:greg.cross@courierexpress.net">greg.cross@courierexpress.net</a>');
			smart_sub('variable_oppspg_ncsc', '<a href="mailto:greg.cross@courierexpress.net">Western North Carolina &amp; South Carolina</a><br>704-521-8222 local<br>1-800-453-7844 out of state<br><a href="mailto:greg.cross@courierexpress.net">greg.cross@courierexpress.net</a>');
			
			//Other
			smart_sub('variable_phone_other', '770-955-9200 Local<br>866-229-1122 Toll Free');
			smart_sub('variable_email_other', '<a href="mailto:philip.cotter@courierexpress.nett">philip.cotter@courierexpress.net</a>');
			smart_sub('variable_email2_other', '<a href="mailto:philip.cotter@courierexpress.nett">philip.cotter@courierexpress.net</a>');
			smart_sub('variable_contactpg_other', '<a href="mailto:philip.cotter@courierexpress.net">Courier Express - U.S.</a><br>770-955-9200 local<br>1-866-229-1122 out of state<br><a href="mailto:philip.cotter@courierexpress.net">philip.cotter@courierexpress.net</a>');
			smart_sub('variable_oppspg_other', '<a href="mailto:eve.gizelbach@courierexpress.net">Courier Express - U.S.</a><br>770-955-9200 local<br>1-866-229-1122 out of state<br><a href="mailto:eve.gizelbach@courierexpress.net">eve.gizelbach@courierexpress.net</a>');

}
		
//SHOW ALTERED TRACKING DATA FOR WWW2
		
		else if(location.hostname == "www2.courierexpress.net") {
			smart_sub('variable_main_phones', '800-900-7783 toll free');
			smart_sub('variable_form_subject', '<input name="_subject" type="hidden" value="AdWords Lead from CE Website">');
			smart_sub('variable_appForm_subject', '<input name="_subject" type="hidden" value="AdWords-Referred Account Applications Form">');
			
			//Georgia
			smart_sub('variable_phone_ga', '800-900-7783 Toll Free');
			smart_sub('variable_email_ga', '<a href="mailto:Contactus-GA@courierexpress.net">Contactus-GA@courierexpress.net</a>');
			smart_sub('variable_email2_ga', '<a href="mailto:Contactus-GA@courierexpress.net">Contactus-GA@courierexpress.net</a>');
			smart_sub('variable_contactpg_ga', '<a href="mailto:Contactus-GA@courierexpress.net">Georgia</a><br>800-900-7783<br><a href="mailto:Contactus-GA@courierexpress.net">Contactus-GA@courierexpress.net</a>');
			smart_sub('variable_oppspg_ga', '<a href="mailto:Opportunities-ga@courierexpress.net">Georgia</a><br>770-955-3030 local<br>1-888-462-2022 out of state<br><a href="mailto:Opportunities-ga@courierexpress.net">Opportunities-ga@courierexpress.net</a>');
			
			//Tennessee & Kentucky
			smart_sub('variable_phone_tnky', '800-860-0663 Toll Free');
			smart_sub('variable_email_tnky', '<a href="mailto:Contactus-TN-KY@courierexpress.net">Contactus-TN-KY@courierexpress.net</a>');
			smart_sub('variable_email2_tnky', '<a href="mailto:Contactus-TN-KY@courierexpress.net">Contactus-TN-KY@courierexpress.net</a>');
			smart_sub('variable_contactpg_tnky', '<a href="mailto:Contactus-TN-KY@courierexpress.net">Tennessee &amp; Kentucky</a><br>800-860-0663<br><a href="mailto:Contactus-TN-KY@courierexpress.net">Contactus-TN-KY@courierexpress.net</a>');
			smart_sub('variable_oppspg_tnky', '<a href="mailto:Opportunities-TN-KY@courierexpress.net">Tennessee &amp; Kentucky</a><br>615-620-3600 local<br>1-866-388-7321 out of state<br><a href="mailto:Opportunities-TN-KY@courierexpress.net">Opportunities-TN-KY@courierexpress.net</a>');
			
			//Alabama, Mississippi & Florida Panhandle
			smart_sub('variable_phone_almsfl', '800-900-0564 Toll Free');
			smart_sub('variable_email_almsfl', '<a href="mailto:Contactus-AL-MS-FP@courierexpress.net">Contactus-AL-MS-FP@courierexpress.net</a>');
			smart_sub('variable_email2_almsfl', '<a href="mailto:Contactus-AL-MS-FP@courierexpress.net">Contactus-AL-MS-FP@courierexpress.net</a>');
			smart_sub('variable_contactpg_almsfl', '<a href="mailto:Contactus-AL-MS-FP@courierexpress.net">Alabama, Mississippi &amp; Florida Panhandle</a><br>800-900-0564<br><a href="mailto:Contactus-AL-MS-FP@courierexpress.net">Contactus-AL-MS-FP@courierexpress.net</a>');
			smart_sub('variable_oppspg_almsfl', '<a href="mailto:Opportunities-AL-MS-FP@courierexpress.net">Alabama, Mississippi &amp; Florida Panhandle</a><br>205-941-1880 local<br>1-888-462-2023 out of state<br><a href="mailto:Opportunities-AL-MS-FP@courierexpress.net">Opportunities-AL-MS-FP@courierexpress.net</a>');
			
			//Florida
			smart_sub('variable_phone_fl', '800-881-8178 Toll Free');
			smart_sub('variable_email_fl', '<a href="mailto:Contactus-FL@courierexpress.net">Contactus-FL@courierexpress.net</a>');
			smart_sub('variable_email2_fl', '<a href="mailto:Contactus-FL@courierexpress.net">Contactus-FL@courierexpress.net</a>');
			smart_sub('variable_contactpg_fl', '<a href="mailto:Contactus-FL@courierexpress.net">Florida</a><br>800-881-8178<br><a href="mailto:Contactus-FL@courierexpress.net">Contactus-FL@courierexpress.net</a>');
			smart_sub('variable_oppspg_fl', '<a href="mailto:Opportunities-FL@courierexpress.net">Florida</a><br>407-888-9505 local<br>1-888-318-9508 out of state<br><a href="mailto:Opportunities-FL@courierexpress.net">Opportunities-FL@courierexpress.net</a>');
			
			//Western North Carolina & South Carolina
			smart_sub('variable_phone_ncsc', '800-900-0693 Toll Free');
			smart_sub('variable_email_ncsc', '<a href="mailto:Contactus-carolinas@courierexpress.net">Contactus-carolinas@courierexpress.net</a>');
			smart_sub('variable_email2_ncsc', '<a href="mailto:Contactus-carolinas@courierexpress.net">Contactus-carolinas@courierexpress.net</a>');
			smart_sub('variable_contactpg_ncsc', '<a href="mailto:Contactus-carolinas@courierexpress.net">Western North Carolina &amp; South Carolina</a><br>800-900-0693<br><a href="mailto:Contactus-carolinas@courierexpress.net">Contactus-carolinas@courierexpress.net</a>');	
			smart_sub('variable_oppspg_ncsc', '<a href="mailto:Opportunities-carolinas@courierexpress.net">Western North Carolina &amp; South Carolina</a><br>704-521-8222 local<br>1-800-453-7844 out of state<br><a href="mailto:Opportunities-carolinas@courierexpress.net">Opportunities-carolinas@courierexpress.net</a>');
			
			//Other
			smart_sub('variable_phone_other', '800-900-0791 Toll Free');
			smart_sub('variable_email_other', '<a href="mailto:Contactus-US@courierexpress.net">Contactus-US@courierexpress.net</a>');
			smart_sub('variable_email2_other', '<a href="mailto:Contactus-US@courierexpress.net">Contactus-US@courierexpress.net</a>');
			smart_sub('variable_contactpg_other', '<a href="mailto:Contactus-US@courierexpress.net">Courier Express - U.S.</a><br>800-900-0791<br><a href="mailto:Contactus-US@courierexpress.net">Contactus-US@courierexpress.net</a>');
			smart_sub('variable_oppspg_other', '<a href="mailto:Opportunities-US@courierexpress.net">Courier Express - U.S.</a><br>770-955-9200 local<br>1-866-229-1122 out of state<br><a href="mailto:Opportunities-US@courierexpress.net">Opportunities-US@courierexpress.net</a>');
			
			
//SHOW STANDARD INFO FOR ALL OTHER CASES

		}
		else {			
			smart_sub('variable_main_phones', '770-955-3030 local<br>888-462-2022 toll free');
			smart_sub('variable_form_subject', '<input name="_subject" type="hidden" value="Contact Us Form from CE Website">');
			smart_sub('variable_appForm_subject', '<input name="_subject" type="hidden" value="Account Applications Form">');
			
			//Georgia
			smart_sub('variable_phone_ga', '770-955-3030 Local<br>888-462-2022 Toll Free');
			smart_sub('variable_email_ga', '<a href="mailto:david.redavid@courierexpress.net">david.redavid@courierexpress.net</a>');
			smart_sub('variable_email2_ga', '<a href="mailto:david.redavid@courierexpress.net">david.redavid@courierexpress.net</a>');
			smart_sub('variable_contactpg_ga', '<a href="mailto:david.redavid@courierexpress.net">Georgia</a><br>770-955-3030 local<br>1-888-462-2022 out of state<br><a href="mailto:david.redavid@courierexpress.net">david.redavid@courierexpress.net</a>');
			smart_sub('variable_oppspg_ga', '<a href="mailto:brent.stuart@courierexpress.net">Georgia</a><br>770-955-3030 local<br>1-888-462-2022 out of state<br><a href="mailto:brent.stuart@courierexpress.net">brent.stuart@courierexpress.net</a>');
			
			
			//Tennessee & Kentucky
			smart_sub('variable_phone_tnky', '615-620-3600 Local<br>866-388-7321 Toll Free');
			smart_sub('variable_email_tnky', '<a href="mailto:jeff.mcalpin@courierexpress.net">jeff.mcalpin@courierexpress.net</a>');
			smart_sub('variable_email2_tnky', '<a href="mailto:jeff.mcalpin@courierexpress.net">jeff.mcalpin@courierexpress.net</a>');
			smart_sub('variable_contactpg_tnky', '<a href="mailto:jeff.mcalpin@courierexpress.net">Tennessee &amp; Kentucky</a><br>615-620-3600 local<br>1-866-388-7321 out of state<br><a href="mailto:jeff.mcalpin@courierexpress.net">jeff.mcalpin@courierexpress.net</a>');
			smart_sub('variable_oppspg_tnky', '<a href="mailto:jason.schultz@courierexpress.net">Tennessee &amp; Kentucky</a><br>615-620-3600 local<br>1-866-388-7321 out of state<br><a href="mailto:jason.schultz@courierexpress.net">jason.schultz@courierexpress.net</a>');
			
			//Alabama, Mississippi & Florida Panhandle
			smart_sub('variable_phone_almsfl', '205-941-1880 Local<br>888-462-2023 Toll Free');
			smart_sub('variable_email_almsfl', '<a href="mailto:brad.sauls@courierexpress.net">brad.sauls@courierexpress.net</a>');
			smart_sub('variable_email2_almsfl', '<a href="mailto:brad.sauls@courierexpress.net">brad.sauls@courierexpress.net</a>');
			smart_sub('variable_contactpg_almsfl', '<a href="mailto:brad.sauls@courierexpress.net">Alabama, Mississippi &amp; Florida Panhandle</a><br>205-941-1880 local<br>1-888-462-2023 out of state<br><a href="mailto:brad.sauls@courierexpress.net">brad.sauls@courierexpress.net</a>');
			smart_sub('variable_oppspg_almsfl', '<a href="mailto:sandra.hendricks@courierexpress.net">Alabama, Mississippi &amp; Florida Panhandle</a><br>205-941-1880 local<br>1-888-462-2023 out of state<br><a href="mailto:sandra.hendricks@courierexpress.net">sandra.hendricks@courierexpress.net</a>');
			
			//Florida
			smart_sub('variable_phone_fl', '407-888-9505 Local<br>888-318-9508 Toll Free');
			smart_sub('variable_email_fl', '<a href="mailto:john.higgins@courierexpress.net">john.higgins@courierexpress.net</a>');
			smart_sub('variable_email2_fl', '<a href="mailto:john.higgins@courierexpress.net">john.higgins@courierexpress.net</a>');
			smart_sub('variable_contactpg_fl', '<a href="mailto:john.higgins@courierexpress.net">Florida</a><br>407-888-9505 local<br>1-888-318-9508 out of state<br><a href="mailto:john.higgins@courierexpress.net">john.higgins@courierexpress.net</a>');
			smart_sub('variable_oppspg_fl', '<a href="mailto:carlos.quinones@courierexpress.net">Florida</a><br>407-888-9505 local<br>1-888-318-9508 out of state<br><a href="mailto:carlos.quinones@courierexpress.net">carlos.quinones@courierexpress.net</a>');
			
			//Western North Carolina & South Carolina
			smart_sub('variable_phone_ncsc', '704-521-8222 Local<br>800-453-7844 Toll Free');
			smart_sub('variable_email_ncsc', '<a href="mailto:greg.cross@courierexpress.net">greg.cross@courierexpress.net</a>');
			smart_sub('variable_email2_ncsc', '<a href="mailto:greg.cross@courierexpress.net">greg.cross@courierexpress.net</a>');
			smart_sub('variable_contactpg_ncsc', '<a href="mailto:greg.cross@courierexpress.net">Western North Carolina &amp; South Carolina</a><br>704-521-8222 local<br>1-800-453-7844 out of state<br><a href="mailto:greg.cross@courierexpress.net">greg.cross@courierexpress.net</a>');
			smart_sub('variable_oppspg_ncsc', '<a href="mailto:greg.cross@courierexpress.net">Western North Carolina &amp; South Carolina</a><br>704-521-8222 local<br>1-800-453-7844 out of state<br><a href="mailto:greg.cross@courierexpress.net">greg.cross@courierexpress.net</a>');
			
			//Other
			smart_sub('variable_phone_other', '770-955-9200 Local<br>866-229-1122 Toll Free');
			smart_sub('variable_email_other', '<a href="mailto:philip.cotter@courierexpress.nett">philip.cotter@courierexpress.net</a>');
			smart_sub('variable_email2_other', '<a href="mailto:philip.cotter@courierexpress.nett">philip.cotter@courierexpress.net</a>');
			smart_sub('variable_contactpg_other', '<a href="mailto:philip.cotter@courierexpress.net">Courier Express - U.S.</a><br>770-955-9200 local<br>1-866-229-1122 out of state<br><a href="mailto:philip.cotter@courierexpress.net">philip.cotter@courierexpress.net</a>');
			smart_sub('variable_oppspg_other', '<a href="mailto:eve.gizelbach@courierexpress.net">Courier Express - U.S.</a><br>770-955-9200 local<br>1-866-229-1122 out of state<br><a href="mailto:eve.gizelbach@courierexpress.net">eve.gizelbach@courierexpress.net</a>');
		}
	}

-->