// JavaScript Document

function check() {
  if ($('actually') && $('thesecond') && $('thesecond').innerHTML != '') {
    var posA = ($('actually').cumulativeOffset());
    var posB = ($('thesecond').cumulativeOffset()); 
    
    if (posA[0] > posB[0]) {
      var diff = posA[0] - posB[0];    
    } else {
      var diff = 0;
    }
    
    $('thesecond').style.paddingLeft = diff-1+'px';

	var sheight = $('cSub2').getHeight();    

	if (sheight > 0) {
		$('cMiddle2').style.height = 580 +40 - sheight+'px';    
	}

  }
}
