function launchVideoPopUp(videoID,videoTitle) {
	var locationHref = document.location.toString();
	var browserAppName;
	
	url = "http://www.dhmc.org/video/videoplayer.cfm?videoID="+videoID+"&videoTitle="+escape(videoTitle);
	try {
		browserAppName = navigator.appName;
		url += "&appName="+browserAppName;
	} catch(err) {
		url += "&appName=Unknown";
	}
	
// set the height and width of the window to be opened
	var myHeight = 360;
	var myWidth = 450;	
	// puts the screen in the middle of the page
	x = parseInt(window.screen.width) / 2 - (myWidth / 2);  // exact half of the width of the pop-up
	y = parseInt(window.screen.height) / 2 - (myHeight / 2);  // exact half of the height of the pop-up
	var mine = window.open(url,'videopopup','width=' + myWidth + ',height=' + myHeight + ',toolbar=no,menubar=no,scrollbars=auto,resizable=yes,location=no,directories=no,status=no,left=' + x + ',top=' + y); 
	
	if(!mine){
		alert('We have detected that you are using popup blocking software.\nPlease disable your popup blocker to video this video.');
	}
}


function launchdhslidePopUp(dhsDEPT,dhsID,dhsHTML,myWidth,myHeight) {
	var locationHref = document.location.toString();
	var browserAppName;
	url = "http://www.dhslides.org/"+dhsDEPT+"/"+dhsID+"/"+dhsHTML;
	
// puts the screen in the middle of the page
	x = parseInt(window.screen.width) / 2 - (myWidth / 2);  // exact half of the width of the pop-up
	y = parseInt(window.screen.height) / 2 - (myHeight / 2);  // exact half of the height of the pop-up
	var mine = window.open(url,'videopopup','width=' + myWidth + ',height=' + myHeight + ',toolbar=no,menubar=no,scrollbars=auto,resizable=no,location=no,directories=no,status=no,left=' + x + ',top=' + y); 
	
	if(!mine){
		alert('We have detected that you are using popup blocking software.\nPlease disable your popup blocker to video this video.');
	}
}