function resizeFramework(){
	var elm = document.getElementById('flash');
	if(typeof(elm) != 'undefined' && typeof(elm.style) != 'undefined' && typeof(elm.getContainerSize) != 'undefined') {
		var flashSize = elm.getContainerSize();
		var windowSize = getWindowSize();
		if(windowSize.height != null && flashSize.height > 10){
			if(self.innerHeight){
				elm.style.width = (flashSize.width > windowSize.width) ? flashSize.width + "px" : "100%";
				elm.style.height = (flashSize.height > windowSize.height) ? flashSize.height + "px" : "100%";
			}else{
				elm.style.width = (flashSize.width > windowSize.width) ? flashSize.width + "px" : windowSize.width + "px";
				elm.style.height = (flashSize.height > windowSize.height) ? flashSize.height + "px" : windowSize.height + "px";
			}
		}
	}
}

function getWindowSize(){
	if(self.innerHeight){ // all except Explorer
		return {width:self.innerWidth, height:self.innerHeight};
	}else if (document.documentElement && document.documentElement.clientHeight){ // Explorer 6 Strict Mode
		return {width:document.documentElement.clientWidth, height:document.documentElement.clientHeight};
	}else if (document.body){ // other Explorers
		return {width:document.body.clientWidth, height:document.body.clientHeight};
	}
	return {width:null, height:null};
}

function scrollTop(){
	scroll(0,0);
}

window.onresize = resizeFramework;