var staticFix								= {
	sGetPollURL : '/ajax/index.cfm?fuseaction=NWO.AJAX.LoadPoll&bHidePoll=false',
	sPollDivID : 'pollHolder',

	init : function () {
		if(!document.getElementById||!document.createTextNode){return;}
		
		staticFix.loadPoll();
	},
	
	loadPoll : function(nPollID, nResponse) {
		nPollID				= (typeof nPollID == 'undefined') ? '' : nPollID;
		nResponse			= (typeof nResponse == 'undefined') ? '' : nResponse;
		
		var oPollDiv		= document.getElementById(staticFix.sPollDivID);
		if (!oPollDiv) {return;}
		
		var nCacheBuster	= Math.round(Math.random() * 10000000000);
		var ajaxRequest;
	
		try {
			// Opera 8.0+, Firefox, Safari
			ajaxRequest					= new XMLHttpRequest();
		}
		catch (e) {
			// Internet Explorer Browsers
			try {
				ajaxRequest				= new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch (e) {
				try{
					ajaxRequest			= new ActiveXObject("Microsoft.XMLHTTP");
				}
				catch (e){
					// Something went wrong
					return false;
				}
			}
		}

		// Create a function that will receive data sent from the server
		ajaxRequest.onreadystatechange = function(){
			if (ajaxRequest.readyState == 4) {
				// did this work?
				if (ajaxRequest.status == 200) {
					var sResponse 		= ajaxRequest.responseText;
					oPollDiv.innerHTML	= sResponse;
				}
			}
		}
		ajaxRequest.open('GET', staticFix.sGetPollURL + '&nPollID=' + nPollID + '&nResponse=' + nResponse + '&cache=' + nCacheBuster , true);
		ajaxRequest.send(null);
	}
}
WindowListener.add("load","staticFix.init()");
