thanks rajarajan! your method works and with some changes i was able to use it for my virtual tour. thanks a lot.
thanks a lot also to jasonhippy for your help. feel welcome to still post your solution if you have already worked one out. it would be interesting to see how this problem can be approached in different ways. and also some people out there may need one way or another.
anyway thanks a lot guys for your help :)