function makeBigger(obj, size, interval) {
      obj.width+=size;
}

function makeSmaller(obj, size, interval) {
      obj.width-=size;                                            
}

function loadBig(filename, sender) {
   if(obj = document.getElementById('big_photo')) {
      obj.src = '/uploads/big/'+filename;
      obj.parentNode.href = sender.href;
      return false;
   }
   return true;
}

function showPreview(e, u) {
/*
   e = e || window.event;
   left = e.x || e.clientX;
   top = (e.y || e.clientY);
   $('#preview').load(u).css('left', (left+10)+'px').css('top', (top)+'px').show();
*/
   return true;
}

function changeBG(obj, color) {
   obj.parentNode.style.backgroundColor = color;
}

function expand(obj, sender) {
   obj.style.height = 'auto';
   sender.className = 'doSmaller';
   sender.onclick = function(){ collapse(obj, sender) }
}

function collapse(obj, sender) {
   obj.style.height = '200px';
   sender.className = 'doBigger';
   sender.onclick = function(){ expand(obj, sender) }
}

function openWin(url) {
   win = window.open("/show.php?image="+url, null, 'toolbar=no, scrolling=no, width=790, height=590, left=5, top=5');
   return false;
}