$.fn.printpage = function() {
	if (window.print){
		return this.each(function(){
			$(this).click(function(event){
				event.preventDefault();
				
				switch(true){
					case $.browser.msie:
					case $.browser.mozilla:
					case $.browser.opera:
					case typeof $.browser.chrome != 'undefined' && $.browser.chrome:
					case $.browser.safari:
					default:
						window.print();
				}
			});
		});
	}
};