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";
	
	
	services = new Image();
	services.src = "images/nav_services_01.jpg";

	services_on = new Image();
	services_on.src = "images/nav_services_02.jpg";
	
	
	process = new Image();
	process.src = "images/nav_process_01.jpg";

	process_on = new Image();
	process_on.src = "images/nav_process_02.jpg";
	
	
	work= new Image();
	work.src = "images/nav_work_01.jpg";

	work_on = new Image();
	work_on.src = "images/nav_work_02.jpg";
	
	
	careers= new Image();
	careers.src = "images/nav_careers_01.jpg";

	careers_on = new Image();
	careers_on.src = "images/nav_careers_02.jpg";
	
	
	contact = new Image();
	contact.src = "images/nav_contact_01.jpg";

	contact_on = new Image();
	contact_on.src = "images/nav_contact_02.jpg";
	
	
	
		
}






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");
		
	}
	
}




