function OAimfar()
{
    var apubs = new Array();

    this.client   = null;
    this.size     = null;
    this.page     = null;
    this.keypage  = null;
    this.floating = 0;
    this.site     = null;
    this.position = null;
    this.crealist = null;
    this.camplist = null;
    this.annlist  = null;

    this.write = function() 
    {
        if ( null == this.client ) { return; }
        var uri    = 'http://'+this.client+'.solution.weborama.fr/fcgi-bin/diff.fcgi';
        var args   = new Array();
        var codeJS = '';

        if ( null != this.site )     { args.push('ids=' + this.site); };
        if ( null != this.position ) { args.push('ide=' + this.position); };
        if ( null != this.size )     { args.push('emp=' + this.size); };
        if ( null != this.page )     { args.push('pageid=' + this.page); };
        if ( null != this.floating ) { args.push('floating=' + this.floating); };
        if ( null != this.keypage )  { args.push('page=' + this.keypage); };
        if ( null != this.crealist ) { args.push('cl=' + this.crealist); };
        if ( null != this.annlist )  { args.push('al=' + this.annlist); };
        if ( null != this.camplist ) { args.push('cal=' + this.camplist); };
        if ( typeof(OAimfar.aPubs) == 'object' ) {
          args.push('apubs=' + OAimfar.aPubs.join(','));
        }
        uri    = uri + '?' + args.join('&');
        codeJS = '<scr'+'ipt type="text/ja'+'vasc'+'ript" src="'+uri+'"></scr'+'ipt>';
        document.write(codeJS);
    }
}
OAimfar.aPubs = new Array();
