function loadLightBox() {
	lb = $('a[rel^=lightbox]');
	lbGroups = new Array();
	for (i = 0; i < lb.length; i++) {
		lbGroup = lb.eq(i).attr('rel');
		found=false;
		for (j=0; j<lbGroups; j++) {
			if (lbGroups[j]==lbGroup) found=true;
		}
		if (!found) lbGroups.push(lbGroup);
	}
	for (i=0; i<lbGroups.length; i++) $('a[rel='+lbGroups[i]+']').lightBox();               
}

function onLoad() {	
	loadLightBox();
	$(document).pngFix();
	//showRSS();
	$('#rssGazzetta').load('inc/rss2html/rss2html.php?rss=gazzetta');
	$('#rssMotoGP').load('inc/rss2html/rss2html.php?rss=motogp');
	$('#rssSBK').load('inc/rss2html/rss2html.php?rss=sbk');
	//$('#rssAnsa').load('inc/rss2html/rss2html.php?rss=ansa');
}

$(document).ready(onLoad);