function open_standard_video_popup(url) {
	return(open_popup_centered(url,470, 355, "_play_video"));
}

function open_video_popup_sized(url, sizex, sizey) {
	return(open_popup_centered(url,sizex, sizey, "_play_video"));
}

function open_popup_centered(url,widthx,heighty,target) {
	var screen_width = 1024;
	var screen_height = 768;
	if( screen ) {
		if( screen.width ) {
			screen_width = screen.width;
		}
		if( screen.height ) {
			screen_height = screen.height;
		}
	}
	var positionx = Math.ceil(screen_width / 2 - (widthx / 2));
	var positiony = Math.ceil(screen_height / 2 - (heighty / 2));
	var new_window = window.open(url,target,'scrollbars=0,width=' + widthx + ',height=' + heighty + ',left=' + positionx + ',screenX=' + positionx + ',top=' + positiony + ',screenY=' + positiony + ',toolbar=no,status=no,menubar=no,directories=no,location=no,resizable=no');
	new_window.focus();
	return false;
}