var formaat=2

function swapSS(to) {
	formaat = to
	setformat(formaat)
}

function groter() {
   if (formaat < 3) setformat(++formaat)
}

function kleiner() {
   if (formaat > 1) setformat(--formaat)
}

function setformat(size) {
	css = "css/stylesheet" + size + ".css"
   document.all.linkStyle.href = css
	document.cookie = 'size=' + size
}


var aCookie = document.cookie.split('; '), i = aCookie.length, aCrumb;
formaat = 2
while (i--) {
	aCrumb = aCookie[i].split('=');
	if ('size' == aCrumb[0]) formaat = aCrumb[1]
}
setformat(formaat)
