first version,I know there are lots to improve,seperate the php/js/css code and make it as a wordpress plugin,etc.