var qg_back = [0, 0, 1, 1, 3, 2, 2, 3, 3, 4, 4, 4];
var qg_data = ['
Welcome to the Quick Guide
'+
'
Locate information that meets your care needs by choosing statements that best match your current situation.
'+
'',
'Your Caregiving Needs
'+
'
Choose one of the following:
I need caregiver information for:
'+
'
'+
'',
'Planning for the Future
'+
'
Choose one of the following:
I need to plan:
'+
'
'+
'',
'Handling a Current Situation
'+
'
Choose one of the following:
I need to learn about:
'+
'
'+
'',
'A Change in Care
'+
'
Choose one of the following:
I need to respond to:
'+
'
'+
'',
'',
'',
'',
'',
'',
'',
''];
var qg_loc = Cookie.get('qg_cursor');
if(qg_loc == false) {
qg_cursor = Cookie.set('qg_cursor', 0, {path: '/'});
}
//qg_loc = Cookie.get('qg_cursor')[0];
qg_loc = Cookie.get('qg_cursor');
function qg_where() {
var qg_links = $('quickguide').getElementsByTagName('a');
for (var i = 0; i < qg_links.length; i++) {
/*alert('pg: ' + document.location + ' link: ' + qg_links[i].href);*/
if (qg_links[i].href == document.location) {
qg_links[i].className = 'here';
}
}
}
function qgGo(x) {
//alert('qgGo going to state ' + x);
if (x == undefined) {
x = 0;
}
x = 'somestring' + x; // NTS: is there a toString() function?
x = x.replace(/[^\d]*/g, '');
window.qg_loc = x;
qg_cursor = Cookie.set('qg_cursor', x, {path: '/'});
// alert($('quickguide').innerHTML);
$('quickguide').innerHTML = qg_data[x];
// alert($('quickguide').innerHTML);
qg_where();
}
function qgNext(x) {
if (x == undefined || x == '') {
x = qg_loc;
}
x = 'somestring' + x; // NTS: is there a toString() function?
x = x.replace(/[^\d]*/g, '');
//alert(x);
// window.qg_loc = x;
// qg_cursor = Cookie.set('qg_cursor', x, {path: '/'});
// $('quickguide').innerHTML = qg_data[x];
qgGo(x);
}