		
		var oAuctionTimer;
		var aTimersToMonitor;
		var nSecondsPerDay = 86400;
		var nSecondsPerHour = 3600;
		var nSecondsPerMinute = 60;
		var nAuctionCounter = 0;
		var xmlHttp;
		var sReservePriceStatus_StyleColor = '#267b26';
		var sReservePriceStatus_StyleFontStyle = 'italic';
		var sReservePriceStatus_StyleFontWeight = 'bold';	
		var sCurrentPrice_StyleFontSize = '11pt';
		var sURL = new String(window.location);

		var sTimeRemainingText = "";
		var sBiddingOpensText = "";
		var bListPage = false;
		var sBidNowText = "";

        var arMonths = new Array('January','February','March','April','May','June','July','August','September','October','November','December');

		sURL = sURL.toLowerCase();
				
		function StartEventTimer(sEventsOnPage)
		{
		    aTimersToMonitor = sEventsOnPage.split(',');
			oAuctionTimer = setInterval("CheckCountdown()", 1000);
		}

		function InitializeListPage(sTimeRemaining, sBiddingOpens, sBidNow) {
		    sTimeRemainingText = sTimeRemaining;
		    sBiddingOpensText = sBiddingOpens;
		    sBidNowText = sBidNow;
		    bListPage = true;
		}
		
		//<summary>
		//Method that will decrement all the auction countdown values by 1
		//</summary>
		function CheckCountdown()
		{		    		    
			nAuctionCounter = nAuctionCounter + 1;
			
			if (nAuctionCounter == 30)			
			{			 
				CheckForUpdatedAuctions();
				
				nAuctionCounter = 0;
			}
					
			for (i=0; i < aTimersToMonitor.length; i++)
			{			
				if (aTimersToMonitor[i].length > 0)
				{					
					DecrementSecondsLeft(aTimersToMonitor[i].toString().toUpperCase());
				}									
			}			
		}
		
		///<summary>
		///Method that will decrement the current eventIDs timer
		///</summary>
		function DecrementSecondsLeft(sEventID)
		{
	    
			//Set the current element to the element on the page
		    var oCurrentElement;
		    var oTimeRemainingElement;
		    var bUpdateTimeRemaining = true;
		    var nSecondsRemaining;
		    		    
			oCurrentElement = document.getElementById('dvAuction' + sEventID + 'hdn');
			//oTimeRemainingElement = document.getElementById('auction' + sEventID + 'Remaining');
							
			if (oCurrentElement != null)					
			{
			    nSecondsRemaining = GetSecondsRemainingFromDiv(oCurrentElement);

			    if (nSecondsRemaining > 0) {
				    
				    if (bListPage) {
				        if (nSecondsRemaining == nSecondsPerDay) {
				            document.getElementById('auction' + sEventID + 'Remaining').innerHTML = sTimeRemainingText + ": ";
				            ChangeViewNowLinks(sEventID);
				        }

				        if (nSecondsRemaining > nSecondsPerDay) {
				            bUpdateTimeRemaining = false;
				        }
				    } else {
				        if (nSecondsRemaining == (nSecondsPerDay - 1)) {
				            window.location.reload();
				        }
				    }

				    oCurrentElement.innerHTML = (nSecondsRemaining - 1);
				    MakeTextRed(nSecondsRemaining, sEventID);	            

				    if (bUpdateTimeRemaining) {
				        document.getElementById('auction' + sEventID).innerHTML = GetNewTimeRemaining(nSecondsRemaining);
				    }
				}
				else
				{
					AuctionEnded(aTimersToMonitor[i]);
				}
			}
		}

		function GetSecondsRemainingFromDiv(oElem) {

		    var nSecRemain = 0;

		    if (!isNaN(oElem.innerHTML)) {

		        nSecRemain = parseInt(oElem.innerHTML);

		    } else {

		        var reg = />(\d+)</i;
		        var arrReg = reg.exec(oElem.innerHTML);

		        if (arrReg) {
		            nSecRemain = parseInt(arrReg[1]);
		        }
		    }

		    return nSecRemain;
		}

		function ChangeViewNowLinks(sEventID) {
		    var arrDetailsLinks = document.getElementsByName("lnkDetails" + sEventID);
		    var iLnk = 0;

		    while (iLnk < arrDetailsLinks.length) {
		        arrDetailsLinks[iLnk].innerHTML = sBidNowText;
		        iLnk++;
		    }
		}

			
		///Method that will make the time remaining text red and show the clock if there is less than an hour left in the auction
		function MakeTextRed(nSecondsLeft, sEventID)
		{
			if (nSecondsLeft < (nSecondsPerHour + nSecondsPerMinute))
			{				
				document.getElementById('auction' + sEventID + 'clock').style.display = '';
			}	
		}		
		
		///<summary>
		///Method that will fire when an auction has ended - it will either change the text to auction ended or reload the window
		///</summary>
		function AuctionEnded(sEventID)
		{		  
			var URL = new String(window.location);
			URL = URL.toLowerCase();
			
			clearInterval(oAuctionTimer);
			
			if (URL.indexOf('details.aspx', 0) > 0)
			{
				window.location = window.location;				
			}
			else
			{
				document.getElementById('auction' + sEventID).innerHTML = 'Auction Has Ended.';	
				MakeTextBlack(sEventID);							
			}
		}
		
		///Method that will make the time remaining text black and hide the clock if there is more than an hour left or the auction has ended
		function MakeTextBlack(sEventID)
		{
		    //Commented out since now they want the current bid text to be red
			document.getElementById('auction' + sEventID).style.color = 'black';
			document.getElementById('auction' + sEventID + 'Remaining').style.color = 'black';
			document.getElementById('auction' + sEventID + 'clock').style.display = 'none';
		}
		
		
		//<summary>
		//Method that will get the new bidding opens display text
		//</summary>
		function GetBiddingOpensTime(nSecondsRemaining)
		{		    
		    var dCurrentDate = new Date();            
		    
		    //Subtract a days worth of seconds since bidding opens 1 day before the auction ends
            dCurrentDate = addSecs(dCurrentDate,(nSecondsRemaining - nSecondsPerDay));                                 
            
            return GetFormattedTimeString(dCurrentDate, true);
		}

		//<summary>
		//Method that will get the new bidding opens display text
		//</summary>
		function GetBiddingEndsTime(nSecondsRemaining)
		{		    
		    var dCurrentDate = new Date();            
    
            //Get end date
            dCurrentDate = addSecs(dCurrentDate,(nSecondsRemaining));                                 
		    
		    return GetFormattedTimeString(dCurrentDate, false);
		}
		
		//<summary>
		//Method that will get the new bidding opens display text
		//</summary>
		function GetFormattedTimeString(dDate, bIncludeTimeZone)
		{		    
            var day;
            var nMonthIdx;
            var month;
            var year;
            var time;
            
            year = dDate.getFullYear();
            
            time = getBiddingOpenTime(dDate,bIncludeTimeZone);
                                   
            day = dDate.getDate();
            
            nMonthIdx = dDate.getMonth();
            
            month = arMonths[nMonthIdx];
            
            return month + ' ' + day + ', ' + year + ' ' + time;
            		    
		}

        function addSecs(d, s) 
        {
            return new Date(d.valueOf()+s*1000);            
        } 

        function getBiddingOpenTime(dEndDate,bIncludeTimeZone)
        {
            var nHour;
            var nMinutes;
            var sAMPM;
            var jsHours = dEndDate.getHours();          
            var sReturnTime;
                        
            if (jsHours> 12)
            {
                nHour = jsHours - 12;
                sAMPM = 'PM';
            }
            else{
                nHour = jsHours;
                sAMPM = 'AM';
            }   
            
            //getHourValueAndAMorPM(nHours, sAMPM, dEndDate.getHours());
            
            if (dEndDate.getMinutes() < 10)
            {
                nMinutes = '0' + dEndDate.getMinutes();
            }
            else{
                nMinutes = dEndDate.getMinutes();
            }
            
            sReturnTime = nHour + ":" + nMinutes + ' ' + sAMPM;
            
            if (bIncludeTimeZone == true)
            {
                sReturnTime += ' (Central Time)';
            }
            
            return sReturnTime;
            
        }
			
	
						
		//<summary>
		//Method that will get the new time to display to the user
		//</summary>
		function GetNewTimeRemaining(nSecondsRemaining)
		{
			var nDays = GetDaysRemaining(nSecondsRemaining);
			var nHours = GetHoursRemaining(nSecondsRemaining, nDays);
			var nMinutes = GetMinutesRemaining(nSecondsRemaining, nDays, nHours);
			var nSeconds = GetSecondsRemaining(nSecondsRemaining, nDays, nHours, nMinutes);
						
			if (nSeconds > 0 && nMinutes > 5)
			{
				nMinutes = nMinutes + 1;
			}
			
			if (nMinutes == 60)
			{
				nMinutes = 0;
				nHours = nHours + 1;				
			}
			
			if (nHours == 24)
			{
				nHours = 0;
				nDays = nDays + 1;
			}
						
			return ConvertTimeToText(nSecondsRemaining,nDays, nHours, nMinutes, nSeconds);			
		}		
		
		//<summary>
		//Method that will determine the number of days remaining based on the seconds
		//</summary>
		function GetDaysRemaining(nSecondsRemaining)
		{
			return Math.floor(nSecondsRemaining / nSecondsPerDay);
		}
		
		//<summary>
		//Method that will determine the number of hours remaining based on the seconds - days
		//</summary>
		function GetHoursRemaining(nSecondsRemaining, nDays)
		{
			return Math.floor((nSecondsRemaining - (nDays * nSecondsPerDay)) / nSecondsPerHour);
		}
		
		//<summary>
		//Method that will determine the number of minutes remaining based on seconds - days - hours
		//</summary>
		function GetMinutesRemaining(nSecondsRemaining, nDays, nHours)
		{
			return Math.floor((nSecondsRemaining - (nDays * nSecondsPerDay) - (nHours * nSecondsPerHour)) / nSecondsPerMinute);
		}
		
		//<summary>
		//Method that will determine the number of seconds remaining based on seconds - days - hours - minutes
		//</summary>
		function GetSecondsRemaining(nSecondsRemaining, nDays, nHours, nMinutes)
		{
			return nSecondsRemaining - (nDays * nSecondsPerDay) - (nHours * nSecondsPerHour) - (nMinutes * nSecondsPerMinute);
		}
		
		//<summary>
		//Method that will convert the days, hours, minutes, seconds to text IE 1 Day 3 hours 5 Minutes
		//</summary>
		function ConvertTimeToText(nSecondsRemaining,nDays, nHours, nMinutes, nSeconds)
		{
			var sText = '';
			var nDaysDisplayText ='';
			var nHoursDisplayText = '';
			var nMinutesDisplayText = '';
					
			if (nSecondsRemaining < (nSecondsPerHour + nSecondsPerMinute))
			{
				//Under 1 hour left for auction, so make time text red
				nDaysDisplayText = "<span class=redtext>" + nDays + "</span>";								
				nHoursDisplayText = "<span class=redtext>" + nHours + "</span>";		
				nMinutesDisplayText = "<span class=redtext>" + nMinutes + "</span>";		
			}
			else
			{
				
				nDaysDisplayText = "<strong>" + nDays + "</strong>";		
				nHoursDisplayText = "<strong>" + nHours + "</strong>";		
				nMinutesDisplayText = "<strong>" + nMinutes + "</strong>";		
			}
						
			if (nDays > 0)
			{	
				sText = sText + GetText(nDays, ' <span class=style1>days</span> ', ' <span class=style1>day</span> ', nDaysDisplayText);
			}
			
			if (nHours > 0)
			{
				sText = sText + GetText(nHours, ' <span class=style1>hours</span> ', ' <span class=style1>hour</span> ', nHoursDisplayText);
			}
			
			if (nMinutes > 0)
			{
				sText = sText + nMinutesDisplayText + ' <span class=style1>min</span> ';
			}
			else if (nMinutes == 0 && nDays > 0 && nHours == 0)
			{
                if (nSecondsRemaining < (nSecondsPerHour + nSecondsPerMinute))
			    {	
			        sText = sText + "<span class=redtext>1</span>" + ' min ';
			    }
			    else
			    {		
				    sText = sText + "<span class=style1>1</span>" + ' min ';
				}
			}
			
			if (nSeconds > 0 && nMinutes <= 5 && nHours == 0 && nDays == 0)
			{
				sText = sText + GetText(nSeconds, ' <span class=style1>seconds</span> ', ' <span class=style1>second</span> ', "<span class=redtext>" + nSeconds + "</span>");
			}
			
			return sText;
		}
		
		//<summary>
		//Method that will get the actual text for the value, it will determine if the plural text or the singular text should be shown after the value
		//</summary>
		function GetText(nValue, sPluralText, sSingularText, sValueDisplayText)
		{
			var sValue = '';
			
			if (nValue == 1)
			{
				sValue = sValueDisplayText + sSingularText;
			}
			else
			{
				sValue = sValueDisplayText + sPluralText;
			}
			
			return sValue;
		}
		
		//<summary>
		//Method that will do a AJAX request back to the server to get the updated end times and prices
		//</summary>
		function CheckForUpdatedAuctions()
		{
			var sEventIDs = '';
		    
			for (i=0; i < aTimersToMonitor.length; i++)
			{
				sEventIDs = sEventIDs + aTimersToMonitor[i] + ',';
			}
		
			if (!xmlHttp) 
			{
				xmlHttp = getNewXmlHttpRequestObject();								
			}
													
			var sAJAXURL = "/onlineauctions/auctioninformation.aspx?CurrentTime=" + new Date().getTime() + "&eventids=" + sEventIDs;
			
			xmlHttp.open("GET", sAJAXURL, true);
			xmlHttp.onreadystatechange=ProcessRequest;
			xmlHttp.send(null);
			//}		
		}
		
				function ProcessRequest()
				{
										
					if (xmlHttp.readyState==4)
					{
						ParseResults(xmlHttp.responseText);						
					}
				}		
		
		//<summary>
		//Method that will get the HTTP request to perform the AJAX call back
		//</summary>
		function getNewXmlHttpRequestObject() {

			var newObj    

			if (window.XMLHttpRequest) {

				newObj = new XMLHttpRequest();      //Mozilla Browsers

			} else if (window.ActiveXObject) {

				newObj = new ActiveXObject("Microsoft.XMLHTTP");      //IE

			}		      

			return newObj;
		}
	
		//<summary>
		//Method that will parse the results returned from the server
		//</summary>
		function ParseResults(sResults)
		{			           
			if (sResults.indexOf('good') >= 0)
			{		
				var sNewResults = sResults.substring(5);
								
				var arrResults = sNewResults.split('!');
								
				for (i=0; i<arrResults.length; i++)
				{
					var arrAuction = arrResults[i].split('|');
					
					if (arrAuction.length >= 3)
					{
						var sEventID = arrAuction[0];
						
						if (document.getElementById('dvAuction' + sEventID + 'hdn') != null)
						{																								
																
							CheckTimeExtended(arrAuction[1], document.getElementById('dvAuction' + sEventID + 'hdn'), sEventID);												    						    
						
							if (arrAuction[2].length > 2)
							{
							    SetCurrentBidText(sEventID, arrAuction[4], arrAuction[2])
							    
								SetPrice(sEventID, arrAuction[2], arrAuction[4]);

								CheckHideHighestBidderTable(arrAuction[2]);																
								
								CheckHideReserveMetText(arrAuction[2], sEventID);
							
								CheckDisplayNumberOfBids(arrAuction[3], sEventID);
								
								CheckDisplayOpeningBid(arrAuction[4],arrAuction[2],sEventID);
							}
						
						}											
					}
				}
			}
			
		}
		
				
		///Method that will set the price div tags and turn the text red if the price changes
		function SetCurrentBidText(sEventID, sOpeningPrice, sPrice)
		{
			if (sOpeningPrice != sPrice)
			{			    
			    //Need to find translation and display it.
			    var oCurrentBidTranslation = document.getElementById('currentbidtranslation' + sEventID);
			    var oCurrentBidDisplay = document.getElementById('currentbid' + sEventID);
			    			    
                if (oCurrentBidTranslation != null && oCurrentBidDisplay != null)
                {	
                    //Don't make text red if on details.aspx page		    			 
                    if (sURL.indexOf("details.aspx") == -1)
			        {
                        oCurrentBidDisplay.style.color = 'red';
                        oCurrentBidDisplay.style.fontSize = sCurrentPrice_StyleFontSize;
                    }
                    oCurrentBidDisplay.style.fontWeight = sReservePriceStatus_StyleFontWeight;						                    
				    oCurrentBidDisplay.innerHTML = oCurrentBidTranslation.innerHTML;										    
				}
			}
			
		}
		
		///Method that will set the price div tags and turn the text red if the price changes
		function SetPrice(sEventID, sPrice, sOpeningPrice)
		{
		    
		    if (sOpeningPrice != sPrice)
		    {
			    if (sURL.indexOf("details.aspx") != -1)
			    {
			        //They don't want the text to be red on the details page
                    if (document.getElementById('auction' + sEventID + 'price').innerHTML != sPrice)
			        {
				        document.getElementById('auction' + sEventID + 'price').style.color = 'red';
				        document.getElementById('auction' + sEventID + 'price').innerHTML = sPrice;
				        document.getElementById('currentbid' + sEventID).style.color = 'red';
			        }else{
			            document.getElementById('auction' + sEventID + 'price').style.color = 'black';
			            document.getElementById('auction' + sEventID + 'price').innerHTML = sPrice;
			            document.getElementById('currentbid' + sEventID).style.color = 'black';
			        }
			    }
			    else
			    {
			        document.getElementById('auction' + sEventID + 'price').style.color = 'red';
			        document.getElementById('auction' + sEventID + 'price').style.fontWeight = sReservePriceStatus_StyleFontWeight;						
			        document.getElementById('auction' + sEventID + 'price').style.fontSize = sCurrentPrice_StyleFontSize;
			        document.getElementById('auction' + sEventID + 'price').innerHTML = sPrice;
			    }		    
		    }
		    else
		    {
			    if (document.getElementById('auction' + sEventID + 'price').innerHTML != sPrice)
			    {
				    //document.getElementById('auction' + sEventID + 'price').style.color = 'red';
				    document.getElementById('auction' + sEventID + 'price').innerHTML = sPrice;						
			    }
			    else
			    {
			        //They want text to be black
				    //document.getElementById('auction' + sEventID + 'price').style.color = 'black';
			    }			        
		    }
		    													
		}
			
		function CheckHideHighestBidderTable(nHighBid)
		{
					
			//Check if displaying the "You Are Currently The Highest Bidder" table			
			if (document.getElementById('tblHighBidder') != null)
			{							
		
				if (document.getElementById('tblHighBidder').style.display == 'block')
				{			
					//Remove all non-numeric characters
					nHighBid = nHighBid.replace(/[^\d]/g,'');
				
					//nUsersHighBid should have been set on SubmitBid control
					if (nHighBid > nUsersHighBid)
					{
						document.getElementById('tblHighBidder').style.display = 'none';
					}
				}
			}
	
		}	
		
		function CheckTimeExtended(nNewSecondsLeft, oCurrentTimeDiv, sEventID)
		{
		    
			var nOldSecondsLeft = oCurrentTimeDiv.innerHTML;
			var bDisplayTimeExtendedMessage = false;
			var oTimeExtendedDiv = document.getElementById('dvAuctionExtended');
			var nTimeDiff = (nNewSecondsLeft - nOldSecondsLeft);
						
			//Check to see if time differs by more than 30 seconds either way.
			if (Math.abs(nNewSecondsLeft - nOldSecondsLeft) >= 30)
			{
				if (nNewSecondsLeft > nOldSecondsLeft)
				{
					//Less than 5 minutes left in auction 					
					if (nTimeDiff <= 330)
					{
						//List page does not have the auction extended div so need to check if div is on current page.
						bDisplayTimeExtendedMessage = true;
					}
					
					if (oTimeExtendedDiv != null)
					{
						if (bDisplayTimeExtendedMessage == true)
						{
							oTimeExtendedDiv.style.display = 'block';
						}
						else
						{
							oTimeExtendedDiv.style.display = 'none';	
						}
					}
				}
				
				var oCurrentAuctionTimeLeftDisplayText = document.getElementById('auction' + sEventID);
                
				if (bListPage == true) {
				    //Update list page
				    if (nNewSecondsLeft > nSecondsPerDay) 
				    {
				        oCurrentAuctionTimeLeftDisplayText.innerHTML = GetBiddingOpensTime(nNewSecondsLeft);	
				        document.getElementById('auction' + sEventID + 'Remaining').innerHTML = sBiddingOpensText + ": ";
				    }
				    else
				    {
				        oCurrentAuctionTimeLeftDisplayText.innerHTML = GetBiddingEndsTime(nNewSecondsLeft);
                        document.getElementById('auction' + sEventID + 'Remaining').innerHTML = sTimeRemainingText + ": ";				        
				    }
				    							    		    				    
				}
				else{
				    //Update time left
				    oCurrentAuctionTimeLeftDisplayText.innerHTML = GetNewTimeRemaining(nNewSecondsLeft);				
				    
				    //Update "Sale Ends" text
				    if (document.getElementById('spanSaleEnds' + sEventID) != null)
				    {
				        document.getElementById('spanSaleEnds' + sEventID).innerHTML = document.getElementById('spanSaleEndsTranslation' + sEventID).innerHTML + GetBiddingEndsTime(nNewSecondsLeft);
				    }

                    //Update "Bidding Opens" text
				    if (document.getElementById('spanBiddingOpensTime' + sEventID) != null)
				    {
				        document.getElementById('spanBiddingOpensTime' + sEventID).innerHTML = GetBiddingOpensTime(nNewSecondsLeft);
				    }					    
				}
				oCurrentTimeDiv.innerHTML = nNewSecondsLeft;			
			}
		}


		function CheckHideReserveMetText(nNewHighBid, sEventID)
		{
			var oReserveMetDisplay = document.getElementById('dvAuctionReserveMetDisplay' + sEventID);
			
			
			//Check if the reserve met div is on page.  (DIV is on Details.aspx page, but not list page)
			if (oReserveMetDisplay != null)
			{									
				var nCurrentReservePrice = document.getElementById('dvAuctionReservePrice' + sEventID).innerHTML;
				var sCurrentReserveText = document.getElementById('dvAuctionReserveMetDisplay' + sEventID);	
				var sReserveMetText = document.getElementById('dvAuctionReserveMetText').innerHTML;						
				var sReserveNotMetText = document.getElementById('dvAuctionReserveNotMetText').innerHTML;
				var sNoReserveText = document.getElementById('dvAuctionNoReserveText').innerHTML;		
				var nCurrentReservePrice;								
														
				nCurrentReservePrice = nCurrentReservePrice.replace(/[^\d]/g,'');																								
									
				nNewHighBid = nNewHighBid.replace(/[^\d]/g,'');
													
				if (parseFloat(nCurrentReservePrice) > 0)
				{										
				
					if (parseFloat(nNewHighBid) >= parseFloat(nCurrentReservePrice))
					{
					
						oReserveMetDisplay.innerHTML = sReserveMetText;
						//oReserveMetDisplay.style.color = sReservePriceStatus_StyleColor;
						//oReserveMetDisplay.style.fontStyle = sReservePriceStatus_StyleFontStyle;
						oReserveMetDisplay.style.fontWeight = sReservePriceStatus_StyleFontWeight;						
						
					}
					else
					{
						oReserveMetDisplay.innerHTML = sReserveNotMetText;
						oReserveMetDisplay.style.color = "";
						oReserveMetDisplay.style.fontStyle = "";
						oReserveMetDisplay.style.fontWeight = "";													
					}
				}
				//This should not be necessary
				else
				{													
					oReserveMetDisplay.innerHTML = sNoReserveText;
					//oReserveMetDisplay.style.color = sReservePriceStatus_StyleColor;
					//oReserveMetDisplay.style.fontStyle = sReservePriceStatus_StyleFontStyle;
					oReserveMetDisplay.style.fontWeight = sReservePriceStatus_StyleFontWeight;									
				}
																	
			}
			
		}		
	
		function CheckDisplayOpeningBid(dblOpeningBid, dblCurrentBid, sEventID)
		{
			var spanOpeningBid = document.getElementById('openingbid' + sEventID);
		    var oOpenedAtTranslation = document.getElementById('openedattranslation' + sEventID)
		    var sLeadingBreak = '<br/>';
		    
		    if (oOpenedAtTranslation != null)
		    {
    			
			    //Check if opening bid div is on page.
			    if (spanOpeningBid != null)
			    {
			        
			        if ((dblOpeningBid != dblCurrentBid) && (dblOpeningBid.toString() != '$0'))
				    {
				        if (sURL.indexOf("userbids.aspx") != -1)
				        {
                            sLeadingBreak = '';				                    
				        }
				        
					    spanOpeningBid.innerHTML = sLeadingBreak + oOpenedAtTranslation.innerHTML + " " + dblOpeningBid + "<br>"
				    }
    				
			    }
		    }
			
		}
		
		function CheckDisplayNumberOfBids(nNumberOfBids, sEventID)
		{
			var spanNumberOfBids = document.getElementById('NumBids' + sEventID);
												
			//Check if opening bid div is on page.
			if (spanNumberOfBids != null)
			{
				if (nNumberOfBids > 0)
				{
				
				    //if (location.href.indexOf("details.aspx") != -1)
				    if (sURL.indexOf("details.aspx") != -1)
				    {
					    if (nNumberOfBids == 1)
					    {
					        var oBidTranslation = document.getElementById('bidtranslation' + sEventID);
					        if (oBidTranslation != null)
					        {					            
						        spanNumberOfBids.innerHTML = nNumberOfBids + " " + oBidTranslation.innerHTML + "<br>"
						    }
					    }
					    else
					    {
					        var oBidsTranslation = document.getElementById('bidstranslation' + sEventID);
					        
					        if (oBidsTranslation != null)
					        {
						        spanNumberOfBids.innerHTML = nNumberOfBids + " " + oBidsTranslation.innerHTML + "<br>"						
						    }
					    }										
				    
                    }
                    else
                    {                                     
				        var oNumberOfBidsTranslation = document.getElementById('numberofbidstranslation' + sEventID);
				        
				        if (oNumberOfBidsTranslation != null)
				        {
                            spanNumberOfBids.innerHTML = "<br>" + oNumberOfBidsTranslation.innerHTML.replace(/##!!/i, nNumberOfBids);
                        }

					}
				}
				
			}
			
		}