
var SBS={
  		_fs: "s",
  		init: function(){
    		this._fs = (jQuery.cookie('fs') == 'undefined')?"s":jQuery.cookie('fs');
    		if(this._fs == "l"){
      		this.increase();
    		}else{
      		$("img#fs").attr("src", "images/icon-font_s.png");
    		}
  		},
  		changeFontSize:function(){
    		if(this._fs == "s"){
      		this._fs = "l";
      		$(".bottom_line_content_text").addClass("big");
    		}else{
      		this._fs = "s";
      		$(".bottom_line_content_text").removeClass("big");
    		}
    		jQuery.cookie('fs', this._fs, 365);
  		},
  		expand:function(id, elm){
    		$("tbody#"+id).show();
  		},
        printPage: function(baseUrl, print_type, article_id, page) {
            /**
             * put whatever call you'd like in here, but here's a starter
             */
            w = 680;
            h = 600; 
            LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
			TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
			if(page==null)  {
  				window.open(baseUrl+'/print/'+print_type+'/'+article_id, 'print_view', 'width=680,height=600,top='+TopPosition+',left='+LeftPosition+',resizable=yes,scrollbars=yes');
  			} else {
				window.open(baseUrl+'/print/'+print_type+'/'+article_id+'/page/'+page, 'print_view', 'width=680,height=600,top='+TopPosition+',left='+LeftPosition+',resizable=yes,scrollbars=yes');
        	}
        },
        
        reportthisPage: function(baseUrl, article_id) {
            /**
             * put whatever call you'd like in here, but here's a starter
             */
             w = 675;
             h = 495;
             LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
			 TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
			window.open(baseUrl+'/reportthis/'+article_id, 'reportthis_view', 'width=675,height=495,top='+TopPosition+',left='+LeftPosition+',resizable=yes,scrollbars=auto');
        }
};

