var imgok=false,mnuImg=null;
var imgarr=new Array('home','introduction','location','apartment','penthouse','news','contact');

function getOb(ob){
if(document.getElementById){return (document.getElementById(ob))}
else{if(document.all){return (document.all[ob])}else{return (eval('document.'+ob))}}
}
// mnuImg is an array of .gif images in the mnu sub-dir version 23-12-2001 - update 14-02-02
function preMnu(){
if(arguments.length>0){
if(!mnuImg)mnuImg=new Array();
for(var a=0;a<arguments.length;a++){
mnuImg[a]=new Image();mnuImg[a].src="mnu/"+arguments[a]+"-.gif";
}}
imgok=document.images?true:false;}

function loadMnu(){
	imgok=document.images?true:false;
	if(imgok){
		if(!mnuImg){
			mnuImg=new Array();
		}
		for(var i=0;i<imgarr.length;i++){
			mnuImg[i]=new Image();
			mnuImg[i].src='mnu/'+imgarr[i]+'-.gif';
		}
	}
}

function swp(img,i){if(imgok){img.src=mnuImg[i].src}}
// hilight apartment map seg
function apov(it){if(document.getElementById){document.getElementById(it).style.backgroundColor='#006666';}
if(document.all){document.all[it].style.backgroundColor='#006666';}}
// restore apartment map seg
function apot(it){if(document.getElementById){document.getElementById(it).style.backgroundColor='#006633';}
if(document.all){document.all[it].style.backgroundColor='#006633';}}

function atov(it){if(document.all||document.getElementById){it.style.backgroundColor='#006666';}}
function atot(it){if(document.all||document.getElementById){it.style.backgroundColor='#006633';}}

function chkSub(){if(document.user.email.value==''){alert('Please enter your email address.\nWe require your email address to contact you.');document.user.email.focus();return false}else
{if(document.user.email.value.indexOf('@')==-1){alert('This email address does not appear to be valid.\nThere is no "@" symbol present.');document.user.email.focus();return false}else{return true;}}}

function bkmrk(){var a=navigator.userAgent.toLowerCase();
var v=parseInt(navigator.appVersion);
if((a.indexOf('msie')!=-1)&&v>=4&&(a.indexOf('opera')==-1)){document.write('<a href="javascript:window.external.AddFavorite(location.href,document.title)">Click here to<br>add this page to your<br>Favourites</a>')}else{if(a.indexOf('opera')!=-1){document.write('On your keyboard<br>hold CTRL-T<br>(control &amp; T)')}else{document.write('On your keyboard<br>hold CTRL-D<br>(control &amp; D)')}};}

function exposePic(img){scrnpic.src='scn/'+img;scrnsht.style.display='block';}
