/* PersonnelToday.com News Syndication Service
 *
 * Copyright (c) Reed Business Information. All Rights Reserved.
 *
 * For information and terms and conditions for the use of this
 * service please visit:
 *    http://www.personneltoday.com/
 *
 * This service was developed by Gyre Technology Limited:
 *    http://www.gyre.co.uk/
 */
 
function Story (h, d, u) {
   // Story class
   this.headline    = h;
   this.description = d;
   this.url         = u;
}
function showNews(s, l) {
   // returns String.
   var strReturn = "";
   // is noOfStories within an OK range?
   if ( (10 < noOfStories) || (noOfStories < 3) ) // bug in some browsers means we should always use the '<' operator when pos.
      noOfStories = 5;
   // is showDescription an OK value?
   if ( (showDescription != true) && (showDescription != false) )
      showDescription = true;
   // is showPublishDate an OK value?
   if ( (showPublishDate != true) && (showPublishDate != false) )
      showPublishDate = true;
   if (showPublishDate == true)
      strReturn  += '<DIV class="PTNEWSlastupdated">Last updated: ' + l + '</div>';
   for (var i = 0; i < s.length; i++) {
      strReturn  += '<DIV class="PTNEWSstory"><span class="PTNEWSheadline"><a target="ptod" href="' + s[i].url + '">' + s[i].headline + "</a>" + '</span>';
      if (showDescription == true) {
         strReturn  += '<span class="PTNEWSdescription">' + s[i].description + '</span>';
      }
      strReturn += '</div>';
      if( i+1 == noOfStories )
         break;
   }
   return strReturn;
}
var noOfStories = 5;
var showDescription = true;
var showPublishDate = true;
var stories = new Array();
var lastUpdated;
var story;

lastUpdated = 'Tue, 9 Feb 2010 20:00:01 GMT';
story = new Story('Paid holiday and sick leave guidance issued by government', 'Paid holiday and sick leave guidance has been published by the government after two major court rulings last year.', 'http://www.personneltoday.com/Articles/Article.aspx?feed=rss&liArticleID=54072');
stories.push(story);

story = new Story('BBC expenses details published include 11 HR chiefs', 'The BBC has published the latest expenses details of its most senior staff, including 11 HR chiefs.', 'http://www.personneltoday.com/Articles/Article.aspx?feed=rss&liArticleID=54071');
stories.push(story);

story = new Story('BMW to shed 100 jobs at its Mini plant in Swindon', 'Up to 100 jobs look set to go at BMW´s Mini plant in Swindon.', 'http://www.personneltoday.com/Articles/Article.aspx?feed=rss&liArticleID=54070');
stories.push(story);

story = new Story('MPs want 2:2 minimum degree for teaching career, but prefer MA', 'Entry requirements for teacher training in England are too low, a Commons education select committee has said.', 'http://www.personneltoday.com/Articles/Article.aspx?feed=rss&liArticleID=54065');
stories.push(story);

story = new Story('Pension funds body NAPF calls for bonus restraint', 'The National Association of Pension Funds (NAPF) will today launch a new governance code, urging pension funds and other institutional investors to promote better standards.', 'http://www.personneltoday.com/Articles/Article.aspx?feed=rss&liArticleID=54063');
stories.push(story);

story = new Story('Tribunal rules firm’s move to ‘zero hours’ coontracts is unfair dismissal', 'Staff at a Humberside car company have won an unfair dismissal case, after objecting to the introduction of a "zero hours" working pattern.', 'http://www.personneltoday.com/Articles/Article.aspx?feed=rss&liArticleID=54062');
stories.push(story);

story = new Story('Kraft sticks to Cadbury plan to close Keynsham plant despite pledge to save it', 'Workers at Cadbury´s Somerdale plant at Keynsham, near Bristol, are at risk of losing their jobs, despite new owner Kraft´s earlier pledge to keep the factory open.', 'http://www.personneltoday.com/Articles/Article.aspx?feed=rss&liArticleID=54061');
stories.push(story);

story = new Story('Met Commander Ali Dizaei jailed for four years', 'Metropolitan police commander Ali Dizaei has been jailed for four years after been convicted of falsely arresting a man.', 'http://www.personneltoday.com/Articles/Article.aspx?feed=rss&liArticleID=54060');
stories.push(story);

story = new Story('Twice as many prison officers as prisoners accused of racism', 'Prison officers are more than twice as likely to be reported for racism as prisoners, according to the latest government figures.', 'http://www.personneltoday.com/Articles/Article.aspx?feed=rss&liArticleID=54059');
stories.push(story);

story = new Story('HR jobs market grows ´substantially´ as hiring trend returns', 'The HR jobs market has once again grown "pretty substantially" following a long period of decline during the recession, a study of online vacancies has revealed.', 'http://www.personneltoday.com/Articles/Article.aspx?feed=rss&liArticleID=54058');
stories.push(story);

/* End of news feed */
