//Script to correct for resolution and broswsr width on prettysick.co.uk. By Yummy Jellybaby.
function bw() {
    if (window.innerWidth) {
        return window.innerWidth;
    }
    else if (document.documentElement && document.documentElement.clientWidth != 0) {
        return document.documentElement.clientWidth;
    }
    else if (document.body) {
        return document.body.clientWidth;
    }
    else if (document.body.offsetWidth) {
        return document.body.offsetWidth;
    }
    return 0;
}
function gW(obj){
	if (!obj.style.width && document.all) return 'auto';
	try{
	return obj.style.width;
	} catch (e) {return 'auto'}
}
function doit(){
	allEls=document.getElementsByTagName("*"),l=allEls.length;
	for (var i = 0; i<l;i++)
		if (gW(allEls[i]) != 'auto')
			allEls[i].style.width =parseFloat(gW(allEls[i]))*parseFloat(bw())/1024 +'px';
}
window.onload = doit;
