function artSort(opt,article) {
 var jR=new Request.JSON({url:'/', onComplete:function(res){
$("artic").innerHTML=res;
}}).post({"md":"art","sort":opt,"article":article});
}
function getFeed() {
 location='/?feed=rss';
}
if(typeof addvent != 'function') {
 var addvent = function(o,t,f,l) {
  var d='addEventListener', n='on'+t,rO=o,rT=t,rF=f,rL=l;
  if(o[d] && !l) return o[d](t,f,false);
  if(!o._evts) o._evts={};
  if(!o._evts[t]){
   o._evts[t] = o[n] ? { b: o[n] } : {};
   o[n] = new Function('e',
    'var r=true,o=this,a=o._evts["'+t+'"], i; for (i in a){' +
     'o._f=a[i]; r=o._f(e||window.event) != false && r; o._f=null;' +
     '} return r');
   if (t != 'unload') addvent(window,'unload',function(){removeEvent(rO,rT,rF,rL);});
  }
  if(!f._i) f._i=addvent._i++;
  o._evts[t][f._i]=f;
 };
 addvent._i=1;
 var removeEvent=function(o,t,f,l) {
  var d='removeEventListener';
  if(o[d] && !l) return o[d](t,f,false);
  if(o._evts && o._evts[t] && f._i) delete o._evts[t][f._i];
 };
}
addvent(window, "load", function() {
 if($defined($('ccm'))) {
  $('ca').makeResizable({handle:$('cmvr'), limit: {y:[40,9999]}, invert:false, modifiers: {x: false, y: 'height'},
 onDrag:function(el){
$('ca').setStyle('bottom', $('ccm').getCoordinates().top-1);
}});
  $('ccm').makeResizable({handle:$('cmvr'), limit: {y:[40,9999]}, invert:true, modifiers: {x: false, y: 'height'},
 onDrag:function(el){
if($('ccm').getCoordinates().top < 201) this.stop();
else if($('ccm').getCoordinates().height <= 40) this.stop();
else if($('ccm').getCoordinates().top >= $('ftn').getCoordinates().top-40) this.stop();
}});
 }
 if($defined($('fccm'))) {
  $('ca').makeResizable({handle:$('cmvr'), limit: {y:[40,9999]}, invert:false, modifiers: {x: false, y: 'height'},
 onDrag:function(el){
$('ca').setStyle('bottom', $('fccm').getCoordinates().top-1);
}});
  $('fccm').makeResizable({handle:$('cmvr'), limit: {y:[40,9999]}, invert:true, modifiers: {x: false, y: 'height'},
 onDrag:function(el){
if($('fccm').getCoordinates().top < 201) this.stop();
else if($('fccm').getCoordinates().height <= 40) this.stop();
}});
 }
 if($defined($('ftn'))) {
  $('ca').makeResizable({handle:$('fmvr'), limit: {y:[40,9999]}, invert:false, modifiers: {x: false, y: 'height'},
 onDrag:function(el){
$('ca').setStyle('bottom', $('fccm').getCoordinates().top-1);
}});
  $('ftn').makeResizable({handle:$('fmvr'), limit: {y:[40,9999]}, invert:true, modifiers: {x: false, y: 'height'},
 onDrag:function(el){
if($('ftn').getCoordinates().height <= 40) this.stop();
else if($('ca').getCoordinates().height < 148) this.stop();
}});
  $('ccm').makeResizable({handle:$('fmvr'), limit: {y:[40,9999]}, invert:true, modifiers: {x: false, y: 'height'},
 onDrag:function(el){
if($('ccm').getCoordinates().top < 201) this.stop();
else if($('ccm').getCoordinates().height <= 40) this.stop();
}});
 }
});

