	function checkFooter()
	{

		windowheight = window.innerHeight;

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

		if (!windowheight || windowheight == 0) windowheight = document.body.clientHeight

		rightheight = document.getElementById("rightcolumn").offsetHeight;
		contentheight = document.getElementById("content").scrollHeight;

		if(rightheight > contentheight) {

			document.getElementById("content").style.height = rightheight + "px";

		}

		pageheight = document.getElementById("pagewrapper").offsetHeight;

		footerheight = document.getElementById("footerwrapper").offsetHeight;

		
		
		difference = windowheight - pageheight;

		difference = difference - footerheight;

		if(difference > 0) {

			if(document.getElementById("intheway")) {

				document.getElementById("pagewrapper").style.height = pageheight -71 + difference + "px";

			} else {
				
				document.getElementById("pagewrapper").style.height = pageheight + difference + "px";
			}

		}	

		windowwidth = window.innerWidth;

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

		if (!windowwidth || windowwidth == 0) windowwidth = document.body.clientWidth

		pagewidth = document.getElementById("pagewrapper").offsetWidth;
		contentwidth = document.getElementById("content").offsetWidth;

		if(contentwidth < (pagewidth - 250)) {

			document.getElementById("content").style.width = pagewidth - 250 + "px";
		}


	}


// STORE REQUIRED ACTIONS IN VARIABLE //

var W3CDOM = (document.getElementsByTagName);

function init() {

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

	var wrapper = document.getElementById('rightcolumn');

	if(wrapper) {

		var divs = wrapper.getElementsByTagName('div');

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

			if(divs[i].className == "block") {

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

			}

		}

	}

/*
	var tablewrapper = document.getElementById('content');

	if(tablewrapper) {

		var tds = tablewrapper.getElementsByTagName('td');

		if(tds) {

			var tdheight = 0;

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

				if(tds[i].className == "test") {

					if(tds[i].clientHeight > tdheight) {

						tdheight = tds[i].clientHeight;
	
					}	
	
				}

			}


			for (var i=0;i<tds.length;i++) {
	
				if(tds[i].className == "test") {

					tds[i].style.height = tdheight+"px";

				}
	
			}
		}
	
	}

*/

	var tabwrapper = document.getElementById('tabmenu');

	if(tabwrapper) {

		var tabs = tabwrapper.getElementsByTagName('div');

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

			if(tabs[i].className == "tab") {

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

			}

			if(tabs[i].className == "tabodd") {

				tabs[i].onmouseover = mousegoesover3;
				tabs[i].onmouseout = mousegoesout3;

			}

		}

	}

}

function crashfix() {

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

	var tablewrapper = document.getElementById('content');

	if(tablewrapper) {

		var tds = tablewrapper.getElementsByTagName('td');

		if(tds) {

			var tdheight = 0;

			for (i in tds) {

				if(tds[i].className == "test") {

					if(tds[i].clientHeight > tdheight) {

						tdheight = tds[i].clientHeight;
	
					}	
	
				}

			}


			for (i in tds) {
	
				if(tds[i].className == "test") {

					tds[i].style.height = tdheight + "px";

				}

	
			}


		}
	
	}

}


function mousegoesover() {

	this.className = "block2";
	this.style.cursor = "pointer";
}

function mousegoesout() {

	this.className = "block";

}

function mousegoesover2() {

	this.className = "tab3";
	this.style.cursor = "pointer";
}

function mousegoesout2() {

	this.className = "tab";
}

function mousegoesover3() {

	this.className = "tab3odd";
	this.style.cursor = "pointer";
}

function mousegoesout3() {

	this.className = "tabodd";
}

