
	function init () {
		
		$('submit').onclick = function () {
			sendData();
		}
	
	}
	
	function sendData () {
		var url = 'emailClass.php';
		var pars = Form.serialize('contacUs');
		//alert(pars);
		var myAjax = new Ajax.Request( url, {method: 'get', parameters: pars, onLoading: showLoad, onComplete: showResponse} );
	}
	
	function showLoad () {
	$('load').style.display = 'block';
	}
	
	
	function showResponse (originalRequest) {
		var newData = originalRequest.responseText;
		$('load').style.display = 'none';
		$('status').style.display='block';
		$('status').innerHTML = newData;
		//document.write("info"+newData);
	}
	
function openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function changeMute(){
Player.settings.mute = 'true';
mute.innerHTML='<a href="#" onClick="changeMute2();">Mute*</a>';
}

function changeMute2(){
Player.settings.mute = 'false';
mute.innerHTML='<a href="#" onClick="changeMute();">Mute</a>';
}
function initiateVideo(){
toPlay = document.getElementById('thisVideo')
toPlay = toPlay.options[toPlay.options.selectedIndex].value

	newRadio = "";
	newRadio += "<OBJECT ID='Player' height='175' width='200' CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'>"
	newRadio += "<PARAM name='URL' value='" + toPlay + "' id='insert_1'>"
	newRadio += "<PARAM name='uiMode' value='none'>"
	newRadio += "<PARAM name='mute' value='false'>"
	newRadio += "<PARAM name='ShowControls' value='0'>"
	newRadio += "<PARAM name='ShowStatusBar' value='0'>"
	newRadio += "<PARAM name='ShowDisplay' value='0'>"
	newRadio += "<EMBED type='application/x-mplayer2' "
	newRadio += "pluginspage = 'http://www.microsoft.com/Windows/MediaPlayer/' "
	newRadio += "SRC='" + toPlay + "' "
	newRadio += "name='Player' "
	newRadio += "width='200' "
	newRadio += "height='175' "
	newRadio += "AutoStart='true' "
	newRadio += "showcontrols='0' "
	newRadio += "showstatusbar='0' "
	newRadio += "showdisplay='0' "
	newRadio += "id='insert_2'>"
	newRadio += "</EMBED>"
	newRadio += "</OBJECT>"

	document.getElementById('radio').innerHTML = newRadio

}

function initiateStation(){
toPlay = document.getElementById('thisStation')
toPlay = toPlay.options[toPlay.options.selectedIndex].value

	newRadio = "";
	newRadio += "<OBJECT ID='Player' height='175' width='200' CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6'>"
	newRadio += "<PARAM name='URL' value='" + toPlay + "' id='insert_1'>"
	newRadio += "<PARAM name='uiMode' value='none'>"
	newRadio += "<PARAM name='mute' value='false'>"
	newRadio += "<PARAM name='ShowControls' value='0'>"
	newRadio += "<PARAM name='ShowStatusBar' value='0'>"
	newRadio += "<PARAM name='ShowDisplay' value='0'>"
	newRadio += "<EMBED type='application/x-mplayer2' "
	newRadio += "pluginspage = 'http://www.microsoft.com/Windows/MediaPlayer/' "
	newRadio += "SRC='" + toPlay + "' "
	newRadio += "name='Player' "
	newRadio += "width='200' "
	newRadio += "height='175' "
	newRadio += "AutoStart='true' "
	newRadio += "showcontrols='0' "
	newRadio += "showstatusbar='0' "
	newRadio += "showdisplay='0' "
	newRadio += "id='insert_2'>"
	newRadio += "</EMBED>"
	newRadio += "</OBJECT>"

	document.getElementById('radio').innerHTML = newRadio

}
function ShowHide(id, visibility) {
	//alert("test");
    obj = document.getElementsByTagName("div");
    obj[id].style.visibility = visibility;
}

