}
 if ($I == 1) {
     drawRhythm($daysGone, 33);
 }
 # print values
 if ($I == 1) {
     $GDImage->drawtext(1, 0, 33, sprintf(Aastra_get_label('I=%+.3f', $language), $array['day']['I']), 1);
 }
 if ($E == 1) {
     $GDImage->drawtext(1, 51, 33, sprintf(Aastra_get_label('E=%+.3f', $language), $array['day']['E']), 1);
 }
 if ($P == 1) {
     $GDImage->drawtext(1, 104, 33, sprintf(Aastra_get_label('P=%+.3f', $language), $array['day']['P']), 1);
 }
 # Attach GD image
 $object->setGDImage($GDImage);
 # Create Softkeys
 if ($I == 1) {
     $new = 0;
 } else {
     $new = 1;
 }
 $object->addSoftkey('1', Aastra_get_label('Intellect', $language), $XML_SERVER . '&bdate=' . $bdate . '&I=' . $new . '&E=' . $E . '&P=' . $P);
 if ($E == 1) {
     $new = 0;
 } else {
     $new = 1;
 }
 $object->addSoftkey('2', Aastra_get_label('Emotional', $language), $XML_SERVER . '&bdate=' . $bdate . '&I=' . $I . '&E=' . $new . '&P=' . $P);
 if ($P == 1) {
     $new = 0;