	if (document.cookie.indexOf('bw=') == -1) {
		var xmlHttp = false;
		if( window.ActiveXObject ) {
			try {
				xmlHttp = new ActiveXObject( "Microsoft.XMLHTTP" );   
			} catch( e ) {
				try {
					xmlHttp = new ActiveXObject( "Msxml2.XMLHTTP" );
				} catch( e ) {                       
					xmlHttp = false;
				}
			}
		} else if( window.XMLHttpRequest ) {
			xmlHttp = new XMLHttpRequest();
		}
	    var StartTime = new Date();
		if (xmlHttp) {
			xmlHttp.open('GET', '/templates/default/scripts/bw.php', true);
			xmlHttp.onreadystatechange = function() {
				if (xmlHttp.readyState == 4) {
					var StopTime = new Date();
					var interval = (StopTime.getTime() - StartTime.getTime()) / 1000;
					var bandwidth = Math.round(128 / interval);
					document.cookie = 'bw='+bandwidth+'; expires='+(new Date(StopTime.getTime() + 86400000)).toGMTString()+';';
				}
			}
			xmlHttp.send();				
		}
	}
