<!--
c_img=[
"emagboxe",
"emagmobile",
"emagfoto", 
"emaglaptop", 
"emaghdd", 
"script1", 
"script2", 
"script3"]; // lista cu imaginile
c_title=[
"Boxe emag.ro",
"Mobile emag.ro",
"Foto emag.ro", 
"Laptops emag.ro", 
"Hdd emag.ro"]; // lista cu title la imagini
c_href=[
"http://profitshare.emag.ro/click.php?ad_client=febd6d7830a7ad86940f7299f75440c1&&add_id=6481&redirect=",
"http://profitshare.emag.ro/click.php?ad_client=febd6d7830a7ad86940f7299f75440c1&&add_id=6481&redirect=",
"http://profitshare.emag.ro/click.php?ad_client=febd6d7830a7ad86940f7299f75440c1&&add_id=6481&redirect=",
"http://profitshare.emag.ro/click.php?ad_client=febd6d7830a7ad86940f7299f75440c1&&add_id=6481&redirect=",
"http://profitshare.emag.ro/click.php?ad_client=febd6d7830a7ad86940f7299f75440c1&&add_id=6481&redirect=",
"http://profitshare.emag.ro/get_ads.php?zone_id=5739",
"http://profitshare.emag.ro/get_ads.php?zone_id=5739",
"http://profitshare.emag.ro/get_ads.php?zone_id=11740"];
c_extension= ["jpg", "jpg", "jpg", "jpg", "jpg"];
img_nr = c_img.length; // numarul de imagini

function randomNumber(limit){
  return Math.floor(Math.random()*limit);
}

function random_imagine() {
  i= randomNumber(img_nr);
  if (c_img[i].lastIndexOf("script") >= 0 ) {
    document.write('<script type="text/javascript" src="'+c_href[i]+'"></script>');
  } else {
    document.write('<a href="'+c_href[i]+'" target="_blank" title="'+c_title[i]+'"><img height="160" src="img/'+c_img[i]+'.'+c_extension[i]+'" width="213" class="poza" alt="'+c_title[i]+'"></a>');
  }
}

function MakeArray(size) {
  this.length = size;
  for(var i = 1; i <= size; i++) {
    this[i] = "";
  }
  return this;
}

function data () {
  var now = new Date();
  var month = now.getMonth();
  var date = now.getDate();
  var day = now.getDay();
  Day = new MakeArray(7);
  Day[0]="Duminica";
  Day[1]="Luni";
  Day[2]="Marti";
  Day[3]="Miercuri";
  Day[4]="Joi";
  Day[5]="Vineri";
  Day[6]="Sambata";
  Month = new MakeArray(12);
  Month[0]="ianuarie";
  Month[1]="februarie";
  Month[2]="martie";
  Month[3]="aprilie";
  Month[4]="mai";
  Month[5]="iunie";
  Month[6]="iulie";
  Month[7]="august";
  Month[8]="septembrie";
  Month[9]="octombrie";
  Month[10]="noiembrie";
  Month[11]="decembrie";

  var timeValue = "";
  timeValue += (Day[day]) + " - " + date + "   " + (Month[month]);
  document.write(timeValue);
}


//-->