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': 'General Discussion', 'ClipFile': '1.wma', 'SlideFile': 'slide_1_1.png', 'TimePoint': 0},
{'SlideSeq': '2', 'Title': 'Comprehensively Addressing Population Issues for the Sustainable Development of the Society and Economy', 'ClipFile': '1.wma', 'SlideFile': 'slide_2_2.png', 'TimePoint': 59000},
{'SlideSeq': '3', 'Title': 'I.   Three phases in the development of the population and family planning work', 'ClipFile': '1.wma', 'SlideFile': 'slide_3_3.png', 'TimePoint': 64000},
{'SlideSeq': '4', 'Title': 'Phase 1: strict slowing down of population growth', 'ClipFile': '1.wma', 'SlideFile': 'slide_4_4.png', 'TimePoint': 74000},
{'SlideSeq': '5', 'Title': 'Phase 2: maintaining the low fertility level', 'ClipFile': '1.wma', 'SlideFile': 'slide_5_5.png', 'TimePoint': 104000},
{'SlideSeq': '6', 'Title': 'Citizen Rights', 'ClipFile': '1.wma', 'SlideFile': 'slide_6_6.png', 'TimePoint': 158000},
{'SlideSeq': '7', 'Title': 'Phase 3: stabilizing the low fertility level, addressing population issues in a comprehensive way, and promoting all-round human development   in 2006', 'ClipFile': '1.wma', 'SlideFile': 'slide_7_7.png', 'TimePoint': 185000},
{'SlideSeq': '8', 'Title': 'Photo', 'ClipFile': '1.wma', 'SlideFile': 'slide_8_8.png', 'TimePoint': 226000},
{'SlideSeq': '9', 'Title': 'Premier Wen Jiabao met the representatives and  stated that:', 'ClipFile': '1.wma', 'SlideFile': 'slide_9_9.png', 'TimePoint': 230000},
{'SlideSeq': '10', 'Title': 'Two miracles in the development of population, society and economy', 'ClipFile': '1.wma', 'SlideFile': 'slide_10_10.png', 'TimePoint': 295000},
{'SlideSeq': '11', 'Title': 'China enters a new era with low fertility level', 'ClipFile': '1.wma', 'SlideFile': 'slide_11_11.png', 'TimePoint': 332000},
{'SlideSeq': '12', 'Title': 'GDP per capita 1978-2005 Yuan', 'ClipFile': '1.wma', 'SlideFile': 'slide_12_12.png', 'TimePoint': 349000},
{'SlideSeq': '13', 'Title': '1. Historical Demographic Transition', 'ClipFile': '1.wma', 'SlideFile': 'slide_13_13.png', 'TimePoint': 366000},
{'SlideSeq': '14', 'Title': 'Creating population bonus period for about 40 years', 'ClipFile': '1.wma', 'SlideFile': 'slide_14_14.png', 'TimePoint': 378000},
{'SlideSeq': '15', 'Title': '2. Achievements of China since Reform and Opening-up', 'ClipFile': '1.wma', 'SlideFile': 'slide_15_15.png', 'TimePoint': 413000},
{'SlideSeq': '16', 'Title': 'Decline of MMR and IMR', 'ClipFile': '1.wma', 'SlideFile': 'slide_16_16.png', 'TimePoint': 460000},
{'SlideSeq': '17', 'Title': 'Contraceptives Mix for Married Couples of Childbearing Age in China', 'ClipFile': '1.wma', 'SlideFile': 'slide_17_17.png', 'TimePoint': 471000},
{'SlideSeq': '18', 'Title': 'II Population development facing complicated situation and new challenges in a new era', 'ClipFile': '1.wma', 'SlideFile': 'slide_18_18.png', 'TimePoint': 503000},
{'SlideSeq': '19', 'Title': '1. Continuous increase of the large population size', 'ClipFile': '1.wma', 'SlideFile': 'slide_19_19.png', 'TimePoint': 538000},
{'SlideSeq': '20', 'Title': '2. Population quality  still need to be improved', 'ClipFile': '1.wma', 'SlideFile': 'slide_20_20.png', 'TimePoint': 571000},
{'SlideSeq': '21', 'Title': '3. Working-age population remains high', 'ClipFile': '1.wma', 'SlideFile': 'slide_21_21.png', 'TimePoint': 594000},
{'SlideSeq': '22', 'Title': '4. Aged population rapidly increasing', 'ClipFile': '1.wma', 'SlideFile': 'slide_22_22.png', 'TimePoint': 624000},
{'SlideSeq': '23', 'Title': '5. Continuous imbalanced sex ratio at birth', 'ClipFile': '1.wma', 'SlideFile': 'slide_23_23.png', 'TimePoint': 643000},
{'SlideSeq': '24', 'Title': '6. Continuing growth of migrants', 'ClipFile': '1.wma', 'SlideFile': 'slide_24_24.png', 'TimePoint': 671000},
{'SlideSeq': '25', 'Title': '7. Tension between population and resources/environment', 'ClipFile': '1.wma', 'SlideFile': 'slide_25_25.png', 'TimePoint': 743000},
{'SlideSeq': '26', 'Title': 'Population issues remain to be a serious constraint on all-round, coordinated and sustainable development of China and a critical factor impacting upon economic and social development in China.', 'ClipFile': '1.wma', 'SlideFile': 'slide_26_26.png', 'TimePoint': 786000},
{'SlideSeq': '27', 'Title': 'Significance of Population and Family Planning Work', 'ClipFile': '1.wma', 'SlideFile': 'slide_27_27.png', 'TimePoint': 804000},
{'SlideSeq': '28', 'Title': 'III. Main tasks in the process of Comprehensively Addressing Population Issues', 'ClipFile': '1.wma', 'SlideFile': 'slide_28_28.png', 'TimePoint': 839000},
{'SlideSeq': '29', 'Title': 'six main tasks in future', 'ClipFile': '1.wma', 'SlideFile': 'slide_29_29.png', 'TimePoint': 846000},
{'SlideSeq': '30', 'Title': 'Transition of Working Methods and Measures in Population and Family Planning Work', 'ClipFile': '1.wma', 'SlideFile': 'slide_30_30.png', 'TimePoint': 883000},
{'SlideSeq': '31', 'Title': 'Goals for maintaining low fertility level', 'ClipFile': '1.wma', 'SlideFile': 'slide_31_31.png', 'TimePoint': 904000},
{'SlideSeq': '32', 'Title': 'IV. Effectively increase guaranteed inputs into the population and family planning program', 'ClipFile': '1.wma', 'SlideFile': 'slide_32_32.png', 'TimePoint': 914000},
{'SlideSeq': '33', 'Title': 'Various Preferential Policies in Rural China were established to provide social support for aged family planning households. Per person 80yuanRMB/per month. Money from central and local government.', 'ClipFile': '1.wma', 'SlideFile': 'slide_33_33.png', 'TimePoint': 926000},
{'SlideSeq': '34', 'Title': 'Per capita annual central fiscal input into population and family planning program at all levels shall reach RMB30 per capita by 2010.', 'ClipFile': '1.wma', 'SlideFile': 'slide_34_34.png', 'TimePoint': 963000},
{'SlideSeq': '35', 'Title': 'Recommendation-Emphasize strategic research on trends of population development _Enhance international cooperation and exchanges_promote South-South Cooperation and South-North dialogue._Pay more attention to reproductive health and family planning is', 'ClipFile': '1.wma', 'SlideFile': 'slide_35_35.png', 'TimePoint': 989000},
{'SlideSeq': '36', 'Title': '5th Asia Pacific Conference on Reproductive and Sexual Health and Rights', 'ClipFile': '1.wma', 'SlideFile': 'slide_36_36.png', 'TimePoint': 1046000},
{'SlideSeq': '37', 'Title': 'HISTORY', 'ClipFile': '1.wma', 'SlideFile': 'slide_37_37.png', 'TimePoint': 1058000},
{'SlideSeq': '38', 'Title': 'THEME & SYMPOSIUMS', 'ClipFile': '1.wma', 'SlideFile': 'slide_38_38.png', 'TimePoint': 1066000},
{'SlideSeq': '39', 'Title': 'FORMAT', 'ClipFile': '1.wma', 'SlideFile': 'slide_39_39.png', 'TimePoint': 1076000},
{'SlideSeq': '40', 'Title': 'WORK WE HAVE DONE', 'ClipFile': '1.wma', 'SlideFile': 'slide_40_40.png', 'TimePoint': 1086000},
{'SlideSeq': '41', 'Title': 'WEBSITE', 'ClipFile': '1.wma', 'SlideFile': 'slide_41_41.png', 'TimePoint': 1102000},
{'SlideSeq': '42', 'Title': 'Discussion', 'ClipFile': '1.wma', 'SlideFile': 'slide_42_42.png', 'TimePoint': 1155000}
]}
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;
		} 
	}
} 