if (document.images) {
	
	
	home = new Image();
	home.src = "images/nav_home_01.jpg";

	home_on = new Image();
	home_on.src = "images/nav_home_02.jpg";
			
			
	about = new Image();
	about.src = "images/nav_about_01.jpg";

	about_on = new Image();
	about_on.src = "images/nav_about_02.jpg";
	
	
	neighbourhood = new Image();
	neighbourhood.src = "images/nav_neighbourhood_01.jpg";

	neighbourhood_on = new Image();
	neighbourhood_on.src = "images/nav_neighbourhood_02.jpg";
	
	
	directory = new Image();
	directory.src = "images/nav_directory_01.jpg";

	directory_on = new Image();
	directory_on.src = "images/nav_directory_02.jpg";
	
	
	news= new Image();
	news.src = "images/nav_news_01.jpg";

	news_on = new Image();
	news_on.src = "images/nav_news_02.jpg";
	
	
	contact = new Image();
	contact.src = "images/nav_contact_01.jpg";

	contact_on = new Image();
	contact_on.src = "images/nav_contact_02.jpg";
	
	
	
		
}


	
	function expand_contract(obj){
		var temp = obj.parentNode.childNodes[1].style;
		var temp2 = obj.parentNode.childNodes[0].style;
		if (temp.visibility == "hidden") {
			temp.visibility = "visible";
			temp.display = "block";
		}
		else {
			temp.visibility = "hidden";
			temp.display = "none";	
		}
	}

	function highlight(obj) {

			var class_00 = "subContainerTitle";
			var class_01 = "subContainerTitleHighlighted";

			if (obj.className == class_00)
			{
			   		obj.className = class_01;
			}
			else
			{
   				obj.className = class_00;
			}
	}






var viewStudio = null;

function popup(url){

	var str = centerWindow(580,480);

	viewStudio = window.open(url, "viewStudio",
"location=no,menubar=no,resizable=no,scrollbars=yes," + str);
	viewStudio.focus();

}

function centerWindow(width,height) {

	if(window.screen){

		if(screen.availHeight-30 <= height){

			height = screen.availHeight - 30;

		}

		if(screen.availWidth-10 <= width){

			width = screen.availWidth - 10;

		}

	}

	var str = "height=" + height + ",innerHeight=" + (height+30);
	str += ",width=" + width + ",innerWidth=" + width;

	if (window.screen) {

		var ah = screen.availHeight - 30;
		var aw = screen.availWidth - 10;

		var xc = (aw - width) / 2;
		var yc = (ah - height) / 2;

    	str += ",left=" + xc + ",screenX=" + xc;
    	str += ",top=" + yc + ",screenY=" + yc;
  	}

  	return str;

}






// NAV
// Function to 'activate' images.
function imgOn(imgName) {
	
	if (document.images) {
	
		document[imgName].src = eval(imgName + "_on.src");
		
	}
	
}


// NAV
// Function to 'deactivate' images.
function imgOff(imgName) {

	if (document.images) {
	
		document[imgName].src = eval(imgName + ".src");
		
	}
	
}




