(function(A){A.fn.popupWindow=function(B){return this.each(function(){A(this).click(function(){A.fn.popupWindow.defaultSettings={centerBrowser:0,centerScreen:0,height:500,left:0,location:0,menubar:0,resizable:0,scrollbars:0,status:0,width:500,windowName:null,windowURL:null,top:0,toolbar:0};
settings=A.extend({},A.fn.popupWindow.defaultSettings,B||{});var C="height="+settings.height+",width="+settings.width+",toolbar="+settings.toolbar+",scrollbars="+settings.scrollbars+",status="+settings.status+",resizable="+settings.resizable+",location="+settings.location+",menuBar="+settings.menubar;
settings.windowName=this.name||settings.windowName;settings.windowURL=this.href||settings.windowURL;var D,E;if(settings.centerBrowser){if(A.browser.msie){D=(window.screenTop-120)+((((document.documentElement.clientHeight+120)/2)-(settings.height/2)));E=window.screenLeft+((((document.body.offsetWidth+20)/2)-(settings.width/2)))
}else{D=window.screenY+(((window.outerHeight/2)-(settings.height/2)));E=window.screenX+(((window.outerWidth/2)-(settings.width/2)))}window.open(settings.windowURL,settings.windowName,C+",left="+E+",top="+D).focus()}else{if(settings.centerScreen){D=(screen.height-settings.height)/2;
E=(screen.width-settings.width)/2;window.open(settings.windowURL,settings.windowName,C+",left="+E+",top="+D).focus()}else{window.open(settings.windowURL,settings.windowName,C+",left="+settings.left+",top="+settings.top).focus()}}return false})})}})(jQuery);