jQuery.fn.popupwindow=function(B){var A=B||{};return this.each(function(F){var H,I,D,C,E;D=(jQuery(this).attr("rel")||"").split(",");H={height:600,width:600,toolbar:0,scrollbars:0,status:0,resizable:1,left:0,top:0,center:0,createnew:1,location:0,menubar:0};if(D.length==1&&D[0].split(":").length==1){E=D[0];if(typeof A[E]!="undefined"){H=jQuery.extend(H,A[E])}}else{for(var G=0;G<D.length;G++){C=D[G].split(":");if(typeof H[C[0]]!="undefined"&&C.length==2){H[C[0]]=C[1]}}}if(H.center==1){H.top=(screen.height-(H.height+110))/2;H.left=(screen.width-H.width)/2}I="location="+H.location+",menubar="+H.menubar+",height="+H.height+",width="+H.width+",toolbar="+H.toolbar+",scrollbars="+H.scrollbars+",status="+H.status+",resizable="+H.resizable+",left="+H.left+",screenX="+H.left+",top="+H.top+",screenY="+H.top;jQuery(this).bind("click",function(){var J=H.createnew?"PopUpWindow"+F:"PopUpWindow";window.open(this.href,J,I).focus();return false})})};
