// specify background textures here
var bgimg = "bg/bluesand2.jpg";

var w, h = 0;
function setImage() {
		w = getWindowContentWidth(self);
		h = getWindowContentHeight(self);

		// alert("W:" + w + " H:" + h + " --> NW:" + (w - 18) + " NH:" + (h - 2));
}

setImage();

document.writeln('<div id="bgwrapper">');
document.writeln('<img name="bg" src="' + bgimg + '" width="' + w + '" height="100%">');
document.writeln('</div>');
