var newHeight = '';
var newWidth = '';
var iWidth ='';
var iHeight = '';

function sizeMe(someX,someY){
	newHeight = someY;
	newWidth = someX;
	var name = navigator.appName;
	if(name.indexOf('Explorer') !== -1){
		sizeIE();
	}else{
		sizeNN();
	}
	doAdjust();
}
	
function sizeNN(){
	iWidth = window.innerWidth;
	iHeight = window.innerHeight;
}

function sizeIE(){
	iWidth = document.body.clientWidth;
	iHeight = document.body.clientHeight;
}

function doAdjust(){
	if(iWidth !== newWidth || iHeight !== newHeight){
		resizeBy(newWidth - iWidth, newHeight - iHeight);
	}
}
