function openVideo(url)
{
	openWin(url,"video",350,320,0,0,0,0,0);
}
//	Opens a new window with specified properties
function openWin(url,name,w,h,scroll,resize,status,title,tool)
{
	var sFeatures;
	if (typeof(h) == "undefined") h = 300;
	if (typeof(w) == "undefined") w = 400;
	var screenW = screen.width;
	var screenH = screen.height;
	var posX = (screenW/2)-(w/2);
	var posY = (screenH/2)-(h/2);
	sFeatures = "top="+posY+",left="+posX+",height="+h+",width="+w;
	if (typeof(scroll) != "undefined"){ sFeatures += ",scrollbars=" + scroll; }
	if (typeof(resize) != "undefined"){ sFeatures += ",resizable=" + resize; }
	if (typeof(status) != "undefined"){ sFeatures += ",status=" + status; }
	if (typeof(title) != "undefined"){ sFeatures += ",titlebar=" + title; }
	if (typeof(tool) != "undefined"){ sFeatures += ",toolbar=" + tool; }
	
//	alert(sFeatures);
	var win = window.open(url,name,sFeatures);
	win.focus();
}

function demoPopup(url,name,w,h,t,f,sRs,sb,posTop,posLeft) {
	var NS4=(document.layers)?1:0; var IE=(document.all)?1:0;
	var NS6=(document.getElementById&&!document.all)?1:0;
	strURL = url;
	var top=(IE)?window.screenTop:window.screenY;
	var left=(IE)?window.screenLeft:window.screenX;
	if(!w)w=600;
	if(!h)h=500;
	if(f==null)f=1;
	sb=(sb!=null)?sb:((f)?1:0);
	var D=new Date();
	var win=window.open(strURL,name,'toolbar='+t+',location=0,directories=0,menubar=0,resizable='+sRs+',status=0,scrollbars='+sb+',width='+w+',height='+h+',screenX='+(left+posLeft)+',screenY='+(top+posTop)+',left='+(left+posLeft)+',top='+(top+posTop)); if (window.focus)win.focus();
}