window.onresize= setAreas;
	
//FUNC  *************************************************************************************  setAreas;
function setAreas()
	{

	getWinSize();
	
	var bodyHeight 		= winHeight;
	var bodyWidth			= winWidth;
	var framleftWidth		= 333;	
	var gapWidth			= 10;	
	var bordersWidth		= 2;

	topPos		= 0;
	leftPos	= 0;	
		
	thisDiv     = 'frampic';
	
	// div style
	dom         	= findDOM(thisDiv,1);
	dom.left    	= parseInt(leftPos) + "px";
	dom.top     	= parseInt(topPos) + "px";
	dom.height  	= parseInt(bodyHeight) + "px";
	dom.width		= parseInt(framleftWidth) + "px";		
	dom.display 	= "block";	
	
	thisIframe    = 'iframpic';
	
	// iframe style
	dom         	= findDOM(thisIframe,1);	
	dom.height  	= parseInt(bodyHeight - bordersWidth) + "px";
	dom.width		= parseInt(framleftWidth - bordersWidth) + "px";	
	
	// div style	
	
	thisDiv     = 'framtxt';
	
	dom         	= findDOM(thisDiv,1);
	dom.left    	= parseInt(leftPos + framleftWidth + gapWidth) + "px";
	dom.top     	= parseInt(topPos) + "px";
	dom.height  	= parseInt(bodyHeight) + "px";
	dom.width		= parseInt(bodyWidth) + "px";		
	dom.display 	= "block";	

	// iframe style
	thisIframe    = 'iframtxt';
	dom         	= findDOM(thisIframe,1);	
	dom.height  	= parseInt(bodyHeight - bordersWidth) + "px";
	dom.width		= parseInt(bodyWidth - framleftWidth - gapWidth - bordersWidth) + "px";		
	
	}
	

//FUNC *************************************************************************        getWinSize
function getWinSize()
	{
	if( typeof( window.innerWidth ) == 'number' )
		{
		//Non-IE
		winWidth	= window.innerWidth;
		winHeight	= window.innerHeight;
		}
	else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
		{
		//IE 6+ in 'standards compliant mode'
		winWidth	= document.documentElement.clientWidth;
		winHeight	= document.documentElement.clientHeight;
		}
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
		{
		//IE 4 compatible
		winWidth	= document.body.clientWidth;
		winHeight	= document.body.clientHeight;
		}

  	winX = document.all ? window.screenLeft : window.screenX;
  	winY = document.all ? window.screenTop : window.screenY;
	}
	
