// site specific functions

createMailto = function(pers, domain, customText) {
	var email = pers + '@' + domain;
	(customText == null) ? lnk = email : lnk = customText;
	document.write('<a href="mailto:'+email+'">'+lnk+'</a>');
}

initTickerTape = function() {
	$(function() {
		$('ul#news-ticker-data').liScroll({travelocity: 0.03});
	});
}

loadFeed = function() {
	$(function() {
		jQuery.getFeed({
			url: '/_includes/proxy.php?url=http://server03.iqinfo.com/rss/nieuwe_inschrijvingen.xml',
			success: function(feed) {
				var html = '';
				if (feed.items.length >= 1) {
					for(var i=0; i<feed.items.length && i<20; i++) { 
						var item = feed.items[i];
						html += '<li><a href="' + item.link + '" target="_blank"><strong>' + item.title + '</strong> ' + item.description + '</a></li>';
					}
					
					$('#news-ticker-data').append(html);
					initTickerTape();
				}
			}    
		});
	});
}

$(document).ready(function() {
	
});

loadFeed();







