<?php
	ob_start();
	session_start();
		if($_SESSION['lang']=='')
{
	$_SESSION['lang'] = "en";
}	
	include 'languages/lang_liveauction_'.$_SESSION['lang'].'.php';
	include 'languages/lang_common_'.$_SESSION['lang'].'.php';
 	include("include/db.inc.php"); 
 	include("include/bit_functions.inc.php");
	include("include/functions.php");
	 include("include/pager.php");
	 include("include/meta_functions.php");
   $db1=new db;
   $db1->open();
  mysql_query("SET NAMES 'utf8'");  
  $currency_symbol_new=symbol_currency();
   $uid=$_SESSION['uid'];
 
   $myres=remainbid1();	
   $pids="";
   
	$jsqury1="SELECT pid,cid,pname,brand,price,bid_price,thumbnail,bider_id,description,type1 FROM t123go_product where 
	start_time <= DATE_ADD(now(), INTERVAL 72 HOUR) and end_time > DATE_SUB(now(), INTERVAL 2 MINUTE) and status='1' order by end_time limit 3 ";
	$jsres1=mysql_query($jsqury1);
 	while($jsrec1=mysql_fetch_array($jsres1))
	{
	$pids.=$jsrec1['pid'].",";
	$_SESSION['new'][$jsrec1['pid']]=$jsrec1['bid_price'];
	}
	$homeres1=mysql_query($jsqury1);
	
	
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<?=_BASEURL_?>/" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
<?=_TITLE_?>
High Discount on
<?=meta_title($pids)?>
</title>
<meta name="description" content="<?=meta_description($pids)?>" />
<meta name="keywords" content="<?=meta_keyword($pids)?>" />
<META Http-Equiv="Cache-Control" Content="no-cache">
<META Http-Equiv="Pragma" Content="no-cache">
<META Http-Equiv="Expires" Content="0">
<meta name="author" content="Info-Tech Ltd.">
<meta name="publisher" content="Info-Tech Ltd.">
<meta name="copyright" content="Money Auctions | Powered by Money Auctions">
<meta name="page-topic" content="Service">
<meta name="audience" content="all">
<meta http-equiv="content-language" content="us">
<meta name="Language" content="english">
<meta name="robots" content="index,follow">
<meta name="revisit-after" content="3">
<link href="<?=_BASEURLCSSNEW_?>/how_it.css" rel="stylesheet" type="text/css" />
<link href="<?=_BASEURLCSSNEW_?>/index.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 6]><style type="text/css" media="screen">/* <![CDATA[ */ @import url(<?=_BASEURLCSSNEW_?>/ie6.css?0:102290); /* ]]> */</style><![endif]-->
<!--[if gte IE 7]><style type="text/css" media="screen">/* <![CDATA[ */ @import url(<?=_BASEURLCSSNEW_?>/ie7.css?0:99961); /* ]]> */</style><![endif]-->
<script src="<?=_BASEURL_?>/js/home_counter.js" type="text/javascript"></script>
<? include("timer.js.php");?>
</head>
<body onload="home_detail();">
<div id="container">
  <? include("header.php");?>
  <div id="product_detail" style="background-color:#FFFFFF">
    <?
  $parr=explode(",",$pids);
  echo "<form name='frm'>";
      for($y=0; $y < count($parr)-1; $y++)
   {
   
      $pid=$parr[$y];
	  $diff=mysql_fetch_array(mysql_query("SELECT TIME_TO_SEC( TIMEDIFF( end_time, now( ))),
	  bid_price,bider_id FROM t123go_product where pid='$pid'")) ;
	  
	  ?>
    <input type="hidden" name="price_<?=$pid?>" value="<?=$diff[bid_price]?>" />
    <input type="hidden" name="bider_<?=$pid?>" value="<?=get_uname($diff[bider_id])?>" />
    <input type="hidden" name="diff_<?=$pid?>" value="<?=$diff[0]?>" />
    <input type="hidden" name="new_<?=$pid?>" value="0" />
    <?
   }	
	echo "</form>";  
 ?>
  </div>
  <div id="special_bids">
    <div class="t2">
      <?
	$i=1;
 while($myrow=mysql_fetch_array($homeres1))
{

?>
      <div id="about_n_end">
        <div class="imagex">
          <div class="allp5px"><a href="<?=get_cat_name($myrow['cid']);?>/<?=str_replace(" ","-",trim($myrow['pname']))?>/auction/<?=$myrow['pid']?>" class="product_title">
            <?=image_130($myrow['pid']); ?>
            </a></div>
        </div>
        <div class="detailx">
          <div class="detail"> <a href="<?=get_cat_name($myrow['cid']);?>/<?=str_replace(" ","-",trim($myrow['pname']))?>/auction/<?=$myrow['pid']?>" class="product_title_or">
            <?=substr($myrow['pname'],0,19);?>
            </a>
            <div class="normaltextlightgrey">
              <?=substr($myrow['brand'],0,80);?>
            </div>
          </div>
          <div style="display:none" id="maximumbid_<?=$myrow['pid']?>" class="highestbid"></div>
          <div class="pricex">
            <div class="allp5px">
              <div  id="productprice_<?=$myrow[pid]?>" class="normaltextorangebold19">
                <?=$currency_symbol_new?>
                <span  id="price_index_page_<?=$myrow['pid']?>">
                <?
		  echo $myrow['bid_price'];
		?>
                </span> </div>
              <div id="productcounter_<?=$myrow[pid]?>" class="normaltextblackbold19">
                <div id="counter_index_page_<?=$myrow['pid']?>"></div>
              </div>
            </div>
          </div>
        </div>
        <div id="winner_index_page_<?=$myrow['pid']?>" class="submitbidout sfl"></div>
        <div class="button_bgf">
          <div  id="button_finished_index_page_<?=$myrow['pid']?>" style="display:none;" >
            <?  if($uid==''){?>
            <a href="<?=_BASEURL_?>/login/index.html">
            <input type="button" name="bid"  value=" " class="inputsubmitbid"/>
            <? } else if($myres<=0){?>
            <input type="button" name="bid" onclick="alert('<?=_UR_NTABL_BDH_?>')" value="  " class="inputsubmitbid"/>
            <?  } else {?>
            <input type="button" name="bid" onclick="product_bid('<?=$myrow[pid]?>'); return false;" value="" style="margin-top:-1px;" class="inputsubmitbid"/>
            <? }?>
            </a> </div>
        </div>
      </div>
      <? $i++;}?>
    </div>
  </div>
  <div id="new_to_gr">
    <div class="new_to_gr">
      <div><img src="<?=_BASEURLHOWITWORKS_?>/new_to.gif" alt="new to greenfair" /></div>
    </div>
    <div class="amzer">
      <div class="allp5px">
        <p class="normaltextredbold11_profile">money-auctions.com is an extraordinary entertainment shopping platform with a slight twist. Our Shopping engine will allow you to engage in a nontraditional auction, while contributing to our environments health.  Once the seed is planted and you get the hang of things, we are certain you will enjoy them.</p>
        <p>Here is some key points that will you better understand our auctions:</p>
        <p> 1. Bidding increments on our auctions will vary and highlighted in each listing.<br />
          2. All of our auctions have no reserve.<br />
          3. The price will only go up a fraction of the cost which is specified in each listing.<br />
          4. In the final moments of our auctions the time will be extended if a bid is entered by any number of seconds which is specified in each listing.<br />
          5. To participate in our auctions you will need <a href="<?=_BASEURL_?>/faq_buyers.php">Green Credits</a> since there is a small charge for each bid.
          <br />
          6. With each Green Credit and our Sponsors support we are able to offer such amazing bargains.</p>
      </div>
    </div>
  </div>
  <div id="box">
    <div class="box">
      <div class="allp10px">
        <div class="lefty">
          <h1>Now let us show you how it works.</h1>
          <div class="nos">
            <div class="no_no"><img src="<?=_BASEURLHOWITWORKS_?>/no1.gif" alt="1" /></div>
            <div class="textual">If you look over to the right hand side you will see an auction that is currently live and the bidding has reached US$0.53</div>
          </div>
          <div class="nos">
            <div class="no_no"><img src="<?=_BASEURLHOWITWORKS_?>/no2.gif" alt="2" /></div>
            <div class="textual">Now here you will notice that there is just 48 seconds remaining.</div>
          </div>
        </div>
        <div class="righty">
          <div class="left_im"><img src="<?=_BASEURLHOWITWORKS_?>/timeremaining_look.png" width="134" height="86" alt="time remaining"></div>
          <div class="center_im"><img src="<?=_BASEURLHOWITWORKS_?>/currentbid_look.png" width="148" height="80" alt="current bid">
            <div ><img src="<?=_BASEURLHOWITWORKS_?>/currentbid.png" width="148" height="195" alt="how it works"></div>
          </div>
          <div class="right_im"><img src="<?=_BASEURLHOWITWORKS_?>/product.jpg" width="277" height="195" alt="product"></div>
        </div>
      </div>
    </div>
  </div>
  <div id="box_1">
    <div class="box">
      <div class="allp10px">
        <div class="lefty">
          <h1>Here’s what happens when you bid.</h1>
          <div class="nos">
            <div class="no_no"><img src="<?=_BASEURLHOWITWORKS_?>/no3.gif" alt="3" /></div>
            <div class="textual">Now if you notice, the price has gone up by US $1.70 and you are now the highest bidder (hooray)</div>
          </div>
          <div class="nos">
            <div class="no_no"><img src="<?=_BASEURLHOWITWORKS_?>/no4.gif" alt="4" /></div>
            <div class="textual">And the time remaining has been reset by 30 seconds </div>
          </div>
          <div class="nos">
            <div class="no_no"><img src="<?=_BASEURLHOWITWORKS_?>/no5.gif" alt="5" /></div>
            <div class="textual">By placing this Bid you are the High Bidder and your green bank will have one less Green Credit.  </div>
          </div>
        </div>
        <div class="righty">
          <div class="left_im"><img src="<?=_BASEURLHOWITWORKS_?>/timeremaining_bid.png" width="131" height="78" alt="time remaining"></div>
          <div class="center_im"><img src="<?=_BASEURLHOWITWORKS_?>/currentbid_bid.png" width="151" height="85" alt="current bid">
            <div><img src="<?=_BASEURLHOWITWORKS_?>/green_fair_howit_works_page_23.png" width="151" height="191" alt="how it works"></div>
          </div>
          <div class="right_im"><img src="<?=_BASEURLHOWITWORKS_?>/green_fair_howit_works_page_24.jpg" width="277" height="191" alt="how it works"></div>
        </div>
      </div>
    </div>
  </div>
  <div id="box_2">
    <div class="box">
      <div class="allp10px">
        <div class="lefty">
          <h1>Winning the Auction. </h1>
          <div class="nos">
            <div class="no_no"><img src="<?=_BASEURLHOWITWORKS_?>/no6.gif" alt="6" /></div>
            <div class="textual">The Current Bid is $2.23 which can only mean a fabulous deal if no one else bids within the last 48 seconds.</div>
          </div>
          <div class="nos">
            <div class="no_no"><img src="<?=_BASEURLHOWITWORKS_?>/no7.gif" alt="7" /></div>
            <div class="textual">Congratulations, you have just won your first auction.</div>
          </div>
        </div>
        <div class="righty">
          <div class="left_im"><img src="<?=_BASEURLHOWITWORKS_?>/youwon.png" width="130" height="82" alt="how it works"></div>
          <div class="center_im"><img src="<?=_BASEURLHOWITWORKS_?>/currentbid_win.png" width="152" height="84" alt="current bid">
            <div><img src="<?=_BASEURLHOWITWORKS_?>/green_fair_howit_works_page_37.png" width="152" height="192" alt="how it works"></div>
          </div>
          <div class="right_im"><img src="<?=_BASEURLHOWITWORKS_?>/product.jpg" width="277" height="195" alt="how it works"></div>
        </div>
      </div>
    </div>
  </div>
  <div id="box_3">
    <div class="box">
      <div class="allp10px">
        <div class="lefty">
          <h1>Keeping track of all Bid history.</h1>
          <div class="nos">
            <div class="no_no"><img src="<?=_BASEURLHOWITWORKS_?>/no8.gif" alt="8" /></div>
            <div class="textual">Our Bid History Panel will give you a fair indication of who is bidding.</div>
          </div>
          <div class="nos">
            <div class="no_no"><img src="<?=_BASEURLHOWITWORKS_?>/no9.gif" alt="9" width="22" height="22" /></div>
            <div class="textual">The Bids and amount that has been placed.</div>
          </div>
          <div class="nos">
            <div class="no_no"><img src="<?=_BASEURLHOWITWORKS_?>/no10.gif" alt="10" /></div>
            <div class="textual">You will notice to type of bids Sole Bids which are single bids and Green-bots which are agents set up by other users.</div>
          </div>
        </div>
        <div class="righty">
          <div class="left_im"><img src="<?=_BASEURLHOWITWORKS_?>/green_fair_howit_works_page_51.png" width="130" height="86" alt="how it works"></div>
          <div class="center_im">
            <div class="toc"><img src="<?=_BASEURLHOWITWORKS_?>/greenbot_history.png" width="155" height="79" alt="green bot history"></div>
            <div><img src="<?=_BASEURLHOWITWORKS_?>/green_fair_howit_works_page_49.png" width="152" height="192" alt="bid hostory"></div>
          </div>
          <div class="right_im"><img src="<?=_BASEURLHOWITWORKS_?>/green_fair_howit_works_page_50.png" width="277" height="192" alt="green history"></div>
        </div>
      </div>
    </div>
  </div>
  <div id="box_4">
    <div class="box">
      <div class="allp10px">
        <div class="lefty">
          <h1>Green-Bot, your personal agent.</h1>
          <div class="nos">
            <div class="no_no"><img src="<?=_BASEURLHOWITWORKS_?>/no11.gif" alt="11" /></div>
            <div class="textual">If you need to step away from your computer, you can ask our friendly Green-Bot to bid on your behalf, so you will never need to miss out on a bargain. A Green-Bot will only work within the last 10 seconds of any given auction. You can book your Green-Bot on the listing page of your desired product.</div>
          </div>
          <div class="nos">
            <div class="no_no"><img src="<?=_BASEURLHOWITWORKS_?>/no12.gif" alt="12" /></div>
            <div class="textual">You reserve you amount range and number of bids and book it, Green-Bot will start working.</div>
          </div>
        </div>
        <div class="righty">
          <div class="left_im">&nbsp;</div>
          <div class="center_im"><img src="<?=_BASEURLHOWITWORKS_?>/green_fair_howit_works_page_63.png" width="152" height="192" alt="bot history"></div>
          <div class="right_im">
            <div class="toc"><img src="<?=_BASEURLHOWITWORKS_?>/greenbot_names.png" width="148" height="82" alt="green bot, an automatic bidder"></div>
            <div><img src="<?=_BASEURLHOWITWORKS_?>/green_fair_howit_works_page_64.png" width="277" height="192" alt="how it works"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <? include("footer.php");?>
</div>
</body>
</html>
