function resizeWindow(num) {

  document.getElementById('html-carousel').style.width = getWindowWidth() - 150 + 'px';
  document.getElementById('prev-arrow-container').style.marginLeft = 50 + 'px';

  for (var i = 1; i <= num; i++) {
    document.getElementById('list_image_' + i).style.height = getWindowHeight() - 150 + 'px';
    document.getElementById('li_element_' + i).style.width = getWindowWidth() - 180 + 'px';
  }

  // document.getElementById('prev-arrow-container').style.marginTop = getWindowHeight() / 2 - 180 + 'px';
  // document.getElementById('test').style.height = 200 + 'px';
}

function viewerResize() {
	document.getElementById('flashcontent').style.height = getWindowHeight() - 120 + 'px';
}

function getWindowHeight(win) {
  if (win == undefined) win = window;
  if (win.innerHeight) {
    return win.innerHeight;
  } else {
    if (win.document.documentElement && win.document.documentElement.clientHeight) {
      return win.document.documentElement.clientHeight;
    }
    return win.document.body.offsetHeight;
  }
}

function getWindowWidth(win) {
  if (win == undefined) win = window;
  if (win.innerWidth) {
    return win.innerWidth;
  } else {
    if (win.document.documentElement && win.document.documentElement.clientWidth) {
      return win.document.documentElement.clientWidth;
    }
    return win.document.body.offsetWidth;
  }
}
