// jquery.truncate-1.0.min.js (function(d){d.truncate=function(a,e,c){c=c||"…";var b;a=a.split("");if(a.length>e){for(b=a.length-1;b>-1;--b)if(b>e)a.length=b;else if(" "===a[b]){a.length=b;break}a.push(c)}return a.join("")};d.fn.truncate=function(a,e){return this.each(function(){var c=d(this);c.html(d.truncate(c.html(),a,e))})}})(jQuery); (function(c,b){var a=0;c.openWindow=function(i,f){var t={width:"60%",height:"60%",top:"middle",left:"center",location:1,menubar:0,toolbar:0,bookmarks:0,status:0,resizable:1,scroll:1,gui:40,name:"jQuery_popUp",nu:0,focus:1},e=c.extend(t,f),k=[],w=(e.nu)?e.name+a++:e.name,d=b.screen,u=d.height,q=d.width,p=e.width,n=e.height,g=e.left,l=e.top,m=e.gui,h=["location","menubar","toolbar","bookmarks","status","resizable","scroll"],o=h.length,s,v=Math.round,r=function(y,x){return v(x*y.replace("%","")/100)},j;if(p.indexOf){if(p.indexOf("%")){p=r(p,q)}}k.push("width="+p);if(n.indexOf){if(n.indexOf("%")){n=r(n,u)}}k.push("height="+n);if(g.indexOf){if(g.indexOf("%")!==-1){g=r(g,q)}else{switch(g){case"center":g=v((q-p)/2);break;case"left":g=0;break;case"right":g=q-p}}}k.push("left="+g);if(l.indexOf){if(l.indexOf("%")!==-1){l=r(l,u)}else{switch(l){case"middle":l=v((u-n)/2)-m;break;case"top":l=0;break;case"bottom":l=u-n}}}k.push("top="+l);while(o--){s=h[o];k.push(s+"="+(e[s]?"yes":"no"))}j=b.open(i,w,k.join(","));if(e.focus){j.focus()}return j};c.fn.openWindow=function(d){return this.each(function(){var f=this,e=f.href;if(e){c(f).bind("click.openwindow",function(g){g.preventDefault();c.openWindow(e,d)})}})}})(jQuery,window);