
function linkizeTitles(result){

	if(result.feed.link) { result.feed.link = '/teleport/' + escape(result.feed.link.replace('http://', '').replace('https://', '').replace('?', '__2F__')); }
	if(result.feed.entries[0]) { result.feed.entries[0].link = '/teleport/' + escape(result.feed.entries[0].link.replace('http://', '').replace('https://', '').replace('?', '__2F__')); }
	if(result.feed.entries[1]) { result.feed.entries[1].link = '/teleport/' + escape(result.feed.entries[1].link.replace('http://', '').replace('https://', '').replace('?', '__2F__')); }
	if(result.feed.entries[2]) { result.feed.entries[2].link = '/teleport/' + escape(result.feed.entries[2].link.replace('http://', '').replace('https://', '').replace('?', '__2F__')); }
}

function LoadDynamicFeedControl() {
	var feeds = [ 
		{ title: 'HCL.hr', url: 'http://www.hcl.hr/rss/vijesti.php' },
		{ title: 'Svijet hardvera', url: 'http://www.svijethardvera.com/feed/' },
		{ title: 'Susjed', url: 'http://www.susjed.com/rss.php?format=rss&cat=naslovnica' },
		{ title: 'CroPC', url: 'http://www.cropc.net/index.php?format=feed&type=rss' },
		{ title: 'Usporedi.hr', url: 'http://usporedi.hr/kratke-vijesti.xml' },
		{ title: 'Cert.hr preporuke', url: 'http://www.cert.hr/rss/preporuke' },
		{ title: 'Kosa crta', url: 'http://www.kosacrta.hr/feed/' },
		{ title: 'PC Ekspert', url: 'http://pcekspert.com/rssfeed/obavijesti' },
		{ title: 'ICT', url: 'http://www.ict.hr/rss2/rss.xml' },
		{ title: 'Facebook Hrvatska', url: 'http://feeds.feedburner.com/facebookhr' },
		{ title: 'VidiLab', url: 'http://www.vidilab.com/rss/vijesti.xml' },
		{ title: 'itJobr', url: 'http://itjobr.net/feed/' },
		{ title: 'Nove tehnologije', url: 'http://not.hr/?option=com_kusoma&id=1' },
		{ title: 'MojPortal.com.hr', url: 'http://www.mojportal.com.hr/feed/' },
		{ title: 'Cert.hr novosti', url: 'http://www.cert.hr/rss/novosti' },
		{ title: 'Igre123', url: 'http://www.igre123.net/?rss' },
		{ title: 'IT-infoNews', url: 'http://www.it-infonews.com/rss_latest.php' },
		{ title: 'MacKorisnik', url: 'http://www.mackorisnik.com/feed/' },
		{ title: 'Mobilni eksperti', url: 'http://eksperti.com/feed' },
		{ title: 'Stvari.net', url: 'http://stvari.net/rss/novo/' },
		{ title: 'PC trikovi', url: 'http://www.pctrikovi.com/index.php?format=feed&type=rss' },
		{ title: 'Mobilni magazin', url: 'http://www.mobilnimagazin.com/feed/' },
		{ title: 'Učionica', url: 'http://www.ucionica.net/feed/' },
		{ title: 'T-Portal', url: 'http://www.tportal.hr/rss/tehnologijarss.xml' },
		{ title: 'Tražilo', url: 'http://trazilo.com/feed/' },
		{ title: 'SEO blog', url: 'http://feeds.feedburner.com/SeohrBlog' },
		{ title: 'Racunalo.com', url: 'http://www.racunalo.com/rd-rss/index.php' },
		{ title: 'Specijalist', url: 'http://www.specijalist.com/feed/' },
		{ title: 'Fotografija.hr', url: 'http://www.fotografija.hr/feed/' },
		{ title: 'Linux za sve', url: 'http://www.linuxzasve.com/rss-novosti.php' },
		{ title: 'Desktop.hr', url: 'http://www.desktop.hr/index.php?format=feed&type=rss' },
		{ title: 'iZone', url: 'http://www.izone.com.hr/feeds/posts/default?alt=rss' },
		{ title: 'CroITportal', url: 'http://www.croitportal.com/index.php?format=feed&type=rss' },
		{ title: 'Mi3dot', url: 'http://www.mi3dot.org/rss.php' },
		{ title: 'Gameland', url: 'http://gameland.jutarnji.hr/feed/' },
		{ title: 'Metro', url: 'http://metro-portal.hr/feed/index/news/267' },
		{ title: 'Gadgeterija', url: 'http://www.gadgeterija.net/feed/' },
		{ title: 'Mob.hr', url: 'http://mob.hr/feed/' },
		{ title: 'Geekština', url: 'http://feeds.feedburner.com/geekstina' },
		{ title: 'Sat Multimedia', url: 'http://www.sat-multimedia.hr/rss/' },
		{ title: 'Svijet oko nas', url: 'http://www.svijetokonas.net/feed/' },
		{ title: 'PcChip', url: 'http://www.pcchip.hr/feed/index/news' },
		{ title: 'Bug', url: 'http://www.bug.hr/rss/?ch=it' },
		{ title: 'Tehnofobija', url: 'http://tehnofobija.com/feed/' },
		{ title: 'Seekandhit', url: 'http://feeds.feedburner.com/seekandhit' }
	 ];
	var options = {
		numResults: 3,
		displayTime: 5000,
		fadeOutTime: 500,
		stacked: true,
		horizontal: false,
		feedLoadCallback: linkizeTitles
	}
	new GFdynamicFeedControl(feeds, 'googlefeed', options);
}

google.load('feeds', '1');
google.setOnLoadCallback(LoadDynamicFeedControl);
