
function initPops() {
	var x = document.getElementsByTagName('a');
	for(i=0; i<x.length; i++) {
		if(x[i].onclick)
			x[i].onclick= videopop;
	}
	
}

function videopop() {
	newWindow(this.href, 'mucrashvid', 370,350, 'resizable=yes');
	return false;
}


function newWindow(mypage,myname,w,h,features) {
  if(screen.width){
	if(!w) w=(screen.width-50);
	if(!h) h=(screen.height-100);
	var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  }else{winl = 0;wint =0;}
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
  return win;
}