jQuery(document).ready(function() {
	

	jQuery('#peter_carousel').jcarousel({
		size: 5,
		scroll: 1,
		wrap: 'circular',
		auto: 5
		
    });   
	
			
		jQuery('a#peter').fancybox({
							type:     'iframe',
							speedIn:  500,
							speedOut: 200,
							width:    560,
							height:   560,
							href: 'photo.html',
							centerOnScroll: true,
							autoScale: false,
							autoDimensions: false
							
		});
		
		jQuery('a#peter_audio').fancybox({
							type:     'iframe',
							speedIn:  500,
							speedOut: 200,
							width:    460,
							height:   300,
							href: 'http://piranha.co.nz/audio_profile.php?talentId=84&Peter%20Elliott',
							title: 'Audio Profile - Peter Elliott',
							centerOnScroll: true,
							autoScale: false,
							autoDimensions: false,
							onStart: function(element, index, options)
								{
									options.href += '?'+$('form').serialize()
									//$('#fancybox-wrap, #fancybox-outer').hide();
								},
							onComplete: function(){
								$('#fancybox-title').css({
									top: '10px',
									bottom: 'auto'
								});
							}						
		});
		
		jQuery('a#contact_liana').fancybox({
							type:     'iframe',
							speedIn:  500,
							speedOut: 200,
							width:    460,
							height:   420,
							href: 'http://piranha.co.nz/contact_liana_from_external.php',
							title: 'Contact Liana Piranha - Peter Elliott',
							centerOnScroll: true,
							autoScale: false,
							autoDimensions: false,
							onStart: function(element, index, options)
								{
									options.href += '?'+$('form').serialize()
									//$('#fancybox-wrap, #fancybox-outer').hide();
								},
							onComplete: function(){
								$('#fancybox-title').css({
									top: '10px',
									bottom: 'auto'
								});
							}
		});
		
		jQuery('a[rel^=\'prettyPhoto\']').prettyPhoto({
			deeplinking: false, /* Allow prettyPhoto to update the url to enable deeplinking. */
			changepicturecallback: function(){
			}, /* Called everytime an item is shown/changed */
			callback: function(){
			}, /* Called when prettyPhoto is closed */
			ie6_fallback: true
		});
			
});
