



jQuery(document).ready(function ()
{
	
	jQuery(".fancybox").fancybox({ 'hideOnContentClick': false });
	
	//jQuery(".calendarSelectDate").datepicker();
	
	
	/*
		Tooted
	*/
			jQuery("[name=DELIVERY_METHOD]").change(function (){
															  
				if(jQuery("input[@name='DELIVERY_METHOD']:checked").val() == 'pick_up_myself')
				{
					jQuery("#MEMO").attr('disabled', 'disabled');
				}
				else
				{
					jQuery("#MEMO").attr('disabled', '');	
				}
				
			});
			
     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, 1000);
    }

});



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();
    });
}

