<!--
function getWinWidth(){
	if (NS){
		windowWidth = (window.innerWidth/100)*98;
		document.navigation.document.width = windowWidth;
		//windowHeight = window.innerHeight - 14;
	}else if (IE){
		windowWidth = document.body.offsetWidth - 440;//little error correction
		document.all["navigation"].width = windowWidth;
		//windowHeight = document.body.offsetHeight - 18;
	}
	return windowWidth;
	//alert ("w: "+windowWidth+" h: "+windowHeight);
}

function playbackInit(qfirst){

	secondtenthcount = 0;
	dropdownright = getWinWidth();
	dropdownright -= 162;//for right hand side graphical elements
	navdivheight = 220;
	
	pulldowngg = String('ggdrop|'+(dropdownright-385)+'|'+navdivheight+'|true');
	pulldownregion = String('regiondrop|'+(dropdownright-385)+'|'+navdivheight+'|true');
	pulldownwildlife = String('wildlifedrop|'+(dropdownright-84)+'|'+navdivheight+'|true');
	pulldowntribal = String('tribaldrop|'+(dropdownright-385)+'|'+navdivheight+'|true');
	pulldownpalace = String('palacedrop|'+(dropdownright-84)+'|'+navdivheight+'|true');
	pulldownpagedrop5 = String('pagedrop5|'+(dropdownright-385)+'|'+navdivheight+'|true');
	pulldownpagedrop6 = String('pagedrop6|'+(dropdownright-385)+'|'+navdivheight+'|true');
	pulldownpagedrop7 = String('pagedrop7|'+(dropdownright-385)+'|'+navdivheight+'|true');
	pulldownpagedrop8 = String('pagedrop8|'+(dropdownright-385)+'|'+navdivheight+'|true');
	pulldownpagedrop1 = String('pagedrop1|'+(dropdownright-385)+'|'+navdivheight+'|true');	
	
	pullupgg = String('ggdrop|15|'+(navdivheight-ggheight)+'|trans');
	pullupregion = String('regiondrop|'+(dropdownright-385)+'|'+(navdivheight-regionheight)+'|trans');
	pullupwildlife = String('wildlifedrop|'+(dropdownright-84)+'|'+(navdivheight-wildlifeheight)+'|trans');
	pulluptribal = String('tribaldrop|'+(dropdownright-385)+'|'+(navdivheight-tribalheight)+'|trans');
	pulluppalace = String('palacedrop|'+(dropdownright-84)+'|'+(navdivheight-palaceheight)+'|trans');
pulluppagedrop5 = String('pagedrop5|'+(dropdownright-385)+'|'+(navdivheight-palaceheight)+'|trans');
pulluppagedrop6 = String('pagedrop6|'+(dropdownright-385)+'|'+(navdivheight-palaceheight)+'|trans');
pulluppagedrop7 = String('pagedrop7|'+(dropdownright-385)+'|'+(navdivheight-palaceheight)+'|trans');
pulluppagedrop8 = String('pagedrop8|'+(dropdownright-385)+'|'+(navdivheight-palaceheight)+'|trans');
pulluppagedrop1 = String('pagedrop1|'+(dropdownright-385)+'|'+(navdivheight-palaceheight)+'|trans');


	if(!qfirst){
	
		playlist = new Array();
		playlist[0] = new Array();
		playlist[0][0] = 7;
		playlist[0][1] = String('ggdrop|15|'+(navdivheight-ggheight)+'|set');
		
		playlist[1] = new Array();
		playlist[1][0] = 9;
		playlist[1][1] = String('regiondrop|'+(dropdownright-385)+'|'+(navdivheight-regionheight)+'|set');

		playlist[2] = new Array();
		playlist[2][0] = 11;
		playlist[2][1] = String('wildlifedrop|'+(dropdownright-288)+'|'+(navdivheight-wildlifeheight)+'|set');

		playlist[3] = new Array();
		playlist[3][0] = 13;
		playlist[3][1] = String('tribaldrop|'+(dropdownright-185)+'|'+(navdivheight-tribalheight)+'|set');

		playlist[4] = new Array();
		playlist[4][0] = 15;
		playlist[4][1] = String('palacedrop|'+(dropdownright-84)+'|'+(navdivheight-palaceheight)+'|set');
		
		playlist = new Array();
		playlist[5] = new Array();
		playlist[5][0] = 17;
		playlist[5][1] = String('pagedrop5|'+(navdivheight-pagedrop5height)+'|set');
		
		playlist = new Array();
		playlist[6] = new Array();
		playlist[6][0] = 19;
		playlist[6][1] = String('pagedrop6|'+(navdivheight-pagedrop6height)+'|set');
		
		playlist = new Array();
		playlist[7] = new Array();
		playlist[7][0] = 21;
		playlist[7][1] = String('pagedrop7|'+(navdivheight-pagedrop7height)+'|set');
		
		playlist = new Array();
		playlist[8] = new Array();
		playlist[8][0] = 23;
		playlist[8][1] = String('pagedrop8|'+(navdivheight-pagedrop8height)+'|set');
		
		playlist = new Array();
		playlist[9] = new Array();
		playlist[9][0] = 25;
		playlist[9][1] = String('pagedrop1|'+(navdivheight-pagedrop1height)+'|set');		
		
	}else{

		playlist = new Array();
		playlist[0] = new Array();
		playlist[0][0] = 5;
		playlist[0][1] = pulldownregion;
		
		playlist[1] = new Array();
		playlist[1][0] = 10;
		playlist[1][1] = pulldownwildlife;
		
		playlist[2] = new Array();
		playlist[2][0] = 15;
		playlist[2][1] = pulldowntribal;
		
		playlist[3] = new Array();
		playlist[3][0] = 30;
		playlist[3][1] = pulldownpalace;
		
		playlist[4] = new Array();
		playlist[4][0] = 35;
		playlist[4][1] = pullupregion;
		
		playlist[5] = new Array();
		playlist[5][0] = 40;
		playlist[5][1] = pullupwildlife;
		
		playlist[5] = new Array();
		playlist[5][0] = 45;
		playlist[5][1] = pulluptribal;
		
		playlist[5] = new Array();
		playlist[5][0] = 50;
		playlist[5][1] = pulluppalace;
		
		
		playlist = new Array();
		playlist[6] = new Array();
		playlist[6][0] = 55;
		playlist[6][1] = pulldownpagedrop5;
		
		playlist = new Array();
		playlist[7] = new Array();
		playlist[7][0] = 60;
		playlist[7][1] = pulldownpagedrop6;
		
		playlist = new Array();
		playlist[8] = new Array();
		playlist[8][0] = 65;
		playlist[8][1] = pulldownpagedrop7;	
		
		playlist = new Array();
		playlist[9] = new Array();
		playlist[9][0] = 70;
		playlist[9][1] = pulldownpagedrop8;
		
		playlist = new Array();
		playlist[11] = new Array();
		playlist[11][0] = 75;
		playlist[11][1] = pulldownpagedrop1;		
		
		playlist[12] = new Array();
		playlist[12][0] = 80;
		playlist[12][1] = pulluppagedrop5;
		
		playlist[13] = new Array();
		playlist[13][0] = 85;
		playlist[13][1] = pulluppagedrop6;	
		
		playlist[14] = new Array();
		playlist[14][0] = 90;
		playlist[14][1] = pulluppagedrop7;	
		
		playlist[15] = new Array();
		playlist[15][0] = 95;
		playlist[15][1] = pulluppagedrop8;	
		
		playlist[16] = new Array();
		playlist[16][0] = 5;
		playlist[16][1] = pulluppagedrop1;
		
	}
	
	timer();
}

function timer(){
	secondtenthcount++;
	for(r=0;r<playlist.length;r++){
		if(parseInt(playlist[r][0]) == secondtenthcount){
			var temphold = playlist[r][1];
// splice not present in IE5.0
//			playlist.splice(r,1);
			moveDivs(temphold);
		}
	}

	countertemp = setTimeout("timer()",100);
}
//-->

