var $j = jQuery.noConflict(); var db_prefix = ''; var poptest = { init: function(dir_1,dir_2,url_1,body_1,head_1) { $j(dir_1).css('opacity', '1.0'); $j(dir_2).show(); $j(dir_1).show(); $j(head_1).show(); $j.ajax ( { url: db_prefix + url_1, dataType: 'html', success: function ( html ) { $j(body_1).css({'overflow':'auto'}); $j(body_1).html( html ); return false; }, error: function ( errorData, errorType ) { $j(body_1).css('display','none'); return false; } } ); }, close: function (dir_1,dir_2,head_1) { $j(dir_2).hide(); $j(dir_1).hide(); $j(head_1).hide(); $j(head_1).css('display','none'); if(this.timeout) { clearTimeout(this.timeout); } } };