
function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top=25,left='+winl+',scrollbars='+scroll+',resizable';
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { 
		win.window.focus(); 
	}
}

function popVideoWin(fileName,speed) {
	var videoName = fileName;
	if ((speed !='slow') && (videoName.indexOf('wmv') == -1)){
	window.open (videoName,'videocliphtml',"width=350,height=320,status=no,location=no,toolbar=no,menubar=no,scrolling=no,left=160,top=185,resizable=yes");
	//second check: movie is QT and dial-up
	} else if ((speed =='slow') && (videoName.indexOf('wmv')) == -1){
	window.open (videoName,'videocliphtml',"width=260,height=260,status=no,location=no,toolbar=no,menubar=no,scrolling=no,left=160,top=185,resizable=yes");
	//third check: movie is Windows Media Player and highspeed
	} else if ((speed !='slow') && (videoName.indexOf('wmv')) != -1){
	window.open (videoName,'videocliphtml',"width=350,height=350,status=no,location=no,toolbar=no,menubar=no,scrolling=no,left=160,top=185,resizable=yes");
	//if none of the above, serve Windows Media Player - dial-up speed
	} else {
	window.open (videoName,'videocliphtml',"width=300,height=300,status=no,location=no,toolbar=no,menubar=no,scrolling=no,left=160,top=185,resizable=yes");
	}
	
}



