function checkFooter() {

		windowwidth = window.innerWidth;

		if (!windowwidth) { 
			windowwidth = document.documentElement.clientWidth;
		}

		if (!windowwidth || windowwidth == 0) { 
			windowwidth = document.body.clientWidth;
			pagewidth = document.getElementById("pagewrapper").offsetWidth;
		}

		difference = windowwidth - pagewidth;

		if(windowwidth > 900) {

			document.getElementById("pagewrapper").style.border = "3px";

		} else {

			document.getElementById("pagewrapper").style.borderWidth = "0px";

		}

}


// 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 ptags = menu.getElementsByTagName('li');

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

			if(ptags[i].className != "divider") {

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

			}

		}

	}

}


function mousegoesover() {
	this.id = "over";
}

function mousegoesout() {
	this.id = "";
}

        function showimage(url) {
                document.getElementById("imagedisplay").src = url;
                document.getElementById("imagedisplay").style.display = "inline";
                document.getElementById("imagecover").style.display = "block";
        }
