// JavaScript Document

 
	function embedVDO(tabindx, vdoId){
		document.title = "LEA Center - Online Education";
		
      	if(tabindx == 1){
	      	if(vdoId==1){
				document.getElementById('path').innerHTML = "<div class='path'> Math >>> Algebra</div>";
		      	var mathObject = ("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'  id='simpleVDO' width='410' height='285'><param name='movie' value='Math/1.swf'><param name='quality' value='high'><embed src='Math/1.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='simpleVDO' width='410' height='285'></embed></object>");
				
		      	
	      	}else if(vdoId==2){
				document.getElementById('path').innerHTML = "<div class='path'> Math >>> Trignometry</div>";
		      	var mathObject = ("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'  id='simpleVDO' width='410' height='285'><param name='movie' value='Math/2.swf'><param name='quality' value='high'><embed src='Math/2.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'  name='simpleVDO' width='410' height='285'></embed></object>");
		      	
		      	
	      	}else if(vdoId==3){
				document.getElementById('path').innerHTML = "<div class='path'> Math >>> Calculus</div>";
		      	var mathObject = ("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'  id='simpleVDO' width='410' height='285'><param name='movie' value='Math/3.swf'><param name='quality' value='high'><embed src='Math/3.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='simpleVDO' width='410' height='285'></embed></object>");
		      	
		      	
	      	}else{
				document.getElementById('path').innerHTML = "<div class='path'> Math >>> Differential Equations</div>";
		      	var mathObject = ("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'  id='simpleVDO' width='410' height='285'><param name='movie' value='Math/4.swf'><param name='quality' value='high'><embed src='Math/4.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'  name='simpleVDO' width='410' height='285'></embed></object>");
	      	}
	      document.getElementById('vdoObj').innerHTML = mathObject;
		 checkProgress = setInterval(checkLoad, 50);
	      	
		}else if(tabindx == 2){
			if(vdoId==1){
				document.getElementById('path').innerHTML = "<div class='path'> Physics >>> Kinetics</div>";
		      	var phyObject = ("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' id='simpleVDO' width='410' height='285'><param name='movie' value='Physics/1.swf'><param name='quality' value='high'><embed src='Physics/1.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'  name='simpleVDO' width='410' height='285'></embed></object>");
		      	
	      	}else if(vdoId==2){
				document.getElementById('path').innerHTML = "<div class='path'> Physics >>> Dynamics</div>";
		      	var phyObject = ("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'  id='simpleVDO' width='410' height='285'><param name='movie' value='Physics/2.swf'><param name='quality' value='high'><embed src='Physics/2.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='simpleVDO' width='410' height='285'></embed></object>");
		      	
	      	}else if(vdoId==3){
				document.getElementById('path').innerHTML = "<div class='path'> Physics >>> Physical Optics</div>";
		      	var phyObject = ("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'  id='simpleVDO' width='410' height='285'><param name='movie' value='Physics/3.swf'><param name='quality' value='high'><embed src='Physics/3.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='simpleVDO' width='410' height='285'></embed></object>");
		      	
	      	}else{
				document.getElementById('path').innerHTML = "<div class='path'> Physics >>> Semi Conductors</div>";
		      	var phyObject = ("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'  id='simpleVDO' width='410' height='285'><param name='movie' value='Physics/4.swf'><param name='quality' value='high'><embed src='Physics/4.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='simpleVDO' width='410' height='285'></embed></object>");
	      	}
	      	document.getElementById('vdoObj').innerHTML = phyObject;
			checkProgress = setInterval(checkLoad, 50);
		}else{
			if(vdoId==1){
				document.getElementById('path').innerHTML = "<div class='path'> Chemistry >>> Atomic Structures</div>";
		      	var chemObject = ("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'  id='simpleVDO' width='410' height='285'><param name='movie' value='Chemistry/1.swf'><param name='quality' value='high'><embed src='Chemistry/1.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='simpleVDO' width='410' height='285'></embed></object>");
		      	
	      	}else if(vdoId==2){
				document.getElementById('path').innerHTML = "<div class='path'> Chemistry >>> Hydrogen and its Compounds</div>";
		      	var chemObject = ("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'  id='simpleVDO' width='410' height='285'><param name='movie' value='Chemistry/2.swf'><param name='quality' value='high'><embed src='Chemistry/2.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='simpleVDO' width='410' height='285'></embed></object>");
		      	
		      	
	      	}else if(vdoId==3){
				document.getElementById('path').innerHTML = "<div class='path'> Chemistry >>> Acids and Bases</div>";
		      	var chemObject = ("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0'  id='simpleVDO' width='410' height='285'><param name='movie' value='Chemistry/3.swf'><param name='quality' value='high'><embed src='Chemistry/3.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='simpleVDO' width='410' height='285'></embed></object>");
		      	
		      	
	      	}else{
				document.getElementById('path').innerHTML = "<div class='path'> Chemistry >>> Isotopes</div>";
		      	var chemObject = ("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' id='simpleVDO' width='410' height='285'><param name='movie' value='Chemistry/4.swf'><param name='quality' value='high'><embed src='Chemistry/4.swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='simpleVDO' width='410' height='285'></embed></object>");
		      	
		      	
	      	}
	      	document.getElementById('vdoObj').innerHTML = chemObject;
			checkProgress = setInterval(checkLoad, 50);
		}
	}


function checkLoad() {
	obj = document.getElementById('simpleVDO');
	prog = document.getElementById('progress');
	lpercent = obj.PercentLoaded() ;
	
	
	//lpercent = lpercent * 2;
	document.getElementById('progress').innerHTML = "<div class='loading'> " + lpercent + " % </div>";
	obj.width = 1;
	obj.height = 1;
	prog.width = 410;
	prog.height = 285;
	if (obj.PercentLoaded() ==100) {
		obj.width = 410;
		obj.height = 285;
		prog.width = 1;
		prog.height = 1;
		clearInterval(checkProgress);
		document.getElementById('progress').innerHTML = "";
		
	}
}






	
	
		
	
