/**
 * carousel_icons.js
 *
 * @author		Jonathan Pitre
 * @description	This file contains the various JavaScript functions which control the mouseover
 *				events for the link icons in the website carousel of www.builditsoftware.com. Modifying
 *				this file might result in the loss of mouseover functionality for carousel icons.
 * @changelog
 * --------------------------------------------------------------------------------------------------
 * Jonathan Pitre		20/06/2011	Creation of script.
 * --------------------------------------------------------------------------------------------------
 */

// Constant file starters (locations)
var CONST_ICON_START = "../../img/carousel_logos/logo_";

// File extension
var CONST_EXT_CAROUSEL = ".gif";

// Changes the color of an icon on mouse over.
function carouselMouseIn(obj){
	var id = obj.id;
	obj.src = CONST_ICON_START + id + CONST_EXT_CAROUSEL;
}

// Restores the color of an icon on mouseout.
function carouselMouseOut(obj){
	var id = obj.id;
	obj.src = CONST_ICON_START + id + "_bw" + CONST_EXT_CAROUSEL;
}
