$(document).ready(function() {
	
	/* open links with rel="external" in new window and amend link title */
	$('a[rel*="external"]').each(function() {
		var title = $(this).attr('title') ? $(this).attr('title') + ' (opens in a new tab or window)' : 'This link will open in a new tab or window';
		$(this).attr('title',title).click(function() {
			window.open($(this).attr('href'));
			return false;
		});
	});
	
	/*$('div#quote').fadeTo("slow", 0.3);
	$('div#quote').cycle();*/
	$('div#quote').cycle({  
		/*fx: 'curtainY',
		random:  1,
		timeout:       8000,
		speed:  1000*/
		
		/*fx:    'zoom', 
    	sync:   0, 
    	delay: -4000*/
		
		/*fx:      'scrollDown',
		random:  1,
		speed:    1000, 
		timeout:  5000 */
		fx:      'custom',
		random:  1,
		cssBefore: {
			left: 0,  
			top:  80,  
			width: 290,  
			height: 1,
			opacity: 0, 
			zIndex: 16 
		}, 
		animOut: {  
			left: 0,  
			top: 0,  
			width: 290,  
			height: 130,
			opacity: 0 
		}, 
		animIn: {  
			left: 0,  
			top: 0,
			opacity: 1,
			width: 290,
			height: 130 
		}, 
		cssAfter: {
			opacity: 0,
			zIndex: 15 
		}, 
		delay: 3000,
		timeout: 7000,
		speed:  900
		
	});
});