$(document).ready(function() {

	// Adjust Background Size
	$("#bg").fullBg();
	
	
	// Setting root variables
	var	theWindow = $(window);
	
	
	// Change Stylesheets on width
	function adjustStyle(width, height) {
		width = parseInt(width);
		$("body").removeAttr('id');	
		if (width < 901) {
			$("body").attr('id', 'small');
		} else if ((width >= 901) && (width < 1025)) {
			$("body").attr('id', 'medium1024');
		} else if ((width >= 1024) && (width < 1281) && (height != 800) && (height != 960) && (height != 1024)) {
			$("body").attr('id', 'medium1280');
		} else if ((width >= 1024) && (width < 1281) && (height == 800)) {
			$("body").attr('id', 'mediumsmall1280');
		} else if ((width >= 1024) && (width < 1281) && (height == 960)) {
			$("body").attr('id', 'mediummid1280');
		} else if ((width >= 1024) && (width < 1281) && (height == 1024)) {
			$("body").attr('id', 'mediumbig1280');
		} else if ((width >= 1281) && (width < 1367)) {
			$("body").attr('id', 'medium1360');
		} else {
			$("body").attr('id', 'wide');
		}	
	}
	
	
	// Calling functions
	adjustStyle($(this).width(), window.screen.height);
	theWindow.resize(function() {
		adjustStyle($(this).width(), window.screen.height);
	}).trigger("resize");
	
});
	

