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>Cover story: Google and Yahoo back ASA in policing online ads</title> <link>http://www.nma.co.uk/news/cover-story-google-and-yahoo-back-asa-in-policing-online-ads/3017624.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-google-and-yahoo-back-asa-in-policing-online-ads/3017624.article</guid> <description>Google, Microsoft and Yahoo have agreed to remove ads linking to material judged by the Advertising Standards Authority to be breaking its rules, as part of an unprecedented level of cooperation between the regulator and online industry.</description> <pubDate>Thu, 2 Sep 2010 00:00 GMT</pubDate> </item> <item> <title>Paul Frampton, MPG Media Contacts</title> <link>http://www.nma.co.uk/features/profiles/paul-frampton-mpg-media-contacts/3017702.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/paul-frampton-mpg-media-contacts/3017702.article</guid> <description>Paul Frampton has been involved in digital as long as his media agency MPG Media Contacts and is determined to stay at the forefront of multi-disciplinary agency</description> <pubDate>Thu, 2 Sep 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: More than half of TV viewers catch up online</title> <link>http://www.nma.co.uk/news/cover-story-more-than-half-of-tv-viewers-catch-up-online/3017386.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-more-than-half-of-tv-viewers-catch-up-online/3017386.article</guid> <description>Video-on-demand ad creativity is key to the sector’s growth, according to broadcasters, after the first new media age internet TV audience survey revealed almost two-thirds of people (62%) find ads on video-on-demand services intrusive.</description> <pubDate>Thu, 26 Aug 2010 00:00 GMT</pubDate> </item> <item> <title>Carol Kruse, Coca-Cola</title> <link>http://www.nma.co.uk/features/profiles/carol-kruse-coca-cola/3017487.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/carol-kruse-coca-cola/3017487.article</guid> <description>Coca-Cola sees a combination of social media and data as the way forward for consumer contact. VP of global interactive marketing Carol Kruse is happy to let its fans lead the way</description> <pubDate>Thu, 26 Aug 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: Brands struggle to achieve viral staying power</title> <link>http://www.nma.co.uk/news/cover-story-brands-struggle-to-achieve-viral-staying-power/3017143.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-brands-struggle-to-achieve-viral-staying-power/3017143.article</guid> <description>Brands have less than a 10% chance of achieving long-term viral success due to the amount of content uploaded, according to analysis of the first 20 weeks of the nma Viral Brand Chart on nma.co.uk.</description> <pubDate>Thu, 19 Aug 2010 00:00 GMT</pubDate> </item> <item> <title>Iain Dodsworth, TweetDeck</title> <link>http://www.nma.co.uk/features/profiles/iain-dodsworth-tweetdeck/3017234.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/iain-dodsworth-tweetdeck/3017234.article</guid> <description>Iain Dodsworth, founder and CEO of TweetDeck, has several ideas for directions in which to take the social aggregator, but with solid investment behind him, he can take his time</description> <pubDate>Thu, 19 Aug 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: Five brings TV to Facebook</title> <link>http://www.nma.co.uk/news/cover-story-five-brings-tv-to-facebook/3016866.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-five-brings-tv-to-facebook/3016866.article</guid> <description>Five is set to become the first broadcaster to show TV programmes on Facebook. The companies have struck an integration agreement which will see Five’s TV-on-demand player Demand Five embedded into Facebook.</description> <pubDate>Thu, 12 Aug 2010 00:00 GMT</pubDate> </item> <item> <title>Gabby Hegerty, Samsung</title> <link>http://www.nma.co.uk/features/profiles/gabby-hegerty-samsung/3016954.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/gabby-hegerty-samsung/3016954.article</guid> <description>Electronics giant Samsung hasn’t had anyone focusing on digital marketing until now. Gabby Hegerty talks about how she plans to get the company engaging with its customers</description> <pubDate>Thu, 12 Aug 2010 00:00 GMT</pubDate> </item> <item> <title>David Moynihan, NME.com</title> <link>http://www.nma.co.uk/features/profiles/david-moynihan-nmecom/3016691.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/david-moynihan-nmecom/3016691.article</guid> <description>NME.com has proven it’s possible to stay afloat through the turmoil that has threatened to sink the music industry. But it has required constant ingenuity, says editor David Moynihan</description> <pubDate>Thu, 5 Aug 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: Tesco brings mobile shopping into the mainstream</title> <link>http://www.nma.co.uk/news/cover-story-tesco-brings-mobile-shopping-into-the-mainstream/3016603.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-tesco-brings-mobile-shopping-into-the-mainstream/3016603.article</guid> <description>Tesco, the UK’s largest retailer, is aiming to take the nascent mobile commerce sector into the mainstream by launching its first transactional mobile app.</description> <pubDate>Thu, 5 Aug 2010 00:00 GMT</pubDate> </item> <item> <title>Simon Calver, LoveFilm</title> <link>http://www.nma.co.uk/features/profiles/simon-calver-lovefilm/3016422.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/simon-calver-lovefilm/3016422.article</guid> <description>Having grown LoveFilm to become Europe’s largest DVD subscription service, CEO Simon Calver is aiming to provide the service across a range of connected digital devices</description> <pubDate>Thu, 29 Jul 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: Virgin Media hails next-gen VOD features</title> <link>http://www.nma.co.uk/news/cover-story-virgin-media-hails-next-gen-vod-features/3016437.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-virgin-media-hails-next-gen-vod-features/3016437.article</guid> <description>Virgin Media is stepping up its cross-platform strategy with the launch of its TV-on-demand service online, bolstering its position in the market ahead of the launches of Sky’s Anytime+ and Project Canvas.</description> <pubDate>Thu, 29 Jul 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: Is the UK ready for social commerce?</title> <link>http://www.nma.co.uk/news/cover-story-is-the-uk-ready-for-social-commerce?/3016051.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-is-the-uk-ready-for-social-commerce?/3016051.article</guid> <description>Ebay, one of the world’s biggest ecommerce brands, has said that the UK market isn’t yet mature enough for social commerce, despite commitment from brands such as Dell and Disney.</description> <pubDate>Thu, 22 Jul 2010 00:00 GMT</pubDate> </item> <item> <title>Anthony Soohoo, CBS Interactive</title> <link>http://www.nma.co.uk/features/profiles/anthony-soohoo-cbs-interactive/3016124.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/anthony-soohoo-cbs-interactive/3016124.article</guid> <description>As people increasingly use the internet while watching TV, broadcasters like CBS are looking to make the two activities more interconnected, says its senior VP Anthony Soohoo</description> <pubDate>Thu, 22 Jul 2010 00:00 GMT</pubDate> </item> <item> <title>Karen Heldoorn, Aardman Digital</title> <link>http://www.nma.co.uk/features/profiles/karen-heldoorn-aardman-digital/3015861.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/karen-heldoorn-aardman-digital/3015861.article</guid> <description>As The Tate Movie project aims to create a film purely from user-generated content, Aardman Digital’s Karen Heldoorn has to ensure it meets the world-famous studio’s standards</description> <pubDate>Thu, 15 Jul 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: Facebook virtual currency to roll out in September</title> <link>http://www.nma.co.uk/news/cover-story-facebook-virtual-currency-to-roll-out-in-september/3015774.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-facebook-virtual-currency-to-roll-out-in-september/3015774.article</guid> <description>Facebook is aiming for a full launch of its virtual currency Facebook Credits in September, a move that could lead to it becoming the default online currency, rivalling leaders such as PayPal.</description> <pubDate>Thu, 15 Jul 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: Daily Mail looks to make it big in the US</title> <link>http://www.nma.co.uk/news/cover-story-daily-mail-looks-to-make-it-big-in-the-us/3015477.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-daily-mail-looks-to-make-it-big-in-the-us/3015477.article</guid> <description>Mail Online has kicked off an aggressive push into the US, taking on editorial and sales staff at its recently established Los Angeles office to produce its first content dedicated to a US audience.</description> <pubDate>Thu, 8 Jul 2010 00:00 GMT</pubDate> </item> <item> <title>Alex Hole, News International</title> <link>http://www.nma.co.uk/features/profiles/alex-hole-news-international/3015580.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/alex-hole-news-international/3015580.article</guid> <description>As The Times websites disappear behind a paywall, it’s up to Alex Hole, News International’s digital commercial director, to make sure readers and advertisers stay on the right side</description> <pubDate>Thu, 8 Jul 2010 00:00 GMT</pubDate> </item> <item> <title>Jef Vandecruys, AB-Inbev</title> <link>http://www.nma.co.uk/features/profiles/jef-vandecruys-ab-inbev/3015304.article</link> <guid isPermaLink="true">http://www.nma.co.uk/features/profiles/jef-vandecruys-ab-inbev/3015304.article</guid> <description>Anheuser-Busch InBev’s Jef Vandecruys believes Budweiser’s World Cup activity will prove digital’s worth, but that a single measurement index is needed for the industry to flourish</description> <pubDate>Thu, 1 Jul 2010 00:00 GMT</pubDate> </item> <item> <title>Cover story: Orange bolsters music links with ticketing service</title> <link>http://www.nma.co.uk/news/cover-story-orange-bolsters-music-links-with-ticketing-service/3015213.article</link> <guid isPermaLink="true">http://www.nma.co.uk/news/cover-story-orange-bolsters-music-links-with-ticketing-service/3015213.article</guid> <description>Orange is the latest operator to launch a major discounted ticket service, taking on the O2 Priority and Vodafone VIP brands in the multi-million-pound market and building on the success of its Orange Wednesdays two-for-one cinema tickets scheme.</description> <pubDate>Thu, 1 Jul 2010 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);
