// JavaScript Document
function Visible(str){
	if(typeof document.getElementById(str) != 'undefined'){
		scrollTo(0, 0);
		document.getElementById('page').style.display = "";
		if(str != "News") HTML_AJAX.replace(str, str+'.html')
		document.getElementById(str).style.visibility = "visible";
	}
}
function Hidden(str){
	document.getElementById('page').style.display = "none";
	document.getElementById(str).style.visibility = "hidden";
}
function VideoStop(){
	VIDEO.controls.stop();
	VIDEO.style.display = "none";
}
function VideoPlay(){
	if(typeof document.embeds['Radio'] != 'undefined') document.embeds['Radio'].stop();	
	if(typeof document.embeds['Radio10'] != 'undefined') document.embeds['Radio10'].stop();	
	if(typeof VIDEO != 'undefined') VIDEO.controls.play();
	if(typeof VIDEO != 'undefined') VIDEO.style.display = "";
}
function RadioPlay(){
	document.embeds['Radio'].play();	
}
function CopyStr(){
	var range=document.all["links"].createTextRange();
	range.execCommand("copy");
}
function gup( name ){  name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");  var regexS = "[\\?&]"+name+"=([^&#]*)";  var regex = new RegExp( regexS );  var results = regex.exec( window.location.href );  if( results == null )    return "";  else    return results[1];}
function getShow(){
	var param = gup('show');
	if(param!="") Visible(param); 
}
function divAlign(){
	var left;
	var newsLeft;
	left = screen.width / 2 - 320;
	newsLeft = screen.width / 2 - 390;
	document.getElementById('Unit').style.left = left;
	document.getElementById('Plan').style.left = left;
	document.getElementById('Donate').style.left = left;
	document.getElementById('Link').style.left = left;
	document.getElementById('Email').style.left = left;
	document.getElementById('Star').style.left = left;
	document.getElementById('EDM').style.left = left;
	document.getElementById('News').style.left = left;
	document.getElementById('Case').style.left = left;
	document.getElementById('container').style.left = newsLeft;
}
function divAlign01(){
	var left;
	left = screen.width / 2 - 320;
	document.getElementById('Sell').style.left = left;
	document.getElementById('Match').style.left = left;
	document.getElementById('Donate').style.left = left;
	document.getElementById('Case').style.left = left;
	document.getElementById('Radio').style.left = left;
}
function fullScreen(){
	VIDEO.fullScreen = true;
}
//http://www.streamalot.com/wm-embed.shtml
//http://www.mioplanet.com/rsc/embed_mediaplayer.htm
