

/**
* Author: Mikri
*  
*/
var likeaballoon = function($){
	var w = $(window),b= $('body'), p=$('#page'),f = $('.feel'),fY,fX,f1=$('.feel-1'),f2=$('.feel-2'),f3=$('.feel-3'),f4=$('.feel-4'),f5=$('.feel-5'),t=0;

	w.scroll(function(){
		t = -w.scrollTop();
	
		p.css('backgroundPosition','50% ' + (t/4 + 146) + 'px')
		f1.css('top', (t + 180) +'px');
		f2.css('top', (t/2 + 220) +'px');
		f3.css('top', (t/2 + 440) +'px');
		f4.css('top', (t/2 + 560) +'px');
		f5.css('top', (t/10 + 20) +'px');
		
	});
}


jQuery(document).ready(function(){
	jQuery('#slides br').remove();
	jQuery('#slides .gallery-icon a').click(function(e){e.preventDefault();});
	jQuery('#slides').slides({
					play: 5000,
					pause: 2500,
					hoverPause: false,
					container: 'gallery',
					generateNextPrev: true,
					effect: 'fade'
				});
	
	likeaballoon(jQuery);
	
});

