var medley;
$(function(){
	
		soundManager.url = '/js/swf'; // directory where SM2 .SWFs live
		soundManager.debugMode=false;
		
		soundManager.onload = function() {
		  // soundManager is ready to use.
		  // createSound() / play() etc. can now be called

 		medley= soundManager.createSound({
		    id: 'medley',
		    url: '/medley.mp3'		  });
		
		
//		medley.play();

	}
	
	$("#snowman").animate({opacity:.8}).fadeIn(2000);
	
	
	$("#snowman").toggle(function(){
		$(this).animate({opacity:1},function(){
			medley.togglePause("medley");
		})
			
	},function(){
		$(this).animate({opacity:.7},function(){
			medley.togglePause("medley");
		})
	})
});