$(document).ready(
	function ()
	{	
		$('#loga').html ($('#logasrc').html());
		$('#logasrc').css ('display','none');
		/*
		$('#loga .fade').innerfade(
		{
			speed: 'slow',
			timeout: 5000,
			type: 'random',
			containerheight: '160px'
		});*/
		$('#loga .fade').height('160px');

		$('#loga .fade').cycle({ 
			fx:    'fade', 
			pause:  1,
			random: 0,
			timeout: 5000
		});

        $('input[id^=items][type=checkbox]').each(function(){
           eval($(this).attr("onclick"));
        });
	}
);

function toggleDates(ws, arr,checked){
   if(checked){
      $(".disabled-" + ws).removeClass('disabled');
   }else{
      $(".disabled-" + ws).addClass('disabled');
   }

   if(document.getElementById('phpp['+ws+'][0]')){
      document.getElementById('phpp['+ws+'][0]').disabled = !checked;
      document.getElementById('phpp['+ws+'][1]').disabled = !checked;
   }

   for(var i in arr){
      if(document.getElementById('date['+arr[i]+']'))
      document.getElementById('date['+arr[i]+']').disabled = !checked;
   }
}