i have this js file that i use as part of a drop down menu.

Code:
var anylinkmenu1={divclass:'anylinkmenu', inlinestyle:'', linktarget:''} 

anylinkmenu1.items=[
	["Home", "../index.php"], 
	["Logout", "../process.php"]//no comma following last entry!
]


]

what i want to do is read a cookie that already exist called siteid then append the menu caption "Home" with the value in the cookie. i have tried starting the file with this
var siteid = get_cookie ( "siteid" );

then placing the siteid variable in the ["Home", "../index.php"],
but with no luck.