function checkFooter() {
	
		windowwidth = window.innerWidth;
		var pagewrapper = document.getElementById("pagewrapper");
		var line = document.getElementById("line");
		var leftshadow = document.getElementById("leftshadow");
		var rightshadow = document.getElementById("rightshadow");
		var rightwhiteshadow = document.getElementById("rightwhiteshadow");
		var bottom = document.getElementById("bottomshadow");

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

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

		if(windowwidth > 1100) {
			pagewrapper.style.marginLeft = 10% + "px";
			pagewrapper.style.marginRight = 10% + "px";
		} else {
			pagewrapper.style.marginLeft = 10 + "px";
			pagewrapper.style.marginRight = 10 + "px";
		}

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

		if(line) {
			line.style.width = pagewidth - 5 + "px";	
		}

		var rightcolumn = document.getElementById("rightcolumn");
		var leftcolumn = document.getElementById("leftcolumn");


//		leftcolumn.style.height = rightcolumn.offsetHeight - 5 + "px";
		leftshadow.style.height = rightcolumn.offsetHeight + 30 + "px";
		rightshadow.style.height = rightcolumn.offsetHeight + 30 + "px";


		if (typeof document.body.style.maxHeight != "undefined") {
			
		} else {
			rightshadow.style.left = pagewidth + "px";
			rightwhiteshadow.style.left = pagewidth + "px";
		}

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

			if(windowwidth > 1100) {
				document.getElementById("homefix").style.marginRight = "10%";
				document.getElementById("homefix2").style.paddingLeft = 20 + "px";
			} else {
				document.getElementById("homefix").style.marginRight = 10 + "px";
				document.getElementById("homefix2").style.paddingLeft = 0 + "px";
			}

		}


}

function init() {

	var logos1 = document.getElementById("logos");
	var logos2 = document.getElementById("logos2");

	logos2.innerHTML = logos1.innerHTML;

	var logowrapper = document.getElementById("logowrapper");
	maxwidth = logowrapper.offsetWidth;

	logos1width = logos1.offsetWidth;
	logos2width = logos2.offsetWidth;

	logos1.style.right = - 191 + "px";
	logos2.style.right = - (logos1width + 191)  + "px";
	
	move(- 191,- (logos1width + 191),logos1,logos2);


	function move(pos1,pos2,obj1,obj2) {

		val1 = pos1 + 1;
		val2 = pos2 + 1;

		if(val1 > maxwidth) {
			val1 = - (logos1width + 70);
		}

		if(val2 > maxwidth) {
			val2 = - (logos1width + 70);
		}

		obj1.style.right = val1 + "px";
		obj2.style.right = val2 + "px";
	
		setTimeout( function () { move(val1,val2,obj1,obj2) } ,1);

	}

/*

	// STORE REQUIRED ACTIONS IN VARIABLE //

	var W3CDOM = (document.getElementsByTagName);


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

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

	if(menu) {

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

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

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

		}

	}

	function mousegoesover() {
		this.className = "selected";
	}

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

*/

}





	function updateItems(id) {

		checkbox = $("tick_" + id);
		itembox = $("image_" + id);
		thisprice = $("price_" + id).value;
		oldprice = $("bt_price").innerHTML;

		if(checkbox.checked == true) {

			//itembox.style.display = "block";
			newprice = Math.round((parseFloat(oldprice) + parseFloat(thisprice)) * 100) / 100;
			$("bt_price").innerHTML = newprice.toFixed(2);

			new Fx.Tween(itembox ,{
				duration: 300
			}).start('opacity', [0.4,1]);

		} else {

			newprice = Math.round((parseFloat(oldprice) - parseFloat(thisprice)) * 100) / 100;
			$("bt_price").innerHTML = newprice.toFixed(2);

			new Fx.Tween(itembox ,{
				duration: 300
			}).start('opacity', [1,0.4]).chain(
				function(){ 
					//itembox.style.display = "none";
				}
			);

		}

	}

	function updateItems2(id,price) {

		checkbox = $("tick_" + id);
		itembox = $("image_" + id);
		thisprice = $("price_" + id).value;
		oldprice = $("bt_price").innerHTML;

		if(thisprice == '' || thisprice == 'undefined') {

			$("price_" + id).value = price;
			thisprice = price;
	
			newprice = Math.round((parseFloat(oldprice) + parseFloat(thisprice)) * 100) / 100;
			$("bt_price").innerHTML = newprice.toFixed(2);				

			oldprice = $("bt_price").innerHTML;

		}
	
		if(checkbox.checked == true) {

			newprice = Math.round((parseFloat(oldprice) - parseFloat(thisprice)) * 100) / 100;

			newprice = Math.round((parseFloat(newprice) + parseFloat(price)) * 100) / 100;

			$("bt_price").innerHTML = newprice.toFixed(2);
		
		} else {

			document.getElementById("price_" + id).value = price;

		}

	}

