/*
 * Example functions showing how you can read/write
 * to persistent global variables in header.js
 */

//Set a variable 
function setMyVarInHeader( varValue ) {
    top.frames["header"].setMyVar( varValue );
}

//Get a variable value
function getMyVarFromHeader() {
    return top.frames["header"].getMyVar();
}

//Display the header value
function showHeaderVarValue() {
    alert('Value stored in header is: ' + getMyVarFromHeader());   
}

/*
 * The following allow js hooks to be
 * initiated on page load
 */

/*
 * Example of init method attaching an event
 * To the first requirements row in the requirements
 * table in the example project
 *
 * Un-comment the lines to get it working
 */ 
function initRequirements() {
    /*
     * Set a global variable in header.js
     */    
    //setMyVarInHeader('Test variable value set from theme.js');
    /*
     * Attach a mouseover event to the object with id = 'RQ0'
     * When the event is fired the function
     * showHeaderVarValue() will be executed
     */  
    //attachEvent(document.getElementById('RQ0'), 'mouseover', showHeaderVarValue);
}



function initValidationErrors() {
    //override here if desired
}

function initActors() {
    //override here if desired
}

function initDocument() {
    //override here if desired
}

function initGlossary() {
    //override here if desired
}

function initPackage() {
    //override here if desired
}

function initIndex() {
    //override here if desired
}

function initHeader() {
    //override here if desired
}

function initSummaryReport() {
    //override here if desired
}

function initNavigation() {
    //override here if desired
}

function initStakeholders() {
    //override here if desired
}

function initUsecase() {
    //override here if desired
}
