There is a single arithmetic operation you can use to convert the ranges 0-89, 90-179, 180-269, 270-359 into the values 0, 1, 2, 3, respectively. The result represents the quadrant; 0 would be the first quadrant.
almostbob commented: Thanks Bloke, hadnt seen this approach before, way more efficient than duplicating content between domains +1
Will Gresham commented: Brilliant link +1
Salem commented: Makes you wonder what problems 1 to 4 were, since this is apparently #5 +29
Comatose commented: Precisely! +10
CPPRULZ commented: EXCELLENT link +1
serdas commented: many thans. you were just great and patient +1
StuXYZ commented: couple of nice pointers to stuff. +4