
run(updateSize);

window.onresize = updateSize;
window.onorientationchange = updateSize;

function updateSize() {
	var win = dom.dimensions('#window');
	style.display('phone',(win.w>570));
	
	if (dom.id('productselector')) {
		style.display('productselector',(win.w>700));
	}
}

function toggleInfo(id) {
	var s = document.getElementById(id).style;
	if (s.display!='block') s.display = 'block';
	else s.display = 'none';
}
