function loadXMLs(str) 
	{
	try //Internet Explorer
	  {
	  xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
	  xmlDoc.async="false";
	  xmlDoc.loadXML(str);
	  return(xmlDoc); 
	  }
	catch(e)
	  {
	  try //Firefox, Mozilla, Opera, etc.
		{
		parser=new DOMParser();
		xmlDoc=parser.parseFromString(str,"text/xml");
		return(xmlDoc);
		}
	  catch(e) {alert(e.message)}
	  }
	return(null);
	}
xmlstr='<rss version="2.0"> <channel> <title>New Media Age - Subscription stories</title> <link>http://www.nma.co.uk</link> <description>http://www.nma.co.uk</description> <image> <url>http://www.nma.co.uk/magazine/graphics/logo.png 					</url> <title></title> <link>http://www.nma.co.uk</link> </image> <item> <title>Rob Horler, Carat</title> <link>http://www.nma.co.uk/features/profiles/rob-horler-carat/3010702.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/rob-horler-carat/3010702.article</guid> <description>With the traditional agency business model starting to collapse, Carat UK MD Rob Horler is drawing on his digital advertising past to transform the modern media agency</description> <pubDate>Thu, 4 Mar 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: Virgin Racing uses digital to revitalise Formula 1</title> <link>http://www.nma.co.uk/news/cover-story-virgin-racing-uses-digital-to-revitalise-formula-1/3010604.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-virgin-racing-uses-digital-to-revitalise-formula-1/3010604.article</guid> <description>The Formula 1 industry is turning to digital media to attempt to reinvigorate the sport’s reputation ahead of the start of the 2010 season.</description> <pubDate>Thu, 4 Mar 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: Unilever to use social media to aid product development</title> <link>http://www.nma.co.uk/news/cover-story-unilever-to-use-social-media-to-aid-product-development/3010319.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-unilever-to-use-social-media-to-aid-product-development/3010319.article</guid> <description>Unilever is planning to create bespoke social networks across its brands to involve consumers in its product development process.</description> <pubDate>Thu, 25 Feb 2010 00:00 GMT</pubDate> </item> <item> <title>Kenneth Estenson, CNN.com</title> <link>http://www.nma.co.uk/features/profiles/kenneth-estenson-cnncom/3010346.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/kenneth-estenson-cnncom/3010346.article</guid> <description>CNN.com’s VP Kenneth Estenson is in Europe to explore how the news service can broaden its youth appeal, which includes a tie-up video site VBS.tv alongside moves into social media</description> <pubDate>Thu, 25 Feb 2010 00:00 GMT</pubDate> </item> <item> <title>Catherine Mullen, Discovery Networks</title> <link>http://www.nma.co.uk/features/profiles/catherine-mullen-discovery-networks/3010132.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/catherine-mullen-discovery-networks/3010132.article</guid> <description>Discovery Networks is launching an online encyclopedia combining trusted content from across the brand’s media. Catherine Mullen explains why now is the perfect time</description> <pubDate>Thu, 18 Feb 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: Facebook challenges Google for ad spend</title> <link>http://www.nma.co.uk/news/cover-story-facebook-challenges-google-for-ad-spend/3010037.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-facebook-challenges-google-for-ad-spend/3010037.article</guid> <description>Google’s share of direct response ad spend is under threat from Facebook as brands and agencies commit to the social network as a viable advertising channel.</description> <pubDate>Thu, 18 Feb 2010 00:00 GMT</pubDate> </item> <item> <title>Mike Hoban, Directgov</title> <link>http://www.nma.co.uk/features/profiles/mike-hoban-directgov/3009854.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/mike-hoban-directgov/3009854.article</guid> <description>Bringing the full range of government services under one umbrella is no small task, but Directgov’s Mike Hoban is confident the results will benefit state and public alike</description> <pubDate>Thu, 11 Feb 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: Online video struggles with fragmented ad model</title> <link>http://www.nma.co.uk/news/cover-story-online-video-struggles-with-fragmented-ad-model/3009763.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-online-video-struggles-with-fragmented-ad-model/3009763.article</guid> <description>The online industry has moved to boost the embryonic video-on-demand market by reducing ad rates and rolling out standardised media buying.</description> <pubDate>Thu, 11 Feb 2010 00:00 GMT</pubDate> </item> <item> <title>Lee Baker, AOP</title> <link>http://www.nma.co.uk/features/profiles/lee-baker-aop/3009571.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/lee-baker-aop/3009571.article</guid> <description>The Association of Online Publishers’ new director Lee Baker wants the trade body to play a bigger role in how the digital content industry develops, beginning with new members</description> <pubDate>Thu, 4 Feb 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: Common ad currency comes to mobile</title> <link>http://www.nma.co.uk/news/cover-story-common-ad-currency-comes-to-mobile/3009593.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-common-ad-currency-comes-to-mobile/3009593.article</guid> <description>Advertisers can now access the first comprehensive data on consumer use of the mobile internet.</description> <pubDate>Thu, 4 Feb 2010 00:00 GMT</pubDate> </item> <item> <title>Sarah Beeny</title> <link>http://www.nma.co.uk/features/profiles/sarah-beeny/3009227.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/sarah-beeny/3009227.article</guid> <description>Sarah Beeny isn’t just expert at developing property but also websites, enthused by the internet’s ability to open markets to the general public, an attitude she wishes others took</description> <pubDate>Thu, 28 Jan 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: Media buyers give cautious welcome to arrival of SeeSaw</title> <link>http://www.nma.co.uk/news/cover-story-media-buyers-give-cautious-welcome-to-arrival-of-seesaw/3009153.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-media-buyers-give-cautious-welcome-to-arrival-of-seesaw/3009153.article</guid> <description>Media buyers have expressed cautious optimism over the much-anticipated launch of SeeSaw, the online video-on-demand site from broadcaster Arqiva, which launched in beta on Tuesday.</description> <pubDate>Thu, 28 Jan 2010 00:00 GMT</pubDate> </item> <item> <title>Patrick Walker, YouTube</title> <link>http://www.nma.co.uk/features/profiles/patrick-walker-youtube/3008947.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/patrick-walker-youtube/3008947.article</guid> <description>That video rights holders now perceive YouTube as less of a threat and more of a revenue opportunity is in large measure due to its director of partnerships Patrick Walker</description> <pubDate>Thu, 21 Jan 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: Hunt sets out terms for digital industry</title> <link>http://www.nma.co.uk/news/cover-story-hunt-sets-out-terms-for-digital-industry/3008848.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-hunt-sets-out-terms-for-digital-industry/3008848.article</guid> <description>A Conservative government will ensure a light-touch regulatory environment to enable digital media businesses to thrive, promised Shadow Secretary for Culture, Media and Sport Jeremy Hunt.</description> <pubDate>Thu, 21 Jan 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: Coke drops campaign sites in favour of social media</title> <link>http://www.nma.co.uk/news/cover-story-coke-drops-campaign-sites-in-favour-of-social-media/3008538.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-coke-drops-campaign-sites-in-favour-of-social-media/3008538.article</guid> <description>Coca-Cola and Unilever are shifting their digital focus away from traditional campaign sites and towards community platforms, such as Facebook and YouTube, as social media begins to dictate their marketing activity in 2010.</description> <pubDate>Thu, 14 Jan 2010 00:00 GMT</pubDate> </item> <item> <title>Roy Edmonds, Nickelodeon</title> <link>http://www.nma.co.uk/features/profiles/roy-edmonds-nickelodeon/3008586.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/roy-edmonds-nickelodeon/3008586.article</guid> <description>Kids are much more savvy about new technology than many adults, says Nickelodeon digital director Roy Edmonds, so online has to be more than an extension of TV properties</description> <pubDate>Thu, 14 Jan 2010 00:00 GMT</pubDate> </item> <item> <title>Simon Nelson, BBC Vision</title> <link>http://www.nma.co.uk/features/profiles/simon-nelson-bbc-vision/3008311.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/simon-nelson-bbc-vision/3008311.article</guid> <description>Participation is key to getting big online audiences, believes BBC Vision’s head of multi-platform Simon Nelson, and he’s looking for original ideas from outside the BBC to achieve it</description> <pubDate>Thu, 7 Jan 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: Has online’s share of shopping levelled off?</title> <link>http://www.nma.co.uk/news/cover-story-has-online’s-share-of-shopping-levelled-off?/3008247.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-has-online’s-share-of-shopping-levelled-off?/3008247.article</guid> <description>Online retailers will need to focus on customer retention as new media age research has revealed online’s share of overall retail will stall this year.</description> <pubDate>Thu, 7 Jan 2010 00:00 GMT</pubDate> </item> <item> <title>Justine Roberts, Mumsnet</title> <link>http://www.nma.co.uk/features/profiles/justine-roberts-mumsnet/3007983.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/justine-roberts-mumsnet/3007983.article</guid> <description>It’s not going too far to say parenting forum Mumsnet, set up by Justine Roberts, may have a say in the General Election as politicians court its million-strong ‘Worcester Woman’ users</description> <pubDate>Thu, 17 Dec 2009 00:00 GMT</pubDate> </item> <item> <title>Cover story: Agencies &#039;cautiously optimistic&#039; about display and search budgets</title> <link>http://www.nma.co.uk/news/cover-story-agencies-cautiously-optimistic-about-display-and-search-budgets/3007917.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-agencies-cautiously-optimistic-about-display-and-search-budgets/3007917.article</guid> <description>Online ad spend will continue to grow in 2010 as confidence returns to the sector, according to the UK’s top media agencies, although it won’t be until the second half that budgets rise significantly.</description> <pubDate>Thu, 17 Dec 2009 00:00 GMT</pubDate> </item> </channel> </rss> 	';
xmlDoc = loadXMLs(xmlstr);
var txt = '';
var txt = '';
items = xmlDoc.getElementsByTagName("item");
	for (i=0; i<6; i++) {
	
		var title=""; 
		var hlink="";
		var descr="";
		var pubdate=""
date = items[i].getElementsByTagName("pubDate")[0].childNodes[0].nodeValue;
	result = date.match(/\d{1,2}.*\d{4}/);
	date = result[0];
	date = date.replace(/ /g,"-");if (items[i].getElementsByTagName("title")[0].length != 0)
title = items[i].getElementsByTagName("title")[0].childNodes[0].nodeValue;
title = title.substring(title.indexOf(":") + 1, title.length );
if (items[i].getElementsByTagName("link")[0].length != 0)
hlink = items[i].getElementsByTagName("link")[0].childNodes[0].nodeValue;
if (items[i].getElementsByTagName("description")[0].childNodes.length != 0)
txt += '<div class="arrow"><a href="'+ hlink +'">' + title + '</a><br /><br /></div>';
}
document.write (txt);
