/* GUI functions
*  v.1.0.0.1 25Jan02 buzu
*  v.1.0.0.2 29Jan02 DGM
*  
*/

// Adjust the actual viewable area

function LPL_adjustViewable (viewW,viewH) {
	if (window.innerWidth) { // Netscape
  		window.innerWidth=viewW;
  		window.innerHeight=viewH;
 	 } else if (window.document.body.clientHeight && window.document.body.clientWidth) { // MSIE
		deltaW=viewW-window.document.body.clientWidth;
		deltaH=viewH-window.document.body.clientHeight;
		window.resizeBy(deltaW,deltaH);
  	} else { // ???
		window.resizeTo(780,540);
 	}
}

// scrolling bar functions. Works with MSIE only

function disableScroll () {
	if (document.body.scroll) { document.body.scroll='no' } // MSIE only

}

function enableScroll () {
	if (document.body.scroll) { document.body.scroll='yes' } // MSIE only
}