﻿$(document).ready(function(){
//colorbox
		//Examples of how to assign the ColorBox event to elements
	$("a[rel='galeria']").colorbox();
			
//slider
	$('#slider3')
	.anythingSlider({
		width				: 710,
		height				: 370,
		delay				: 4000,
		startPanel			: 1, 
		enableNavigation 	: true,
		toggleControls   	: false,
		autoPlay			: false,
		resumeDelay         : 15000,
		autoPlayLocked      : true,
		buildArrows			: false,
		easing				: "swing",
		startText			: "",
		stopText			: "",
		navigationFormatter : function(i, panel){
		return [ 'Brylantowe Gwiazdy \'11','Zabiegi laserowe',  'Elektrostymulacja', 'Wybielanie zębów', 'Mezoterapia igłowa', 'Fale radiowe', 'Nowości'][i - 1];
		},
	})
	/* add a close button (x) to the caption */
	.find('div[class*=caption]')
	.css({ position: 'absolute' })
});

setTimeout(function() {
    $("div.anythingSlider a.start-stop").trigger("click");
}, 25000);

$(function (){
	//facebook widget
	$(".widget_social").hover(function(){
		$(".widget_social").stop(true, false).animate({right:"0"},"medium");
	},function(){
		$(".widget_social").stop(true, false).animate({right:"-205"},"medium");
	},500);

	return false;
});

$(function() {
	// Use this example, or...
	$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
	// This, or...
	//$('#gallery a').lightBox(); // Select all links in object with gallery ID
	// This, or...
	//$('a.lightbox').lightBox(); // Select all links with lightbox class
	// This, or...
	//$('a').lightBox(); // Select all links in the page
	// ... The possibility are many. Use your creative or choose one in the examples above
});
