$(document).ready(function()
{
   	init();
});

function init()
{
	foto();
	slider();
	forms();
	//shadow();
	$("a[rel^='prettyPhoto']").prettyPhoto();
	$("input[type='radio'],input[type='checkbox']").custCheckBox();
}

function foto()
{
	$('.album-over').live('click',(function()
	{
		var toLoad = 'index.php?album=' + $(this).attr('id');
		document.location = toLoad;
    return false;
	}));
}
function slider()
{

}
function forms()
{
// OPTIONALLY SET THE DATE FORMAT FOR ALL DATE PICKERS ON THIS PAGE
	$.datePicker.setDateFormat('dmy', '-');
	
	
	// DIFFERENT OPTIONS SHOWING HOW YOU MIGHT INITIALISE THE DATE PICKER (UNCOMMENT ONE AT A TIME) //
	
	// all inputs with a class of "date-picker" have a date picker which lets you pick any date in the future
	//$('input.date-picker').datePicker();
	// OR
	// all inputs with a class of "date-picker" have a date picker which lets you pick any date after 05/03/2006
	//$('input.date-picker').datePicker({startDate:'05/03/2006'});
	// OR
	// all inputs with a class of "date-picker" have a date picker which lets you pick any date from today till 05/011/2006
	//$('input.date-picker').datePicker({endDate:'05/11/2006'});
	// OR
	// all inputs with a class of "date-picker" have a date picker which lets you pick any date from 05/03/2006 till 05/11/2006
	//$('input.date-picker').datePicker({startDate:'05/03/2006', endDate:'05/11/2006'});
	// OR 
	// the input with an id of "date" will have a date picker that lets you pick any day in the future...
	// $('input#date1').datePicker();
	// ...and the input with an id of "date2" will have a date picker that lets you pick any day between the 02/11/2006 and 13/11/2006
	$('input#datum').datePicker({startDate:'02/11/2007', endDate:'13/11/2011'});

	/*
	// testing code to check the change event is fired...
	$('input#date1').bind(
		'change',
		function()
		{
			alert($(this).val());
		}
	);
	*/
	
	// END DIFFERENT OPTIONS //

}

function shadow()
{
	$('#container').dropShadow();  // Creates new drop shadows
	$('.foto').dropShadow();  // Creates new drop shadows
}


  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-4533200-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();


