<?php
header('Content-Type: application/x-javascript');
$dir = dirname($_SERVER['SCRIPT_NAME']);
$protocol = empty($_SERVER['HTTPS']) ? 'http' : 'https';
$host = $_SERVER['HTTP_HOST'];

$path = sprintf('%s://%s%s', $protocol, $host, $dir);

?>
// Load Google Analytics library if not loaded
if (typeof(_gat) === 'undefined') {
	document.write(unescape("%3Cscript src='<?= $path ?>/ga.js' type='text/javascript'%3E%3C/script%3E"));
}
document.write(unescape("%3Cscript src='<?= $path ?>/jquery.js' type='text/javascript'%3E%3C/script%3E"));
document.write(unescape("%3Cscript src='<?= $path ?>/t.js?<?= filemtime(dirname(__FILE__) . '/t.js')?>' type='text/javascript'%3E%3C/script%3E"));
