Main page colorbox and facebook like box
You can use the hook_boot() to set/unset the visitor's cookie.
You can then use hook_init() to check the value of the cookie and execute some javascript to construct your div. Your javascript can be inserted in the page during hook_init() through drupal_add_js().