
/* Merged Plone Javascript file
 * This file is dynamically assembled from separate parts.
 * Some of these parts have 3rd party licenses or copyright information attached
 * Such information is valid for that section,
 * not for the entire composite file
 * originating files are separated by - filename.js -
 */

/* - leadTracker.js - */
// http://internet-dev-pub.factset.com/portal_javascripts/leadTracker.js?original=1
if(document.cookie.indexOf('fds_wl_uid')!=-1){xmlhttp=createXMLHTTP();xmlhttp.open("GET",leadtrackerURL,true);xmlhttp.send(null)}


/* - userLocation_vars.js - */
// http://internet-dev-pub.factset.com/portal_javascripts/userLocation_vars.js?original=1
var userLocation=new UserLocation("Unknown","Unknown");
function UserLocation(city,country){this.city=city;this.country=country}
function locationstatechange(){if(xmlhttp.readyState==4&&xmlhttp.status==200){var location=xmlhttp.responseXML.documentElement;userLocation.city=location.getElementsByTagName("city")[0].firstChild.data;userLocation.country=location.getElementsByTagName("country")[0].firstChild.data;document.cookie="user_country="+userLocation.country+";path=/"
document.cookie="user_city="+userLocation.city+";path=/"
location_callback()}}
function readUserCookie(name){var nameEQ=name+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ') c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0) return c.substring(nameEQ.length,c.length)}
return null}
function loadUserLocation(){if(document.cookie.indexOf('user_country')==-1||document.cookie.indexOf('user_city')==-1){xmlhttp=createXMLHTTP();xmlhttp.onreadystatechange=locationstatechange
xmlhttp.open("GET",'/userLocation.xml');xmlhttp.send(null)} else{userLocation.city=readUserCookie('user_city');userLocation.country=readUserCookie('user_country');location_callback()}}


