	function dismissSystemMessage(strIn) {
		$('#system_messages').slideUp(350);
	}

	function showSystemMessage(strIn) {
		document.getElementById('system_messages').innerHTML = "<span style='position:relative;float:right;margin-right:10px;'><a href='javascript:;' onClick='dismissSystemMessage();'><img src='/images/buttons/small_close.png' /></a></span>" + strIn;
		$('#system_messages').slideDown(350);
	  $('html, body').animate({ scrollTop: 0 }, 'slow');
  }
		

	function toggle_div (div) {
	
		if (document.getElementById(div).style.display == "block") {
			document.getElementById(div).style.display = "none";
		} else {
			document.getElementById(div).style.display = "block";
		}
	}
	
	function toggle_div_on(div) {document.getElementById(div).style.display == "block";}
	function toggle_div_off(div) {document.getElementById(div).style.display == "none";}
	
	
	
	//fades layer in 
	ie5 = (document.all && document.getElementById); 
	ns6 = (!document.all && document.getElementById); 
	opac = 0;

	function fadein(div) { 
		if(opac!= 100){ 
			opac+=1; 
			if(ie5) document.getElementById('home_listen_explained').filters.alpha.opacity = opac; 
			if(ns6) document.getElementById('home_listen_explained').style.MozOpacity = opac/10; 
			setTimeout('fadein()', 10); 
		} else {
			opac = 0;
		}
	}
	
	
	
	function GetXmlHttpObject() {
		var xmlHttp=null;
		try {
			// Firefox, Opera 8.0+, Safari
			xmlHttp=new XMLHttpRequest();
		}
		catch (e) {
			// Internet Explorer
			try {
				xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch (e) {
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
		}
		return xmlHttp;
	}

	var xmlHttp;
	
	
				function showHideSettings() {
				if ($('#user_settings').css("display") == "none") {
					$('#user_settings').fadeIn(500);
				} else {
					$('#user_settings').fadeOut(500);
				}
			}
			
	

