
/*****************************************************************************\
 * PROJECT:	UCCSC APP
 * FILE NAME:	./js/jscript.js
 *
 * SUMMARY:	javascript to handle rollovers
 *
 * CHANGE LOG: 	<when> - <who>
 * 		<what changes/modifications were made>
 *
 *		2/3/2004 - tom hsu
 * 		created
 *
\*****************************************************************************/

var link_ro_on = new Image;
link_ro_on.src = 'media/images/mb.gif';

var link_ro_off = new Image;
link_ro_off.src = 'media/images/spacer.gif';


function link_ro(imgpos, imgstate)
{
	if (imgstate == 'on')
	{
		eval("document." + imgpos + ".src = link_ro_on.src;");
	}
	else
	{
		eval("document." + imgpos + ".src = link_ro_off.src;");
	}
}

var cmapimg00 = new Image;
cmapimg00.src = 'media/images/cmap00.gif';

var cmapimg01 = new Image;
cmapimg01.src = 'media/images/cmap01.gif';

var cmapimg02 = new Image;
cmapimg02.src = 'media/images/cmap02.gif';


function ucmp()
{
	if (document.cmapimg.src == cmapimg01.src ||document.cmapimg.src == cmapimg00.src )
	{
		document.cmapimg.src = cmapimg02.src;
		window.status='Click on the map to zoom out.';
	}
	else
	{
		document.cmapimg.src = cmapimg01.src;
		window.status='Click on the map to zoom in.';
	}
}

function display_cmpstatus() {
	if (document.cmapimg.src == cmapimg01.src)
	{
		window.status='Click on the map to zoom in.';
	}
	else
	{
		window.status='Click on the map to zoom out.';
	}
}

function ucmp_highlightin()
{   
	if (document.cmapimg.src != cmapimg02.src)
	{
		document.cmapimg.src = cmapimg00.src;
		window.status='Click on the map to zoom out.';
	}
}

function ucmp_highlightout()
{   
	if (document.cmapimg.src != cmapimg02.src)
	{
		document.cmapimg.src = cmapimg01.src;
		window.status='Click on the map to zoom out.';
	}
}