BUG: Improved the cookie management, especially when $global_cookies=true. Fixes at least one issue where the collection div is shown but not the content; the collection bar thumbs status is now remembered after returning from the preview page. Also fixes an issue when the colourcss cookie expires after each session if $global_cookies==true. Please note that the colourcss cookie is still not working correctly if $global_cookies=false (the colour theme is forgotten in plugins).

* The JS function SetCookie() in global.js now honours the $global_cookies setting.

* Created a similar PHP function rs_setcookies() in general.php, which also honours the $global_cookies setting.


git-svn-id: http://svn.montala.net/svn/resourcespace@5121 c08608d7-6e46-0410-86ca-f2a6f1370df5