if (shours!=$nowhours) { var difference = shours-$nowhours;
if (shours!=$nowhours) { var difference = shours-$nowhours; if (difference>12) { difference=difference-24; }