// low_res_displays():
// zoom for ie with small resolutions

function low_res_displays(min_w, this_page, active){
	var w = document.body.clientWidth;
	var ratio = 1.0;
	var info = 'You are using a very small display-resolution.\n'
				+ 'The website is optimized for resolutions of at least 1280px of width.\n'
				+ '\n'
				+ 'Should the website be zoomed to fit your resolution?\n'
				+ '\n'
				+ 'Info: This may change the visual experience.';

	if(min_w != null && min_w != 0){
		if(w <= min_w){
			ratio = parseFloat(w / min_w);
			if(active == '' || active == null){
				if(confirm(info)){
					body_scale(ratio);
					document.location = this_page + "&zoom=1";
				} else {
					document.location = this_page + "&zoom=0";
				}
			} else {
				if(active == '1'){
					body_scale(ratio);
				}
			}
		}
	}
}
