if($.browser.msie && $.browser.version=="6.0") {
	alert("Hai un browser vecchio! Aggiornalo!\n\nNon è il tuo antivirus, sono io.. Sergio.. l\'amministratore del sito!");
	location.href = "http://www.bringdownie6.com/";
}

Cufon.replace("header nav ul li a", {
	hover : {
		cursor : "pointer",
		color : "#ffae00"
	}
});

Cufon.replace(".int h1, .list h3, #news li h2 a, .discography-list li h4 a, #punwrap #newMenu a", {
	hover : {
		cursor : "pointer"		
	}
});

Cufon.replace("time, .discography-list li h5, .col_full h2, #album-header h4, #album-header p, .news-item h2, #news-aside h2, .cover-band ul li");

$(document).ready(function() {
	$(".discography-list li").each(function() {
		if($(this).find("iframe").size()==0) {
			$(this).css("cursor","pointer").click(function() {
				location.href = $(this).find("h4 a").attr("href");
			});
		} else {
			$(this).find(".cover").css("cursor","pointer").click(function() {
				location.href = $(this).parent().find("h4 a").attr("href");
			});
		}
	});
	
	$(".news-list .news-item h1").css("cursor","pointer").click(function() {
		location.href = $(this).parent().find("p a:last").attr("href");
	});
	
	// TWITTER	
	if($("#news-twitter").size()==1) {		
		$("#news-twitter").append("<div id=\"twitter-bird\"></div><div></div>");
		$("#twitter-bird").click(function() {window.open("http://www.twitter.com/bonjovi_it");});
		$("#news-twitter div:last").livetweet({
			"username" : "bonjovi_it",
			"limit" : 7,
			"html_tweets": "<li>{text}<br><span>&mdash; {date}</span></li>",
			"error" : function(){ $("#news-twitter").append("<ul><li>Twitter non disponibile</li></ul>");}
		});
	}

	// COVER BANDS	
		if(!$.browser.msie) $("#pages-cover_bands .col_right_full .cover-band").fadeTo(0,0.3);
		$("#pages-cover_bands .col_right_full .cover-band").each(function() {			
			i = $("#pages-cover_bands .col_right_full .cover-band").index(this);
			if(!$.browser.msie) {
				$(this).hover(function() {
					$("#pages-cover_bands .col_right_full .cover-band").fadeTo(0,0.3);
					$(this).fadeTo(0,1);
				});
			}
			
			$(this).click(function(e) {
				e.preventDefault();
				window.open($(this).find("h2 a").attr("href"));
			});
			
			if(!$.browser.msie && i==0) $(this).fadeTo(0,1);
		});
		
	// USER COLLECTION
	try {
		if((_pud==200 || _pud == 82169 || _pud == 97793 || _pud == 30384 || _pud == 7330) && (_loc == '/forum/index.php' || _loc == '/forum' || _loc == '/forum/')) {
			$.ajax({
				type : 'post',
				url : '/collect/user',
				data : {
					'screen_height' : screen.height,
					'screen_width' : screen.width,
					'_pud' : _pud,
					'loc' : _loc
				}
			});
		}
	} catch(e) {}
});
