	function alll(){
		resizeImages();
		deleteText();
		resizeWindow();
		endLoading();
		fadeOut();
	}
	function resizeWindow(){
		document.body.style.width = 400000 + "px";
		document.getElementById("content").style.width = 400000 + "px";
		document.body.style.width = document.getElementById("tracer").offsetLeft + "px";
		document.getElementById("content").style.width = document.getElementById("tracer").offsetLeft + "px";
	}
	function fadeOut(initial,which){
		var element1 = document.getElementById("forwards");
		var element2 = document.getElementById("backwards");
		
		//If first run through
		if(!initial) initial=1;
		
		initial -=.05;
		
		if(initial >= .3){
			if(!which){
				//Set new opacity
				element1.style.opacity = initial;
				element2.style.opacity = initial;
				
				//recall function
				setTimeout("fadeOut("+initial+")",20);
			}else if(which == 1){
				//end scroll
				stopS();
				
				//Set new opacity
				element1.style.opacity = initial;
				
				//recall function
				fade = setTimeout("fadeOut("+initial+","+which+")",20);
			}else if(which == 2){
				//end scroll
				stopS();
			
				//Set new opacity
				element2.style.opacity = initial;
				
				//recall function
				fade = setTimeout("fadeOut("+initial+","+which+")",20);
			}
		}
	}
	function fadeIn(which,current){
		document.getElementById(which).style.opacity = 1;
		if(which == "forwards"){
			rightS();
		}else{
			leftS();
		}
	}
	function deleteText(){
		p = document.getElementsByTagName("p");
		for(i=0;p[i];i++){
			iw = p[i].getElementsByTagName("img");
			ow = p[i].getElementsByTagName("object");
			if(iw[0] || ow[0]){
				p[i].style.display = "block";
			}else{
				p[i].style.display = "none";
			}
		}
	}
	function resizeImages()
	{
		//Set variables
	
		var images = document.getElementById('content').getElementsByTagName('img');
		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;
		}
	
		for(i=0;images[i];i++){
			//var theheight = screen.height;
			var imagewidth = images[i].offsetWidth;
			var imageheight = images[i].offsetHeight;
	
			var widthratio = theheight/imageheight;
			images[i].style.width = (Math.round(imagewidth*widthratio)) + "px";
			images[i].style.height = (Math.round(imageheight*widthratio)) + "px";
		}
		
		theheight-=15;
		var videos = document.getElementById('content').getElementsByTagName('object');
		
		for(i=0;videos[i];i++){
			//var theheight = screen.height;
			var videowidth = videos[i].offsetWidth;
			var videoheight = videos[i].offsetHeight;
	
			var widthratio = theheight/videoheight;
			videos[i].style.width = (Math.round(videowidth*widthratio)) + "px";
			videos[i].style.height = (Math.round(videoheight*widthratio)) + "px";
			videos[i].getElementsByTagName("embed")[0].style.width = (Math.round(videowidth*widthratio)) + "px";
			videos[i].getElementsByTagName("embed")[0].style.height = (Math.round(videoheight*widthratio)) + "px";
		}
	}
	function endLoading(){
		document.getElementById("loading").style.display = "none";
	}
	function leftScroll(){
		if(window.scrollX > 0){
			document.getElementById("backwards").style.display = "block";
		}else{
			document.getElementById("backwards").style.display = "none";
		}
	}
	function rightS() {
    	window.scrollBy(50,0); // horizontal and vertical scroll increments
    	scrolldelay = setTimeout('rightS()',100); // scrolls every 100 milliseconds
	}
	function leftS() {
    	window.scrollBy(-50,0); // horizontal and vertical scroll increments
    	scrolldelay = setTimeout('leftS()',100); // scrolls every 100 milliseconds
	}
	function stopS() {
    	clearTimeout(scrolldelay);
	}
