//--------------------------------------- AlphaNav.ascx -------------------------------------------
function iTalkiesAlphaNavElementOnClick(srcElement, text)
{
	var newParam;
	newParam = "Alpha=" + encodeURIComponent(text);
	
	
	if ((window.location.search != "") && (window.location.search != null))
	{
		var tempHref = window.location.search;
		
		var re = /&?Alpha=[^&$]*/ig;
		tempHref = tempHref.replace (re, "");
		
		// Always strip any page parameter when the user clicks on an alphabet.  Always reset the page to page 1.
		var re = /&?Page=[^&$]*/ig;
		tempHref = tempHref.replace (re, "");
		
		srcElement.href = window.location.protocol + "//" + window.location.host + window.location.pathname	+ tempHref + "&" + newParam + "&Page=1";
	}
	else
	{
		srcElement.href = window.location.href + "?" + newParam + "&Page=1";
	}
}

function iTalkiesAlphaNavPageElementOnClick (srcElement, page)
{
	// First clear out all the rest of the selected items
	iTalkiesClearAllAlphaNavSelectableElements (srcElement.parentNode, "a");
	
	// Now tell the frame to show the selected page
	if ((window.location.search != "") && (window.location.search != null))
	{
		var tempHref = window.location.search;
		
		// Remove any page parameters
		var re = /&?Page=[^&$]*/ig;
		tempHref = tempHref.replace (re, "");
		
		srcElement.href = window.location.protocol + "//" + window.location.host + window.location.pathname	+ tempHref + "&" + "Page=" + page;
	}
	else
	{
		srcElement.href = window.location.href + "?" + "Page=" + page;
	}
}

function iTalkiesNextPageOnMouseOver (srcElement)
{
	srcElement.src = "images/site/NextPageSelect.gif";
}

function iTalkiesNextPageOnMouseOut (srcElement)
{
	srcElement.src = "images/site/NextPage.gif";
}

function iTalkiesPrevPageOnMouseOver (srcElement)
{
	srcElement.src = "images/site/PreviousPageSelect.gif";
}

function iTalkiesPrevPageOnMouseOut (srcElement)
{
	srcElement.src = "images/site/PreviousPage.gif";
}

