var x = 0;
var li = 6;

function tabSwitch(actual, change) {
    if(change !== actual){
      el = document.getElementById(actual);
      el.className = 'notSelected';
      elContent = document.getElementById(actual+'-content');
      elContent.style.display = 'none';
      el2 = document.getElementById(change);
      el2.className = 'cd-mi-tab-selected';
      elContent2 = document.getElementById(change+'-content');
      elContent2.style.display = 'block';
      actualTab = change;
    }
}

function listingNext() {
    el = document.getElementById('listing-inner');
    elWidth = el.style.width;
    wdth = elWidth.substring(0,elWidth.length-2);
    if(x>(-wdth)+700){
      x = x-97;
      el.style.left = x+'px';
    }
}

function listingPrevious() {
    el = document.getElementById('listing-inner');
    if(x<0){
      x = x+97;
      el.style.left = x+'px';
    }
}
