$(document).ready(function() { 
	$('.highlight').mouseover(function(){
	})
 });
 
 $(function(){
	$('area').hover(function(){
		var area = $(this).attr('alt');
		$(this).parent().parent().find('img').addClass('hidden');
		$(this).parent().parent().find('img.'+area).removeClass('hidden');
	}, function(){
		$(this).parent().parent().find('img').addClass('hidden');
		$(this).parent().parent().find('img.default').removeClass('hidden');
	});
	
	$('.quality-switch').data('high', true).live('click', function(){
		if($(this).data('high') == true){
			$(this).data('high', false); 
			var src = $('#low').val();
			$(this).html('Switch to HQ');
		}else{
			$(this).data('high', true); 
			var src = $('#high').val();
			$(this).html('Switch to LQ');
		}
		$('#jstest2').get(0).sendEvent('LOAD', src);
		$('#jstest2').get(0).sendEvent('PLAY', false);
		return false;
	});
	
	
	
});
