/**
 * BonySearch is an object that encapsulate the logon, register ...
 * transaction requests & callback
 */ 
var BonyArticle = {
	start:0,
	id_content:0,
	/**
	 * complete callback
	 */
	completegetOthers : function(request){
		//var result = eval('(' + request.responseText + ')');
		
		if($('loading')) $('loading').removeClassName('ajax-loading') ;
		$('nav_articles').innerHTML = request.responseText ;
				
		sIFR.replace({
		selector: 'h3.replaced',
  		wmode: 'transparent',
	    src: {
  			'7': 'public/gfx/swf/diavlo.swf' 
  		}, 
  		css: {'.sIFR-root': {'background':'none','font-size':'13px','color':'#2E3130','text-align':'left','text-transform':'uppercase' }
}
		});

	},
	getOthers: function(id_content){
		if($('loading')) $('loading').addClassName('ajax-loading') ;
		
		if(id_content) this.id_content = id_content ; 
		
		var ajax = new Ajax.Request(PmsUrl.getBaseUrl() + 'bony/article/getOthers', 
		{
			method: 'post', 
			parameters: 'id_content=' + this.id_content + '&start=' + this.start,
			onComplete: BonyArticle.completegetOthers
		});
	},
	next: function(start){
		this.start = start ;
		BonyArticle.getOthers() ;
	}
};