	function controlStyleSheet(resize) {
		var bigMan = document.getElementById('bigMan');

		var obj = document.getElementById('lowResolution');
		
		if(getScreenWidth()<1000){
			
			obj.disabled = false;
			if(resize == 'yes'){changeBanner('low');}
			//seasonal update
			if(bigMan == null){
				//do nothing
			}else{
				if(isSeasonal == 'yes'){bigMan.style.display = 'none';}
			}
				
		}
		else{
			obj.disabled = true;
			//seasonal update
			if(bigMan == null){
				//do nothing
			}else{
			if(isSeasonal == 'yes'){bigMan.style.display = 'block';}
			}
			if(resize == 'yes'){changeBanner('high');}
		}	
	}

	function getScreenWidth() {
		// Default to screen dimensions.
		var winW = window.screen.width;
		
		// Attempt to retrieve browser window dimensions.
		if (window.innerWidth)
			winW = window.innerWidth;
		else {
			if(document.documentElement.offsetWidth)
				winW = document.documentElement.offsetWidth;
			else if (document.body.offsetWidth)
				winW = document.body.offsetWidth;
		}
				
			return winW;
	}
	
	
	// onload/resize
	controlStyleSheet();
		
	if ((location.href.indexOf("checkout/")<0) && (location.href.indexOf("account/")<0)  && (location.href.indexOf("basket/")<0) ) {
		window.onload   = changeBanner;
		window.onresize = function(){controlStyleSheet('yes')};
	}
	else
	{
		window.onresize = function(){controlStyleSheet('no')};	
	}
	
	
	