/*

=============================================

 Development By: Infinity Arts Interactive, LLC - www.InfinityArts.com, © Copyright 2008 - All rights reserved.

 Description: Template JS Functions

 Date: 8/4/2008

=============================================

*/



// ============================================================ FUNCTIONS: BUTTON CONTROLS ============================================================

	var cur_img;

	

	function imageSwap(oID) {

		cur_img = document.getElementById(oID).src;

		if (!/(.*)-ovr.jpg/gi.test(cur_img)) document.getElementById(oID).src = cur_img.replace(/(.*).jpg/gi, '$1-ovr.jpg');

	}

	

	function imageSwapRestore(oID) {

		document.getElementById(oID).src = cur_img;

	}

	

	function imageSet() {

		var idno = get_pageIdno();

		var obj = new Object();

		

		switch (idno) {

			case "000": obj = document.getElementById('nav02'); break;

			default: obj = document.getElementById('nav01'); break;

		}

		

		if (obj.src) obj.src = obj.src.replace(/(.*).jpg/gi, '$1-dn.jpg');

	}

// ============================================================ FUNCTIONS: MISC FUNCTIONS ============================================================

	



// ============================================================ FUNCTIONS: LOAD CONTROLS ============================================================

	

	window.onload = function () {

		//imageSet();

	}