function Headline(title, url, target)
{
   this.title = title;
   this.url = url;
   this.target = target;
}

var title1 = new Array(), title2 = new Array(), title3 = new Array(), title4 = new Array(), title5 = new Array();
title1[0] = new Headline('填寫移民資格評估表', '../contact/immigrationForm.html', '_self');
title2[0] = new Headline('訂閱加瑜電子報', '../contact/order.html', '_self');
title3[0] = new Headline('關於加瑜', '../about/about.html', '_self');
title4[0] = new Headline('聯絡我們', '../contact/contact.html', '_self');
title5[0] = new Headline('回首頁', '../index.html', '_self');
function news_contact()
{
   var today = new Date();
   var contact = '';
   var size1 = title1.length, size2 = title2.length, size3 = title3.length, size4 = title4.length, size5 = title5.length;

   if (size1 > 0)
   {
      var i = today.getSeconds() % size1;
      contact += '<a href="' + title1[i].url + '" target="' + title1[i].target + '">' + title1[i].title + '</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
   }

   if (size2 > 0)
   {
      var i = today.getSeconds() % size2;
      contact += '<a href="' + title2[i].url + '" target="' + title2[i].target + '">' + title2[i].title + '</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
   }

   if (size3 > 0)
   {
      var j = today.getSeconds() % size3;
      contact += '<a href="' + title3[j].url + '" target="' + title3[j].target + '">' + title3[j].title + '</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
   }

   if (size4 > 0)
   {
      var j = today.getSeconds() % size4;
      contact += '<a href="' + title4[j].url + '" target="' + title4[j].target + '">' + title4[j].title + '</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
   }

   if (size5 > 0)
   {
      var j = today.getSeconds() % size5;
      contact += '<a href="' + title5[j].url + '" target="' + title5[j].target + '">' + title5[j].title + '</a>&nbsp;&nbsp;';
   }

   return contact;
}
