/* 		
		******* dblock.js *************************************
		|  pitri.com /   Eugene Ryabtsev                      |
		|  29.10.2006                                         |
		|  "Работа с блоками в зависимости от ширины экрана"  |
		|  All Browsers supported!                            |   
		*******************************************************
*/

function dblock() {
	var x;

//Определяем размер экрана
// общий синтаксис

	if (self.innerHeight) {
	    x = self.innerWidth;
// IE 6 
	} else if (document.documentElement && document.documentElement.clientHeight) {
	    x = document.documentElement.clientWidth;
// Остальные версии IE
	} else if (document.body) {
	    x = document.body.clientWidth;
	}
	if  ( x < 1200) {
		document.getElementById('ico_row1').style.width = '80%';
		document.getElementById('ico_row2').style.width = '80%';		
		document.getElementById('ficoco4').style.padding = '10px 10px 10px 100px';
		document.getElementById('ficoco5').style.padding = '10px 100px 10px 10px';
	} else {
		document.getElementById('ico_row1').style.width = 'auto';
		document.getElementById('ico_row2').style.width = 'auto';
		document.getElementById('ficoco4').style.padding = '10px';
		document.getElementById('ficoco5').style.padding = '10px';
	}
//	setTimeout('dblock()',1000);
}