/**
 * @author Marceli
 */
var images = [];
var counter = 0;
$(document).ready(function()
{
	  
	  
	 
	  $("#drags").accordion({
			event: "mouseover"
		});
		
	  	$(function() {
		// format: specialDays.year.month.day
		var specialDays = {
			'2010': {
				'4': {
					'17': {tooltip: "Szkolenie w Rzeszowie - woj. podkarpackie", className: "conference"}
					}
			}
		}	
	  $("#datepicker").datepicker(
	  {
	  	dateFormat:'yy-mm-dd',
		firstDay: 1,
		onSelect: function(dateText, inst) 
		{ window.location.href = '/konferencje/'+dateText+',konferencja.html' },
		beforeShowDay: function(date) {
			var d = date.getDate(),
				m = date.getMonth()+1,
				y = date.getFullYear();
				
			if (specialDays[y] && specialDays[y][m] && specialDays[y][m][d]) {
				var s = specialDays[y][m][d];
				return [true, s.className, s.tooltip]; // selectable
			}
			return [false,''];
			}
		
	  },
	  $.datepicker.regional['pl']
	  )
	  });	
	  BannerRotator();
	 
	  
	  $('#button a').click(function(){
	  		var size = ChangeFontSize($(this).attr('class'));
			if($('#news_left').length)
			{
				$('#text h6').css('font-size',size);
				$('#text h3').css('font-size','15px');
			}
			else
			{
				$('#text p').css('font-size',size);
				$('#text h2').css('font-size','16px');
				$('#text td').css('font-size',size);
				$('#text li').css('font-size',size);
				$('div.main div').css('font-size',size);
				$('div.main h3').css('font-size','16px');
			}
	  });
	  
	  GoogleMapsLink();
	  initialize();
	  
})


	
	
