	NS4 = (document.layers);
	IE4 = (document.all);

	scaleWidth = true;
	scaleHeight = true;

if (NS4) window.onload = setResize;

function setResize(){
    setTimeout("window.onresize=reDo;",500);
}

function reDo(){
    window.location.reload()
}

if (IE4) window.onresize = reDoIE;

function reDoIE(){
    imBG.width = document.body.clientWidth;
    imBG.height = document.body.clientHeight;
}
function makeIm(bgimage) {

  winWid = (NS4) ? innerWidth : document.body.clientWidth;
  winHgt = (NS4) ? innerHeight : document.body.clientHeight;

  imStr = "<DIV ID=elBGim"
  + " STYLE='position:absolute;left:0;top:0;z-index:-1'>"
  + "<IMG NAME='imBG' BORDER=0 SRC=" + bgimage;
  if (scaleWidth) imStr += " WIDTH=" + winWid;
  if (scaleHeight) imStr += " HEIGHT=" + winHgt;
  imStr += "></DIV>";

  document.write(imStr);

}

function flipimage(img_name,img_src,row) {
	var row = (row == null) ? -1 : row;
	row = row - 1;
	//alert ('variable ' + img_name + 'selected is ' + row);
	if (row == -2)
	{
		document[img_name].src=img_src;
	}
	else
	{
		document[img_name][row].src=img_src;
	}
}