//<![CDATA[

	$(document).ready(function(){
		
		$(".date").datepicker({ 
					dateFormat: "yy-mm-dd", 
			    	showOn: "both", 
				    buttonImage: "images/calendar.png", 
			    	buttonImageOnly: true 
		}); 
		
		
		function stripe() {
			$('.striped tr').removeClass("even");
			$('.striped tr:even').addClass("even");
			$('tr').mouseover(function() {$(this).addClass("over"); }).mouseout(function() {$(this).removeClass("over"); });
			
		}// end function stripe
       

		$(".playbutton").click(function() {
			var $this = $(this);
			var $thistr = $this.parent("td").parent("tr");
			var $nexttr = $thistr.next("tr") ;
			
			if ($nexttr.is(":hidden")) {
				$nexttr.show();
				$this.html('<a href="#" class="closeplayer"><img src="/images/close.png" width="16" height="16" alt="Close" title="Close" border="0" /></a>');
				$thistr.addClass("active"); 
				$nexttr.addClass("active");
			}
			else {
				$nexttr.hide();
				$this.html('<a href="#" class="playbutton"><img src="/images/play.png" width="16" height="16" alt="Play" title="Play" border="0" /></a>') ;									
				$thistr.removeClass("active"); 
				$nexttr.removeClass("active");
			}
			

			return false;
		});

		$(".closeplayer").click(function() {
			var $this = $(this);
			var $thistr = $this.parent("td").parent("tr");
			var $previoustr = $thistr.prev("tr") ;                       
			$previoustr.children("td").eq(3).children("a").html('<a href="#" class="playbutton"><img src="/images/play.png" width="16" height="16" alt="Play" title="Play" border="0" /></a>') ;			   
			$thistr.removeClass("active"); 
			$previoustr.removeClass("active");
			$this.parent("td").parent("tr").hide();
			return false;
		});



	   
	}); // end if jquery




	//]]>
