function replaceFonts () {
	Cufon.replace('#home-page h2');
	Cufon.replace('h1');
	Cufon.replace('h3');
	//Cufon.replace('a.dupa');
}

replaceFonts ();

$(document).ready(function(){
        $("#discography .showbutton").click(function(){
                $(this).parent().parent().addClass('expanded');
				$(this).parent().parent().removeClass('collapsed');
				
				/*$(this).addClass('closebutton');
				$(this).removeClass('showbutton');
				*/
				
                  return false;
        });
		
        $("#discography .closebutton").click(function(){
                $(this).parent().parent().removeClass('expanded');
                $(this).parent().parent().addClass('collapsed');
				
				/*$(this).addClass('showbutton');
				$(this).removeClass('closebutton');*/
				
				
                return false;
        });
});





function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=490,height=660,scrollbars=no');
return false;
}
function homeFeedsInit () {
	// Official News
	var selectedNews = $("#officialNews li.hover");
	$("#officialNews li").mouseover(function(){
		if (!$(this).hasClass("hover")) $(selectedNews).removeClass ("hover");
		$(this).addClass ("hover");
		selectedNews = $(this);
	}).mouseout(function(){ });
	
	// Blog Spider
	var selectedBlog = $("#blogSpider li.hover");
	$("#blogSpider li").mouseover(function(){
		if (!$(this).hasClass("hover")) $(selectedBlog).removeClass ("hover");
		$(this).addClass ("hover");
		selectedBlog = $(this);
	}).mouseout(function(){ });
	
	// Latest Forum
	var selectedForum = $("#latestForum li.hover");
	$("#latestForum li").mouseover(function(){
		if (!$(this).hasClass("hover")) $(selectedForum).removeClass ("hover");
		$(this).addClass ("hover");
		selectedForum = $(this);
	}).mouseout(function(){ });
	
	// Live Dates
	var selectedLive = $("#liveDates li.hover");
	$("#liveDates li").mouseover(function(){
		if (!$(this).hasClass("hover")) $(selectedLive).removeClass ("hover");
		$(this).addClass ("hover");
		selectedLive = $(this);
	}).mouseout(function(){ });
}

$(document).ready(function () {
	homeFeedsInit ();
});