

function maxWindow(){
	window.moveTo(0,0);

	if (document.all){
	  top.window.resizeTo(screen.availWidth,screen.availHeight);
	
	}else if (document.layers||document.getElementById){
	  if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
		top.window.outerHeight = screen.availHeight;
		top.window.outerWidth = screen.availWidth;
	  }
	}
}


	
	  
	function scaleflash(){
		if (window.innerWidth) { winW = window.innerWidth -16;   } else { winW=document.body.offsetWidth - 20;  }
		if (window.innerHeight){ winH = window.innerHeight - 16; } else { winH=document.body.offsetHeight - 20; }
		if( winW < 820 || winH < 600 ){// alert("function fired");
			if( Math.floor(winW * 0.75) <= winH ){
				//scale flash movie based on window width:
				document.getElementById('base').style.height = Math.floor(winW * 0.75) + "px";
				document.getElementById('base').style.width  = winW + "px";
	
			}else{
				//scale flash movie based on window height:
				document.getElementById('base').style.height  = winH + "px";
				document.getElementById('base').style.width = Math.floor(winH * 1.3333) + "px";
			}
		}else{
			document.getElementById('base').style.width   = "820 px";
			document.getElementById('base').style.height  = "600 px";
		}

	}

