// JavaScript Document
// Hornsea javascript library file created Jan 13 2005
// Author David Frary.
//
//
/* ***************************************************************************** */
/*                  Updated  14 Jan 2005                                         */
/* ***************************************************************************** */
//
//
//
function monthlyImage()
/******************************************************************************* */
//
//
//
//
{
  now = new Date
	monName = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
 	pikky = new Array("images/month_1.jpg", "images/month_2.jpg", "images/month_3.jpg", "images/month_4.jpg", "images/month_5.jpg", "images/month_6.jpg", "images/month_7.jpg", "images/month_8.jpg", "images/month_9.jpg", "images/month_10.jpg", "images/month_11.jpg", "images/month_12.jpg")		
  document.write("<img src=" + pikky[now.getMonth()] + " width='350' height='350' border='2' alt='This month's favourite piece.'><br>")		
}
/****************************End of function************************************ */
//
//
//
//
//
function malAdy()
/******************************************************************************* */
/* Function provides e-mail address                                              */
/* The function takes no arguments:                                              */
/* Function returns no value.                                                    */
/******************************************************************************* */
{
	var strA = "\<a href\='mailto:";
	var strB = "david&#64;";
	var strC = "bluewisteria"
	var strD = ".co.uk'\>Contact\<\/a\>"
	document.write(strA + strB + strC + strD)
	
};
/****************************End of function************************************ */
//
//
//
//
function screenResCheck()
/******************************************************************************* */
/* Function checks screen res                                                    */
/* The function has no arguments.                                                */
/* Function returns string indicating resonution, "old", "low", "med", "high"    */
/******************************************************************************* */
{
	if(screen.width == 640 && screen.height == 480)	{	return "old" };
	if(screen.width == 800 && screen.height == 600)	{	return "low" };
	if(screen.width == 1024 && screen.height == 768) { return "med"	};
	if(screen.width == 1280 && screen.height == 1024)	{
		document.write('<link rel="StyleSheet" href="/styleLib_High.css" type="text/css" title="High">');
		return "high" };
};

/****************************End of function********************************/
