
function toggle_menu_button(obj) {
  var thesrc = obj.src;
  if (thesrc.indexOf('1.jpg') > 0)
    thesrc = thesrc.replace('1.jpg', '2.jpg');
  else
    thesrc = thesrc.replace('2.jpg', '1.jpg');
  obj.src = thesrc;
}

function toggle_menu_button2(obj) {
  var thesrc = obj.src;
  if (thesrc.indexOf('1.png') > 0)
    thesrc = thesrc.replace('1.png', '2.png');
  else
    thesrc = thesrc.replace('2.png', '1.png');
  obj.src = thesrc;
}

function animate_column(column_no, updown) {
  var column = document.getElementById('column'+column_no);
  var column_inner = document.getElementById('column'+column_no+'_inner');
  if (updown=="up") {
    /*column.style.top = '170px';
    column.style.height = '250px';
    column_inner.style.top = '2px';
    column_inner.style.height = '245px';*/
	
	column.style.top = '170px';
    column.style.height = '249px';
    column_inner.style.top = '2px';
    column_inner.style.height = '245px';
  }
  else {
    /*column.style.top = '217px';
    column.style.height = '202px';
    column_inner.style.top = '2px';
    column_inner.style.height = '199px';*/
	
	column.style.top = '217px';
    column.style.height = '202px';
    column_inner.style.top = '2px';
    column_inner.style.height = '199px';
  }
}

function autoResizeFrame() {
  try{
    frame = document.getElementById('theiframe');
    innerDoc = (frame.contentDocument) ? frame.contentDocument : frame.contentWindow.document;
    objToResize = (frame.style) ? frame.style : frame;
    objToResize.height = 10;
    objToResize.height = innerDoc.body.scrollHeight + 10;
  }
    catch(err){
    //window.status = err.message;
  }
}

function toggleMenu(objID) {
	if (!document.getElementById) return;
	var ob = document.getElementById(objID).style;
	ob.display = (ob.display == 'block')?'none': 'block';
}
