
//*** PROPERTY SITE FUNCTIONS ******************************************************************************
//
//	  Version 1.0 (25 March 2006)
//
//    COPYRIGHT 2006. ALL RIGHTS RESERVED 
//
//    All original work including code, content and artwork remains the property of its author
//	  and/or creator and must not be reproduced, modified, disassembled, transmitted, stored or translated
//	  in anyway, or used for anyother purpose without without prior written concent from its
//	  owner.  Infringement of copyright is a civil and criminal offence which can result in heavy fines.
//
//**********************************************************************************************************


// *** Library constants (MS-25/03/06) ***

var MSIE = "Microsoft Internet Explorer";
var NETSCAPE = "Netscape";


// *** A function to swap images on the page - IE only (MS-25/03/06) ***

function swapImages(imageSpace,imageName)
{
	imageObj = document.images[imageSpace];
	imageObj.src = imageName;
}


// *** A function that preloads a list of image files (MS-16.08.02) ***

function preloadImages()
{
	if (document.images)
	{
		var imageFiles = preloadImages.arguments;
		if(document.preloadArray==null) document.preloadArray = new Array();

		var i = document.preloadArray.length;
		with (document) for (var j=0; j < imageFiles.length; j++)
		{
			preloadArray[i] = new Image;
			preloadArray[i++].src = imageFiles[j];	
		}
	}
}


// *** A function to produce a standard button rollover with text (MS-05.08.02) ***

function standardRollovers(linkURL,imageName,overImg,outImg,clickImg,altDesc,assocText,textPos,textAlign)
{
	if(textAlign == "")
	{textAlign = "center"}
	document.write("<A HREF=" + linkURL);
	document.write(" ONMOUSEOVER=swapImages('"+imageName+"','"+overImg+"');");
	document.write(" ONMOUSEOUT=swapImages('"+imageName+"','"+outImg+"');");
	document.write(" ONMOUSEDOWN=swapImages('"+imageName+"','"+clickImg+"');");
	document.write(" ><NOBR>");
	if(textPos == "L"){	document.write(assocText);}
	document.write("<IMG NAME='"+imageName+"' ALIGN='"+textAlign+"' SRC='"+outImg+"' BORDER='0' ALT='"+altDesc+"'>");
	if(textPos == "R"){	document.write(assocText);}	
	document.write("</NOBR></A>");
}


// ***** A function to load a page on a user confirm (MS-27.06.04) *****

function loadPageOnUserOK(confirmMessage,thePage)
{
	var userSelection_ = confirm(confirmMessage);
		
	if(userSelection_)
	{
		window.location.href = thePage;
	}

} // loadPageOnUserOK
