/*
        File: anchorAction.js
     Version: 1.1

     Created: 29/04/05
    Modified: 29/04/07
   Copyright: Matthew Cassidy 2005
       Email: matt@afterglowmedia.com.au

     Purpose: Handles all rollovers and mouse clicks for the system
        Note: None

     License: For use solely by Afterglow Media. 
*/

var helpNormalClass = "helpNormal";
var helpOverClass = "helpOver";


/*-----------------------------------------------------------------------------*/
/* Function: rolloverItem(itemObject, type)                                    */
/* Controls the rollovers of links depending on the type of anchor rolled over */
/*-----------------------------------------------------------------------------*/
function rolloverItem(itemObject, type) {
	var currentClass = itemObject.className;
	if (type == "help") {
		/* Set new class */
		(currentClass == helpNormalClass) ? itemObject.className = helpOverClass : itemObject.className = helpNormalClass;
	}
}


/*--------------------------------------------------*/
/* Function: gotoLink(href)                         */
/* Carries out the link action selected by the user */
/*--------------------------------------------------*/
function gotoLink(href) {
	window.location = href;
}


/*---------------------------------------------------------------------*/
/* Function: openHelp(helpType, uri)                                   */
/* Calls functions to open a new window and display the requested help */
/* Requires functions in file: helpData.js                             */
/*---------------------------------------------------------------------*/
function openHelp(helpType, uri) {
	showHelp(uri, helpType, 610, 480);  //requires helpData.js
}


