(function($){
	$(function(){
		//ua checck
		var ua = navigator.userAgent;
		if(ua.indexOf('iPhone')>0||ua.indexOf('iPad')>0||ua.indexOf('iPod')>0){
			$('#uaCheck .flash').remove();
		}
		else{
			$('#uaCheck .quickTime').remove();
		}
		//quickTime
		$('#uaCheck .quickTime .list a').click(function(){
			var width = $('#uaCheck .quickTime .view video').attr('width');
			var height = $('#uaCheck .quickTime .view video').attr('height');
			$('#uaCheck .quickTime .view video').remove();
			$('#uaCheck .quickTime .view').append('<video src="' + $(this).attr('href') + '" width="' + width + '" height="' + height + '" controls></video>');
			return false;
		});
	});
})(jQuery);
