		function findWidth(){
			increment = 520;
			mwidth = increment;
			AllDivs = document.getElementsByTagName('div');
			for(c=0;AllDivs[c];c++){
				if(AllDivs[c].getAttribute('class') == 'post' || AllDivs[c].getAttribute('className') == 'post'){
					mwidth += increment;
				}
			}
			document.body.style.width = mwidth + "px";
		}
		
		function contentHeight(){
			theheight = document.height;
			if (self.innerHeight){
				theheight = self.innerHeight;
			}
			else if (document.documentElement && document.documentElement.clientHeight){
				theheight = document.documentElement.clientHeight;
			}
			else if (document.body){
				theheight = document.body.clientHeight;
			}
			
			mheight = theheight;
			mheight +=1;
			
			document.getElementById('container').style.height = mheight + "px";
		}
		
				}
			}
		}
		
		/*--- Scrolling ---*/
		
		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);
		}
		
		/*--- Load all functions ---*/
		
		function ALL(){
			findWidth();
			contentHeight();
			imageResize();
		}