
jQuery.fn.popup=function(options){var defaults={url:'#',name:'',event:'click',onload:false,checkurl:true,focus:true,features:{height:600,width:600,toolbar:0,scrollbars:0,status:0,resizable:1,left:0,top:0,location:0,menubar:0}};features=jQuery.extend(defaults.features,options.features);var opts=jQuery.extend(defaults,options);opts.features=features;return this.each(function(){jQuery(this).bind(opts.event,function(evt){var win;parameters="location="+opts.features.location+",menubar="+opts.features.menubar+",height="+opts.features.height+",width="+opts.features.width+",toolbar="+opts.features.toolbar+",scrollbars="+opts.features.scrollbars+",status="+opts.features.status+",resizable="+opts.features.resizable+",left="+opts.features.left+",screenX="+opts.features.left+",top="+opts.features.top+",screenY="+opts.features.top;!opts.checkurl||checkUrl(opts.url)?win=window.open(opts.url,opts.name,parameters):win=undefined;opts.focus&&win?win.focus():true;evt.preventDefault();});defaultRegistry.getTimesDomChanged()==0&&opts.onload?jQuery(this).trigger(opts.event):true;});function checkUrl(url){var fullQDom=url.match(/^http[s]?:\/\/[^\/]*/);if(!fullQDom)return true;var theDomain=fullQDom[0].split("://")[1];if(theDomain.match(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/)){return theDomain==document.domain?true:false;}else{return theDomain.split(".").slice(-2).join(".")==document.domain.split(".").slice(-2).join(".")?true:false;}}};jQuery(document).ready(function(){defaultRegistry.addEntry("popup","popup")});var initPopup={};initPopup.postboxReminder={height:330,width:335,toolbar:0,scrollbars:0,status:0,resizable:0,left:50,top:50,location:0,menubar:0};initPopup.logoffReminder={height:390,width:490,toolbar:0,scrollbars:0,status:0,resizable:0,left:50,top:50,location:0,menubar:0};