Cufon.replace('h1, h2, .cufon', {hover: true});

jQuery(document).ready(function($){
	$(document).ready(function() {
	
	
	if ($("#sponsorFake").length > 0){
		
		var offset = $("#sponsorBlock").offset();
		$('#sponsorFake').css('top', Math.round(offset.top)); 	
		
	}
	
	$('.lightbox').lightBox({
		imageLoading : sitePath + 'widgets/lightbox-ico-loading.gif',
		imageBtnClose : sitePath + 'widgets/lightbox-btn-close.gif',
		imageBlank : sitePath + 'widgets/lightbox-blank.gif',
		imageBtnNext : sitePath + 'widgets/lightbox-btn-next.gif',
		imageBtnPrev : sitePath + 'widgets/lightbox-btn-prev.gif'
	});
});
	
	$('.cycle').cycle({
		fx: 'fade',
		timeout: 1600
	});
	
	$('.cycle2x').cycle({
		fx: 'fade',
		timeout: 4500,
		cleartype: true, cleartypeNoBg: true
	});
});

function goTo(url) {
	window.location.href = url;
}

function showPopover(url,width,height){
	window.open(url,'veronafiere','WIDTH='+width+',HEIGHT='+height+',scrollbars=1,resizable=yes');
}

function noSpam (first, second) {
	window.location.href = 'mailto:'+first+'@'+second;
}
