function viewCate(show,hide){
    document.getElementById(hide).style.display = 'none';
    document.getElementById(show).style.display = 'block';
}

function swap_content( span ) {
    displayType = ( document.getElementById( span ).style.display == 'none' ) ? 'block' : 'none';
    document.getElementById( span ).style.display = displayType;
}

function Go(x) {
  if (x == "nothing") {
    parent.focus();
    return;
  } else {
    parent.location.href = x;
  }
}

