// Navigation Switch Display Function.
function switchNav ( elementID, tierLevel )
{
	switchElement = document.getElementById( elementID );
	switchLink =  document.getElementById( elementID + 'Link' );

	if ( switchElement.style.display == 'block' )
	{
		if ( tierLevel == 2 )			
			switchLink.className = 'lOneNavViewSwitch lOneNavViewSwitchImageOff';
		else
			switchLink.className = 'lTwoNavViewSwitch lTwoNavViewSwitchImageOff';
						
		switchElement.style.display = 'none';
	}
	else
	{
		if ( tierLevel == 2 )
			switchLink.className = 'lOneNavViewSwitch lOneNavViewSwitchImageOn';
		else
			switchLink.className = 'lTwoNavViewSwitch lTwoNavViewSwitchImageOn';
		
		switchElement.style.display = 'block';
	}	
}


// Allow IE 6- to emulate correct :hover behaviour.
 function ieAddOverClass ( elemID )
{	
	if ( document.all && document.getElementById )
	{
		tdElement = document.getElementById ( elemID );

		if ( tdElement.className.length > 0 ) 
		{
			tdElement.className += ' over';
		}
		else 
		{
			tdElement.className += 'over';
		}
	}
}				
function ieRemoveOverClass ( elemID )
{
	if ( document.all && document.getElementById )
	{
		tdElement = document.getElementById ( elemID );
			
		if ( tdElement.className == 'over' ) 
		{
			tdElement.className = '';
		}
		else 
		{
			tdElement.className = tdElement.className.replace ( ' over', '' );
		}
	}
}




function resizeIm ( )
{
	iiOne = document.getElementById ( 'contentContainerFluidRight' );
	iiTwo = document.getElementById ( 'navColumnFixedLeft' );
	
	if ( iiOne != null && iiTwo != null )
	{
		xxCing = document.getElementById ( 'heightSetta' );

		if ( iiTwo.offsetHeight > iiOne.offsetHeight )
		{	
			if ( document.all && document.getElementById )
			{
				xxCing.style.height = ( iiTwo.offsetHeight - 142 ) + 'px';
			}
			else
			{
				xxCing.style.minHeight = ( iiTwo.offsetHeight - 202 ) + 'px';
			}
		}

		doIT ( 'heightSetta', 'heightSettaRight' )
	}
}

function doIT ( oOne, oTwo )
{
	ooOne = document.getElementById ( oOne );
	ooTwo = document.getElementById ( oTwo );
			
	if ( ooOne != null && ooTwo != null )
	{		
		if ( ooOne.offsetHeight > ooTwo.offsetHeight )
		{
			setHeight = ( ooOne.offsetHeight - 68 );
		}
		else
		{
			setHeight = ( ooTwo.offsetHeight - 68 );
		}
		if ( document.all && document.getElementById )
		{			
			ooOne.style.height = setHeight + 'px';
			ooTwo.style.height = setHeight + 'px';
		}		
		else
		{		
			ooOne.style.minHeight = setHeight + 'px';
			ooTwo.style.minHeight = setHeight + 'px';
		}
	}
}


addScriptEvent ( resizeIm, 'load', 'onload' );


// addScriptEvent
// Enables us to hook into the browser JavaScript events.
function addScriptEvent ( func, domEventName, ieEventName )
{
	//DOM method for binding an event
	if ( window.addEventListener )
	{
		window.addEventListener ( domEventName, func, true );
	}
	//IE exclusive method for binding an event
	else if ( window.attachEvent )
	{
		window.attachEvent ( ieEventName, func );
	}
	//Older browsers
	else
	{
		window.onload = func;
	}
}


// addScriptEvent
// Enables us to hook into the browser JavaScript events.
function searchTermRequired ( theForm )
{
	//DOM method for binding an event
	if ( theForm.svSearchFOR.value == '' )
	{
		alert ( 'You must provide a search term to search for.' );		
		return false;
	}
	return true;
}

//Iframe Content Resizer
function  iFrameAutoResize() 
{ var iFrame = parent.document.getElementById ? parent.document.getElementById("jobvac") : parent.document.all["jobvac"]; var iFrameContent = iFrame.contentDocument ? iFrame.contentDocument : document.frames("jobvac").document; iFrame.height = iFrameContent.body.offsetHeight + 15;}



<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = '/DSCWR/ify/images/randomHome/homeRandom1.jpg'
theImages[1] = '/DSCWR/ify/images/randomHome/homeRandom2.jpg'
theImages[2] = '/DSCWR/ify/images/randomHome/homeRandom4.jpg'
theImages[3] = '/DSCWR/ify/images/randomHome/homeRandom5.jpg'
theImages[4] = '/DSCWR/ify/images/randomHome/homeRandom7.jpg'
theImages[5] = '/DSCWR/ify/images/randomHome/homeRandom8.jpg'
theImages[6] = '/DSCWR/ify/images/randomHome/homeRandom11.jpg'
theImages[7] = '/DSCWR/ify/images/randomHome/homeRandom5.jpg'
//theImages[2] = '3.gif'
//theImages[3] = '4.gif'

// do not edit anything below this line

var j = 0
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}

//  End -->

