$(document).ready(function(){
	$('.t-list').click(
		function(){
			$('.t-l-menu').toggle('slow');
		}
	);
	
	
	$('#navi-map').hover(
		function() {
			$(this).attr("src", "../images/navi-map-hover.gif");
		},
		function() {
			$(this).attr("src", "../images/navi-map.gif");
		}	
	);

	$('#navi-phone').hover(
		function() {
			$(this).attr("src", "../images/navi-phone-hover.gif");
		},
		function() {
			$(this).attr("src", "../images/navi-phone.gif");
		}	
	);

	$('#navi-home').hover(
		function() {
			$(this).attr("src", "../images/navi-home-hover.gif");
		},
		function() {
			$(this).attr("src", "../images/navi-home.gif");
		}
	);

	$("table.schedule tr:even").each(function(){
		var counter = 0;
		$(this).children('td').slice(1).each(function(){
			
			if((this.innerHTML.match(/^\&nbsp;$/)) || (this.innerHTML.match(/^\s+$/))||(this.innerHTML.match(/^\&nbsp;/))){
				counter++;
			}
		});
		
		if(counter>6){
			$(this).css('display', 'none');
			counter = 0;
		}else{
			/*	NTD	*/
		}
	});
	
	$("table.schedule td").filter(function(){return this.innerHTML.match(/^\&nbsp;$/)}).css("background-color", "#fbf8ef");
	$("table.schedule td").filter(function(){return this.innerHTML.match(/^\s+$/)}).css("background-color", "#fbf8ef"); // заглушка для для оперы

});