// Browser Size Detection
// Detect Client Browser Pixel Size

var screenWidth = screen.width;
var screenHeight = screen.height;
function redirectToScreenSize(lessThanSize, redirectTo){
	if(screenWidth < (lessThanSize + 1)){
		//alert("Redirecting to " + redirectTo + " because your browser is " + lessThanSize + " <= " + screenWidth);
		window.location = redirectTo;
	}
}

/*
 * put this on the mini-sites to redirect back to the full site when applicable
 * example: redirectIfNotScreenSize(320, "../index.html");
 */
function redirectIfNotScreenSize(lessThanSize, redirectTo){
	if(screenWidth > lessThanSize){
		// redirect if NOT lessThanSize
		window.location = redirectTo;
	}
}
