

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               // Danny Mavromatis, Mike Davidson
// Version: 2.06.4
// Created: 10/29/2001
// Updated: 7/13/2005
// ESPN.com FLASH detection system
	var f2 = false;
	var f3 = false;
	var f4 = false;
	var f5 = false;
	var f6 = false;
	var f7 = false;	
	var f8 = false;
	var cId = 0;
	var mV = 8;
	var aV = 0;
	var hRV = false;
	var jsV = 1.0;
	var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
	var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false;
	jsV = 1.1;
if(isIE && isWin){
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('f2 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.2"))) \n');
	document.write('f3 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
	document.write('f4 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
	document.write('f5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');
	document.write('f6 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))) \n');
	document.write('f7 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7"))) \n');
	document.write('f8 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8"))) \n');
	document.write('</SCR' + 'IPT\> \n');
}
function checkFlash(rV){
	var ua=navigator.userAgent.toLowerCase();
	this.webtv = (ua.indexOf("webtv")>-1);
	this.ie = (parseFloat(ua.slice(ua.indexOf("msie")+5)));
	this.nn = (parseFloat(ua.slice(ua.indexOf("mozilla/")+8)));
	var browser = navigator.appName.toLowerCase();
	if (browser=="netscape"){
	this.netscape = true;
	}else{
	this.netscape = false;
	}
	this.mac = (ua.indexOf("mac")>-1);
	this.flash = false;
	
	if (navigator.plugins){
		if (navigator.plugins["Shockwave Flash 2.0"]
		|| navigator.plugins["Shockwave Flash"]){
			var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var fD = navigator.plugins["Shockwave Flash" + isVersion2].description;
			var fV = parseInt(fD.charAt(fD.indexOf(".") - 1));
			f2 = fV == 2;
			f3 = fV == 3;
			f4 = fV == 4;
			f5 = fV == 5;
			f6 = fV == 6;
			f7 = fV == 7;
			f8 = fV == 8;
		}
	}
	for (var i = 2; i <= mV; i++) {
		if (eval("f" + i) == true) aV = i;
	}
	// alert("version detected: " + aV);
	if (aV >= rV) {
		if (this.netscape && this.IEonly == 'TRUE' || this.mac && this.IEonly == 'TRUE'){
			this.flash = false;
		} else {
			this.flash = true;
		}
	}
}
function flashObj() {
	cId += 1;
	this.flashFile = "/flash/blank.swf";
	this.LiveConnect = "FALSE";
	this.IEonly = null;
      	this.wmode = "opaque";
      	this.redirect = null;
	this.DenyIEdl = "FALSE";
	this.altImg = "/i/blank.gif";
	this.bgcolor = null;
	this.altTxt = null;
	this.height = "400";
	this.width = "520";
	this.salign="lt";
	this.align="left";
	this.flashVars = null;
	this.ID = "flash"+ cId;
	this.name = "flash"+ cId;
	this.webTV = "true";
	this.quality = "best";
	this.scale = "exactfit";
	this.menu = "false";
	this.deviceFont = "false";
	this.FlashVer = 5;
	this.cabVersion = "5,0,0,0";
	this.render = writeFlashComponent;
}
function writeFlashComponent() {
	var Ticket=new checkFlash(this.FlashVer);
	var sCR;
	if (Ticket.flash) {
		if (Ticket.mac || Ticket.netscape) {
		
			sCR="<EMBED SRC="+this.flashFile+" swLiveConnect="+this.LiveConnect+" WIDTH="+this.width+" HEIGHT="+this.height+" QUALITY="+this.quality+" SCALE="+this.scale+" FlashVars="+ this.flashVars +" wmode="+this.wmode+" ID="+this.ID+" NAME="+this.name+" MENU="+this.menu+" DEVICEFONT="+this.deviceFont;
			if (this.bgcolor) {
				sCR += " BGCOLOR="+this.bgcolor;
			}
			if (this.salign) {
				sCR += " SALIGN="+this.salign;
			}
			sCR += " TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash></EMBED>";
		} else if (this.DenyIEdl=='TRUE') {
			sCR="<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://active.macromedia.com/flash2/cabs/swflash.cab#version="+this.FlashVer+",0,0,0\" ID=\""+this.ID+"\" WIDTH=\""+this.width+"\" HEIGHT=\""+this.height+"\">\n";
			sCR+="<PARAM NAME=movie VALUE=\""+this.flashFile+"\">\n";						
			sCR+="<PARAM NAME=quality VALUE=\""+this.quality+"\">\n";
			sCR+="<PARAM NAME=scale VALUE=\""+this.scale+"\">\n";
			sCR+="<PARAM NAME=menu VALUE=\""+this.menu+"\">\n";
			sCR+="<PARAM NAME=wmode VALUE=\""+this.wmode+"\">\n";
			if (this.bgcolor){
				sCR+="<PARAM NAME=bgcolor VALUE=\""+this.bgcolor+"\">\n";
			}
			if (this.flashVars){
				sCR+="<PARAM NAME=FlashVars VALUE=\""+this.flashVars+"\">\n";
			}
			if (this.salign) {
				sCR+="<PARAM NAME=salign VALUE=\""+this.salign+"\">\n";
			}
			sCR+="<PARAM NAME=devicefont VALUE=\""+this.deviceFont+"\">\n";
			if (this.bgcolor){
			sCR+="<EMBED SRC="+this.flashFile+" swLiveConnect="+this.LiveConnect+" WIDTH="+this.width+" HEIGHT="+this.height+" QUALITY="+this.quality+" SCALE="+this.scale+" wmode="+this.wmode+" ID="+this.ID+" NAME="+this.name+" MENU="+this.menu+" DEVICEFONT="+this.deviceFont+" FlashVars="+ this.flashVars +" BGCOLOR="+this.bgcolor+" TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash></EMBED></OBJECT>";
			} else {
			sCR+="<EMBED SRC="+this.flashFile+" swLiveConnect="+this.LiveConnect+" WIDTH="+this.width+" HEIGHT="+this.height+" QUALITY="+this.quality+" SCALE="+this.scale+" wmode="+this.wmode+" ID="+this.ID+" NAME="+this.name+" MENU="+this.menu+" DEVICEFONT="+this.deviceFont+" FlashVars="+ this.flashVars +" TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash></EMBED></OBJECT>";
			}
		} else if (Ticket.ie>=4 && this.DenyIEdl=='FALSE') {
			sCR="<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://active.macromedia.com/flash2/cabs/swflash.cab#version="+this.cabVersion+"\" ID=\""+this.ID+"\" WIDTH=\""+this.width+"\" HEIGHT=\""+this.height+"\">\n";
			sCR+="<PARAM NAME=movie VALUE=\""+this.flashFile+"\">\n";						
			sCR+="<PARAM NAME=quality VALUE=\""+this.quality+"\">\n";
			sCR+="<PARAM NAME=scale VALUE=\""+this.scale+"\">\n";
			sCR+="<PARAM NAME=menu VALUE=\""+this.menu+"\">\n";
			sCR+="<PARAM NAME=wmode VALUE=\""+this.wmode+"\">\n";
			if (this.flashVars){
				sCR+="<PARAM NAME=FlashVars VALUE=\""+this.flashVars+"\">\n";
			}
			if (this.bgcolor){
				sCR+="<PARAM NAME=bgcolor VALUE=\""+this.bgcolor+"\">\n";
			}
			if (this.salign) {
				sCR+="<PARAM NAME=salign VALUE=\""+this.salign+"\">\n";
			}
			sCR+="<PARAM NAME=devicefont VALUE=\""+this.deviceFont+"\">\n";
			sCR+="</OBJECT>\n";
		} else if (Ticket.webtv) {
			sCR="<EMBED SRC="+this.flashFile+" swLiveConnect=TRUE WIDTH="+this.width+" HEIGHT="+this.height+" QUALITY="+this.quality+" SCALE="+this.scale+" wmode="+this.wmode+" ID="+this.ID+" NAME="+this.name+" MENU="+this.menu+" DEVICEFONT="+this.deviceFont+" FlashVars="+ this.flashVars +" TYPE=application/x-shockwave-flash PLUGINSPAGE=http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash></EMBED>";
		}
	} else {
	if (this.redirect){
	 top.location.href = this.redirect;
	} else {
			if (this.altTxt){
			sCR = this.altTxt;
			} else {
			sCR="<IMG SRC="+this.altImg+" WIDTH="+this.width+" HEIGHT="+this.height+" BORDER=0>";
			}
		}
		}
	return sCR;
}
function getElem(elName)
{
	return document.getElementById?document.getElementById(elName):null;
}

function gotosite(loc)
{
	if(loc != null && loc != '')
	{
		location.href = loc;
	}
}
var requests = new Object();
var xmlReqInProgress = false;
function RequestFactory()
{
	this.createRequest = function(rID, url, needsLoading)
	{
		var r;
		if(!xmlReqInProgress)
		{
			xmlReqInProgress = true;
			if(!requests[rID])
			{
				if(window.XMLHttpRequest)
				{
					r = new XMLHttpRequest();
					requests[rID] = new XMLRequest(r, needsLoading);
	        		requests[rID].req.open('GET', url, true);
					requests[rID].req.send(null);
				}
				else if(window.ActiveXObject)
				{
					r = new ActiveXObject('Microsoft.XMLHTTP');
					if(r)
					{
						requests[rID] = new XMLRequest(r, needsLoading);
						requests[rID].req.open('GET', url, true);
						requests[rID].req.send();
					}
				}
				else
				{
					requests[rID] = null;
				}
			}
			return requests[rID];
		}
		else
		{
			return null;
		}
	}
}
function getOffSets()
{
	var x,y;
	if (self.pageYOffset) // all except Explorer
	{
		x = self.pageXOffset;
		y = self.pageYOffset;
	}
	else if (document.documentElement && document.documentElement.scrollTop)// Explorer 6 Strict
	{
		x = document.documentElement.scrollLeft;
		y = document.documentElement.scrollTop;
	}
	else if (document.body) // all other Explorers
	{
		x = document.body.scrollLeft;
		y = document.body.scrollTop;
	}
	
	return new Array(x,y);
}
var selfXMLR;
function XMLRequest(req, needsLoading)
{
	selfXMLR = this;
	this.req = req;
	this.isInit = false;
	this.interval = 0;
	this.executing = false;
	this.isFirstRun = true;
	this.func = null;
	this.args = new Array();
	this.div = null;
	this.needsLoading = needsLoading;
	
	this.init = function()
	{
		if(this.req.readyState == 4)
		{
			if(this.req.status == 200)
			{
				this.isInit = true;
			}
		}
		
		if(!this.isInit)
		{
			if(this.isFirstRun)
			{
				this.interval = setInterval('selfXMLR.init()', 2);
			}
		}
		else
		{ 
			clearInterval(this.interval);
			if(this.executing)
			{
				this.execute();
			}
		}
		this.isFirstRun = false;
	}
	
	this.createLoadingHolder = function()
	{
		/*
		var body = document.getElementsByTagName('body')[0];
		var y = getOffSets()[1];
		this.div = document.createElement('div');
		this.div.setAttribute('id', 'loadingDiv');
		this.div.style.width = '100%';
		this.div.style.fontWeight = 'bold';
		this.div.style.backgroundColor = '#FFFFFF';
		this.div.style.color = '#000000';
		this.div.style.padding = '10px';
		this.div.style.display = 'none';
		this.div.style.position = 'absolute';
		this.div.style.top = y + 'px';
		this.div.style.left = '0px';
		this.div.style.zIndex = 100;
		this.div.appendChild(document.createTextNode('Loading...'));
		if(body)
		{
			body.appendChild(this.div);
		}
		*/
	}
	
	this.hideLoading = function()
	{
		//this.div.style.display = 'none';
	}
	
	this.showLoading = function()
	{
		//this.div.style.display = 'block';
	}
	
	this.createMethod = function(func, args)
	{
		this.func = func;
		this.args = args;
	}
	
	this.getXMLDoc = function()
	{
		return this.req.responseXML;
	}
	
	this.execute = function()
	{
		this.executing = true;
		if(this.needsLoading)
		{
			this.showLoading();
		}
		if(this.isInit)
		{
			clearInterval(this.interval);
			this.func.apply(this,this.args);
			this.hideLoading();
			xmlReqInProgress = false;
		}
		else
		{
			this.init();
		}
	}
	
	this.createLoadingHolder();
	this.init();
}
var rf = new RequestFactory();
var rque = new Array();
var ids = new Object();
var currentReq = null;

function proxyReq()
{
	this.url = null;
	this.id = null;
	this.nl = null;
	this.f = null;
	this.args = null;
}

function executeXML(url, id, needsLoading, func, args)
{
	var req = null;
	var newArgs;
	var success = false;
		
	if(id != null && id != '')
	{
		if(ids[id] == null)
		{
			ids[id] = new proxyReq();
			ids[id].url = url;
			ids[id].id = id;
			ids[id].nl = needsLoading;
			ids[id].f = func;		
			
			if(!args || typeof args != 'object')
			{
				newArgs = 'new Array(\'\')';
			}
			else
			{
				newArgs = 'new Array(';
				for(var i = 0; i < i.length; i++)
				{
					if(i < i.length -1)
					{
						newArgs += '\'' + args[i] + '\',';
					}
					else
					{
						newArgs += '\'' + args[i] + '\'';
					}
				}
				newArgs += ')';
			}
			ids[id].args = newArgs;
		}
		
		req = rf.createRequest(id, url, needsLoading);
		if(req != null)
		{
			req.createMethod(func,args);
			req.execute(req);
			success = true;
		}
		else if(ids[id] != null)
		{
			if(currentReq == ids[id] || currentReq == null)
			{
				setTimeout('executeXML(\'' + ids[id].url + '\',\'' + ids[id].id + '\',' + ids[id].nl + ',' + ids[id].f + ',' + ids[id].args + ');',2);
			}
		}
	}
	currentReq = ids[id];
	return success;
}
function getElem(elName)
{
	return document.getElementById?document.getElementById(elName):null;
}

function gotosite(loc)
{
	if(loc != null && loc != '')
	{
		location.href = loc;
	}
}
//38010 -- pollId
var poll = 38010;
var hasVoted = false;
var voted = "voted=0";
var pollBit = poll % 256 % 64 % 4;

bitArray = new Array();
bitArray[0] = 8;
bitArray[1] = 1;
bitArray[2] = 2;
bitArray[3] = 4;

var cookieId = (poll - (poll % 256)) / 256;
var CookieIdasString = new String(cookieId);
var cookieName = "POLL" + CookieIdasString;

pollCookie = getCookie(cookieName)

if (pollCookie != null) {

	cookiePosition = pollCookie.length - Math.ceil((poll % 256 )/ 4);

	cookieValue = pollCookie.substring(cookiePosition, cookiePosition + 1);

	cookieAsHex = "0x" + cookieValue.toString(1);

	if ((bitArray[pollBit] & cookieAsHex) == bitArray[pollBit]) {
		var hasVoted = true;
	}

	if (hasVoted) {
		voted = "voted=1";
	}
}

function getCookie(name)
{
	var start = document.cookie.indexOf(name+"=");
	var len = start+name.length+1;
	if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
	var end = document.cookie.indexOf(";",len);
	if (end == -1) end = document.cookie.length;
	return unescape(document.cookie.substring(len,end));
}

var _hbEC=0,_hbE=new Array;function _hbEvent(a,b){b=_hbE[_hbEC++]=new Object();b._N=a;b._C=0;return b;}
var hbx=_hbEvent("pv");hbx.vpc="HBX0100u";hbx.gn="ehg-dig.hitbox.com";

function GetStatusHitbox(site) {
	if (document.DIGStreamClientInfo == null) {
		document.write('<div style="display: none"><OBJECT id="DIGStreamClientInfo" height="0" width="0" classid="CLSID:AAF15A90-F3EC-4FEE-9A00-F65B25B83D05"><\/OBJECT><\/div>');
	}
	if (document.DIGStreamClientInfo != null && document.DIGStreamClientInfo.object != null) {
		var DIGStreamStatus = DIGStreamClientInfo.GetSiteStatus(site);
		if (DIGStreamStatus != "Unsubscribed" && DIGStreamStatus != "Disabled") {
			return true;
		} else {
			return false;
		}
	} else {
		return false;
	}
}


var tempseg = "";

//GET REFERER
var referrer = document.referrer;

// CHECK TO SEE IF USER HAS MOTION, IF SO ADD TO MOTION SEGMENT
// ELSE REMOVE FROM MOTION SEGMENT FOR FUTURE VISITS

 var hasMotionHitbox = GetStatusHitbox("ESPNMotion");

// ADDED TO CHECK IF USER IS MOTION AND HIGH RES USER
var highRes = false;

if (screen!=null && (screen.width>800) && (screen.height>600)){
	highRes = true;

}


if (hasMotionHitbox){
	if (tempseg !=null && tempseg !=""){
		tempseg = tempseg + ",12"
	} else {
		tempseg = "12"
	}
} else{
	if (tempseg != null && tempseg != "") {
		var tempseg = tempseg + ",-12";
	} else {
		var tempseg="-12";
	}
}

if (hasMotionHitbox && highRes){
	if (tempseg !=null && tempseg !=""){
		tempseg = tempseg + ",2"
	} else {
		tempseg = "2"
	}
} else{
	if (tempseg != null && tempseg != "") {
		var tempseg = tempseg + ",-2";
	} else {
		var tempseg="-2";
	}
}



//CREATE NO SEGMENT INFO FOR OTHER THREE ACCOUNTS
if (tempseg != null && tempseg != ""){
    tempseg = "*;" + tempseg + ";*;*"
}else{
    tempseg = "*;*;*;*"
}


hbx.acct="DM5104129LMA95EN3;DM5412161IEA38EN3;DM5010177GVA95EN3;DM5103083LCA38EN3;";//ACCOUNT NUMBER(S)
hbx.pn="";//PAGE NAME(S)
hbx.mlc="/;/stats/derby06/mlb;/ESPNsite/";//MULTI-LEVEL CONTENT CATEGORY
hbx.pndef="title";//DEFAULT PAGE NAME
hbx.ctdef="full";//DEFAULT CONTENT CATEGORY

hbx.fv="";//FORM VALIDATION MINIMUM ELEMENTS OR SUBMIT FUNCTION NAME
hbx.lt="none";//LINK TRACKING
hbx.dlf="n";//DOWNLOAD FILTER
hbx.dft="n";//DOWNLOAD FILE NAMING
hbx.elf="n";//EXIT LINK FILTER

//SEGMENTS AND FUNNELS
hbx.seg=tempseg;//VISITOR SEGMENTATION
hbx.fnl="";//FUNNELS

//CAMPAIGNS
hbx.cmp="";//CAMPAIGN ID
hbx.cmpn="";//CAMPAIGN ID IN QUERY
hbx.dcmp="";//DYNAMIC CAMPAIGN ID
hbx.dcmpn="";//DYNAMIC CAMPAIGN ID IN QUERY
hbx.dcmpe="";//DYNAMIC CAMPAIGN EXPIRATION
hbx.dcmpre="";//DYNAMIC CAMPAIGN RESPONSE EXPIRATION
hbx.hra="";//RESPONSE ATTRIBUTE
hbx.hqsr="";//RESPONSE ATTRIBUTE IN REFERRAL QUERY
hbx.hqsp="";//RESPONSE ATTRIBUTE IN QUERY
hbx.hlt="";//LEAD TRACKING
hbx.hla="";//LEAD ATTRIBUTE
hbx.gp="";//CAMPAIGN GOAL
hbx.gpn="";//CAMPAIGN GOAL IN QUERY
hbx.hcn="";//CONVERSION ATTRIBUTE
hbx.hcv="";//CONVERSION VALUE
hbx.cp="null";//LEGACY CAMPAIGN
hbx.cpd="";//CAMPAIGN DOMAIN

//CUSTOM VARIABLES
hbx.ci="";//CUSTOMER ID - USE ESPN USERNAME IS SIGNED IN
hbx.hc1="automated";//CUSTOM 1
hbx.hc2="free";//CUSTOM 2
hbx.hc3="";//CUSTOM 3
hbx.hc4="";//CUSTOM 4
hbx.hrf="";//CUSTOM REFERRER
hbx.pec="";//ERROR CODES


function openParent(theLoc)	{window.parent.open(theLoc,'Derby Tracker');}
function closeWindow(){top.window.close();}

function loadField(playerId, year)
{
	var SOB=new flashObj();
	if (playerId != null && year != null)
	{
		SOB.flashFile = 'http://espn.go.com/swf/hrDerby/Hitchart_2006_ver12.swf?datafile=http://sports.espn.go.com/espn/derby06/data&playerId=' + playerId + '&year=' + year;
	}
	else
	{
		SOB.flashFile = "http://espn.go.com/swf/hrDerby/Hitchart_2006_ver12.swf?datafile=http://sports.espn.go.com/espn/derby06/data";
	}
	SOB.DenyIEdl = "TRUE";
	SOB.width = "580";
	SOB.height = "282";
	SOB.cabVersion = "4,0,0,0";
	SOB.altImg = "";
	getElem('field').innerHTML = SOB.render();
}

var surl = '/espn/derby06/getLeaderBoard?year=';
var year = 2006;
var currentYear = 2006;
var count = 0;
function loadYear(y)
{
	year = y
	var doc = this.getXMLDoc();
	var el = getElem('leaderBoard');
	var value = doc.getElementsByTagName('root')[0].childNodes[0].nodeValue;
	var test = document.createElement('div');
	test.innerHTML = value;

	if(test.innerHTML != el.innerHTML)
	{
		el.innerHTML = value;
	}
	count++;
}

function reloadLeaders()
{
	var el = getElem('leaderBoard');
	if(el)
	{
		if(year == currentYear)
		{
			executeXML(surl + year + '&r=' + count, year + '' + count,false,loadYear,[year]);
		}
	}
}

function initField()
{
	var field = getElem('field');
	if(field)
	{
		var SOB=new flashObj();
		
			SOB.flashFile = "http://espn.go.com/swf/hrDerby/Hitchart_2006_ver12.swf?datafile=http://sports.espn.go.com/espn/derby06/data";
		
		SOB.DenyIEdl = "TRUE";
		SOB.width = "580";
		SOB.height = "282";
		SOB.cabVersion = "4,0,0,0";
		SOB.altImg = "";
		field.innerHTML = SOB.render();
		initPoll();
	}
	else
	{
		setTimeout('initField()',1000);
	}
}

function initPoll()
{
	var poll = getElem('thePoll');
	if(poll)
	{
		var SOB=new flashObj();
		SOB.flashFile = 'http://sports.espn.go.com/swf/hrDerby/hrDerby_poll_05.swf?pId=38010&pType=0&' + voted;
		SOB.DenyIEdl = "TRUE";
		SOB.width = "192";
		SOB.height = "282";
		SOB.cabVersion = "4,0,0,0";
		SOB.altImg = "";
		poll.innerHTML = SOB.render();
		initChat();
		//setInterval('initPoll()',15000);
	}
	else
	{
		setTimeout('initPoll()',1000);
	}
}
function initChat()
{
	var chat = getElem('chat');
	if(chat)
	{
		var SOB=new flashObj();
		SOB.flashFile = "http://sports.espn.go.com/swf/espn/gen/chat/derby.swf?datafile=http://sports.espn.go.com/chat/chatDraftDataFile?event_id=8639&postURL=http://sports.espn.go.com/chat/spSetChatQuestion?event_id=8639&tscriptURL=http://proxy.espn.go.com/chat/chatESPN?event_id=8639";
		SOB.DenyIEdl = "TRUE";
		SOB.width = "365";
		SOB.height = "205";
		SOB.cabVersion = "4,0,0,0";
		chat.innerHTML = SOB.render();
		//setInterval('initChat()',15000);
	}
	else
	{
		setTimeout('initChat()',1000);
	}
}
initField();

setInterval('reloadLeaders()',5000);