


function load_flash(num)
{
	
document.getElementById('one').style.opacity = "0";
	
	if(num==1) {
		document.getElementById('panel').innerHTML='<a href="#two"  class="close darkbox-button darkbox-button-on darkbox-button-right" onClick="closePop();"></a><iframe frameborder="0" scrolling="no" width="500" height="500" src="studio/micro.html"/> ';
		};
	if(num==2) {
		document.getElementById('panel').innerHTML='<a href="#two"  class="close darkbox-button darkbox-button-on darkbox-button-right" onClick="closePop();"></a><iframe frameborder="0" scrolling="no" width="500" height="500" src="studio/studio_v3.html"/> ';
		};
	if(num==3) {
		document.getElementById('panel').innerHTML='<a href="#two"  class="close darkbox-button darkbox-button-on darkbox-button-right" onClick="closePop();"></a><iframe frameborder="0" scrolling="no" width="500" height="500" src="studio/phonic.html"/> ';
		};
	if(num==4) {
		document.getElementById('panel').innerHTML='<a href="#two"  class="close darkbox-button darkbox-button-on darkbox-button-right" onClick="closePop();"></a><iframe frameborder="0" scrolling="no" width="500" height="500" src="studio/maudio.html"/> ';
		};
	if(num==5) {
		document.getElementById('panel').innerHTML='<a href="#two"  class="close darkbox-button darkbox-button-on darkbox-button-right" onClick="closePop();"></a><iframe frameborder="0" scrolling="no" width="500" height="500" src="studio/earphone.html"/>';
		};
	if(num==6) {
		document.getElementById('panel').innerHTML='<a href="#five"  class="close darkbox-button darkbox-button-on darkbox-button-right" onClick="closePop();"></a><iframe frameborder="0" scrolling="no" width="500" height="500" src="community/krio/crio.html"/>';
		};
}

	function resizeBox()
	{
		var panel = document.getElementById('panel');
		var width = getWindowWidth()/2 - 250;
		var height = getWindowHeight()/2 - 250;
		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()
	{
		
		var dimmer = document.getElementById('dimmer');
		var panel = document.getElementById('panel');
		var one = document.getElementById('one');

		dimmer.style.display = "none";
		panel.style.display = "none";
		one.style.opacity = "1";
	}
	
	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;
