

$j(document).ready(function() {

	/* This is basic - uses default settings */
	
	$j("a.single_image").fancybox();
	
	/* Using custom settings */
	
	$j("a.inline").fancybox({
		'hideOnContentClick': true
	});

	/* Apply fancybox to multiple items */
	
	$j("a.group").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true
	});
	


	
			
	$j("#various5").fancybox({
		'width'				: 619,
		'height'			: 368,
        'autoScale'     	: true,
        'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200,
		'type'				: 'iframe',
					'scrolling'				: 'no'
	});
	
	$j("#topform").fancybox({
		'width'				: 619,
		'height'			: 300,
        'autoScale'     	: true,
        'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200,
		'type'				: 'iframe',
					'scrolling'				: 'no'
	});
	
	$j("#east, #london").fancybox({
		'width'				: 900,
		'height'			: 500,
        'autoScale'     	: true,
        'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200,
		'type'				: 'iframe',
					'scrolling'				: 'no'
	});
	
	
	$j("#scotland, #northwest, #london-east, #wales, #southwest, #southeast, #midlands, #eastmidlands").fancybox({
		'width'				: 900,
		'height'			: 500,
        'autoScale'     	: true,
        'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200,
		'type'				: 'iframe',
					'scrolling'				: 'no'
	});
	
	$j("#coverage").fancybox({
		'width'				: 900,
		'height'			: 1100,
        'autoScale'     	: true,
        'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200,
		'type'				: 'iframe',
				'scrolling'				: 'no'

	});
	
	$j("#yorkshire, #northeast").fancybox({
		'width'				: 900,
		'height'			: 550,
        'autoScale'     	: true,
        'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200,
		'type'				: 'iframe',
				'scrolling'				: 'no'

	});
	
	
	
	
	
	
	
	
	$j("#findaplumber").fancybox({
		'width'				: 600,
		'height'			: 368,
        'autoScale'     	: true,
        'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200,
		'type'				: 'iframe'
	});
	

	$j(".tip7").fancybox({
	    'showCloseButton'   : false,
		'titlePosition' 	: 'inside',
		'titleFormat'		: formatTitle
	});
	
	
	// Next JS snippets are only for fancybox.net
	
	/*
	*   Donate link
	*/
	$j("a#donate").bind("click", function() {
		$j("#donate_form").submit();
		return false;
	});

	/*
	*   Zebra-stripping table
	*/
	
	$j("table.options tr:even").addClass('even');

});

