function checkFooter() {

		windowwidth = window.innerWidth;
		if (!windowwidth) {
			windowwidth = document.documentElement.clientWidth;
		}
		if (!windowwidth || windowwidth == 0) {
			windowwidth = document.body.clientWidth;
		}

		if(windowwidth > 1000) {
			if(document.getElementById("shop")) {
				document.getElementById("shop").style.marginRight = 50 + "px";
			}
			if(document.getElementById("description")) {
				document.getElementById("description").style.paddingRight = "20%";
			}
		} else {
			if(document.getElementById("description")) {
				document.getElementById("description").style.paddingRight = 50 + "px";
			}
		}

		windowheight = window.innerHeight;
		pageheight = document.getElementById("pagewrapper").offsetHeight;
		bodyheight = document.getElementById("bodywrapper").offsetHeight;
		footerheight = document.getElementById("footerwrapper").offsetHeight;

		if (!windowheight) { 
			windowheight = document.documentElement.clientHeight;
		}

		if (!windowheight || windowheight == 0) { 
			windowheight = document.body.clientHeight;
			pageheight = document.getElementById("pagewrapper").offsetHeight;
		}
		difference = windowheight - pageheight;

		if(difference > 0) {
			document.getElementById('bodywrapper').style.height = windowheight - 259 + "px";
		} else if (difference < 0) {
//			document.getElementById('bodywrapper').style.height = document.getElementById('bodywrapper').style.height + 100 + "px";
		}


		if(document.getElementById("homewrapper")) {
			document.getElementById("homewrapper").style.height = document.getElementById("homeitems").offsetHeight + "px";
		}

}


// STORE REQUIRED ACTIONS IN VARIABLE //

var W3CDOM = (document.getElementsByTagName);

function init() {

	// IF ACTIONS ARE NOT SUPPORTED STOP SCRIPT //
	if (!W3CDOM) return;

	var menu = document.getElementById('menu');

	if(menu) {

		var litags = menu.getElementsByTagName('li');

		for (var i=0;i<litags.length;i++) {

			litags[i].onmouseover = mousegoesover;
			litags[i].onmouseout = mousegoesout;

		}

	}

	var catmenu = document.getElementById('catlist');

	if(catmenu) {

		var litags = catmenu.getElementsByTagName('li');

		for (var i=0;i<litags.length;i++) {

			litags[i].onmouseover = mousegoesover2;
			litags[i].onmouseout = mousegoesout2;

		}

	}


}


function mousegoesover() {
	this.style.backgroundImage = "url('/images/menubackover.gif')";
	this.style.cursor = "pointer";
}

function mousegoesout() {
	this.style.backgroundImage = "url('/images/menuback.gif')";
}

function mousegoesover2() {
	this.style.backgroundColor = "#e4e4e4";
	this.style.cursor = "pointer";
}

function mousegoesout2() {
	this.style.backgroundColor = "";
}

function showFunc3() {
	document.getElementById("beautyservice").style.display = "none";
	document.getElementById("hairservice").style.display = "none";
	document.getElementById("bijubrow").style.display = "block";
}

function showFunc2() {
	document.getElementById("beautyservice").style.display = "none";
	document.getElementById("hairservice").style.display = "block";
	document.getElementById("bijubrow").style.display = "none";
}

function showFunc1() {
	document.getElementById("hairservice").style.display = "none";
	document.getElementById("beautyservice").style.display = "block";
	document.getElementById("bijubrow").style.display = "none";
}

function hideFunc() {
	document.getElementById("beautyservice").style.display = "none";
	document.getElementById("hairservice").style.display = "none";
	document.getElementById("bijubrow").style.display = "none";
}
