var NS4 = (navigator.appName.indexOf("Netscape")>=0 && parseFloat(navigator.appVersion) >= 4 && parseFloat(navigator.appVersion) < 5)? true : false;
var IE4 = (document.all)? true : false;
var NS6plus = (parseFloat(navigator.appVersion) >= 5 && navigator.appName.indexOf("Netscape")>=0 )? true: false;
var isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
var IEmac = ((document.all) && (isMac)) ? true : false;
var IE4plus = (document.all) ? true : false;
var IE5 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.")!=-1)) ? true : false;
var IE6 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)) ? true : false;
var Opera7plus = ((document.all)&&(navigator.userAgent.indexOf("Opera 7")!=-1)) ? true : false;
var FF1 = (navigator.userAgent.indexOf("Firefox\/1")!=-1) ? true : false;
var Opera = (navigator.userAgent.indexOf("Opera")!=-1) ? true : false;
var Mozilla = (NS6plus && (navigator.userAgent.indexOf("Netscape") < 0));
var IsLocal = (location.href.indexOf("file://")>-1)? true : false;
var initPlayer = 0; 
var idI;

var oPres = 
{'SLIDES':[
{'SlideSeq': '1', 'Title': 'Africa’s Future:Improving the Health of Mothers and ChildrenJune 5, 2009Rayburn House Office Building, Washington, DC', 'ClipFile': '1.wmv', 'SlideFile': 'slide_1_2.png', 'TimePoint': 0},
{'SlideSeq': '2', 'Title': 'Population Growth and Policy OptionsIn Sub-Saharan Africa', 'ClipFile': '1.wmv', 'SlideFile': 'slide_2_3.png', 'TimePoint': 183000},
{'SlideSeq': '3', 'Title': 'Outline', 'ClipFile': '1.wmv', 'SlideFile': 'slide_3_4.png', 'TimePoint': 203000},
{'SlideSeq': '4', 'Title': 'Population Trends', 'ClipFile': '1.wmv', 'SlideFile': 'slide_4_5.png', 'TimePoint': 243000},
{'SlideSeq': '5', 'Title': 'Population Growth', 'ClipFile': '1.wmv', 'SlideFile': 'slide_5_6.png', 'TimePoint': 365000},
{'SlideSeq': '6', 'Title': 'Adverse effects of rapid population growth', 'ClipFile': '1.wmv', 'SlideFile': 'slide_6_7.png', 'TimePoint': 419000},
{'SlideSeq': '7', 'Title': 'The demographic impact of the AIDS epidemic', 'ClipFile': '1.wmv', 'SlideFile': 'slide_7_8.png', 'TimePoint': 527000},
{'SlideSeq': '8', 'Title': 'HIV Invection Level', 'ClipFile': '1.wmv', 'SlideFile': 'slide_8_9.png', 'TimePoint': 536000},
{'SlideSeq': '9', 'Title': 'Population size', 'ClipFile': '1.wmv', 'SlideFile': 'slide_9_10.png', 'TimePoint': 611000},
{'SlideSeq': '10', 'Title': 'The benefits of family planning programs', 'ClipFile': '1.wmv', 'SlideFile': 'slide_10_11.png', 'TimePoint': 718000},
{'SlideSeq': '11', 'Title': '123 million women in the developing world have an unmet need for contraception', 'ClipFile': '1.wmv', 'SlideFile': 'slide_11_12.png', 'TimePoint': 749000},
{'SlideSeq': '12', 'Title': 'Fertility Levels', 'ClipFile': '1.wmv', 'SlideFile': 'slide_12_13.png', 'TimePoint': 814000},
{'SlideSeq': '13', 'Title': 'Pregnancy outcomes in sub-Saharan Africa, 2003', 'ClipFile': '1.wmv', 'SlideFile': 'slide_13_14.png', 'TimePoint': 860000},
{'SlideSeq': '14', 'Title': 'Reducing unintended pregnancies and population growth contributes to:', 'ClipFile': '1.wmv', 'SlideFile': 'slide_14_15.png', 'TimePoint': 915000},
{'SlideSeq': '15', 'Title': 'Development Gains', 'ClipFile': '1.wmv', 'SlideFile': 'slide_15_16.png', 'TimePoint': 949000},
{'SlideSeq': '16', 'Title': 'Conclusions', 'ClipFile': '1.wmv', 'SlideFile': 'slide_16_17.png', 'TimePoint': 1002000},
{'SlideSeq': '17', 'Title': 'Uganda’s Future: Improving the Health of Mothers and ChildrenJotham Musinguzi, MD, MPHRegional Director Partners in Population and DevelopmentAfrica Regional OfficeJune 5, 2009Washington,  DC', 'ClipFile': '1.wmv', 'SlideFile': 'slide_17_18.png', 'TimePoint': 1052000},
{'SlideSeq': '18', 'Title': 'Map of Maternal Mortality, Worldwide', 'ClipFile': '1.wmv', 'SlideFile': 'slide_18_19.png', 'TimePoint': 1077000},
{'SlideSeq': '19', 'Title': 'Lost: Life, Rights, and Productivity', 'ClipFile': '1.wmv', 'SlideFile': 'slide_19_20.png', 'TimePoint': 1129000},
{'SlideSeq': '20', 'Title': 'Ugandan Population: Large and Growing Rapidly', 'ClipFile': '1.wmv', 'SlideFile': 'slide_20_21.png', 'TimePoint': 1179000},
{'SlideSeq': '21', 'Title': 'Uganda:  Why do pregnant women die?', 'ClipFile': '1.wmv', 'SlideFile': 'slide_21_22.png', 'TimePoint': 1280000},
{'SlideSeq': '22', 'Title': 'Effective, Low-Cost Strategies Exist to Improve the Health of Mothers and Children', 'ClipFile': '1.wmv', 'SlideFile': 'slide_22_23.png', 'TimePoint': 1354000},
{'SlideSeq': '23', 'Title': 'Family Planning Reduces Maternal Death Up to 40%', 'ClipFile': '1.wmv', 'SlideFile': 'slide_23_24.png', 'TimePoint': 1406000},
{'SlideSeq': '24', 'Title': 'A $1 Million Family Planning Investment Prevents:', 'ClipFile': '1.wmv', 'SlideFile': 'slide_24_25.png', 'TimePoint': 1469000},
{'SlideSeq': '25', 'Title': 'Uganda’s Future: Improving the Health of Mothers and Children', 'ClipFile': '1.wmv', 'SlideFile': 'slide_25_26.png', 'TimePoint': 1533000},
{'SlideSeq': '26', 'Title': 'What is the message?', 'ClipFile': '1.wmv', 'SlideFile': 'slide_26_27.png', 'TimePoint': 1575000},
{'SlideSeq': '27', 'Title': 'Maternal & Newborn Mortality', 'ClipFile': '1.wmv', 'SlideFile': 'slide_27_28.png', 'TimePoint': 1620000},
{'SlideSeq': '28', 'Title': 'Facts', 'ClipFile': '1.wmv', 'SlideFile': 'slide_28_29.png', 'TimePoint': 1640000},
{'SlideSeq': '29', 'Title': 'Most maternal death are due to:', 'ClipFile': '1.wmv', 'SlideFile': 'slide_29_30.png', 'TimePoint': 1718000},
{'SlideSeq': '30', 'Title': 'Socio-cultural causes of maternal deaths:', 'ClipFile': '1.wmv', 'SlideFile': 'slide_30_31.png', 'TimePoint': 1799000},
{'SlideSeq': '31', 'Title': '1 in 3 deaths could be avoided if women who wanted effective contraception had access to it. ', 'ClipFile': '1.wmv', 'SlideFile': 'slide_31_32.png', 'TimePoint': 1892000},
{'SlideSeq': '32', 'Title': 'The gap for reaching international maternal and child health goals in Senegal', 'ClipFile': '1.wmv', 'SlideFile': 'slide_32_33.png', 'TimePoint': 2014000},
{'SlideSeq': '33', 'Title': 'Lack of human and infrastructure resource impacts maternal health', 'ClipFile': '1.wmv', 'SlideFile': 'slide_33_34.png', 'TimePoint': 2145000},
{'SlideSeq': '34', 'Title': '8 of 10 maternal and newborn deaths are preventable', 'ClipFile': '1.wmv', 'SlideFile': 'slide_34_35.png', 'TimePoint': 2202000},
{'SlideSeq': '35', 'Title': 'The Realities:', 'ClipFile': '1.wmv', 'SlideFile': 'slide_35_36.png', 'TimePoint': 2304000},
{'SlideSeq': '36', 'Title': 'No woman should die giving life', 'ClipFile': '1.wmv', 'SlideFile': 'slide_36_37.png', 'TimePoint': 2380000}
]}
var currSlideSeq=1;
var currDivId = "nt1";

function TabSelected(sel) { 
	tmpC=(parent.tabs.document.getElementById('tabNavigation').children.length -1)
	
	for (var i = 0; i < tmpC; i++) { 
		style2=parent.tabs.document.getElementById('tabNavigation').children[i]		
		if (i==sel) { 
			style2.className="selectedTab"
		} else { 
			style2.className=""	
		}
		
	} 

} 

function ChangeTab() {	
	var argv = ChangeTab.arguments;
	var argc = argv.length;
	for (var i = 0; i < argc; i++) {		
		style1=parent.tabcontent.document.getElementById(argv[i]).style
			
		if (i==0) { 
			style1.display="block"			
		} else { 
			style1.display="none"			
		} 
		if (argv[i]=='outline') { 
			parent.tabs.document.getElementById('tabNavBar').innerHTML="<div id='tabNavBar' style='background: #6D6FF9;border-top: line-height: 20px;text-align:right;padding: 0 0 0 0;color: #FFF;font-weight: bold;'>&nbsp;</div>"
		} else { 
			parent.tabs.document.getElementById('tabNavBar').innerHTML="<div id='tabNavBar' style='background: #6D6FF9;border-top: line-height: 20px;text-align:right;padding: 0 0 0 0;color: #FFF;font-weight: bold;'>Time Point</div>"
		} 
	}	
	return false; 	
}

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos) {
	if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
	if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
	else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=yes,toolbar=no,resizable=yes';
	win=window.open(mypage,myname,settings);
}

function SetCurrentSlide(sSeq){
	for (i=0;i<parent.oPres.SLIDES.length;i++) { 
		elem = parent.tabcontent.document.getElementById('row_' + parent.oPres.SLIDES[i].SlideSeq);
		elem1 = parent.thumbs.document.getElementById('trow_' + parent.oPres.SLIDES[i].SlideSeq);
		elem2 = parent.thumbs.document.getElementById('trow_' + parent.oPres.SLIDES[i].SlideSeq + 'a');
		elem3 = parent.thumbs.document.getElementById('trow_' + parent.oPres.SLIDES[i].SlideSeq + 'b');
		if (sSeq == parent.oPres.SLIDES[i].SlideSeq) { 			
			elem.className = 'current';
			elem1.className = 'current';
			elem2.className = 'current';
			elem3.className = 'current';			
			currSlideSeq=sSeq; 			
		}  else { 
			elem.className = '';
			elem1.className = '';
			elem2.className = '';
			elem3.className = '';
		} 

	} 

}
function GetSlideIdxByTimepoint(tMS) { 
	for (j=0; j<oPres.SLIDES.length; j++) { 		
		if (tMS==oPres.SLIDES[j].TimePoint) { 				
			return j;
		} 
	}
} 