

function view(){if(scrollTo()){scrollTo(0,0);}else{scroll(0,0)}}


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 checkWidth() {
//var wWidth = 1000;

// size of browser window, excluding chrome.
//if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
//    wWidth = window.innerWidth;
//  } else if( document.documentElement &&
//      ( document.documentElement.clientWidth ) ) {
    //IE 6+ in 'standards compliant mode'
//    wWidth = document.documentElement.clientWidth+20;
//  } else if( document.body && ( document.body.clientWidth ) ) {
    //IE 4 compatible
//    wWidth = document.body.clientWidth+20;
//  }
//if (wWidth<=790 && wWidth>=610) {setActiveStyleSheet('narrow');}
//else if (wWidth<610) {setActiveStyleSheet('tiny');}
//else {setActiveStyleSheet('null');}


//window.onresize = checkWidth;

}

function dopop(page)
{
window.open(page,'article','width=440,height=460,resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no');
}   

