function Preload(strPath){

	if (document.images){
		arrimag = new Array()
    		arrimag[0] = strPath + 'images/maphlt_cont_off.gif' 
    		arrimag[1] = strPath + 'images/maphlt_cont_on.gif' 
    		arrimag[2] = strPath + 'images/maphlt_edit_off.gif' 
    		arrimag[3] = strPath + 'images/maphlt_edit_on.gif' 
    		arrimag[4] = strPath + 'images/maphlt_mart_off.gif' 
    		arrimag[5] = strPath + 'images/maphlt_mart_on.gif' 
    		arrimag[6] = strPath + 'images/maphlt_joke_off.gif' 
    		arrimag[7] = strPath + 'images/maphlt_joke_on.gif' 
    		arrimag[8] = strPath + 'images/maphlt_sart_off.gif' 
    		arrimag[9] = strPath + 'images/maphlt_sart_on.gif' 
    		arrimag[10] = strPath + 'images/maphlt_idea_off.gif' 
    		arrimag[11] = strPath + 'images/maphlt_idea_on.gif' 
    		arrimag[12] = strPath + 'images/maphlt_less_off.gif' 
    		arrimag[13] = strPath + 'images/maphlt_less_on.gif' 
    		arrimag[14] = strPath + 'images/maphlt_stud_off.gif' 
    		arrimag[15] = strPath + 'images/maphlt_stud_on.gif' 
    		arrimag[16] = strPath + 'images/maphlt_pubs_off.gif' 
    		arrimag[17] = strPath + 'images/maphlt_pubs_on.gif' 
    		arrimag[18] = strPath + 'images/maphlt_ex_off.gif' 
    		arrimag[19] = strPath + 'images/maphlt_ex_on.gif' 
    		arrimag[20] = strPath + 'images/maphlt_cse_off.gif' 
    		arrimag[21] = strPath + 'images/maphlt_cse_on.gif' 
    		arrimag[22] = strPath + 'images/maphlt_lett_off.gif' 
    		arrimag[23] = strPath + 'images/maphlt_lett_on.gif' 
    		arrimag[24] = strPath + 'images/maphlt_prev_off.gif' 
    		arrimag[25] = strPath + 'images/maphlt_prev_on.gif' 
    		arrimag[26] = strPath + 'images/maphlt_14_off.gif' 
    		arrimag[27] = strPath + 'images/maphlt_14_on.gif' 
    		arrimag[28] = strPath + 'images/maphlt_15_off.gif' 
    		arrimag[29] = strPath + 'images/maphlt_15_on.gif' 

		arrnew = new Array()
		for (var i = 0; i < arrimag.length; i++){
       			arrnew[i] = new Image()
       			arrnew[i].src = arrimag[i]
		}

	}
}	



function imgswitch(intidx,strimg, strmsg){
	if (document.images){
		strimg.src = arrnew[intidx].src
	}
	SBMsg(strmsg)
}

function SBMsg(msg){
	window.status=msg
}

function writeRefer()
{
	locname=new String(document.location);

	if(locname.search("http://www.hltmag.co.uk") == -1  && locname.search("http://hltmag.co.uk") == -1 )
	{
		document.write("&nbsp;");
	}
	else
	{
		document.write("<FONT FACE='Verdana, Arial, Helvetica' SIZE=1 COLOR='Maroon'><A HREF='../referfr.asp' onMouseOver=\"SBMsg('Refer');return true\" onMouseOut=\"SBMsg('')\">Refer this page to a friend</a></FONT>");

	}
}

function writeDownload()
{
	locname=new String(document.location);

	if(locname.search("http://www.hltmag.co.uk") == -1  && locname.search("http://hltmag.co.uk") == -1 )
	{
		document.write("&nbsp;");
	}
	else
	{
		document.write("<tr><td width=\"100%\"><font face=\"Verdana, Arial, Helvetica\" size=\"2\">You can copy this entire edition to your computer and read it when you want. Just <a onmouseover=\"SBMsg(\'Download instructions\');return true\" onmouseout=\"SBMsg(\'\')\" href=\"http://www.hltmag.co.uk/sept04/down.htm\"><b>click here</b></a> for instructions. You are also able to download every issue from 1999, 2000, 2001 and 2002 each in their own zip file</font></td></tr>");
	}
}

function writeSearch()
{
	locname=new String(document.location);

	if(locname.search("http://www.hltmag.co.uk") == -1  && locname.search("http://hltmag.co.uk") == -1 )
	{
		document.write("&nbsp;");
	}
	else
	{
		document.write("<form method=get action='../search.asp'>");
		document.write("<CENTER>");
		document.write("<TABLE WIDTH=500 BORDER=0 CELLSPACING=0 CELLPADDING=0>");
		document.write("<TR>");
		document.write("<TD WIDTH=300><FONT FACE='Verdana, Arial, Helvetica' SIZE=2><B>Topic or Text to Search For: </B></FONT></TD>");
		document.write("<TD WIDTH=200><input type=text name='search' size=22></TD>");
		document.write("</TR>");
		document.write("<TR>");
		document.write("<TD WIDTH=300><FONT FACE='Verdana, Arial, Helvetica' SIZE=2><B><U>AND</U> to find all words, <U>OR</U> for any: </B></FONT></TD>");
		document.write("<TD WIDTH=200><select name='mode'><option value='allwords'>AND<option value='anywords'>OR</option></select></TD>");
		document.write("</TR>");
		document.write("<TR>");
		document.write("<TD WIDTH=500 COLSPAN=2><CENTER><BR><input type=submit value='Search'><input type=reset></CENTER></TD>");
		document.write("</TR>");
		document.write("</TABLE>");
		document.write("<CENTER>");
		document.write("</form>");
	}

}
