

 

jQuery(document).ready(function ()
{

	jQuery(".calendarSelectDate").datepicker();
	
	jQuery('#algus').datepicker({
		buttonImage: 'images/date.png', 
		showOn: 'both', 
		clickInput:true, 
		startDate:'01/01/1996', 
		buttonImageOnly:true, 
		dateFormat: 'dd.mm.yy'
		//numberOfMonths: [1, 3],
		//showAnim: 'show'
	});
	
	jQuery('#lopp').datepicker({
		buttonImage: 'images/date.png', 
		showOn: 'both', 
		clickInput:true, 
		startDate:'01/01/1996', 
		buttonImageOnly:true, 
		dateFormat: 'dd.mm.yy'
		//numberOfMonths: [1, 3],
		//showAnim: 'show'
	});
	
	//jQuery(window).unload( function () { alert("Bye now!"); } );
	
     // Check if there's a message
     if(jQuery('#msg').length) {
         // the timeout is there to make things work properly in <acronym title="Internet Explorer">IE</acronym>
         // If we have no timeout <acronym title="Internet Explorer">IE</acronym> will trigger mousemove instantly
         //setTimeout(removeMessage, 1500);
    }
	
	jQuery(".fancybox").fancybox({ 'hideOnContentClick': false });
	

});

/*
function removeMessage()
{
    jQuery(document).one('click mousemove keypress', function(e) {
        // Fade the message away after 500 ms
        jQuery('#msg').animate({ opacity: 1.0 }, 1500).fadeOut();
    });
}*/

//http://www.svennerberg.com/2009/03/non-modal-alert-with-jquery/


