function getWindowHeight() {
	var myWidth = 0;
	if( typeof( window.innerHeight ) == 'number' ) {
		//Non-IE
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientHeight ) ) {
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientHeight ) ) {
		//IE 4 compatible
		myHeight = document.body.clientHeight;
	}
	return myHeight;
}
function getWindowWidth(){
	var myWidth =0;
	if ( typeof( window.innerWidth ) == 'number' ) {
		myWidth = window.innerWidth;
	} else if ( document.documentElement && document.documentElement.clientWidth ) {
		myWidth = document.documentElement.clientWidth;
	} else if ( document.body && document.body.clientWidth ) {
		myWidth = document.body.clientWidth;
	}
	return myWidth;
}
function setArrangement() { 
	if (document.getElementById) { 
		var windowheight = getWindowHeight();
		if (windowheight > 0) { 
			contentElement = document.getElementById('inside');
			windowheight = windowheight-270;
			contentElement.style.height = windowheight+'px';
//			contentElement.style.padding='20px';
			contentElement.style.paddingTop = "19px";
		}
		var windowwidth = getWindowWidth();
		if (windowwidth > 0 ){
			addressElement = document.getElementById('address');
			windowwidth = windowwidth * 48 / 100;
			windowwidth = windowwidth - 200;
//			window.alert(windowwidth);
			addressElement.style.width = windowwidth+'px';
		}
	}
}

window.onload = function() { setArrangement(); } 
window.onresize = function() { setArrangement(); } 


