レイヤーはdocumentオブジェクトのlayers配列プロパティで参照できます。
<LAYER NAME="camel">...</LAYER>
と書かれたレイヤーを参照するには
document.layers['camel']
とします。