function load_image(base, next_work_id, next_pic_id) {
  new Ajax.Updater(
    'work_div',
    base + '/work/view/' + next_work_id + '/' + next_pic_id + '/ajax',
    {
      asynchronous:true,
      evalScripts:true,
      requestHeaders:['X-Update', 'work_div'],
      onComplete:function(request, json) {Element.hide('picture'); Effect.Appear('picture',{duration: 0.5})},
      onLoading:function(request) {Effect.Fade('picture',{duration: 0.5})}
    }
  );
}
function project_change(val) {
  if(val.substr(0,3) != "cat") {
    new Ajax.Updater(
      'work_div',
      html_base+'/work/view/'+val+'/0/ajax',
      {
        asynchronous:true,
        evalScripts:true,
        requestHeaders:['X-Update', 'work_div'],
        onComplete:function(request, json) {Element.hide('picture'); Effect.Appear('picture',{duration: 0.5})},
        onLoading:function(request) {Effect.Fade('picture',{duration: 0.5})}
      }
    );
  }
}
