// if ( ll == "" ) ll = 0;

    var linkplacement = "";
    var i;
    for ( i = 0; i < ll; i++ ) {
      linkplacement = linkplacement + "../";
    }

if (document.images) {            // Active Images
	img01on = new Image();
	img01off = new Image();
	img01on.src = linkplacement + "images/topnav/btn_project_over.gif";
	img01off.src = linkplacement + "images/topnav/btn_project.gif";

	img07on = new Image();
	img07off = new Image();
	img07on.src = linkplacement + "images/topnav/btn_buying_over.gif";
	img07off.src = linkplacement + "images/topnav/btn_buying.gif";

	img02on = new Image();
	img02off = new Image();
	img02on.src = linkplacement + "images/topnav/btn_single_over.gif";
	img02off.src = linkplacement + "images/topnav/btn_single.gif";

	img03on = new Image();
	img03off = new Image();
	img03on.src = linkplacement + "images/topnav/btn_duplex_over.gif";
	img03off.src = linkplacement + "images/topnav/btn_duplex.gif";

	img04on = new Image();
	img04off = new Image();
	img04on.src = linkplacement + "images/topnav/btn_condo_over.gif";
	img04off.src = linkplacement + "images/topnav/btn_condo.gif";

	img05on = new Image();
	img05off = new Image();
	img05on.src = linkplacement + "images/topnav/btn_townhouse_over.gif";
	img05off.src = linkplacement + "images/topnav/btn_townhouse.gif";

	img06on = new Image();
	img06off = new Image();
	img06on.src = linkplacement + "images/topnav/btn_fortmac_over.gif";
	img06off.src = linkplacement + "images/topnav/btn_fortmac.gif";
	
}
   
// Function to 'activate' images.
function imgOn(imgName) {
	if (document.images) {
		document[imgName].src = eval(imgName + "on.src");
	}
}
// Function to 'deactivate' images.
function imgOff(imgName) {
	if (document.images) {
		document[imgName].src = eval(imgName + "off.src");
	}
}
// Function for 'down' images.
function imgDown(imgName) {
	if (document.images) {
		document[imgName].src = eval(imgName + "down.src");
	}
}

var emailAddr = "info";
var emailAddr = emailAddr + "@domain.com";
var emailMain = "<a href=\"mailto:" + emailAddr + "\">" + emailAddr + "</a>";

// Function to display current date

function todaydate() {

  var dayName = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
  var monthName = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
  var time = new Date();
  var aDay = 24*60*60*1000;
  var days = 0;
  var year = time.getYear();

  if ((navigator.appName == "Microsoft Internet Explorer") && (year < 2000))		
	year="19" + year;
	if (navigator.appName == "Netscape")
		year=1900 + year;
		var todaysDate = new Date();

  document.write(dayName[todaysDate.getDay()] + ", " + monthName[todaysDate.getMonth()] + " " + todaysDate.getDate() + ", " + year);

}

function popup(URL,xWidth,yHeight)
{
// URL is the passed in parameter where you specified your popup page
// 0 means no, set toolbars = 0 means you don't want a toolbar to show up in your popup.
// if you want a toolbar, set it to 1.  Other attributes work the same.
window.open(URL,"popup01","'toolbars=0,width="+xWidth+",height="+yHeight+",menubar=0,scrollbars=1,resize=0'");
}
function viewLarge(imgSrc) {
	if (imgSrc=='townhouse') {
		loc='images/townhouses/artists-concept.jpg';
		xWidth=1040;
		yHeight=700;
	}
	if (imgSrc=='villa') {
		loc='images/semi_detached/villa-rendering.jpg';
		xWidth=610;
		yHeight=355;
	}
	window.open(loc,"popup02","'toolbars=0,width="+xWidth+",height="+yHeight+",menubar=0,scrollbars=1,resize=0'");
}
function gallery(URL)
{
// URL is the passed in parameter where you specified your popup page
// 0 means no, set toolbars = 0 means you don't want a toolbar to show up in your popup.
// if you want a toolbar, set it to 1.  Other attributes work the same.
window.open(URL,"popup07","'toolbars=0,width=1000,height=1000,menubar=0,scrollbars=1,resize=0'");
}



