<!--

/*****************************

Copyright 2001 Express Scripts, Inc.
Contact: 

Brad Schanks
Web Designer, Technical Lead

Program Development
Express Scripts, Inc.
Direct: 314.702.7879
Toll Free: 1.800.332.5455 (67879)
bschanks@express-scripts.com
www.express-scripts.com

*** Variable descriptions
SS represents SilverStream
V represents Vignette

*** Purpose
This script looks at the URL to determine what environment the page is in. 
It then sets a list of variables to that URL prefix or host name. These
variables are called upon in pages that require dynamic links to
Vignette and SilverStream pages. 

******************************/

//Development Environment
if ((location.hostname == 'vcc002.express-scripts.com') || (location.hostname == 'vcc002')) 
	{ 			
		var showSS = '<a href="http://devmember.express-scripts.com/membersobjdev'; 
                var showSSimage = '<img src="http://devmember.express-scripts.com/membersobjdev'; 
		var showV = '<a href="https://devmember.express-scripts.com'; 

		//Vignette culdesac frame 
		var showVculd = 'https://devmember.express-scripts.com'; 

		//Member Portal - Redirect
		var showMemberRedirect = '<a href="https://devmember.express-scripts.com/esi_member/user_login'; 
		
		//Member Portal - Image Map Redirect
		var showMemberRedirectMap = '<map name="Members" id="Members"><area shape="poly" coords="19,42,165,42,171,46,175,53,175,59,172,64,168,69,38,69" href="https://devmember.express-scripts.com/esi_member/user_login'; 

		//Pharmacist Portal - Redirect
		var showPharmacistRedirect = '<a href="https://devpharmacy.express-scripts.com/esi_pharmacy/user_login';

		//Pharmacist Portal - Image Map Redirect
		var showPharmacistRedirectMap = '<map name="Pharmacists" id="Pharmacists"><area shape="poly" coords="59,8,216,8,225,13,228,22,226,32,216,35,61,35" href="https://devpharmacy.express-scripts.com/esi_pharmacy/user_login';
		
		//Physician Portal - Redirect
		var showPhysicianRedirect = '<a href="https://devphysician.express-scripts.com'; 
		
		//Physician Portal - Image Map Redirect
		var showPhysicianRedirectMap = '<map name="Physicians" id="Physicians"><area shape="poly" coords="59,9,201,9,208,14,211,23,209,30,203,36,51,36" href="https://devphysician.express-scripts.com'; 
		
		//Mail Service Prescriptions - New
		var showMailServNew = '<a href="https://devmember.express-scripts.com/esi_member/user_login?page=newfill'; 

		//Mail Service Prescriptions - Refills
		var showMailServRefills = '<a href="https://devmember.express-scripts.com/esi_member/user_login?page=refill';

		//Mail Service Prescriptions - Staus
		var showMailServStatus = '<a href="https://devmember.express-scripts.com/esi_member/user_login?page=status';
	}

//QA Environment
else if ((location.hostname == 'vccqa.express-scripts.com') || (location.hostname == 'vccqa'))
	{       
		var showSS = '<a href="http://testmember.express-scripts.com/membersobjqa';
		var showSSimage = '<img src="http://testmember.express-scripts.com/membersobjqa';
		var showV = '<a href="https://testmember.express-scripts.com'; 

		//Vignette culdesac frame
		var showVculd = 'https://testmember.express-scripts.com'; 

		//Member Portal - Redirect
		var showMemberRedirect = '<a href="https://testmember.express-scripts.com/esi_member/user_login'; 
		
		//Member Portal - Image Map Redirect
		var showMemberRedirectMap = '<map name="Members" id="Members"><area shape="poly" coords="19,42,165,42,171,46,175,53,175,59,172,64,168,69,38,69" href="https://testmember.express-scripts.com/esi_member/user_login'; 
		
		//Pharmacist Portal - Redirect
		var showPharmacistRedirect = '<a href="https://testpharmacy.express-scripts.com/esi_pharmacy/user_login';

		//Pharmacist Portal - Image Map Redirect
		var showPharmacistRedirectMap = '<map name="Pharmacists" id="Pharmacists"><area shape="poly" coords="59,8,216,8,225,13,228,22,226,32,216,35,61,35" href="https://testpharmacy.express-scripts.com/esi_pharmacy/user_login';
			
		//Physician Portal - Redirect
		var showPhysicianRedirect = '<a href="https://testphysician.express-scripts.com'; 
		
		//Physician Portal - Image Map Redirect
		var showPhysicianRedirectMap = '<map name="Physicians" id="Physicians"><area shape="poly" coords="59,9,201,9,208,14,211,23,209,30,203,36,51,36" href="https://testphysician.express-scripts.com'; 
			
		//Mail Service Prescriptions - New
		var showMailServNew = '<a href="https://testmember.express-scripts.com/esi_member/user_login?page=newfill'; 

		//Mail Service Prescriptions - Refills
		var showMailServRefills = '<a href="https://testmember.express-scripts.com/esi_member/user_login?page=refill';

		//Mail Service Prescriptions - Staus
		var showMailServStatus = '<a href="https://testmember.express-scripts.com/esi_member/user_login?page=status';
	}

//Intergration DEV 
else if ((location.hostname == 'dmwww.express-scripts.com') || (location.hostname == 'dmwww'))
	{ 
		var showSS = '<a href="http://dmmember.express-scripts.com/membersobjdm';
		var showSSimage = '<img src="http://dmmember.express-scripts.com/membersobjdm';
		var showV = '<a href="https://dmmember.express-scripts.com'; 
		
		//Vignette culdesac frame
		var showVculd = 'https://dmmember.express-scripts.com'; 
		
		//Member Portal - Redirect
		var showMemberRedirect = '<a href="https://dmmember.express-scripts.com/esi_member/user_login'; 
		
		//Member Portal - Image Map Redirect
		var showMemberRedirectMap = '<map name="Members" id="Members"><area shape="poly" coords="19,42,165,42,171,46,175,53,175,59,172,64,168,69,38,69" href="https://dmmember.express-scripts.com/esi_member/user_login'; 

		//Pharmacist Portal - Redirect
		 var showPharmacistRedirect = '<a href="https://dmpharmacy.express-scripts.com/esi_pharmacy/user_login';

		//Pharmacist Portal - Image Map Redirect
		var showPharmacistRedirectMap = '<map name="Pharmacists" id="Pharmacists"><area shape="poly" coords="59,8,216,8,225,13,228,22,226,32,216,35,61,35" href="https://dmpharmacy.express-scripts.com/esi_pharmacy/user_login';
			
		//Physician Portal - Redirect
		var showPhysicianRedirect = '<a href="https://physician.express-scripts.com'; 
		
		//Physician Portal - Image Map Redirect
		var showPhysicianRedirectMap = '<map name="Physicians" id="Physicians"><area shape="poly" coords="59,9,201,9,208,14,211,23,209,30,203,36,51,36" href="https://physician.express-scripts.com'; 
			
		//Mail Service Prescriptions - New
		var showMailServNew = '<a href="https://dmmember.express-scripts.com/esi_member/user_login?page=newfill'; 

		//Mail Service Prescriptions - Refills
		var showMailServRefills = '<a href="https://dmmember.express-scripts.com/esi_member/user_login?page=refill';

		//Mail Service Prescriptions - Staus
		var showMailServStatus = '<a href="https://dmmember.express-scripts.com/esi_member/user_login?page=status';
	}

//QA Environment                                                             
else if ((location.hostname == 'qmwww.express-scripts.com') || (location.hostname == 'qmwww'))                                                                
	{ 
 		var showSS = '<a href="http://qmmember.express-scripts.com/membersobjqm';                                                                         
		var showSSimage = '<img src="http://qmmember.express-scripts.com/membersobjqm';
		var showV = '<a href="https://qmmember.express-scripts.com';       

		//Vignette culdesac frame                                           
		var showVculd = 'https://qmmember.express-scripts.com';             

		//Member Portal - Redirect                                          
 		var showMemberRedirect = '<a href="https://qmmember.express-scripts.com/esi_member/user_login';                                                     

		//Member Portal - Image Map Redirect
		var showMemberRedirectMap = '<map name="Members" id="Members"><area shape="poly" coords="19,42,165,42,171,46,175,53,175,59,172,64,168,69,38,69" href="https://qmmember.express-scripts.com/esi_member/user_login'; 
		
		//Pharmacist Portal - Redirect
		var showPharmacistRedirect = '<a href="https://qmpharmacy.express-scripts.com/esi_pharmacy/user_login';                                             

		//Pharmacist Portal - Image Map Redirect
		var showPharmacistRedirectMap = '<map name="Pharmacists" id="Pharmacists"><area shape="poly" coords="59,8,216,8,225,13,228,22,226,32,216,35,61,35" href="https://qmpharmacy.express-scripts.com/esi_pharmacy/user_login';
  		
		//Physician Portal - Redirect
		var showPhysicianRedirect = '<a href="https://testphysician.express-scripts.com'; 
		
		//Physician Portal - Image Map Redirect
		var showPhysicianRedirectMap = '<map name="Physicians" id="Physicians"><area shape="poly" coords="59,9,201,9,208,14,211,23,209,30,203,36,51,36" href="https://testphysician.express-scripts.com';  
		
		//Mail Service Prescriptions - New     
		var showMailServNew = '<a href="https://qmmember.express-scripts.com/esi_member/user_login?page=newfill';                                           

		//Mail Service Prescriptions - Refills                              
		var showMailServRefills = '<a href="https://qmmember.express-scripts.com/esi_member/user_login?page=refill';                                        

		//Mail Service Prescriptions - Staus                                
		var showMailServStatus = '<a href="https://qmmember.express-scripts.com/esi_member/user_login?page=status';
	}                                         

                                                                           

//Production Environment
else if (location.hostname == 'www.express-scripts.com')
	{ 
		var showSS = '<a href="https://member.express-scripts.com/members';
 		var showSSimage = '<img src="https://member.express-scripts.com/members';
		var showV = '<a href="https://member.express-scripts.com'; 

		//Vignette culdesac frame
		var showVculd = 'https://member.express-scripts.com'; 

		//Member Portal - Redirect
		var showMemberRedirect = '<a href="http://www.express-scripts.com/mail_serv_login/login.htm';
        
		//Member Portal - Image Map Redirect
		var showMemberRedirectMap = '<map name="Members" id="Members"><area shape="poly" coords="19,42,165,42,171,46,175,53,175,59,172,64,168,69,38,69" href="http://www.express-scripts.com/mail_serv_login/login.htm'; 
		
		//Pharmacist Portal - Redirect
		var showPharmacistRedirect = '<a href="https://pharmacy.express-scripts.com';

		//Pharmacist Portal - Image Map Redirect
		var showPharmacistRedirectMap = '<map name="Pharmacists" id="Pharmacists"><area shape="poly" coords="59,8,216,8,225,13,228,22,226,32,216,35,61,35" href="https://pharmacy.express-scripts.com';
  		
		//Physician Portal - Redirect
		var showPhysicianRedirect = '<a href="https://physician.express-scripts.com'; 
		
		//Physician Portal - Image Map Redirect
		var showPhysicianRedirectMap = '<map name="Physicians" id="Physicians"><area shape="poly" coords="59,9,201,9,208,14,211,23,209,30,203,36,51,36" href="https://physician.express-scripts.com'; 
		
		//Mail Service Prescriptions - New
		var showMailServNew = '<a href="http://www.express-scripts.com/mail_serv_login/mail_serv_log_new.htm';

		//Mail Service Prescriptions - Refills
		var showMailServRefills = '<a href="http://www.express-scripts.com/mail_serv_login/mail_serv_log_refills.htm';

		//Mail Service Prescriptions - Status
		var showMailServStatus = '<a href="http://www.express-scripts.com/mail_serv_login/mail_serv_log_status.htm';
	}



//Production Staging Environment
else if ((location.hostname == 'stagewww.express-scripts.com') || (location.hostname == 'stagewww'))
	{ 
		var showSS = '<a href="https://stagemember.express-scripts.com/members8090';
		var showSSimage = '<img src="https://stagemember.express-scripts.com/members8090';
		var showV = '<a href="https://stagemember.express-scripts.com'; 

		//Vignette culdesac frame
		var showVculd = 'https://stagemember.express-scripts.com'; 

		//Member Portal - Redirect
 		var showMemberRedirect = '<a href="http://stagewww.express-scripts.com/mail_serv_login/login.htm';

		//Member Portal - Image Map Redirect
		var showMemberRedirectMap = '<map name="Members" id="Members"><area shape="poly" coords="19,42,165,42,171,46,175,53,175,59,172,64,168,69,38,69" href="http://stagewww.express-scripts.com/mail_serv_login/login.htm'; 
		
		//Pharmacist Portal - Redirect
 		var showPharmacistRedirect = '<a href="https://pharmacy.express-scripts.com';

		//Pharmacist Portal - Image Map Redirect
		var showPharmacistRedirectMap = '<map name="Pharmacists" id="Pharmacists"><area shape="poly" coords="59,8,216,8,225,13,228,22,226,32,216,35,61,35" href="https://pharmacy.express-scripts.com';
  		
		//Physician Portal - Redirect
		var showPhysicianRedirect = '<a href="https://physician.express-scripts.com'; 
		
		//Physician Portal - Image Map Redirect
		var showPhysicianRedirectMap = '<map name="Physicians" id="Physicians"><area shape="poly" coords="59,9,201,9,208,14,211,23,209,30,203,36,51,36" href="https://physician.express-scripts.com'; 
		
		//Mail Service Prescriptions - New
		var showMailServNew = '<a href="http://stagewww.express-scripts.com/mail_serv_login/mail_serv_log_new.htm';

		//Mail Service Prescriptions - Refills
		var showMailServRefills = '<a href="http://stagewww.express-scripts.com/mail_serv_login/mail_serv_log_refills.htm';

		//Mail Service Prescriptions - Status
		var showMailServStatus = '<a href="http://stagewww.express-scripts.com/mail_serv_login/mail_serv_log_status.htm';
	}


//Catch ALL
else  
	{ 
		var showSS = '<a href="https://member.express-scripts.com/members';
		var showSSimage = '<img src="https://member.express-scripts.com/members';
		var showV = '<a href="https://member.express-scripts.com'; 

		//Vignette culdesac frame
		var showVculd = 'https://member.express-scripts.com'; 

		//Member Portal - Redirect
		var showMemberRedirect = '<a href="http://www.express-scripts.com/mail_serv_login/login.htm';

		//Member Portal - Image Map Redirect
		var showMemberRedirectMap = '<map name="Members" id="Members"><area shape="poly" coords="19,42,165,42,171,46,175,53,175,59,172,64,168,69,38,69" href="http://www.express-scripts.com/mail_serv_login/login.htm'; 
		
		//Pharmacist Portal - Redirect
		var showPharmacistRedirect = '<a href="https://pharmacy.express-scripts.com';
		
		//Pharmacist Portal - Image Map Redirect
		var showPharmacistRedirectMap = '<map name="Pharmacists" id="Pharmacists"><area shape="poly" coords="59,8,216,8,225,13,228,22,226,32,216,35,61,35" href="https://pharmacy.express-scripts.com';
		
		//Physician Portal - Redirect
		var showPhysicianRedirect = '<a href="https://physician.express-scripts.com'; 
		
		//Physician Portal - Image Map Redirect
		var showPhysicianRedirectMap = '<map name="Physicians" id="Physicians"><area shape="poly" coords="59,9,201,9,208,14,211,23,209,30,203,36,51,36" href="https://physician.express-scripts.com';  
		
		//Mail Service Prescriptions - New
		var showMailServNew = '<a href="http://www.express-scripts.com/mail_serv_login/mail_serv_log_new.htm';

		//Mail Service Prescriptions - Refills
		var showMailServRefills = '<a href="http://www.express-scripts.com/mail_serv_login/mail_serv_log_refills.htm';

		//Mail Service Prescriptions - Status
		var showMailServStatus = '<a href="http://www.express-scripts.com/mail_serv_login/mail_serv_log_status.htm';
	}

//-->
