
//*** HOUSE FLAT ROOM JAVASCRIPT FUNCTIONS ******************************************************************
//
//	  Version 1.0 (9 December 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 any other purpose without prior written concent from its owner.
//	  Infringement of copyright is a civil and criminal offence which can result in heavy fines.
//
//***********************************************************************************************************


// **
// * LIBRARY LITERALS
// *

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

// **
// * DYNAMIC PAGE FUNCTIONS
// *

// *** A function to display an DOM element by ID (MS-21.02.06) ***

function showID(elementID)
{
	document.all[elementID].style.visibility="visible";
}


// *** A function to hide an DOM element by ID (MS-21.02.06) ***

function hideID(elementID)
{
	document.all[elementID].style.visibility="hidden";
}


// *** 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;
	}

}


// *** A function to determine if browser is IE version 4 or above (MS-23.01.07) ***

function isIE4plus()
{
	return (navigator.appName == MSIE) && (parseInt(navigator.appVersion) >= 4);
}


// *** A function to determine if browser is Netscape (MS-23.01.07) ***

function isNetscape()
{
	return navigator.appName == NETSCAPE;
}


// *** A function to determine if browser is Netscape (MS-23.01.07) ***

function isMozilla()
{
	return window.sidebar;
}


// *** A function to determine if browser is Netscape (MS-23.01.07) ***

function isNetscape()
{
	return navigator.appName == NETSCAPE;
}


// *** A function to bookmark a favourite then load a page (MS-23.01.07) ***

function createBookmarkAndLoad(siteUrl, siteName, loadsite)
{

	browserIdentified = false;

	if(isIE4plus())
	{
		window.external.AddFavorite(siteUrl, siteName);

		browserIdentified = true;
	}
	else if(isMozilla())
	{
		window.sidebar.addPanel(siteName, siteUrl,"");

		browserIdentified = true;
	}
	else if(isNetscape())
	{
		var msg = "To bookmark this site on Nescape press Ctrl and D";

		browserIdentified = true;
	}

	if(browserIdentified)
	{
		window.location = loadsite;
	}
}



 
