var currheight;
var currwidth;
window.onresize = function(){
		setTimeout(resize, 50); 
}
function resize(){
		if(isIE){
			makeCall(document.body.offsetWidth, document.body.offsetHeight);
		}else{
			makeCall(window.innerWidth, window.innerHeight);
		}
		clearTimeout();
}
function isIE(){
		return navigator.appName.indexOf('Microsoft') != -1;
}
// This function will call the ActionScript function stageSize
function makeCall(width, height){
	swfobject.getObjectById('flashContent').stageSize(width, height);
}
