var min_width = 984;

function determineWidth() {
	var browser_width;
	if(document.all) browser_width = document.body.clientWidth;
	else if ((document.layers) || (document.getElementById)) { browser_width = innerWidth; browser_width -= 30; }
	if (browser_width < min_width) { return false; }
	else { return true;	}
}

function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
      a.disabled = true;
      if(a.getAttribute("title") == title) a.disabled = false;
    }
  }
}

function checkVisibility() {
	determinator = determineWidth();
	if(determinator)  setActiveStyleSheet('');
	else setActiveStyleSheet('low'); 
}

