var closeParam = '';

// *** BROWSER VERSION *** 
// Perform browser detection on client so we're not dependent
// on browscap.ini

// convert all characters to lowercase to simplify testing 
var agt=navigator.userAgent.toLowerCase(); 
var is_major = parseInt(navigator.appVersion); 
var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('compatible') == -1));
var is_ie   = (agt.indexOf("msie") != -1); 
var is_aol   = (agt.indexOf("aol") != -1); 
var is_Win2K = (agt.indexOf("nt 5") != -1); 
var w=0;
var h=0;
var x=0;
var y=0;
w = 432;
h = 328;
if (is_aol && is_Win2K) {
  x=0;
  y=0;
} else if (is_major >= 4) {
  x = (screen.width - w) / 2 ;
  y = (screen.height - h) / 2 ;
}

//Define Browser Window Style
stats='toolbar=no,location=no,directories=no,status=no,menubar=no,'; 
stats += 'scrollbars=no,resize=no,width=' + w + ',height=' + h; 
stats += ',top=' + y + ',left=' + x;

//Open a viewer window
function Vieweropen(url) {
window.open (url,"DemoMovie",stats)
}

//Close the window that opened this window if user specifies.
if (closeParam.length > 0) {
  window.close();
}
