// JavaScript Document

	function process(){
		//Display Div Tags
		Effect.Appear('gcard');
		//Effect.Appear('chart');
		Effect.Appear('blog');
		
		//Inserting Loading Gif
		document.getElementById('gcard').innerHTML = "<img src=img/loading.gif alt=loading />";
		//document.getElementById('chart').innerHTML = "<img src=img/loading.gif alt=loading />";
		document.getElementById('blog').innerHTML = "Loading blog: <img src=img/loading.gif alt=loading />";
		
		//Getting GamerTag
		$gt = document.myForm.gamertag.value;
		
		//Replacing Div tags with information
		new Ajax.Updater('gcard','gcard.php' + '?gt=' + $gt, {method:'post',  asynchronous:true});
		//new Ajax.Updater('chart','chart.php' + '?gt=' + $gt, {method:'post',  asynchronous:true});
		new Ajax.Updater('blog','backend.php' + '?gt=' + $gt, {method:'post',  asynchronous:true});
	}
	
	function oSettings(){
		Effect.toggle('settings','appear');	
	}
	
	//Start FontSize
	 var minF = 15;
	 
	 function textI(){
		 minF = minF + 1
		 document.getElementById('blog').style.fontSize = minF + "px";
	 }
	 
	 function textD(){
		 minF = minF - 1
		 document.getElementById('blog').style.fontSize = minF + "px";
	 }
	 //End FontSize
	 
	 //Colors
	 function color1(){
		document.getElementById('blog').style.color = "#3c3c3c"; 
	 }
	 
	 function color2(){
		document.getElementById('blog').style.color = "#000000"; 
	 }
	 
	 function color3(){
		document.getElementById('blog').style.color = "#2d2624"; 
	 }
	 
	 function color4(){
		document.getElementById('blog').style.color = "#3d5c1a"; 
	 }	 
	 //End Colors
	
	function showRss(rs){
		$rss = rs;
		Effect.toggle('rssfeed','appear');
		document.getElementById('rssfeed').innerHTML = "<strong>RSS:</strong> "+$rss;
	}