var cs = 'xxx';

function pageContentReStrech(){
	isIE6 = /msie|MSIE 6/.test(navigator.userAgent);
	if (!isIE6){
		if (document.getElementById('contentToStrech')){
			document.getElementById('contentToStrech').style.height = '100%';
			pageContentStrech();
		}
	}
}

function pageContentStrech(){
	
	isIE6 = /msie|MSIE 6/.test(navigator.userAgent);
	if (isIE6){
		return true;
	}
	
	
	
	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;
  }

 //window.alert( 'Width = ' + myWidth );
 // window.alert( 'Height = ' + myHeight );
  var iedom=document.all||document.getElementById;

  if (iedom){
				
		//changign Height objects:
		obj_strip3 = document.getElementById ? document.getElementById('strip3') : document.all.strip3 ;
		strip3_height = document.all ? strip3.offsetHeight : document.getElementById('strip3').offsetHeight ;
		
		vObjHeights = strip3_height;
		//alert (strip3_height);
		
		//constant Height Objects:
		obj_strip1_height = document.all ? strip1.offsetHeight : document.getElementById('strip1').offsetHeight ;
		obj_strip2_height = document.all ? strip2.offsetHeight : document.getElementById('strip2').offsetHeight ;
		obj_strip3_height = 0;//document.all ? strip3.offsetHeight : document.getElementById('strip3').offsetHeight ;
		obj_strip4_height = document.all ? strip4.offsetHeight : document.getElementById('strip4').offsetHeight ;
		obj_footer_height = document.all ? footerWrapper.offsetHeight : document.getElementById('footerWrapper').offsetHeight ;
		obj_menu_height = document.all ? blockSkeletonTopMenu.offsetHeight : document.getElementById('blockSkeletonTopMenu').offsetHeight ;
		
		
		cObjHeights = obj_strip1_height + obj_strip2_height + obj_strip3_height + obj_strip4_height;
		cObjHeights += obj_footer_height + obj_menu_height;
		
		leftHeight = (myHeight-cObjHeights-50);
		
	} else if (document.layers){
		//xmainPane = document.mainPane;
		//xmainPaneHeight = xmainPane.height;
	}

	if (leftHeight>vObjHeights) {
		if (iedom){
			document.getElementById('contentToStrech').style.height = leftHeight+'px';
			minContentToSteachValue = leftHeight;
		} else if (document.layers){
			//contentToStrech.height = leftHeight;
		}
	}
	return true;
}
