function popupVideo(event,element){
	if(!event)event=window.event;
	var w=650;
	var h=530;
	
	//look for iPhone, which doesn't support popups, flash or windows media
	if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
		var m4v="kings-park.flv";	
		if(element.href.indexOf("action-1.wmv")!=-1)m4v="kings-park.m4v";
		if(element.href.indexOf("pioneer-youth")!=-1)m4v="pioneer-youth.m4v";
		if(element.href.indexOf("pioneer-centre-conference")!=-1)m4v="pioneer-conf.m4v";
			
		location.href="flvplayer/" + m4v;
		return false;
	}
	
	
	//ie likes to show the vertical scollbar, so adjust the window size to compensate
	if(/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)){
		w+=20;
	}
	
	var t=(screen.height/2)-(h/2);
	var l=(screen.width/2)-(w/2);
	var path="popupvideo.html#" + element.href;
	if(location.href.indexOf("conferenceCentres")!=-1)
		path="../" + path;
	if(location.href.indexOf("whitemoor-lakes")!=-1)
		path="../" + path;
	var popupvideo=window.open(path,"popupvideo","location=1,status=1,resizable=0,scrollbars=1,width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
	if(popupvideo){
		//flash video has successfully popped up
		//now go cancel the opening of the mms stream
		event.cancelBubble=true;	//Trident/IE
		event.returnValue=false;	//Trident/IE
		event.stopPropagation();	//Gecko/FF
		event.preventDefault();		//Webkit/Safari	& Opera
		return false;				//last try!
	}	//else, don't prevent the default action, and user will be prompted to open WMP to view the mms://.wmv stream
}
