


function load_flash(num)
{
	// window.document.body.scroll='no';

	document.getElementById('body_id').style.overflow='hidden';
	
		if(num==1) {
		document.getElementById('panel').innerHTML='<div style="position: relative; left:0; background: url(img/fl.png) no-repeat left top;  margin-top:-20px; height:30px;"></div><iframe frameborder="0" src="presentation/flash.html" style=" width:700px; height:598px;" /></iframe><div style="position: relative; left:0; background: url(img/fl.png) no-repeat left top; bottom:0;  height:10px; "></div>';
		};
		
	if(num==11) {
		document.getElementById('panel').innerHTML='<div style="position: relative; left:0; background: url(../img/fl.png) no-repeat left top;  margin-top:-20px; height:30px;"></div><iframe frameborder="0" src="../presentation/flash.html" style=" width:700px; height:598px;" /></iframe><div style="position: relative; left:0; background: url(../img/fl.png) no-repeat left top; bottom:0;  height:10px; "></div>';
		};
		



		
}



	function resizeBox()
	{
		var panel = document.getElementById('panel');
		var width = getWindowWidth()/2 - 350;
		var height = getWindowHeight()/2 - 309;
		panel.style.left = width.toString()+'px';
		panel.style.top = height.toString()+'px';		
	}	
	
	function dimPop()
	{
		var winHeight = getWindowHeight();
		var winWidth = getWindowWidth();
		
		var dimmer = document.getElementById('dimmer');
		var panel = document.getElementById('panel');

		dimmer.style.width = winWidth + "px";
		dimmer.style.height = winHeight + "px";
		
		resizeBox();
		
		dimmer.style.display = "block";
		panel.style.display = "block";
		
	}
	
	function closePop()
	{
		document.getElementById('body_id').style.overflow='auto';
		var dimmer = document.getElementById('dimmer');
		var panel = document.getElementById('panel');

		dimmer.style.display = "none";
		panel.style.display = "none";
	}
	
	function getWindowHeight()
	{
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
					windowHeight = window.innerHeight;
			} else {
					if (document.documentElement && document.documentElement.clientHeight) {
							windowHeight = document.documentElement.clientHeight;
					} else {
							if (document.body && document.body.clientHeight) {
									windowHeight = document.body.clientHeight;
							}
					}
			}
			return( windowHeight );  
	}
	
	function getWindowWidth()
	{
			return window.innerWidth ? window.innerWidth : document.body.offsetWidth;
	}
	
	window.onresize=resizeBox;