//Begin	
	var today = new Date();
	var er_url = "catch_bug.php?js="+today.getTime(); // The server-side script

	function handleHttpResponse1()
	{
		if(http.readyState == 4)
		{
			results = http.responseText;
		}
	}
		function handleErrors(msg, url, line)
	{
		if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Firefox/x.x or Firefox x.x (ignoring remaining digits);
			var ffversion=new Number(RegExp.$1) // capture x.x portion and store as a number
			if (ffversion>=1&&ffversion<=4)
 			{
 				if(escape(msg)=='Error%20loading%20script')
 				{
 					if(line=='1')
 					{
 						return true;
 					}
 				}
 			}
		}
		//alert(msg); 
	    var errorString  = "&message="+escape(msg);
	        errorString += "&url="+escape(location.href);
	        errorString += "&browser=" + escape(navigator.userAgent);
	    if(line!=0)
	    {
	    	errorString += "&line="+escape(line);
	    }    
	    objUrl = er_url + errorString;
		http.open("GET", objUrl, true);
		http.onreadystatechange = handleHttpResponse1;
		http.send(null);
		return true;
		
	}
	
	if(location.href.indexOf('fireflyserver')==-1)
		window.onerror = handleErrors; // or null to suppress error message
	


	function getHTTPObject()
	{
		var xmlhttp;
		
		/*@cc_on
		@if (@_jscript_version >= 5)
		try {
		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
		try {
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		} catch (E) {
		xmlhttp = false;
		}
		}
		@else
		xmlhttp = false;
		@end @*/
		
		if(!xmlhttp && typeof XMLHttpRequest != 'undefined')
		{
			try
			{
				xmlhttp = new XMLHttpRequest();
			}
			catch(e)
			{
				xmlhttp = false;
			}
		}
		return xmlhttp;
	}
	
	var http = getHTTPObject(); // We create the HTTP Object
	
	function GenerateFlash(oSrc, oWidth, oHeight, oName, oVars)
	{
		// Object tag
		oHTML = '<object';
		oHTML += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"';
		oHTML += ' classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"';
		oHTML += ' id="' + oName + '" align="middle" width="' + oWidth + '" height="' + oHeight + '"';
		oHTML += '>';
		
		// Parameters
		oHTML += '<param name="allowScriptAccess" value="always" /> ';
		oHTML += '<param name="wmode" value="transparent" /> ';
		oHTML += '<param name="movie" value="' + oSrc + '" /> ';
		oHTML += '<param name="quality" value="high" /> ';
		oHTML += '<param name="bgcolor" value="high" /> ';
		oHTML += '<param name="FlashVars" value="' + oVars + '" />';
		
		// Embed tag
		oHTML += '<embed name="' + oName + '" align="middle"';
		oHTML += ' width="' + oWidth + '" height="' + oHeight + '"';
		oHTML += ' allowScriptAccess="always" wmode="transparent"';
		oHTML += ' src="' + oSrc + '" quality="high" bgcolor="high" FlashVars="' + oVars + '"';
		oHTML += ' pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" swLiveConnect="true"></embed>';
		
		oHTML += '</object>';
		
		document.write(oHTML);
	}
	
//  End -->