/**
 * @author NORTH81
 */
function chnageOverFlow(){
	var body=document.body;
	var div=document.getElementById("flash");
	var windowWidth, windowHeight;
	
	if(self.innerHeight){
		windowWidth=self.innerWidth;
		windowHeight=self.innerHeight;
	}else if(document.documentElement && document.documentElement.clientHeight){
		windowWidth=document.documentElement.clientWidth;
		windowHeight=document.documentElement.clientHeight;
	}else if(document.body){
		windowWidth=document.body.clientWidth;
		windowHeight=document.body.clientHeight;
	}
	
	if(windowWidth<950){
		div.style.width='950px';
	}else{
		div.style.width='100%';
	}
	
	if(windowHeight<650){
		div.style.height='650px';
	}else{
		div.style.height='100%';
	}
};
window.onresize=function(){
	chnageOverFlow();
};