$(document).ready(function() {
	
	$("#memberWindow").hover(
	function() {
		$(this).animate({"left": "0px"}, 400);
	},
	function() {
		$(this).animate({"left": "-210px"}, 400);
	});
		
	$('#centrum-chirurgii-plastycznej').append('<div class="decor-bl"></div>');
	$('#centrum-chirurgii-plastycznej').append('<div class="decor-br"></div>');
	$('#baner').append('<div class="ctl"></div>');
	$('.box').append('<div class="ctl"></div>');
	$('.box').append('<div class="ctr"></div>');
	$('.box').append('<div class="cbl"></div>');
	$('.box').append('<div class="cbr"></div>');
	$('.scroller').append('<div class="tl"></div>');
	$('.scroller').append('<div class="tr"></div>');
	$('.scroller').append('<div class="bl"></div>');
	$('.scroller').append('<div class="br"></div>');
	$('#footer ul li:last-child').css('border','none');
	$('table.price-list tr:even').addClass('darker');
	$('table.price-list tr td:first-child').css('width','75%');
	$('table.price-list tr td:last-child').css('width','25%');
	$('table.price-list tr td:last-child').css('padding','5px 10px');
	
	$('.fancy').fancybox();
	
	$("a[rel=gallery_group]").fancybox({
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
		    return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title + '</span>';
		}
	});
	
	$("#prasa-1").click(function(e) {
		e.preventDefault();
		$.fancybox([
			{
				'href'	: '/gfx/prasa-1-1.jpg',
				'title'	: 'Look&LIFE - Page 1'
			},
			{
				'href'	: '/gfx/prasa-1-2.jpg',
				'title'	: 'Look&LIFE - Page 2'
			},
			{
				'href'	: '/gfx/prasa-1-3.jpg',
				'title'	: 'Look&LIFE - Page 3'
			},
			{
				'href'	: '/gfx/prasa-1-4.jpg',
				'title'	: 'Look&LIFE - Page 4'
			},
			{
				'href'	: '/gfx/prasa-1-5.jpg',
				'title'	: 'Look&LIFE - Page 5'
			},
			{
				'href'	: '/gfx/prasa-1-6.jpg',
				'title'	: 'Look&LIFE - Page 6'
			},
			{
				'href'	: '/gfx/prasa-1-7.jpg',
				'title'	: 'Look&LIFE - Page 7'
			},
			{
				'href'	: '/gfx/prasa-1-8.jpg',
				'title'	: 'Look&LIFE - Page 8'
			},

		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
	});
	$("#prasa-2").click(function(e) {
		e.preventDefault();
		$.fancybox([
			{
				'href'	: '/gfx/prasa-2-1.jpg',
				'title'	: 'URODA beauty expert - Page 1'
			},
			{
				'href'	: '/gfx/prasa-2-2.jpg',
				'title'	: 'URODA beauty expert - Page 2'
			}

		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
	});
	$("#prasa-3").click(function(e) {
		e.preventDefault();
		$.fancybox([
			{
				'href'	: '/gfx/prasa-3-1-new.jpg',
				'title'	: 'REKLAMA PRASOWA - Page 1'
			}

		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
	});
	$("#prasa-4").click(function(e) {
		e.preventDefault();
		$.fancybox([
			{
				'href'	: '/gfx/prasa-4-1.jpg',
				'title'	: 'akademia ESTETYCZNA - Page 1'
			}

		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
	});
	$("#prasa-5").click(function(e) {
		e.preventDefault();
		$.fancybox([
			{
				'href'	: '/gfx/prasa-5-1.jpg',
				'title'	: 'akademia ESTETYCZNA - Page 1'
			}

		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
	});
	$("#prasa-6").click(function(e) {
		e.preventDefault();
		$.fancybox([
			{
				'href'	: '/gfx/prasa-6-1.jpg',
				'title'	: 'akademia ESTETYCZNA - Page 1'
			}

		], {
			'padding'			: 0,
			'transitionIn'		: 'none',
			'transitionOut'		: 'none',
			'type'              : 'image',
			'changeFade'        : 0
		});
	});
	
	$('div.content').css('display', 'block');
	$('#thumbs').galleriffic({
			prevLinkText: '',
			nextLinkText: '',
			numThumbs: 60,
			imageContainerSel: '#slideshow',
			controlsContainerSel: '#controls'
	});
	
	
});


