Thanks for the input, but it sounds a little hazy and complex. But in retrospect:
This is more understandable and manageable, at least, to a nit wit like me! It was the, as in your words below, what was baffling me:
— The opening <body> tag of the html pages is in my header.html file (in my case head_part.html). I added an "id" attribute to the <body> tag, represented by a variable.
<body id="<?php echo $body_id ?>">
Now, with this under the belt I should be able to fix the problem. I will get back as soon as I am done.
Thanks a ton..