var stylesheet, breedte;
var agent = navigator.userAgent.toLowerCase();
if (window.innerWidth) {
  breedte = window.innerWidth;
} else {
  breedte = document.body.clientWidth;
}

if (breedte<=540) {
  stylesheet = 'position.css'
}
else if (breedte<=700) {
	if (agent.indexOf("win")>=0) {
		if (navigator.appName =="Netscape") stylesheet = 'position2ns.css';
		if (navigator.appName == "Microsoft Internet Explorer") stylesheet = 'position2.css';
		}
	else if (agent.indexOf("mac")>=0) {
		if (navigator.appName =="Netscape") stylesheet = 'position2ns.css';
		if (navigator.appName == "Microsoft Internet Explorer") stylesheet = 'position2.css';
		}
	else stylesheet = 'position2ns.css';
	}
else if (breedte<=955) {
	if (agent.indexOf("win")>=0) {
		if (navigator.appName =="Netscape") stylesheet = 'position3ns.css';
		if (navigator.appName == "Microsoft Internet Explorer") stylesheet = 'position3.css';
		}
	else if (agent.indexOf("mac")>=0) {
		if (navigator.appName =="Netscape") stylesheet = 'position3ns.css';
		if (navigator.appName == "Microsoft Internet Explorer") stylesheet = 'position3.css';
		}
	else stylesheet = 'position3ns.css';
	}
else if (breedte<=1210) {
	if (agent.indexOf("win")>=0) {
		if (navigator.appName =="Netscape") stylesheet = 'position4ns.css';
		if (navigator.appName == "Microsoft Internet Explorer") stylesheet = 'position4.css';
		}
	else if (agent.indexOf("mac")>=0) {
		if (navigator.appName =="Netscape") stylesheet = 'position4ns.css';
		if (navigator.appName == "Microsoft Internet Explorer") stylesheet = 'position4.css';
		}
	else stylesheet = 'position4ns.css';
	}
else {
	if (agent.indexOf("win")>=0) {
		if (navigator.appName =="Netscape") stylesheet = 'position5ns.css';
		if (navigator.appName == "Microsoft Internet Explorer") stylesheet = 'position5.css';
		}
	else if (agent.indexOf("mac")>=0) {
		if (navigator.appName =="Netscape") stylesheet = 'position5.css';
		if (navigator.appName == "Microsoft Internet Explorer") stylesheet = 'position5ns.css';
		}
	else stylesheet = 'position5.css';
}

document.writeln('<style type="text/css"><!-- @import url(' + stylesheet + '); --> </style>');

// om via een link om te schakelen
function demo(x, y)
{
 window.resizeTo(x, y);
 location.reload();
}

//


