// JavaScript Document

function widthCheck(){
	var browseWidth, browseHeight;
	if(navigator.appName.indexOf("Microsoft") < 0){
	
		browseWidth=window.outerWidth;
		browseHeight=window.outerHeight;

    	alert(browseWidth + " | " + browseHeight);
		widthChange = browseWidth < 841
		heightChange = browseHeight < 660;
	
		newWidth = widthChange ? 841 : browseWidth;
		newHeight = heightChange ? 660 : browseHeight;	
	
		if(widthChange || heightChange){
	
			var resizeIt = confirm("Your browser width is possibly small enough to cause graphical distortions while using the LCBR site.  We are working to remove this issue.  Would you like to widen your browser so as to prevent the possible distortion?");
			if(resizeIt){
				window.resizeTo(newWidth, newHeight);
				window.location.reload();
			}
		}
	}
}
