<!--
// added domain to the end of the cookie string so it can cross from
// www.thomascooksport.com to secure.thomascooksport.com
function storeEDID() {
    var thirtyDays = (60*60*1000*24)*30
    var vals = document.location.search
    start = vals.indexOf("EDID=")
    if (start != -1) {
       var end = vals.indexOf("&", start)
       if (end == -1){ end = vals.length }
       var date = new Date();date.setTime(date.getTime()+ thirtyDays)
       document.cookie= vals.substring(start,end) + "; expires=" + date.toGMTString() + "; path=/; domain=.thomascooksport.com"
    }
}
function getEDID(){
   var n = "EDID="
   var cookies = document.cookie
   var start = cookies.indexOf(n)
   if (start == -1){ return null; }
   start += n.length 
   var end = cookies.indexOf(";", start)
   if (end == -1){ end = cookies.length }
   return cookies.substring(start, end)
   }

function trackEDID(i){f=getEDID();if (f != null) {document.write('<img src="https://pd.ed10.net/pd/0G/J0YP52/WVV6?EDID='+f+'&'+i+'" height=1 width=1>');}}
//-->
