/**********************************************************
Created - 23 September 2005 - Peter Bridger
Website Javascript functions

This file contains all the generic JavaScript functions
used on the Avon and Somerset Constabulary website.

All website functions are prefixed with WF_
**********************************************************/


/**********************************************************
Created - 23 September 2005 - Peter Bridger
Content box rollover effects
**********************************************************/

// Mouse over/on focus
function WF_ContextBox_Focus( sID )
{
    document.getElementById('tdBlueCol' + sID ).style.background  = '#0066FF';
    document.getElementById('tdGreenCol' + sID ).style.background = '#00FF00';
    document.getElementById('imgGreenCol' + sID ).src             = '/images/green_arrow_curve_rollover.gif';
}

// Mouse out/on blur
function WF_ContextBox_Blur( sID )
{
    document.getElementById('tdBlueCol' + sID ).style.background  = '#1E51B7';
    document.getElementById('tdGreenCol' + sID ).style.background = '#06DC25';
    document.getElementById('imgGreenCol' + sID ).src             = '/images/green_arrow_curve.gif'
 }
 
 // Mouse over/on focus
function WF_ContextBoxImportant_Focus( sID )
{
    document.getElementById('tdBlueCol' + sID ).style.background  = '#FFFF99';
    document.getElementById('tdGreenCol' + sID ).style.background = '#00FF00';
    document.getElementById('imgGreenCol' + sID ).src             = '/images/green_arrow_curve_rollover.gif';
}

// Mouse out/on blur
function WF_ContextBoxImportant_Blur( sID )
{
    document.getElementById('tdBlueCol' + sID ).style.background  = '#FFFF00';
    document.getElementById('tdGreenCol' + sID ).style.background = '#06DC25';
    document.getElementById('imgGreenCol' + sID ).src             = '/images/green_arrow_curve.gif'
 }

// Warn when opening a link to an external website
function WF_ExternalLinkWarning()
{
	alert('Avon and Somerset Constabulary\n' +
		  'is not responsible for the content\n' +
		  'of external websites.');
}