/*
	Xfire eGame - WebGame Detection Library
	
	This library detects web browser-based games, for tracking hours and presence detection on Xfire.
	
	To use:
	
		* Include the following tag somewhere in your <body>, whereever you want the icon to appear:
			<div id="xfire_egame"></div>
		
		* Include the following code at the end of your document, just before the </body> tag
			<script type="text/javascript" src="http://www.xfire.com/xfire_egame/egame.js"></script>
			<script type="text/javascript">
				xfire_egame.Start();
			</script>
	
	NOTE: if you do not include the <div> tag, it will be added to your document automatically, which will probably look weird.
		  This will also happen if it takes more than 10 seconds from when this script is loaded to when that element appears in the DOM.

	Additional documentation, including setup, advanced options, and troubleshooting are available at:
		http://www.xfire.com/cms/egame_webmaster

*/

// Bootstrap the actual egame javascript, using document.write here to avoid caching issues
var xfire_clock = new Date();
var xfire_time = xfire_clock.getTime();
xfire_time = Math.floor( xfire_time / 180000 ) * 180000;	// Round to nearest 3 minutes
var xfire_path = 'http://www.xfire.com/xfire_egame/egame_engine.xf?rand=' + xfire_time;
document.write( '<scri' + 'pt type="text/javascript" src="' + xfire_path + '"></scr' + 'ipt>' );
