// JavaScript Document
function dispenseArticles()
{
  var i = 0;
  var arr = new Array();
  var art = null;

    art = new Object(); arr[i++] = art;
    art.title = "FREE-INFO-BAGS-PURSES Are you safe";
    art.page  = "FREE-INFO-BAGS-PURSES.html";
    art.date  = "October 3rd";
  art = new Object(); arr[i++] = art;
    art.title = "Info on protecting yourself from";
    art.page  = "warning_needle_sticking_public.html";
    art.date  = "this growing trend visit now";
  art = new Object(); arr[i++] = art;
    art.title = "drink driving think about help";
    art.page  = "drink-drive.html";
    art.date  = "Please read for your sake to stay safe";    
  art = new Object(); arr[i++] = art;
    art.title = "do not buy saeco";
    art.page  = "do_not_buy_saeco.htm";
    art.date  = "do not buy saeco find out why";
  art = new Object(); arr[i++] = art;
    art.title = "Great links to allsorts of places";
    art.page  = "found_links_page.html";
    art.date  = "new links added regularly";    
  art = new Object(); arr[i++] = art;
    art.title = "Telstra funnies";
    art.page  = "telstra_funnies.html";
    art.date  = "We all may think Telstra is bad but...";     
  art = new Object(); arr[i++] = art;
    art.title = "Making soap How to FREE-INFO";
    art.page  = "making_soap_info_hints_tips_recipe.html";
    art.date  = "Recipes hints and more included";
  art = new Object(); arr[i++] = art;
    art.title = "gccc_council_no_balls";
    art.page  = "gccc_council_no_balls.htm";
    art.date  = "see what council is up to";    
  art = new Object(); arr[i++] = art;
    art.title = "revenge_on_the_telemarketer YOU know you want to";
    art.page  = "revenge_on_the_telemarketer.htm";
    art.date  = "It is not mean just funny";    
  art = new Object(); arr[i++] = art;
    art.title = "Dell Exploding Sparks over Faulty Batteries";
    art.page  = "dell_to_recall_exploding_batteri.htm";
    art.date  = "WOW they really melt batteries";    
  art = new Object(); arr[i++] = art;
    art.title = "Coffee how to make Enjoy High Quality Coffee";
    art.page  = "Coffee%20how%20to%20make%20Enjoy%20High%20Quality%20Coffee.html";
    art.date  = "Coffee info for you";    
  art = new Object(); arr[i++] = art;
    art.title = "To_kids_who_were_born_in";
    art.page  = "to_kids_who_were_born_in.html";
    art.date  = "Think back to when you were young";    
  art = new Object(); arr[i++] = art;
    art.title = "recycle toilet water would you drink it";
    art.page  = "recycle_water.html";
    art.date  = "It is not really bad you already are";    
  art = new Object(); arr[i++] = art;
    art.title = "FOXTEL INFO think you know it all see more";
    art.page  = "FOXTEL_INFO.htm";
    art.date  = "Info on FOXTEL to help";    
       


  if (typeof showbox == "undefined") showbox = true;
  if (typeof showbullets == "undefined") showbullets = false;
  if (typeof showdates == "undefined") showdates = true;
  if (typeof fontface == "undefined") fontface = "helvetica, arial";
  if (typeof fontsize == "undefined") fontsize = "2";
  if (typeof boxcolor == "undefined") boxcolor = "#FFF090";
  if (typeof boxbgcolor == "undefined") boxbgcolor = "#FFFFFF";
  if (typeof boxtextcolor == "undefined") boxtextcolor = "#000090";
  if (typeof boxwidth == "undefined") boxwidth = "450";
  if (typeof articlecount == "undefined")
    articlecount=14; 
  
  if (articlecount>arr.length)
    articlecount=arr.length; 

  var url  = "http://www.tecacentre.net/";
  var ball = url + "ball.gif";
  var bullet = "<td valign='baseline' width='18'><img src='" + ball + "' width='8' height='10' hspace='10'></td>";
  if (showbullets==false) bullet="";

  var style = "";
  if (navigator.appName.indexOf("Netscape") == -1)
  {
    if (typeof linkcolor != "undefined")
      style += "a.dispenser {color:" + linkcolor + "}\n";

    if (typeof linkunderline != "undefined")
      if (linkunderline==true) 
        style += "a.dispenser {text-decoration:underline}\n";
      else
        style += "a.dispenser {text-decoration:none}\n";

    if (typeof linkcolorover != "undefined")
      style += "a.dispenser:hover {color:" + linkcolorover + "}\n"; 

    if (typeof linkunderlineover != "undefined")
      if (linkunderlineover==true) 
        style += "a.dispenser:hover {text-decoration:underline}\n";
      else
        style += "a.dispenser:hover {text-decoration:none}\n";

    if (style != "")
      style = "<style type='text/css'>\n" + style + "</style>\n";
  }

  var str = "<font face='" + fontface + "'>\n";
  str += "<table border='0' cellpadding='0' cellspacing='2' width='" + boxwidth + "'>";
  for (var i=0; i<articlecount; i++)
  {
    str += "<tr>" + bullet + "<td valign='top' width='100%'><font size='" + fontsize + "'>";
    str += "<a class=dispenser href='" + url + arr[i].page + "' target=_blank><b>" + arr[i].title + "</b></a><br></font>";
    if (showdates)
      str += "<font size='1'><em>" + arr[i].date + "</em></font>";
    else
      str += "<font size='1'>&nbsp;</font>"; 
    str += "</td></tr>\n";
  }
  str += "</td></tr></table>";

  if (showbox) 
    str = "<table width='" + boxwidth + "' border='0' cellspacing='1' bgcolor='" + boxcolor + "'> <tr> <td align='center'><font face='" + fontface + "' color='" + boxtextcolor + "' size='" + fontsize + "'><strong>Helpful links, Advertising &amp; Tips For YOU...<a href='http://tecacentre.net'>BY tecacentre.net</a></strong></font></td> </tr> <tr> <td bgcolor='" + boxbgcolor + "' width='100%'>\n" + str + "\n</td></tr></table>\n";

  str = style + str;

  document.writeln(str); 
  }
