$(document).ready(function(){
	detectscreen();
});

$(window).resize(function(){
	detectscreen();
});

function windowWidth() {
	if(!window.innerWidth)
	{	
		//ie
		return document.documentElement.clientWidth;
	}else{
		return window.innerWidth;
	}
}

// detect screen resolution
function detectscreen() {
	if (windowWidth()>1345)
	{
		// enable wide
		$("body").addClass("wide");
		$("body").removeClass("wide2");
	}
	else if (windowWidth()>=1255)
	{
		// enable semi-wide
		$("body").addClass("wide2");
		$("body").removeClass("wide");
	}
	else
	{
		// disable wide
		$("body").removeClass("wide");
		$("body").removeClass("wide2");
	}
}