host = "http://www.readingroom.com/";
function openDDAAct(){
	//availw = 352;
	//availh = 147;
	availw = (screen.availwidth/2)-225;
	availh = (screen.availheight/2)-100;
	if(screen.availwidth != null){
		availw = (screen.availwidth/2)-225;
		availh = (screen.availheight/2)-100;
	}else{
		availw = 200;
		availh = 200;
	}
	window.open('' + host + 'services/ddaact.cfm','ddaact','width=430,height=300,left=' + availw + ',top=' + availh + ',scrollbars=no');
}
function renderDDAAct(style,text){
	if(text == ""){
		text = "Disability Discrimination Act";
	}else{
		text = text;
	}
	document.write('<a href="javascript:openDDAAct()" cla' + 'ss="' + style + '" title="Disability Discrimination Act 1995 - This link will open in a new window">'+ text +'</a>');
}
function backlink(){
	//this is used in case the user has javascript disabled on their browser
	document.write('<a href="javascript:history.back();" cla' + 'ss="textlink" title="Go back to the previous page">back <img src="' + host + 'images/iconback.gif" width="12" height="12" alt="Go back to the previous page" border="0" cla' + 'ss="display" align="middle" /></a>');
}
function formHandler(){
	var URL = document.locationform.locationpicker.options[document.locationform.locationpicker.selectedIndex].value;
	if(URL ==""){
		return false
		}else{
		window.location.href = host + URL;
	}
}
function renederlocation(){
	document.write('<form name="locationform" action="">');
	document.write('<select name="locationpicker" class="dropmenu">');
	document.write('<option value="">Choose an office...</option>');
	document.write('<option value="aboutus/deanst.cfm">Dean St,Soho</option>');
	document.write('<option value="aboutus/wardourst.cfm">Wardour St,Leciester Sq.</option>');
	document.write('<option value="aboutus/locations.cfm">Locomotive workshop,Sydney</option>');
	document.write('</select> <a href="##" onclick="javascript:formHandler();"><img src="' + host + 'images/articlebutton.gif" width="12" height="12" border="0" alt="View the map for this office (not Sydney)" cla' + 'ss="display" /></a>');
	document.write('</form>');
}
