/**
 * @author shgraph (ajaxUI team)
 */

(function(className) {

	SPS[className] = $Class({
		_o : null,

		$init : function(sEl) {

			var oEl = $(sEl);

			this._o = {
			
				printBtn : $$('.printBtn', oEl)[0]
			};

			this._bindEvents();
			
			
		},
		_bindEvents : function () {
		
			var o = this._o;
		
			if (o.printBtn) {

				$Fn(function(oEvent) {

					if (!o.printBtn) return;
					
					 SPS.popup( o.printBtn.href, 700, 600, {
						canResize : false,
						canScroll : true,
						name : 'print_detail',
						center : true 
					 });
					 
					oEvent.stop();

				}).attach(o.printBtn, 'click');

			}
			
		}
	
	});

})('cm_btn_content');
