function OpenCentred (width, height) {

  var x = Math.round((screen.availWidth - width) / 2);

  var y = Math.round((screen.availHeight - height) / 2);

  featureString = 'left=' + x + ',top=' + y + ',width=' + width + ',height=' + height;

  window.open("video/video_menu.htm", "Video", featureString+",scrollbars=no,toolbars=no");

}

function OpenCentredLSLVideo (width, height) {

  var x = Math.round((screen.availWidth - width) / 2);

  var y = Math.round((screen.availHeight - height) / 2);

  featureString = 'left=' + x + ',top=' + y + ',width=' + width + ',height=' + height;

  window.open("lsl-video.htm", "Video", featureString+",scrollbars=no,toolbars=no");

}




// To track PDf's which haven't had the tracking code applied manually

$('a').each(function() {

    if($(this).attr('href').indexOf('.pdf') > -1 && !$(this).attr('onclick')) {

       // add the analytics

       onclick="javascript: javascript:urchinTracker(this.href);"

    }

});