	function sizeImg(){
		var theheight = document.height;
		if (self.innerHeight){
			var theheight = self.innerHeight;
		}
		else if (document.documentElement && document.documentElement.clientHeight){
			var theheight = document.documentElement.clientHeight;
		}
		else if (document.body){
			var theheight = document.body.clientHeight;
		}
		theheight = theheight-260;
		/*var divideHere = document.getElementById('container').getElementsByTagName('div');
		for(var i=0;divideHere[i];i++){
			var divideHere2 = divideHere[i].getElementsByTagName('div');
			for(var x = 0;divideHere2[x];x++){*/
				var divideHere3 = document.getElementsByTagName('img');
				for(var y = 0;divideHere3[y];y++){
					var h = divideHere3[y].getAttribute('height');
					var w = divideHere3[y].getAttribute('width');
					w-=10;
					var ratio = theheight/h;
					w = w*ratio;
					h = h*ratio;
					divideHere3[y].style.height=h+"px";
					divideHere3[y].style.width=w+"px";
					divideHere3[y].style.float="left";
				}
			/*}
		}*/
	}
	function bottomHeight(){
		var theheight = document.height;
		if (self.innerHeight){
			var theheight = self.innerHeight;
		}
		else if (document.documentElement && document.documentElement.clientHeight){
			var theheight = document.documentElement.clientHeight;
		}
		else if (document.body){
			var theheight = document.body.clientHeight;
		}
		document.getElementById('container').style.height=theheight-230+"px";
		var Pelem = document.getElementsByTagName('p');
		for(i=0;Pelem[i];i++){
			if(!Pelem[i].getElementsByTagName('img')[0]){
				Pelem[i].style.height = theheight-260+"px";
				Pelem[i].style.width = 300+"px";
			}
			document.getElementById('subnavigation').style.height = theheight + "px"; 
		
		}
		var thedivs = document.getElementsByTagName('div');
		for(x=0;thedivs[x];x++){
			if(thedivs[x].getAttribute('class')){
				if(thedivs[x].getAttribute('class') == "post" || thedivs[x].getAttribute('class') == "post alt" || thedivs[x].getAttribute('class') == "commentpost"){
					thedivs[x].style.height= theheight-260 + "px";
				}
			}
		}
	}
	function sizePage(){
		var obj = document.getElementById("tracer");
		var posX = obj.offsetLeft;
		while(obj.offsetParent){
			if(obj==document.getElementById('hide')){break;}
			else{
				posX=posX+obj.offsetParent.offsetLeft;
				obj=obj.offsetParent;
			}
		}
		posX += 32;
		document.getElementById('hide').style.width = posX + "px";
		document.body.style.width = posX + "px";
	}
	function reWrite(){
		if(document.getElementsByTagName('ol')){
			var ol = document.getElementsByTagName('ol');
			for(a=0;ol[a];a++){
				if(ol[a].getAttribute('class')){
					if(ol[a].getAttribute('class') == "commentlist commentEdit"){
						var lis = ol[a].getElementsByTagName('li');
						for(i=0;lis[i];i++){
							var ps = lis[i].getElementsByTagName('p');
							for(b=0;ps[b];b++){
								ps[b].style.height = "auto";
								ps[b].style.width = "260px";
							}
						}
					}
				}
			}
		}
	}
	function setWidth() {
		var thewidth = 400000;
		document.getElementById('hide').style.width = thewidth + "px";
		document.body.style.width = thewidth + "px";
		reWrite();
		setTimeout('sizePage()',500);
	}
	function rightScroll() {
			window.scrollBy(50,0); // horizontal and vertical scroll increments
			scrolldelay = setTimeout('rightScroll()',100); // scrolls every 100 milliseconds
	}
	function leftScroll() {
			window.scrollBy(-50,0); // horizontal and vertical scroll increments
			scrolldelay = setTimeout('leftScroll()',100); // scrolls every 100 milliseconds
	}
	function stopScroll() {
			clearTimeout(scrolldelay);
	}
	function LOAD(){
		bottomHeight();
		sizeImg();
	}
	function RELOAD(){
		bottomHeight();
		sizeImg();
		setWidth();
	}

	/* Copyright 2008 Paul Bennett - http://paulicio.us
	 * Scroller.js
	 * Captures mouse wheel events and runs the ScrollSmoothly
	 * function based on their output.
	 * Aims to aid usability by allowing the user to scroll the 
	 * page horizontally smoothly using only their mousewheel.
	 * Mousewheel event capture by Adomas PaltanaviÄius at http://adomas.org/
	 */
	
	function handle(delta) {
			if (delta <0)
					ScrollSmoothly(10,10,'right');
			else if (delta >0)
					ScrollSmoothly(10,10,'left');
			else
				;
	}
	 
	function wheel(event){
			var delta = 0;
			if (!event) 
					event = window.event;
			if (event.wheelDelta) {
					delta = event.wheelDelta/120;
					if (window.opera)
							delta = -delta;
			} else if (event.detail) {
					delta = -event.detail/3;
			}
			if (delta)
					handle(delta);
			if (event.preventDefault)
					event.preventDefault();
		event.returnValue = false;
	}
	
	var repeatCount = 0;
	
	function ScrollSmoothly(scrollPos,repeatTimes, direction) {
		if(repeatCount < repeatTimes)
			if(direction == 'right')
				window.scrollBy(20,0);
			else
				window.scrollBy(-20,0);
		else
		{
			repeatCount = 0;
			clearTimeout(cTimeout);
			return;
		}
		repeatCount++;
		cTimeout = setTimeout("ScrollSmoothly('" + scrollPos + "','"+ repeatTimes +"','"+ direction +"')",10);
	}
