
var viewAllButton = new Image();
	viewAllButton.src = "http://i.a.cnn.net/cnn/ELECTION/2004/pages/results/images/happening.now.gif";
var viewAllButtonOver = new Image();
	viewAllButtonOver.src = "http://i.a.cnn.net/cnn/ELECTION/2004/pages/results/images/happening.now.over.gif";

var topCloseButton = new Image();
	topCloseButton.src = "http://i.a.cnn.net/cnn/ELECTION/2004/pages/results/images/happen.now.close.gif";
var topCloseButtonOver = new Image();
	topCloseButtonOver.src = "http://i.a.cnn.net/cnn/ELECTION/2004/pages/results/images/happen.now.close.over.gif";

var bottomCloseButton = new Image();
	bottomCloseButton.src = "http://i.a.cnn.net/cnn/ELECTION/2004/pages/results/images/happen.now.close1.gif";
var bottomCloseButtonOver = new Image();
	bottomCloseButtonOver.src = "http://i.a.cnn.net/cnn/ELECTION/2004/pages/results/images/happen.now.close1.over.gif";

var refreshButton = new Image();
	refreshButton.src = "http://i.a.cnn.net/cnn/ELECTION/2004/pages/results/images/refresh.gif";
var refreshButtonOver = new Image();
	refreshButtonOver.src = "http://i.a.cnn.net/cnn/ELECTION/2004/pages/results/images/refresh.over.gif";

var hapNowMultiple = false;

var MM_FlashCanPlay = false;
var MM_contentVersion = 6;

var plugin = ( navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] ) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : null;

if ( plugin ) {
	var MM_PluginVersion = 0;
	var words = navigator.plugins["Shockwave Flash"].description.split( " " );
	for ( var i = 0; i < words.length; ++i ) {
		if ( isNaN( parseInt( words[i] ) ) )
			continue;
		MM_PluginVersion = words[i];
	}
	MM_FlashCanPlay = ( MM_PluginVersion >= MM_contentVersion );
} else if ( navigator.userAgent && ( navigator.userAgent.indexOf("MSIE") != -1 ) && ( navigator.appVersion.indexOf("Win") != -1 ) ) {
	document.writeln( '<script language="VBscript">' );
	document.writeln( 'on error resume next');
	document.writeln( '\'do a one-time test for a version of VBScript that can handle this code' );
	document.writeln( 'If ScriptEngineMajorVersion >= 2 then' );
	document.writeln( '  MM_FlashCanPlay = IsObject( CreateObject( "ShockwaveFlash.ShockwaveFlash." & MM_contentVersion ) )' );
	document.writeln( 'End If' );
	document.writeln( '<\/scr' + 'ipt>' );
}

function CNN_FlashObject( name, src, width, height, bgColor, quality, wMode, flashVars ) {
	this.name		= name || '';
	this.src		= src || '';
	this.width		= width || 0;
	this.height		= height || 0;
	this.bgColor	= bgColor || '';
	this.quality	= quality || "high";
	this.wMode		= wMode || "Transparent";
	this.flashVars	= flashVars || '';
	this.getFlashVarsString	= CNN_FlashObject_getFlashVarsString;
	this.getHtml			= CNN_FlashObject_getHtml;
	this.writeHtml			= CNN_FlashObject_writeHtml;
	
	function CNN_FlashObject_getFlashVarsString() {
		var flashVarsString = '';
		if ( typeof this.flashVars == "string" ) {
			flashVarsString = this.flashVars;
		} else if ( typeof this.flashVars == "object" ) {
			for ( flashVar in this.flashVars ) {
				if ( flashVarsString != '' ) {
					flashVarsString += "&";
				}
				flashVarsString += flashVar + "=" + escape( this.flashVars[flashVar] );
			}
		}
		return ( flashVarsString );
	}
	
	function CNN_FlashObject_getHtml() {
		var flashVarsString = this.getFlashVarsString();
		return( '<object type="application/x-shockwave-flash" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" pluginspage="http://www.macromedia.com/go/getflashplayer"' + ( this.name ? ' id="' + this.name + '"' : '' ) + ' data="' + this.src + '" width="' + this.width + '" height="' + this.height + '"><param name="movie" value="' + this.src + '">' + ( this.bgColor ? '<param name="bgcolor" value="' + this.bgColor + '">' : '' ) + '<param name="quality" value="' + this.quality + '">' + ( ( this.wMode != "none" ) ? '<param name="WMode" value="' + this.wMode + '">' : '' ) + ( flashVarsString ? '<param name="FlashVars" value="' + flashVarsString + '">' : '' ) + '<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"' + ( this.name ? ' name="' + this.name + '"' : '' ) + ' src="' + this.src + '" width="' + this.width + '" height="' + this.height + '"' + ( this.bgColor ? ' bgcolor="' + this.bgColor + '"' : '' ) + ' quality="' + this.quality + '"' + ( flashVarsString ? ' FlashVars="' + flashVarsString + '"' : '' ) + '><\/embed><\/object>' );
	}
	
	function CNN_FlashObject_writeHtml() {
		document.write( this.getHtml() );
	}
}

function CNN_getNoCache() {
	return ( "nocache=" + Math.floor( new Date().getTime() / 5000 ) );
}

function cnnSmallMap_DoFSCommand() { }
function cnnLargeMap_DoFSCommand() { }
function cnnRightRail_DoFSCommand() { }

