// var canvascheck = document.createElement('canvas'); 
// if(canvascheck.getContext || (document.all && document.namespaces && !window.opera)){ 
//     document.writeln('<style type="text/css">'); 
//     document.writeln('img.instant { visibility: hidden; }'); 
//     document.writeln('<\/style>'); 
// } 
Cufon.replace('h1');
Cufon.replace('h2');
Cufon.replace('h3');
Cufon.replace('h4');

Cufon.replace('#menu a') ;

$(document).ready(function(){
	$('#upcoming *').tooltip({
		showURL: false,
		fade: 250,
		track: true
		});

	$("#plan area").tooltip({ 
	    bodyHandler: function() { 
	        return $($(this).attr("href")).html(); 
	    }, 
	    showURL: false,
			fade: 250,
			track: true 
	});

	$('.fancy').fancybox(
			{'overlayOpacity': 0.7}
		) ;
		
	$("a[href*=.pdf]").click(function(){
		window.open(this.href);
		return false;
	});
	
	$("#jplayer_play img").hover(
		function(){
			$(this).attr('src', "/images/icons/control_play_blue.png");
		},
		function(){
			$(this).attr('src', "/images/icons/control_play.png");
		}
	);

	$("#jplayer_pause img").hover(
		function(){
			$(this).attr('src', "/images/icons/control_pause_blue.png");
		},
		function(){
			$(this).attr('src', "/images/icons/control_pause.png");
		}
	);
}) ;