function getContent(url_str,div_str){

	if(window.XMLHttpRequest){
		var xmlReq = new XMLHttpRequest();
	} else if(window.ActiveXObject) {
		var xmlReq = new ActiveXObject('Microsoft.XMLHTTP');
	}

					var urlString = url_str;

					xmlReq.open("GET", urlString , true);
					xmlReq.onreadystatechange = function(){
						if(xmlReq.readyState == 4){
							if (xmlReq.status == 200) {
								document.getElementById(div_str).innerHTML = xmlReq.responseText;
							}
						}
					}
					xmlReq.send(null);
					return false;
				}

				function getContents(url_str,div_str){
					getContent(url_str,div_str);
					getContent('index.cfm?suppressLayout=true&cf=content.getAllContent','content');
					return false;
				}

				function confirmAndGetContents(url_str,div_str,message_str){
					if (confirm(message_str)){
						getContents(url_str,div_str);
					}else{
						return false;
					}
					return false;
				}

				function confirmAndGetContent(url_str,div_str,message_str){
					if (confirm(message_str)){
						getContent(url_str,div_str);
					}else{
						return false;
					}
					return false;
				}

function getResetAndContent(url_str,div_str){
	document.getElementById('navigation-level-wrapper-1').innerHTML = "";
	document.getElementById('navigation-level-wrapper-2').innerHTML = "";
	document.getElementById('navigation-level-wrapper-3').innerHTML = "";
	document.getElementById('navigation-level-wrapper-4').innerHTML = "";
	getContent(url_str,div_str);
	return false;
}


function initFacebox(){

	$('a[rel*=facebox]').facebox({
		loading_image : '/resources/global/plugins/facebox/loading.gif',
		close_image   : '/resources/global/plugins/facebox/closelabel.gif'
	});

	$("body").append("<div id='opaque' style='display: none;'></div>");

	$(document).bind('loading.facebox', function() {
		$("#opaque").show();
	});

	$(document).bind('close.facebox', function() {
		$("#opaque").hide();
		$('body').css('background-color','#E4E4E4');
		$('nav a').css('background-color','#E4E4E4');
	});

	$(document).bind('afterReveal.facebox', function() {
		// this is a fix for IE6 which resets the height to 100% of the window height
		$("	#opaque").height($(document).height());
	});
}