function loadNews(){
// the news data
var arrNews = new Array();
arrNews[0] = new Array("854", "Library Board to discuss libraries weathering recent storm and other issues", "Library Board to discuss libraries weathering recent storm and other issues", "<P><B>TACOMA</B> – At its February meeting the Pierce County Library System’s Board of Trustees will talk about a topic that has been paramount for the region—the recent storm. Specifically they will hear how the Library System served customers during the recent snow and ice storm. In addition the Board will get an update about borrowing statistics from people who live outside the Library’s service area, as well as discuss other issues. <B>The Board of Trustees will meet at the Library’s Processing and Administrative Center, 3005 112th St. E., in Tacoma, on Wednesday, Feb. 8, from 3:30 to 6 p.m. </B></P>", "", "False", "5407", "/files/library/02-01-2012.pdf", "newsrelease");
arrNews[1] = new Array("853", "Bonney Lake Pierce County Library closed: Feb. 13-26 ", "Bonney Lake Pierce County Library closed: Feb. 13-26 ", "<P><B>TACOMA –</B> To bring customers improved service, <A href=\"/branches/north-east-county/bonney-lake/Default.htm\"><B>Bonney Lake Pierce County Library</B></A>, located at <B>18501 90th St. E.</B>, will be closed <B>Monday, Feb. 13 – Sunday, Feb. 26.</B></P>", "", "False", "5386", "/files/library/01-30-2012.pdf", "newsrelease");
arrNews[2] = new Array("850", "Craft valentine gifts and cards at Pierce County Library System", "Craft valentine gifts and cards at Pierce County Library System", "<P><B>TACOMA</B> – Just in time for Valentine’s Day, crafters of all skill levels will lean to create special gifts and greetings during free events at <B>Pierce County Library System</B>. </P>", "", "False", "5381", "/files/library/01-26-2012.pdf", "newsrelease");
arrNews[3] = new Array("851", "Local author to speak and sign books at University Place Pierce County Library", "Local author to speak and sign books at University Place Pierce County Library", "<P><B>TACOMA</B> – Book lovers will meet a local author during a free event at <B>University Place Pierce County Library</B><B>, 3609 Market Place W., Suite 100</B>, on <B>Thursday, Feb. 9</B>, at <B>7 p.m.</B></P>", "", "False", "5382", "/files/library/01-26-2012a.pdf", "newsrelease");

var newsItems = arrNews.length;
// get the location on the page to load the rivet bit
var handle=document.getElementById("whats_new");
if (handle) 
{
var content = "";
content += "<ul>";
for (i=0; i<arrNews.length; i++)
{
if (arrNews[i][4]=='' && arrNews[i][6]==0)
{
content += "<li>" + arrNews[i][2] + "&nbsp;<a href=\"news.aspx?id=1&news_id=" + arrNews[i][0] + "&type=" + arrNews[i][8] + "\">More &raquo;</a></li>";
}
else
{
if (arrNews[i][6]>0)
{
content += "<li>" + arrNews[i][2] + "&nbsp;<a target=\"_blank\" href=\""+arrNews[i][7]+"\">More &raquo;</a></li>";
}
else
{
content += "<li>" + arrNews[i][2] + "&nbsp;<a href=\""+arrNews[i][4]+"\"" ;
if (arrNews[i][5]=='True')
{
content += "target=\"_blank\"";
}
content +=">More &raquo;</a></li>";
}
}
}
content += "</ul><a href=\"/news.aspx?id=1&type=newsrelease\" class=\"more_link\">View All &raquo;</a>";
handle.innerHTML = content;
}
}

