function open_vr_win() {

// Copyright 2003 Multimediaambassaden, Mats Rytther
// declaration of some variables for size
//  if the UEB site is redesigned some of these might need to be changed


// the main UEB window will be revised to this size
mother_window_width = 700; // inner width of the main UEB window
						// minimum width the UEB main window is allowed to shrink to
mother_window_height = 	screen.availHeight;	// outher height of UEB main window			
mother_window_address = "http://www.ueb.se/store/";

// size for the VR-window
vr_win_width = 555;	// width of window
vr_win_height = 660;	// height of window
vr_win_space = 10;	// space between the vr window and the main UEB window
vr_win_right_space = 1;	// space between the vr window and the right screen edge

spare_space = screen.availHeight - vr_win_width- vr_win_space - mother_window_width;	// spare space between ueb mother window and vr window

	vr_win = window.open ("vr/index.html","ueb_vr","toolbar=no,statusbar=no,personalbar=no,locationbar=no,menubar=no,width="+ vr_win_width +",height="+ vr_win_height +"");
	vr_win.innerWidth = vr_win_width;
	vr_win.innerHeight = vr_win_height;
	vr_win.moveTo(Math.min (mother_window_width + vr_win_space, screen.availWidth - vr_win_right_space - vr_win_width), 0);

	// move parent window up to the left and resize

	top.moveTo(0, 0);
	top.innerWidth = mother_window_width;
	top.outerHeight = mother_window_height;

	// load book-store page in UEB main window
	window.top.location.href = mother_window_address;
}