function switchNews(newsType, cached) {
	xmlhttp=GetXmlHttpObject();
	if (xmlhttp==null) {
		alert ("Browser does not support HTTP Request");
		return;
	}
	var url="http://crimson-veil.com/includes/ajax/newsPage.php";
	if(newsType != 0) {
		url=url+"?nType="+newsType;
	} if(cached == 1 && newsType != 0) {
		url=url+"&cache=force";
	} else {
		url=url+"?cache=force";
	}
	xmlhttp.open("GET",url,true);
	xmlhttp.onreadystatechange=function() {
		if(xmlhttp.readyState==4) {
			document.getElementById("newsArea").innerHTML=xmlhttp.responseText;
			//document.getElementById("newsArea").show();
		} else {
			document.getElementById("newsArea").innerHTML='<img src="http://crimson-veil.com/images/site/loading_bar.gif" alt="Loading..." />';
		}
	}
	xmlhttp.send(null);
}
function switchHistory(history) {
	if(history == 1) {
		document.getElementById("chapter1").innerHTML= "<h1 align=\"center\"><a href=\"#\" onclick=\"switchHistory(3);\">Chapter 1</a></h1><h2 align=\"center\">Justica Per Cruor, Ultionis Per Vox, Vita Per Nex</h2><p></p><p>Deep within the heart of the universe, an order is born. The order is strong, dark; shrouded by ancient legends and myths. The legends speak of a seed; a man whose destiny will be death. Through this death a legacy is born; an order so strong, so illusive, that it is able to wrap its roots around the very foundations of every moving force within the universe. Falsely accused of treason, he will die a traitors death, and be buried in an unmarked grave, but even death can not keep its grip on his resolve.</p><p></p><p>Now the seed has come and gone, and given way to a greater glory; One that time and dimensia shall not forget. Hidden, deeper than any secret, darker than any shadow, drenched in the blood of vengeance and the perspiration of angers' hatred, crawling forth from the unmarked grave, hideously disfigured, clutching a single stemless red rose in a fabricated metal alloy hand, scarred and broken, face hidden from the eyes of all. He is now more than flesh and blood. He is...</p><p></p><h1 align=\"center\">The Crimson Veil</h1><hr><p></p><p>Hardly a suitable death, but I won't beg. Fought long and hard to get to this point, and I'll be damned if I'd let the threat of death destroy it all. I'm no traitor, but I'd rather die than do what's needed to prove that.</p><p></p><p>This cold dark space is no place for resting. Bane will bury me on the surface. It's not Corruscant, but it's ground.</p><p></p><p>They cut my hand off yesterday. Said something about me using them as a recruiting station for my own purposes. How naive' to think I would limit my search to a race that has become weak and dependant upon other galactic superpowers.</p><p></p><p>27 years building the veil; 27 years of secrecy and seclusion. I watched many a good man fall to keep my secret. I set out to build a society of people who would use our power to maintain the balance. We've seen greater losses than this. This will not be our last stand. With my last breath I will spit blood in face of my accuser, and with my burial, a simple seed dies to give birth to something much greater. I will have my justice. I will have my revenge. The death of a seed will usher in a new era of power.</p><p></p><p>*Bane walked over to the metallic coffin which was usually for prisoners or criminals, then he slowly got to one knee and bowed down his head*</p><p></p><p>\"I am sorry Crimson... your death was a mistake... I will never forget you... You were the greatest friend I had... I already know that you may not receive this but one day, I will make it up too you...\"</p><p></p><p>He came closer to the coffin and swept his only tear away. He touched the coffin, then left, into the dark, unforgiving, merciless world.</p><p></p><p>As the dark shroud faded into the night, a gust of wind was felt rushing against him, as if to push him back. It carried a single stemless rose in its angry stream. The rose whipped just over the mysterious, wraith-like, mans shoulder, tossed to and fro in the current, then came to rest at the place where a headstone should have been; Creighton was deemed a traitor, and thus burried without honor.</p><p></p><p>The air was chilled tonight, and so the endless sky seemed even more brilliantly lit up than usual. But even amongst countless suns, darkness falls.</p><p></p><p>The earth- where Bane, stood only moments before- trembled, and a cold skeleton-like metal alloy hand reached out from the dew-soaked soil, gripping the crimson coloured rose in a death-lock. That night a bond that crossed time and dimensia was formed. The rose turned crisp, then shattered- as though it were made of the thinnest glass- and again was picked up by the whisp of wind and thrown towards the now distant figure. In that moment a crimson truce was made between two souls.</p><p></p><p>\"Bane,\" spikes the wind, then a whisper, \"The veil will arise from Corruscant.\"</p><p></p><p>Bane felt a faint soul- as it soon becomes part of the force- near him. \"I know you'll be back.... I just know.\" He whispered so quietly that even a profogg couldn't hear him if it was brought close to his ear.</p><p></p><h1 align=\"center\">Cold, dead, silence...</h1><hr><p></p><p>Little is known about the final resting place of the original founder of the Crimson Veil. Even less is known about the true history of the veil before the point of his execution. It's rumoured he travelled across galaxies building a secret empire. All that exists of the archives is a single audio transmission recovered by CV operatives, originating from the Cockpit com system and directed to the brig aboard the ship that the one known only as Crimson Truce was believed to have been executed on, and phazer burned scribblings found on an old metal plaque that was recovered. Historians believe the plaque to have been made by the illusive \"Bane\" character, as an attempt to restore dignity to the grave sight:</p><p></p><p>\"You're my closest friend. Just to let you know, I would never snitch on you. Will this be a mournful goodbye or a short separation... I will always be here my friend and I'm sure you know my name, so I think it will be a short separation. You can call on me any time.\"</p><p></p><p>\"When angered voids begin to bleed, return to dust thy crimson seed, A sacrifice of constant sorrow, then blood of life to forge the morrow.  Now- in thy wake- a task is owed. The truth is seen. The cost he knows.  Yet secrecy forbids the tail, of he who wears the crimson veil...Justica Per Cruor, Ultionis Per Vox, Vita Per Nex\"</p><p></p>";
		document.getElementById("chapter2").innerHTML="<h1 align=\"center\"><a href=\"#\" onclick=\"switchHistory(2);\">Chapter 2</a></h1>";
	} else if(history == 2) {
		document.getElementById("chapter2").innerHTML="<h1 align=\"center\"><a href=\"#\" onclick=\"switchHistory(3);\">Chapter 2</a></h1><h2 align=\"center\">Shoot Straight, Hit Hard</h2><hr><p></p><p>After the death of the illusive \"Crimson Truce\", the veil was all but tossed to the wind. Having suffered a great loss in numbers and resources, the company was on it's last leg. Tola velar- the only remaining active operative, chose to revise the company plans. The veil began to hoard away resources, while making plans to become a public trade and transport team.</p><p></p><p>For months she worked to develop a crack team, but all efforts seemed to fail. Potential members quickly turned into unlikely investments. Financial resources continued to dissolve as past investors continued to dissapear. Often times Tola found herself wondering if the veil would ever return to it's former glory under her guidance. </p><p></p><p>With her other responsibilities- Dean of Tion Hegemony Academy, and Logistics Director of Tion Hegemony- Tola was discovering that time was a highly valued and rare resource. She struggled to maintain a balance, watching Veil operations crumble when she'd focus on Tion, and Tion procedures fail when she'd focus on the veil. She hired teams to try an alleviate some of the departmental pressure, but the teams failed to perform on a satisfactory level and succeeded to dwindle funds. She tried to promote within, but the members became either greedy or lazy, and those who were neither lacked the communication and delegation skills of a true leader.</p><p></p><p>Just when she was beginning to make some progress, when she recieved a transmiission from beyond the outer-rim. Her son, David Velar, who had been stowed away at a young age to protect him from his fathers enemies, was ready to return. Throwing caution to the wind, Tola boarded her personal transport and went to retrieve him leaving the veil in the hands of a good friend. This turned out to be a mistake.</p><p></p><p>Tola returned three months later to discover that no progress had been made, and the new members had actually gone inactive. Once again, she was forced to start over. But progress was quicker this time. Ba`al Craghorn, a Gand who had been good friends with the founder of the veil, had returned from wandering in the myst, and he immediately swore his loyalty to the Velar family and the Crimson Veil. With the help of Ba`al and David, Tola once again revised the plans for the future, and revamped the process of operations. In a short time the veil was nearing completion of the reconstruction, and more old friends of Crimson Truce had heard word of the veil and come to aid.</p><p></p><p>The new plan was almost a complete opposite of the original. The veil would now become an entertainment media company based out of the Tion cluster, while still offering trade and transport services to the galaxy, as opposed to being a secret society, born in the shadowy streets of Corruscant. The veil developed the following subdepartments: Crimson Market, Crimson Cast, Crimson Highway, and Lo Mas.</p><p></p><p>Yet one last unexpected turn would occur in the final weeks of development that would set back the grand reopening of Crimson Veil, but this time for the better. As Ba`al Craghorn was working diligently with the staff of Crimson-Cast- a radio broadcast company- three more people made their skills and resources available, offering an entire new range of options.</p>";
		document.getElementById("chapter1").innerHTML="<h1 align=\"center\"><a href=\"#\" onclick=\"switchHistory(1);\">Chapter 1</a></h1>";
	} else {
		document.getElementById("chapter1").innerHTML="<h1 align=\"center\"><a href=\"#\" onclick=\"switchHistory(1);\">Chapter 1</a></h1>";
		document.getElementById("chapter2").innerHTML="<h1 align=\"center\"><a href=\"#\" onclick=\"switchHistory(2);\">Chapter 2</a></h1>";
	}
}
