	
	var stats = {"BIDS":[{"ID":4786821,"TITLE":"Renewal of Software Maint...","FULLTITLE":"Renewal of Software Maintenance Agreement Insyte Inwin 12\/13","STATE":"Oregon","TIME":"10:07 PM"},{"ID":4786822,"TITLE":"Pasta, Spaghetti","FULLTITLE":"Pasta, Spaghetti","STATE":"Oregon","TIME":"10:07 PM"},{"ID":4786823,"TITLE":"2 Taking Damages Property...","FULLTITLE":"2 Taking Damages Property Appraisals for Odot Right of Way","STATE":"Oregon","TIME":"10:07 PM"},{"ID":4786824,"TITLE":"Fabrication of Aluminum F...","FULLTITLE":"Fabrication of Aluminum Floating Restrooms (Statewide) Buyor","STATE":"Oregon","TIME":"10:07 PM"},{"ID":4786825,"TITLE":"Liquid Handling Robot","FULLTITLE":"Liquid Handling Robot","STATE":"Oregon","TIME":"10:07 PM"},{"ID":4786826,"TITLE":"Repair of Centrifugal Chi...","FULLTITLE":"Repair of Centrifugal Chiller","STATE":"South Carolina","TIME":"10:09 PM"},{"ID":4786827,"TITLE":"CHP-Coalinga Area Office?...","FULLTITLE":"CHP-Coalinga Area Office?Weapons Firing Range Services","STATE":"California","TIME":"10:09 PM"},{"ID":4786828,"TITLE":"Athletic Multi-Media Righ...","FULLTITLE":"Athletic Multi-Media Rights","STATE":"Texas","TIME":"10:10 PM"},{"ID":4786829,"TITLE":"Training Modules and Mate...","FULLTITLE":"Training Modules and Materials Development Services","STATE":"Texas","TIME":"10:10 PM"},{"ID":4786830,"TITLE":"Microsoft Campus Agreemen...","FULLTITLE":"Microsoft Campus Agreement","STATE":"Texas","TIME":"10:10 PM"},{"ID":4786832,"TITLE":"Swimming Supplies & Equip...","FULLTITLE":"Swimming Supplies & Equipment","STATE":"Texas","TIME":"10:12 PM"},{"ID":4786833,"TITLE":"Basketball Supplies & Equ...","FULLTITLE":"Basketball Supplies & Equipment","STATE":"Texas","TIME":"10:12 PM"},{"ID":4786834,"TITLE":"Provide Precor P80 Series...","FULLTITLE":"Provide Precor P80 Series Exercise Equipment","STATE":"South Carolina","TIME":"10:15 PM"},{"ID":4786835,"TITLE":"Smoc\/Fire System Service","FULLTITLE":"Smoc\/Fire System Service","STATE":"Ohio","TIME":"10:16 PM"},{"ID":4786836,"TITLE":"Inductiveley Coupled Plas...","FULLTITLE":"Inductiveley Coupled Plasma Mass Spectrometer","STATE":"Missouri","TIME":"10:21 PM"},{"ID":4786837,"TITLE":"Duperon Spindle Assembly","FULLTITLE":"Duperon Spindle Assembly","STATE":"Michigan","TIME":"10:22 PM"},{"ID":4786838,"TITLE":"Transit Avl\/MDC System","FULLTITLE":"Transit Avl\/MDC System","STATE":"Michigan","TIME":"10:22 PM"},{"ID":4786839,"TITLE":"Narrowbanding Project","FULLTITLE":"Narrowbanding Project","STATE":"Michigan","TIME":"10:22 PM"},{"ID":4786840,"TITLE":"Hot Mix 2012","FULLTITLE":"Hot Mix 2012","STATE":"Kentucky","TIME":"10:24 PM"},{"ID":4786841,"TITLE":"License Paper, Rolls","FULLTITLE":"License Paper, Rolls","STATE":"Kentucky","TIME":"10:24 PM"},{"ID":4786842,"TITLE":"729 DBH sa Data Warehouse...","FULLTITLE":"729 DBH sa Data Warehouse Enhancements","STATE":"Kentucky","TIME":"10:24 PM"},{"ID":4786843,"TITLE":"Conference Accommodations...","FULLTITLE":"Conference Accommodations and Catering for Ehealth Summit","STATE":"Kentucky","TIME":"10:24 PM"},{"ID":4786844,"TITLE":"Uihc Mor CSS Replacement ...","FULLTITLE":"Uihc Mor CSS Replacement & Upgrade of Washer Decontamination Units Phase 1","STATE":"Iowa","TIME":"10:25 PM"},{"ID":4786845,"TITLE":"RFP 12-051 Wireless Insta...","FULLTITLE":"RFP 12-051 Wireless Installation","STATE":"Georgia","TIME":"10:26 PM"},{"ID":4786846,"TITLE":"Dining\/Beverage\/Vending S...","FULLTITLE":"Dining\/Beverage\/Vending Services","STATE":"Florida","TIME":"10:26 PM"},{"ID":4786847,"TITLE":"Relocation of Portable Cl...","FULLTITLE":"Relocation of Portable Classrooms, Term Contract, Term: March 13, 2012 to March 12, 2013 Addendum 1","STATE":"Florida","TIME":"10:26 PM"},{"ID":4786848,"TITLE":"Residential Services for ...","FULLTITLE":"Residential Services for Committed and Detained Youth","STATE":"Colorado","TIME":"10:28 PM"},{"ID":4786849,"TITLE":"Engineering Design Servic...","FULLTITLE":"Engineering Design Services to Provide Plans, Specifications, Bid and Construction Support for East Amador Relief Sewer (Ears) Pump Station City Project no. 112031","STATE":"California","TIME":"10:30 PM"},{"ID":4786851,"TITLE":"GMDSS Suite for Usns Dieh...","FULLTITLE":"GMDSS Suite for Usns Diehl","STATE":"US","TIME":"10:33 PM"},{"ID":4786852,"TITLE":"Steel Wire, Tubing, Angle...","FULLTITLE":"Steel Wire, Tubing, Angle Iron","STATE":"US","TIME":"10:33 PM"},{"ID":4786853,"TITLE":"the Natural History of CM...","FULLTITLE":"the Natural History of CMV-Related Hearing Loss and the Feasibility of CMV Screening as Adjunct to Hearing Screening in the Newborn ? Chimes","STATE":"US","TIME":"10:33 PM"},{"ID":4786854,"TITLE":"Pelican Weapons Case","FULLTITLE":"Pelican Weapons Case","STATE":"US","TIME":"10:33 PM"},{"ID":4786855,"TITLE":"for Sale Government Prope...","FULLTITLE":"for Sale Government Property Standing Timber to be Sold at Francis e. Walter Reservoir, Luzerne County, pa Under Invitation no. DACW65-B-12-01","STATE":"US","TIME":"10:33 PM"},{"ID":4786856,"TITLE":"Brake, Shoe","FULLTITLE":"Brake, Shoe","STATE":"US","TIME":"10:33 PM"},{"ID":4786857,"TITLE":"Nursing Home - Pierre","FULLTITLE":"Nursing Home - Pierre","STATE":"US","TIME":"10:33 PM"},{"ID":4786858,"TITLE":"Special Surveillance Prog...","FULLTITLE":"Special Surveillance Program Operations, Logistics, Training and Packout Basic Ordering Agreements","STATE":"US","TIME":"10:33 PM"},{"ID":4786859,"TITLE":"Fertilizer","FULLTITLE":"Fertilizer","STATE":"Kansas","TIME":"10:37 PM"},{"ID":4786860,"TITLE":"DR Modular X-Ray System","FULLTITLE":"DR Modular X-Ray System","STATE":"Arizona","TIME":"10:51 PM"},{"ID":4786861,"TITLE":"Department of Public Safe...","FULLTITLE":"Department of Public Safety Case Management Records System","STATE":"Arizona","TIME":"10:51 PM"},{"ID":4786862,"TITLE":"Texas a&M University is S...","FULLTITLE":"Texas a&M University is Seeking Bids for Pavement and Road Marking, Painting Services & Supplies","STATE":"Texas","TIME":"10:53 PM"},{"ID":4786863,"TITLE":"Air Handler Replacement","FULLTITLE":"Air Handler Replacement","STATE":"Texas","TIME":"10:53 PM"},{"ID":4786864,"TITLE":"Scott Unit - Install Fire...","FULLTITLE":"Scott Unit - Install Fire Alarm System","STATE":"Texas","TIME":"10:53 PM"},{"ID":4786865,"TITLE":"Texas Natural Gas Vehicle...","FULLTITLE":"Texas Natural Gas Vehicle Grant Program (TNGVGP), Participating Dealers","STATE":"Texas","TIME":"10:53 PM"},{"ID":4786867,"TITLE":"12-03 Athletic Supplies &...","FULLTITLE":"12-03 Athletic Supplies & Equipment","STATE":"Texas","TIME":"10:58 PM"},{"ID":4786868,"TITLE":"RFP no. 2012-20 Developme...","FULLTITLE":"RFP no. 2012-20 Development of a Cultural Arts Strategic Plan and Implementation Guide","STATE":"Texas","TIME":"11:02 PM"},{"ID":4786869,"TITLE":"Pumping Grease Traps & Se...","FULLTITLE":"Pumping Grease Traps & Sewer Lines","STATE":"Texas","TIME":"11:03 PM"},{"ID":4786870,"TITLE":"Plum Fruit Compositional ...","FULLTITLE":"Plum Fruit Compositional Analyses","STATE":"South Carolina","TIME":"11:06 PM"},{"ID":4786871,"TITLE":"Fire\/Scene Tape","FULLTITLE":"Fire\/Scene Tape","STATE":"Ohio","TIME":"11:08 PM"},{"ID":4786872,"TITLE":"Police\/Investigative Plan...","FULLTITLE":"Police\/Investigative Plan Folders","STATE":"Ohio","TIME":"11:08 PM"},{"ID":4786873,"TITLE":"R&P\/Golf Supplies","FULLTITLE":"R&P\/Golf Supplies","STATE":"Ohio","TIME":"11:08 PM"}],"TOTAL":37002,"DAYTOTAL":2758};
	
	function stopBidScroll() {
		jQuery('#tickerbids>div').stop();
	}
	
	function startBidScroll() {
		var bids = jQuery('#tickerbids>div');
		var speed = (bids.height() + parseInt(bids.css('bottom'))) / stats.BIDS.length * 1500;
		bids.animate({bottom: -(bids.height()-140)}, speed, 'linear');
	}
	
	jQuery(function() {
		setInterval(function() {
			jQuery('#clock').html(new Date().toLocaleTimeString());
		},1000);
	
		jQuery('#total').html('<b>' + stats.TOTAL + '</b> open leads');
		jQuery('#daytotal').html('<b>' + stats.DAYTOTAL + '</b> leads added in the last 24 hours');
		var html = '';
		for(var i=0;i < stats.BIDS.length; i++) {
			var r = stats.BIDS[i];
			html = '<div class="tickerbid"><a onmouseout="startBidScroll()" onmouseover="stopBidScroll()" title="'+r.FULLTITLE+'" href="/members/?id=' + r.ID + '&utm_source=ticker&utm_medium=web&utm_content=GA">' + r.TITLE + '<BR>- ' + r.STATE + '</BR></a><div class="tickertime">[' + r.TIME + ' CST]</div></div>' + html;
			//jQuery('#tickerbids').prepend(html);
		}
		jQuery('#tickerbids').append('<div style="position:absolute; bottom:140px">'+html+'</div>');
		startBidScroll();
	});
	
