//-------------------------------------------------------------------------------------------------------
//	Image swap
//-------------------------------------------------------------------------------------------------------
function swapImg(id,img)
{
	if( document.getElementById)
	{
		obj	= document.getElementById(id);
		obj.setAttribute( 'src', img );
	}
}



//=======================================================================================================
//-------------------------------------------------------------------------------------------------------
//	Make Accordion nav 
//-------------------------------------------------------------------------------------------------------
//=======================================================================================================

	jQuery().ready(function(){
		
		// second simple Accordion with special markup
		jQuery('#garp_side_navigation').Accordion({
			active: false,
			header: '.head',
			navigation: true,
			event: 'click',
			autoheight: true,
			animated: 'easeslide',
			alwaysOpen: true
		});
	});

//=======================================================================================================
//-------------------------------------------------------------------------------------------------------
//	Make Dashboard nav 
//-------------------------------------------------------------------------------------------------------
//=======================================================================================================
 
	jQuery().ready(function(){
		
		// The GARP dashbooard is a simple Accordion that just opens and closes
		jQuery('#garp_dash').Accordion({
			active: true,
			header: '.garpdashhead',
			navigation: true,
			event: 'click',
			autoheight: false,
			animated: 'easeslide',
			alwaysOpen: true 
			
		});
		
	});
 




function CheckKeyValue(item, keys) {
	var keyArray = keys.split(",");
	for (var i = 0; i < keyArray.length; i++) {
		if ((document.layers) || ((!document.all) && (document.getElementById))) {
			if (item.which == keyArray[i]) {
				return false;
			}
		}
		else {
			if (event.keyCode == keyArray[i]) {
				return false;
			}
		}
	}
}

