function videos(strVideo) {
	var strDoctor;
	var strDoctorName;
	
	// get the Doctor name based on page URL
	var strPath = window.location.pathname;
	
	if (strPath == "/hcp/breast-cancer-leaders.aspx") {
		strDoctor = "chang";
	} else {
		var arrPath = strPath.split('/');
		strDoctor = arrPath[4];
		arrPath = strDoctor.split('.');
		strDoctor = arrPath[0];
		arrPath = strDoctor.split('-');
		strDoctor = arrPath[1];
	}
	
	
	
	// current doctor tab highlight
	$("ul#experts li."+strDoctor).addClass("current");
	
	
	
	// hide the Adherence video by Ruth O'Regan
	if (strDoctor == "oregan") {
		$("div#videos ul li.video7").hide();
	}
	
	
	
	// current doctor "videos from"
	strDoctorName = $("ul#experts li."+strDoctor+" strong").html();
	$("div#videos h2 strong").html(strDoctorName);
	
	// current video tab highlight
	$("div#videos ul li").removeClass("current");
	$("div#videos ul li.video"+strVideo).addClass("current");
	
	
	
	// show the current video
	var strDoctor2 = strDoctor.charAt(0).toUpperCase()+strDoctor.substring(1); // uppercase first letter for dstr
	
    var flashvars = {};
		flashvars.vidID = "/hcp/swf/assets/"+strDoctor+strVideo+".flv";
		flashvars.dstr = strDoctor2+"Ti_SWF";
	var params = {};
		params.quality = "high";
		params.loop = "false";
		params.wmode = "transparent";
	var attributes = {};
		attributes.id = "vdo";
		attributes.name = "vdo"; 
    swfobject.embedSWF("/hcp/swf/expert-views2.swf", "vdo", "337", "301", "8.0.0", false, flashvars, params, attributes);

}



$(document).ready(function() {
	videos("1");
});