var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opener = _____WB$wombat$assign$function_____("opener");
var PopUp = {
template : [
'
'
].join( '' ),
remove: function() {
$( '#popup' ).remove();
},
resize: function() {
$('#popup .outerborder' ).css( 'left', ( ( ( $(window).width() ) / 2 - ( parseInt( width ) /2 ) ) + $( document ).scrollLeft( ) ) + 'px').css( 'top', ( ( $(window).height() ) / 2 - ( parseInt( height ) / 2 ) + $(document).scrollTop() ) + 'px');
},
create : function( options ) {
options= options || {};
width = options.width || 200;
height = options.height || 100;
content = options.content || 'hello world';
var self = this;
$( '#popup' ).remove();
if( $( '#popup_appendto' ).length ) {
$.tmpl( this.template, { 'content': content }).prependTo( '#popup_appendto' );
} else {
$.tmpl( this.template, { 'content': content }).prependTo( 'body' );
}
$( '#popup .outerborder' ).width( width ).height( height );
$( '#popup .messagecontent' ).html( content );
$( '#popup .mask' ).height( $(document).height() );
$( function() { $( '#popup .mask' ).height( $(document).height() ); } );
$( window ).resize( function(){ self.resize(); }).scroll( function(){ self.resize(); } );
self.resize();
$( '#popup #close' ).click( function() {
$( '#popup' ).remove();
});
if( options.callback ) {
if( typeof( options.callback ) == 'function' ) {
options.callback();
}
}
},
login_content : [
''
].join( '' ),
success_content: [
'