added jquery cookie, basic horiz and vert