function location_change( location_name, redirect_frames ) {


	onerror = handleError; 
	function handleError() { return true; }		
			
	try {

		if (parent.frames.length == 0) {
	
			//if the top frame with the navigation isn't there, return to index.php
        		//but set the main frame location to the current page.

			if ( redirect_frames != null ) {
	                	        var curPage = location.href;
        	               		var parsedURL = curPage.replace(/&/g, "-AMP-");
			                parsedURL = parsedURL.replace(/\?/g, "-QSM-");
        			        var newURL = "http://www.centerfuse.net/?from_index=1&location=" + parsedURL;
                			window.location.href = newURL;
			}
		}

	        else {
  

			if ( location_name ) {
	        		//change the 'where' bar at the top
		        	var where = location_name;
	        		var imgName = "../../page2/where/where-" + where + ".jpg";
        	        	parent.topframe.document['where'].src = imgName;
			}
	        }
	}

	catch(errorObject){

	}

} 

/*
function location_change( location_name, redirect_frames ) {

	change_location( location_name, redirect_frames );

}
*/
