     DOM = (document.getElementById) ? true : false;
     NS4 = (document.layers);
     IE4 = (document.all);
    ver4 = (NS4 || IE4 || DOM);   

function bsqueeze(photo,h,l,q) {
	var myHeight = 550;
	var th = h;
	var tl = l;

	if (ver4) {
		if (IE4)
			myHeight = document.body.clientHeight;
		else
			myHeight = innerHeight - 22;

		if ((myHeight * q) <= h) {
			var coef = q * myHeight / h;
			th = Math.round(h*coef);
			tl = Math.round(l*coef);
		}
	}

	mystr = '<img src="'+photo+'" border=0 width="';
	mystr += tl;
	mystr += '" height="';
	mystr += th;
	mystr += '">';
	//alert(mystr);
	document.write (mystr);
}

