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;
}

function modify_content_description(text_1){
	document.getElementById('content_description').innerHTML = text_1.toString();
}

function expand_top_nav(new_height){
	document.getElementById('nav_object').height = "600";
	//$("#top_nav").animate({ height: new_height }, 500);
}

function shrink_top_nav(){
	document.getElementById('nav_object').height = "77";
	//$("#top_nav").animate({ height: 77 }, 500);
}

function switchMainDiv(link){
	var url = link;
	var customxml = GetXmlHttpObject()
	customxml.onreadystatechange = function(){
		if (customxml.readyState==4){
			document.getElementById('main_div').innerHTML = customxml.responseText;
		}
	}
	customxml.open("GET",url,true);
	customxml.send(null);
}

function newLocation(link){
	window.location = link;
}
