var myWidth = 0, myHeight = 0;
if( typeof( window.innerWidth ) == 'number' ) {
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if( document.documentElement &&
( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
myWidth = myWidth-20;
//myHeight = myHeight-40;
function margining(id) {
	var el = document.getElementById(id);
	var DivHeight = el.offsetHeight;
	//alert(DivHeight);
	if(id=="intro"){
		introImg = 376;
	} else {
		introImg = 0;
	}
	DivHeight = DivHeight+introImg;
	test= DivHeight+100;
	if(myHeight>test)
	el.style.margin = ((myHeight-DivHeight)/2)+18 +"px"+" auto";
}