init

Hi!
I need to perform some checkings on every page of the forum and change its style (even for guests) depending on the results.
So I have this code:
if(/* Condition */)
{
// Set style 1
}
else
{
// Set style 2
}
Where should I place this code? Maybe there is an event for this?