if (document.images){
  nav1_off = new Image();  nav1_off.src = view_path+"images/nav1.gif";
  nav1_on =  new Image();  nav1_on.src =  view_path+"images/nav1_on.gif";
  nav2_off = new Image();  nav2_off.src = view_path+"images/nav2.gif";
  nav2_on =  new Image();  nav2_on.src =  view_path+"images/nav2_on.gif";
  nav3_off = new Image();  nav3_off.src = view_path+"images/nav3.gif";
  nav3_on =  new Image();  nav3_on.src =  view_path+"images/nav3_on.gif";
  nav4_off = new Image();  nav4_off.src = view_path+"images/nav4.gif";
  nav4_on =  new Image();  nav4_on.src =  view_path+"images/nav4_on.gif";
  nav5_off = new Image();  nav5_off.src = view_path+"images/nav5.gif";
  nav5_on =  new Image();  nav5_on.src =  view_path+"images/nav5_on.gif";
  nav6_off = new Image();  nav6_off.src = view_path+"images/nav6.gif";
  nav6_on =  new Image();  nav6_on.src =  view_path+"images/nav6_on.gif";
  
  bnav1_off = new Image();  bnav1_off.src = view_path+"images/bnav1.gif";
  bnav1_on =  new Image();  bnav1_on.src =  view_path+"images/bnav1_on.gif";
  bnav2_off = new Image();  bnav2_off.src = view_path+"images/bnav2.gif";
  bnav2_on =  new Image();  bnav2_on.src =  view_path+"images/bnav2_on.gif";
  bnav3_off = new Image();  bnav3_off.src = view_path+"images/bnav3.gif";
  bnav3_on =  new Image();  bnav3_on.src =  view_path+"images/bnav3_on.gif";
  bnav4_off = new Image();  bnav4_off.src = view_path+"images/bnav4.gif";
  bnav4_on =  new Image();  bnav4_on.src =  view_path+"images/bnav4_on.gif";
  bnav5_off = new Image();  bnav5_off.src = view_path+"images/bnav5.gif";
  bnav5_on =  new Image();  bnav5_on.src =  view_path+"images/bnav5_on.gif";
  bnav6_off = new Image();  bnav6_off.src = view_path+"images/bnav6.gif";
  bnav6_on =  new Image();  bnav6_on.src =  view_path+"images/bnav6_on.gif";
  bnav7_off = new Image();  bnav7_off.src = view_path+"images/bnav7.gif";
  bnav7_on =  new Image();  bnav7_on.src =  view_path+"images/bnav7_on.gif";
  
  bullet_square_on = new Image(); bullet_square_on = view_path+"images/bullet_square_on.gif";
}





function roll(sname,rname){
    sname = id2elem(sname);
    sname.src = rname.src;
}
function id2elem(id) {
	if (typeof(id) != 'string') {
		return id;
	}
	if (document.getElementById) {
		id = document.getElementById(id);
	} else if (document.all) {
		id=document.all[id];
	} else {
		id = null;
	}
	return id;
}
function popup(url,width,height){
    nw = window.open(url,"newwindow","width="+width+",height="+height+",status=0,toolbar=0,menubar=0,scrollbars=1,resizable=1,location=0");
    nw.focus();
}

