$(document).ready(function()
{
	$('a[href*="://"]').attr('target', '_blank');

	$('a.cover').fancybox({
		padding: 8,
		zoomSpeedIn: 300, 
		zoomSpeedOut: 300, 
		overlayColor: '#000',
		overlayOpacity: 0.4
	});
	
	$('a.mail').click(function() {
		location.href = 'mail' + 'to:alex%' + '40' + 'bestbooktop10.com' + $(this).attr('href');
		return false;
	});

	$('input.sample').blur(function()
	{
		if($.trim($(this).val()) == '')
		{
			$(this).addClass('sample');
			$(this).val($(this).attr('defaultValue'));
		}
	});

	$('input.sample').focus(function()
	{
		if($.trim($(this).val()) == $(this).attr('defaultValue'))
		{
			$(this).removeClass('sample');
			$(this).val('');
		}
	});
	
	$('#shortUrl input').click(function()
	{
		$(this).select();
	});
	
	$('#checklist input').click(function()
	{
		var id = $(this).attr('id').substring(8);
		$('#label' + id).toggleClass('checked');
	});
});

Cufon.replace('h1', {fontFamily: 'Gotham Light'});
Cufon.replace('h1 strong, h4', {fontFamily: 'Gotham Bold'});

google_ad_client = 'pub-2977715191387257';
google_ad_height = 90;
google_ad_slot = '6806831127';
google_ad_width = 728;
