function gotoURL(url, title, page, post)
	{	
		var imagePath
		
		switch (page)
			{
				case 'home':
					imagePath = '';
					break;
					
				case '../../':
					imagePath = '../../';
					break;
					
				case '../../../':
					imagePath = '../../../';
					break;
					
				default:
					imagePath = '../';
					
			}
			
			
		if (post == 1)
			{
				var queryStr, pos, elementCount, i
				queryStr = url.slice(url.indexOf('?')+1, url.length) + '&';
				url = url.slice(0, url.indexOf('?'));
				pos = -1;
				elementCount = -1;
				do 
					{
						pos++;
						pos = queryStr.indexOf('=', pos);
						elementCount = elementCount + 1 ;
					}
				while(pos != -1);
				
				pos = 0;	
				if (elementCount > 0)
					{
						formElementNames = new Array(elementCount)
						formElementValues = new Array(elementCount)
				
						for (i=0; i<elementCount; i++)
							{
								formElementNames[i] = queryStr.slice(pos, queryStr.indexOf('=', pos));
								formElementValues[i] = queryStr.slice(queryStr.indexOf('=', pos)+1, queryStr.indexOf('&', pos));
								pos = queryStr.indexOf('&', pos)+1;
							}
					}
			}



	
		var w = window.open("","","width=640,height=480,resizable,status,toolbar,location,scrollbars");
		
		w.document.writeln('<HTML>');
		w.document.writeln('		');
		w.document.writeln('<HEAD>');
		w.document.writeln('');
		w.document.writeln('<SCR' + 'IPT>');
		w.document.writeln('');
		w.document.writeln('	function goRedirect()');
		w.document.writeln('		{');
										if (post == 1)
		w.document.writeln('				document.poster.submit();');
										else
		w.document.writeln('				location.replace("' + url + '")');
		w.document.writeln('		}');
		w.document.writeln('');
		w.document.writeln('</SCR' + 'IPT>');
		w.document.writeln('');
		w.document.writeln('	<TITLE>CLC Redirect to ' + title + '</TITLE>');
		w.document.writeln('		');
		w.document.writeln('</HEAD>');
		w.document.writeln('		');
		w.document.writeln('<STYLE TYPE="TEXT/CSS">');
		w.document.writeln('<!--');
		w.document.writeln('	a:link {');
		w.document.writeln('		color: #660033;');
		w.document.writeln('		font-family: Verdana, Arial, Helvetica, Verdana, Sans-Serif;');
		w.document.writeln('		font-weight: bold;');
		w.document.writeln('		text-decoration: none;');
		w.document.writeln('		}');
		w.document.writeln('		');
		w.document.writeln('	a:visited {');
		w.document.writeln('		color: #660033;');
		w.document.writeln('		font-family: Verdana, Arial, Helvetica, Verdana, Sans-Serif;');
		w.document.writeln('		font-weight: bold;');
		w.document.writeln('		text-decoration: none;');
		w.document.writeln('		}');
		w.document.writeln('		');
		w.document.writeln('	a:hover {');
		w.document.writeln('		color: #FFFFFF;');
		w.document.writeln('		font-family: Verdana, Arial, Helvetica, Verdana, Sans-Serif;');
		w.document.writeln('		font-weight: bold;');
		w.document.writeln('		text-decoration: underline;');
		w.document.writeln('		}');
		w.document.writeln('		');
		w.document.writeln('	.mainbody {');
		w.document.writeln('		font-family: Verdana, Arial, Helvetica, sans-serif;');
		w.document.writeln('		font-size: 14px;');
		w.document.writeln('		font-style: normal;');
		w.document.writeln('		font-weight: bold;');
		w.document.writeln('		font-variant: normal;');
		w.document.writeln('		color: #000000;');
		w.document.writeln('		}');
		w.document.writeln('		');
		w.document.writeln('	H2 {');
		w.document.writeln('		font-family: Verdana, Arial, Helvetica, sans-serif;');
		w.document.writeln('		font-size: 20px;');
		w.document.writeln('		font-style: normal;');
		w.document.writeln('		font-weight: bold;');
		w.document.writeln('		font-variant: normal;');
		w.document.writeln('		color: #660033;');
		w.document.writeln('		}');
		w.document.writeln('		');
		w.document.writeln('	.disclamer {');
		w.document.writeln('		font-size: 10px;');
		w.document.writeln('		}');
		w.document.writeln('-->');
		w.document.writeln('</STYLE>');
		w.document.writeln('		');
		w.document.writeln('<BODY BGCOLOR="#660033" LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" onLoad="window.setTimeout(\'goRedirect()\', 5000);">');
		w.document.writeln('		');
		w.document.writeln('<TABLE WIDTH="100%" HEIGHT="100%" CELLPADDING="0" CELLSPACING="0" BORDER="0">');
		w.document.writeln('		');
		w.document.writeln('	<TR>  <!-- Top Purple Row -->');
		w.document.writeln('		<TD HEIGHT="56" ALIGN="LEFT" VALIGN="MIDDLE">');
		w.document.writeln('			<IMG SRC="' + imagePath + 'images/clc/misc/logo1.jpg" HEIGHT="87" WIDTH="461" ALT="Leicester City Learning Centre" ALIGN="MIDDLE" BORDER="0">');
		w.document.writeln('		</TD>');
		w.document.writeln('	</TR>');
		w.document.writeln('		');
		w.document.writeln('	<TR>');
		w.document.writeln('		<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="10%" CLASS="mainnavi">  <!-- Main Section -->');
		w.document.writeln('			<TABLE WIDTH="100%" HEIGHT="95%" CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR>');
		w.document.writeln('					');
		w.document.writeln('				<TD ALIGN="LEFT" VALIGN="TOP" BGCOLOR="33CC00" CLASS="mainbody">  <!-- Main Body -->');
		w.document.writeln('							');
		w.document.writeln('					<TABLE WIDTH="100%" CELLPADDING="0" CELLSPACING="0" CLASS="mainbody"><TR><TD VALIGN="TOP">');
		w.document.writeln('						');
		w.document.writeln('						<H2><IMG SRC="' + imagePath + 'images/clc/misc/logo2.jpg" HEIGHT="45" WIDTH="120" ALT="" ALIGN="BOTTOM" BORDER="0">');
		w.document.writeln('						Redirect</H2>');
		w.document.writeln('						');
		w.document.writeln('						<CENTER>');
		w.document.writeln('						');
		w.document.writeln('						<TABLE WIDTH="85%" BORDER="0">');
		w.document.writeln('							<TR>');
		w.document.writeln('								<TD CLASS="mainbody" ALIGN="CENTER" VALIGN="MIDDLE">');
		w.document.writeln('												');
		w.document.writeln('									A new window has opened and you will be redirected to:<BR><BR>');
		w.document.writeln('									');
		w.document.writeln('									<A HREF="JavaScript:goRedirect();"><B>' + title + '</B></A><BR><BR>');
		w.document.writeln('									');
		w.document.writeln('									To return to the Leicester City Learning Centres Web Site, simply <A HREF="JavaScript:window.close();">close</A> this window.<BR><BR>');
		w.document.writeln('									');
		w.document.writeln('									<BR><BR>');
		w.document.writeln('									');
		w.document.writeln('									<SPAN CLASS="disclamer">Leicester City Learning Centres is not responsible for the content of external sites.</SPAN>');
		w.document.writeln('									');
																if (post == 1)
																	{
		w.document.writeln('											<FORM NAME="poster" METHOD="POST" ACTION="' + url + '">');
		w.document.writeln('											');
																		for (i=0; i<elementCount; i++)
		w.document.writeln('												<INPUT TYPE="HIDDEN" NAME="' + formElementNames[i] + '" VALUE="' + formElementValues[i] + '">');
		w.document.writeln('											');
		w.document.writeln('											</FORM>');
		w.document.writeln('											');
																	}
		w.document.writeln('									');
		w.document.writeln('								</TD>');
		w.document.writeln('							</TR>');
		w.document.writeln('						</TABLE>');
		w.document.writeln('						</CENTER>');
		w.document.writeln('');
		w.document.writeln('					<BR><BR>');
		w.document.writeln('							');
		w.document.writeln('					</TD></TR></TABLE>');
		w.document.writeln('							');
		w.document.writeln('				</TD>');
		w.document.writeln('						');
		w.document.writeln('			</TR></TABLE>');
		w.document.writeln('		</TD>');
		w.document.writeln('	</TR>');
		w.document.writeln('		');
		w.document.writeln('</TABLE>');
		w.document.writeln('		');
		w.document.writeln('</BODY>');
		w.document.writeln('</HTML>');
		
		w.document.close();
	}

function spaceCentreWindow(page)
	{
		var path	
		var imagePath
		
		switch (page)
			{
				case 'home':
					imagePath = '';
					break;
					
				case '../../':
					imagePath = '../../';
					break;
					
				default:
					imagePath = '../';
					
			}
		
		path = imagePath + 'code/spaceCentreRedirect.html';

		window.open(path,'','width=640,height=480,resizable,status,toolbar,location,scrollbars');
	
	}