Sexual risk behaviour increases and is associted with HIV optimism among HIV-negative and HIV-positive gay men in Sydney over the 4 year period to February 2000.