$(document).ready(function(){
	
	//localScroll
	$.localScroll.defaults.axis = 'y';
	$.localScroll();
	
	// qTip
	$('.tip a[href][title]').qtip({
		content: {
			text: false
		},
		position: {
			corner: { target: 'bottomMiddle', tooltip: 'topMiddle' }
		},
		style: {
			name: 'green',
			width: { min: 400, max: 400 },
			border: { width: 0, radius: 2 }, 
			tip: true
	 }
	});
	
	$('.tipflag a[href][title]').qtip({
		content: {
			text: false
		},
		position: {
			corner: { target: 'topMiddle', tooltip: 'bottomMiddle' },
			adjust: { x: -1, y: -25 }
		},
		style: {
			name: 'green',
			width: { min: 100, max: 200 },
			border: { width: 0, radius: 2 }, 
			tip: { // Now an object instead of a string
				corner: 'bottomMiddle', // We declare our corner within the object using the corner sub-option
				size: {
					x: 5,
					y : 5
				}
			}
		}
	});
	
	// jQuery Cycle Plugin - Display
	$('.display').cycle({ 
		fx: 'fade', 
		speed: 1500, 
		timeout: 5000 
	});
	
	// PrettyPhoto Image Viewer
	$("a[rel^='prettyPhoto']").prettyPhoto({
		animationSpeed: 'normal', /* fast/slow/normal */
		padding: 40, /* padding for each side of the picture */
		opacity: 0.8, /* Value betwee 0 and 1 */
		showTitle: false, /* true/false */
		allowresize: true, /* true/false */
		theme: 'light_square', /* light_rounded / dark_rounded / light_square / dark_square */
		callback: function(){}
	});
})

