if(typeof(Prototype)=="undefined"){throw"Cookie requires Prototype to be loaded."
}if(typeof(Object.Event)=="undefined"){throw"Cookie requires Object.Event to be loaded."
}var Cookie={build:function(){return $A(arguments).compact().join("; ")
},secondsFromNow:function(b){var a=new Date();
a.setTime(a.getTime()+(b*1000));
return a.toGMTString()
},set:function(a,c,d){Cookie.notify("set",a,c);
var b=d?"expires="+Cookie.secondsFromNow(d):null;
document.cookie=Cookie.build(a+"="+c,b,"path=/")
},get:function(a){Cookie.notify("get",a);
var b=new RegExp(a+"=([^;]+)").exec(document.cookie);
return b?b[1]:null
},unset:function(a){Cookie.notify("unset",a);
Cookie.set(a,"",-1)
}};
Object.Event.extend(Cookie);
