<!--
// IE3 safe image switching code
var goodBrowser = 0;

if(document.images){
        // enable rollovers
        goodBrowser = 1;
        
        //image preloading stuff
        //put your images that will be used into a comma delimited
        //list on the next line... follow the example =)
        var preLoad = new Array('/images/nav_openHouse_over.gif','/images/nav_neighborhoods_over.gif','/images/nav_availableHomes_over.gif','/images/nav_popularModels_over.gif','/images/nav_testimonials_over.gif','/images/nav_contactUs_aboutMorrell.gif','/images/nav_community_over.gif','/images/nav_contactUs_over.gif','/images/navSide_camdenHills_over.gif','/images/navSide_theCottages_over.gif','/images/navSide_waterfordPoint_over.gif','/images/navSide_lakewoodMeadows_over.gif');

        //don't touch this (it does the pre-loading for you)
        for(var i = 0; i < preLoad.length;i++){
                var k = new Image();
                k.src = preLoad[i];
        }
        
}

function flipper(){
        if(goodBrowser == 1){
                for(var i = 0; i < flipper.arguments.length; i += 2){
                document.images[flipper.arguments[i]].src = flipper.arguments[i+1];
                }
        }

}

function popWindow(theURL,theName,theOptions){
        var newWin = window.open(theURL,theName,theOptions);
        newWin.focus();
}




function CloseWindow() {
	window.close();
}

function EnterClose(key) {

	
	if (event.keyCode == 13) {
		window.close();
	}
	
}


// image popperupper
function popImage(imgWidth, imgHeight, imgSrc){
        //kludge for margins\\
        if(navigator.appName == 'Netscape'){imgWidth += 10;imgHeight += 10;}else{imgWidth += 20;imgHeight += 50;}       
        bob = window.open(imgSrc,"bob",'resizable=yes,toolbar=no,directories=no,menubar=no,status=no,width=' + imgWidth + ',height=' + imgHeight + "'");
        bob.focus();
        //IE code
        if(navigator.appName != 'Netscape'){bob.resizeTo(imgWidth,imgHeight)}
}
