// JavaScript Document

/*
Sticking the tracking code in a single external .js file is a little
tricky because the tracking code comes in two parts, the part that
loads from Google and the part you run on your site (where you set
your profile id UA-XXXXX-1, etc). The trick is to ensure that the
first part (from Google) is fully loaded by the time you run the
second part. To do that from within a single .js file you will need to
use something like an onLoad event to trigger Your half of the
tracking code. */

/* returned to this version on 2 July 2010 because page tracking not working in "new" version */

/*  added 
				pageTracker._setDomainName(".europa.eu");
				pageTracker._setAllowHash(false); 
				on 21 February 2011 in order to  track CSFRI blog  
				
				removed again as seems not to be necessary - blog being picked up anyway - and gives a JS error in IE6 at least
				
				*/

<!--- BEGIN Google analytics tracking code --->

var _gatc = document.createElement('script');
_gatc.type = "text/javascript";
_gatc.src =((location.protocol=="https:")?"https://ssl.":"http://www.")
+"google-analytics.com/ga.js";
document.getElementsByTagName('head')[0].appendChild(_gatc);

var pageTracker;
function startTracking() {
        if (typeof(_gat) == "object") {
                pageTracker = _gat._getTracker("UA-6361416-1");
                pageTracker._trackPageview();
        }

}

if (window.addEventListener) {
        window.addEventListener("load",startTracking,false);
} else if (window.attachEvent) {

        window.attachEvent("onload",startTracking);

} 

<!--- END Google analytics tracking code --->

