(function($) {
	$(document).ready(function() {
		$('a.btn-print').click(function() {
			/*var oDiv = document.createElement('div');
			$(oDiv)
				.css({
					width: '100%',
					height: '100%',
					position: 'absolute',
					left: '0',
					top: '0',
					zIndex: '1000',
					backgroundColor: 'white',
					display: 'none'
				})
				.appendTo('body')
				.fadeIn(function() {
					var screenStyles = [];
					var printStyles = [];
					
					$("link").each(function() {
						if ($(this).attr('media') != 'undefined') {
							if ($(this).attr('media') == 'print') {
								printStyles.push(this);
							}
							
							if ($(this).attr('media') == 'screen') {
								screenStyles.push(this);
							}
						}
						else {
							screenStyles.push(this);
						}
					});
					
					for (var i = 0; i < screenStyles.length; i++) {
						$(screenStyles[i]).remove();
					}
					
					for (var i = 0; i < printStyles.length; i++) {
						$(printStyles[i]).attr('media', 'screen');
					}
					
					$(oDiv).fadeOut(function() {
						console.log(window.print());
					});
				});*/
			
			//window.print();
			
			window.open(window.location.href + '?print=yes', 'printScreen', 'status=no,toolbar=no,width=1000,height=600,scrollbars=yes');
			return false;
		});
	});
})(jQuery);
