var baseDir = "";
if (document.images) {
	commun_off = new Image();
	commun_off.src = baseDir + "../images/nav_our.gif";
	commun_on = new Image();
	commun_on.src = baseDir + "../images/nav_our_mo.gif";

	design_off = new Image();
	design_off.src = baseDir + "../images/nav_home_design.gif";
	design_on = new Image();
	design_on.src = baseDir + "../images/nav_home_design_mo.gif";

	buying_off = new Image();
	buying_off.src = baseDir + "../images/nav_buying.gif";
	buying_on = new Image();
	buying_on.src = baseDir + "../images/nav_buying_mo.gif";

	about_off = new Image();
	about_off.src = baseDir + "../images/nav_about.gif";
	about_on = new Image();
	about_on.src = baseDir + "../images/nav_about_mo.gif";
	
	contact_off = new Image();
	contact_off.src = baseDir + "../images/nav_contact.gif";
	contact_on = new Image();
	contact_on.src = baseDir + "../images/nav_contact_mo.gif";
	
	req_off = new Image();
	req_off.src = baseDir + "../images/nav_req.gif";
	req_on = new Image();
	req_on.src = baseDir + "../images/nav_req_mo.gif";
	
	site_off = new Image();
	site_off.src = baseDir + "../images/nav_site.gif";
	site_on = new Image();
	site_on.src = baseDir + "../images/nav_site_mo.gif";
	
	
}

var agt=navigator.userAgent.toLowerCase(); 
var is_major = parseInt(navigator.appVersion); 
var is_minor = parseFloat(navigator.appVersion); 
var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) 
                && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) 
                && (agt.indexOf('webtv')==-1)); 
var is_nav2 = (is_nav && (is_major == 2)); 
var is_nav3 = (is_nav && (is_major == 3)); 
var is_nav4 = (is_nav && (is_major == 4)); 
var is_nav4up = (is_nav && (is_major >= 4)); 
var is_ie   = (agt.indexOf("msie") != -1); 
var is_ie4up  = (is_ie  && (is_major >= 4)); 
var is_mac    = (agt.indexOf("mac")!=-1);
 
if ((agt.indexOf("msie") != -1) && (agt.indexOf("mac") == -1)) {
 var newwindow;
}
 
function centerPopUpWin(textlink,ht,wd) {
 if ((agt.indexOf("msie") != -1) && (agt.indexOf("mac") == -1)) {
  if (newwindow != null) { newwindow.close(); }
 }
 newwindow = window.open(textlink,'popup',config='height=' + ht + ',width=' + wd + ',scrollbars=no,toolbar=no,copyhistory=no,resizable=yes,directories=no,menubar=no,status=no,location=no');
 newwindow.moveTo( (screen.availWidth-wd)/2, (screen.availHeight-ht)/2 );
 newwindow.focus();
}
if (document.images) {

	image1on = new Image();
	image1on.src = "../images/request_info_mo.gif";

	image2on = new Image();
	image2on.src = "../images/personalize_mo.gif";

	image3on = new Image();
	image3on.src = "../images/design_gallery_mo.gif";
	
	image10on = new Image();
	image10on.src = "../images/new_area_map_mo.gif";

<!--------------------------------------------------------------------------->
	
	image1off = new Image();
	image1off.src = "../images/request_info.gif";

	image2off = new Image();
	image2off.src = "../images/personalize.gif";

	image3off = new Image();
	image3off.src = "../images/design_gallery.gif";
	
	image10off = new Image();
	image10off.src = "../images/new_area_map.gif";

}

function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}

function calc(url) {
msg=open(url,'calc','width=508,height=550,toolbar=no,copyhistory=no,scrollbars=yes,resizable=yes,directories=no,menubar=no,status=no,location=no');
}
function signup(url) {
msg=open(url,'efriend','width=588,height=600,toolbar=no,copyhistory=no,scrollbars=yes,resizable=no,directories=no,menubar=no,status=no,location=no');
}
function request(url) {
msg=open(url,'request','width=508,height=368,toolbar=no,copyhistory=no,scrollbars=yes,resizable=no,directories=no,menubar=no,status=no,location=no');
}
function design(url) {
msg=open(url,'design','width=705,height=450,toolbar=no,copyhistory=no,scrollbars=no,resizable=no,directories=no,menubar=no,status=no,location=no');
}
function service(url) {
msg=open(url,'design','width=520,height=623,toolbar=no,copyhistory=no,scrollbars=yes,resizable=no,directories=no,menubar=no,status=no,location=no');
}
function gallery(url) {
msg=open(url,'gallery','width=366,height=387,toolbar=no,copyhistory=no,scrollbars=no,resizable=no,directories=no,menubar=no,status=no,location=no');
}