<!--Change Font Size Function-->
var fontSize=5
var direction="right"
function changeFontSize(text){
	var newtext=text
	for (i=0; i < newtext.length; i++){
		document.write(newtext.charAt(i).fontsize(fontSize))

		if (fontSize < 5 && direction=="right")	{
			fontSize++
		}else if (fontSize==5)	{
			direction="left"
			fontSize--
		}else if (fontSize==2)	{
			direction="right"
			fontSize++
		}else if (fontSize>1&&direction=="left"){
		fontSize--
		}
	}
}
<!--ticker function for displaying text in a typewriter format -->




len=150;
space="                                                                                                    ";
message="";
c= -len;

function move(f) {
f=x
  	endScroll=Math.min(c+len,message.length)
  	if (c <0)	{
    	startScroll=0;
  	}else{
    	startScroll=c;
  	}
<!--  	alert(f);-->
  	if (c < 0)	{
  	
    	x.innerHTML = space.substring(0,-c) + message.substring(startScroll,endScroll);
  	}else{
    	x.innerHTML = message.substring(startScroll,endScroll);
  	}

  	c = c +1;
  	if (c == message.length ) c = -len;
  	tid=window.setTimeout("move(x)",speed);
}
function start(sam) { 
	 f=sam	 	
 	 tid=window.setTimeout("move(f)",speed);
}


function ticker(m)	{
	message=m;
	speed=75;	
	document.write('<p id=ticker align= \'left\' style=\'margin-left: 140px \'; ><span id=scroll ></span></p>');	
	start(document.getElementById("ticker"));
}

<!--scrolling text left-->

function scrollLeft(text)	{
	text=text;
	var quote=document.getElementById("quoteText")
	quote.innerHTML='<marquee direction="left" style="width:100%;height:35px; text-align:right; overflow:hidden" height="15px" scrollamount="5" scrolldelay="5">'+text+'</marquee>';
		
}
function scrollRight(text)	{
	text=text;
	var quote=document.getElementById("quoteText")
	quote.innerHTML='<marquee direction="right" style="width:100%;height:35px; text-align:right; overflow:hidden" height="15px" scrollamount="5" scrolldelay="5">'+text+'</marquee>';
		
}
function scrollUp(text)	{
	text=text;
	var quote=document.getElementById("quoteText")
	quote.innerHTML='<marquee direction="up" style="width:100%;height:35px; text-align:right; overflow:hidden"height="15px" scrollamount="1" scrolldelay="1">'+text+'</marquee>';
		
}
function scrollDown(text)	{
	text=text;
	var quote=document.getElementById("quoteText")
	quote.innerHTML='<marquee direction="down" style="width:100%;height:35px; text-align:right; overflow:hidden" ; height="15px" scrollamount="1" scrolldelay="1">'+text+'</marquee>';
		
}
function stationary(text)	{
	text=text;
	var quote=document.getElementById("quoteText")
	quote.innerHTML='<div  style="width:100%; text-align:right; overflow:hidden" ; >'+text+'</div>';
		
}

function startRandomQuote() { 	 
	 i=0	 	
 	 randomQuote(i);
}
