Element.addMethods({template:function(element,template,data){element.update(new Template(template).evaluate(data));return element;},toggle:function(element,type,options,callback){new Effect.toggle(element,type||'blind',options);return element;},morph:function(element,options){new Effect.Morph(element,options);return element;},morphStyle:function(element,argument){new Effect.Morph(element,{style:argument});return element;},highlight:function(element,options){new Effect.Highlight(element,Object.extend({queue:{scope:element.id,position:'end'}},options||{}));return element;},fadeIn:function(element,options,callback){new Effect.Appear(element,Object.extend({queue:{scope:element.id,position:'end'},duration:0.5,afterFinish:callback},options||{}));return element;},fadeOut:function(element,options,callback){new Effect.Fade(element,Object.extend({queue:{scope:element.id,position:'end'},duration:0.5,afterFinish:callback},options||{}));return element;},fadeOut2:function(element,options,callback){new Effect.Fade2(element,Object.extend({queue:{scope:element.id,position:'end'},duration:0.5,afterFinish:callback},options||{}));return element;},blindDown:function(element,options){new Effect.BlindDown(element);return element;},slideDown:function(element,options){new Effect.SlideDown(element);return element;}});String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");}
String.prototype.ltrim=function(){return this.replace(/^\s+/,"");}
String.prototype.rtrim=function(){return this.replace(/\s+$/,"");}
var Popup={open:function(options)
{this.options={url:'#',width:800,height:600,name:"_blank",location:"no",menubar:"no",toolbar:"no",status:"yes",scrollbars:"yes",resizable:"yes",left:"",top:"",normal:true}
Object.extend(this.options,options||{});if(this.options.normal){this.options.menubar="no";this.options.status="no";this.options.toolbar="no";this.options.location="no";}
this.options.width=this.options.width<screen.availWidth?this.options.width:screen.availWidth;this.options.height=this.options.height<screen.availHeight?this.options.height:screen.availHeight;var openoptions='width='+this.options.width+',height='+this.options.height+',location='+this.options.location+',menubar='+this.options.menubar+',toolbar='+this.options.toolbar+',scrollbars='+this.options.scrollbars+',resizable='+this.options.resizable+',status='+this.options.status
if(this.options.top!="")
openoptions+=",top="+this.options.top;if(this.options.left!="")
openoptions+=",left="+this.options.left;window.open(this.options.url,this.options.name,openoptions);return false;}}

// Cache: 2010-03-10 05:31:24 | MTime: 2008-06-28 20:11:25 | prototype_addons.js