function RefreshBox(id)
{
	$.get("index.php?module=Bids&pname=getBidStatus&bID=" + id,"pmode=empg",function(msg){ 

		ex = msg.split("|");
		arrleftTime[id] = ex[2];
		
		$('#leftOffers_' + id).html(ex[1]);
		$('#bottom_' + id).attr('class', 'bid_hp_bot bidBox_' + ex[0]);
		
		// Close Soon And today Bottoms
		if (ex[3] == "soon")
		{
			$('#bottom_' + id).addClass("closeSoon");
		}
		else if (ex[3] == "today")
		{
			$('#bottom_' + id).addClass("closeToday");
		}
		
		if (ex[0] == "closed")
		{
			$('#AddOffer').hide();
			document.getElementById("counter_" + id).innerHTML = "סגור";
		}
		
	} );

}


function offerSend()
{
	if (isCardSaved)
	{
		//$('#frmStepBBox form').attr('action', strAction);
		document.location.replace(strAction + '&autoCharge=true');
	}
	else
	{
		$('#frmStepBBox form').attr('onsubmit', '');
		$('#frmStepBBox form').submit(function() { submitFormCheakErrorsupdOffer(); return false; });
		$('#frmStepBBox form').submit();
	}
}

$(document).ready(function() {

	$('.bidPic').hover(function() {
	  $(this).animate({
						 
		opacity: 0.75
						 
	  }, 100, function() {
		
	  });
	});
	
	$('.bidPic').hover(
		function() {
			$(this).animate({ opacity: 0.50 }, 200, function() {}).animate({ opacity: 1.00 }, 200, function() {});
		}, function() {
			$(this).animate({ opacity: 1 }, 300, function() {});
		})
	});