The standard arduino library also has a highByte() and a lowByte() functions; check them out.
highByte()
lowByte()