$(document).ready(function (e) {
	
	$('.swapImage').rollover(true);
	
	$("a.imageLink").fancybox({'overlayOpacity': 0.9, 'overlayShow' : true, 'padding' : 0, 'margin' : 0, 'titlePosition' : 'inside', 'autoScale' : false, 'titleFormat' : formatTitle});
});

function showHide(what)
{
	if($("#div_full_" + what).css('display') == 'block')
	{		
		$("#div_full_" + what).css('display', 'none');
		$("#link_" + what).html('lees meer');
		$("#div_sum_" + what).show();
		$("#link2_" + what).hide();			
	}
	else
	{
		$("#div_sum_" + what).hide();
		$("#div_full_" + what).css('display', 'block');
		$("#link_" + what).html('terug naar items');	
		$("#link2_" + what).show();
	}
}

function go()
{
	var a = window.open('','','width=520,height=600,scrollbars=yes');
	a.document.open("text/html");
	a.document.write('<style type="text/css"> body{font: 11px Verdana, "Lucida Grande", Geneva, Arial, sans-serif; color: #000000; line-height: 14px; text-align: center}</style>');
	a.document.write(document.getElementById('lyricsDiv').innerHTML);
	a.document.close();
	a.print();
}

function formatTitle(title, currentArray, currentIndex, currentOpts) {
    return '<span style="font-family: Verdana; font-size: 11px;">Afbeelding ' + (currentIndex + 1) + ' van ' + currentArray.length + '</span>';
}
