var useBSNns;

if (useBSNns)
{
	if (typeof(bsn) == "undefined")
		bsn = {}
	var _bsn = bsn;
}
else
{
	var _bsn = this;
}




_bsn.resizr = {
	isNarrow:	false,
	nThreshold: 920
}




_bsn.resizr.onresize = function ()
{
	var w = Number(window.innerWidth);
	if (!w)
		w = document.body.clientWidth;

	if (w < this.nThreshold  &&  !this.isNarrow)
	{
		document.getElementsByTagName("body")[0].className = "narrow";
		this.isNarrow = true;
	} else if (w > 900  &&  this.isNarrow) {
		document.getElementsByTagName("body")[0].className = "";
		this.isNarrow = false;
	}
}


window.onresize = function ()
{
	_bsn.resizr.onresize();
}