function setStatusCookie(cookieValue) {
//we can not use the same script for both cookies
document.cookie="visitedItems="+escape(cookieValue);
}

function pullValues(pageIndex) {
window.document.guage.SetVariable("pageValue",pageIndex);
}

function pushValues(pageIndex) {
window.document.guage.SetVariable("pageValue",pageIndex);
window.document.guage.GotoFrame(8);
//there is no reliableway to pass a label argument with the Java object.  If you edit the status
//bar movie and this frame is moved, adjust the frame number accordingly.
window.document.guage.Play();
}

function readStatusCookie(cookieName) {
var theCookie=""+document.cookie;
var ind=theCookie.indexOf(cookieName);
if (ind==-1 || cookieName=="") {
window.document.guage.SetVariable("cookieIn","");
}else{
var ind1=theCookie.indexOf(';',ind);
if (ind1==-1) ind1=theCookie.length;
var cookieVal=unescape(theCookie.substring(ind+cookieName.length+1,ind1));
window.document.guage.SetVariable("cookieIn",cookieVal);
}
}
