function swapImg(obj,url) {
	obj.src=url;
}

function ANIME_Preload() 
{
	var args = ANIME_Preload.arguments;
	document.imageArray = new Array(args.length);
	for(var i=0; i<args.length; i++) 
	{
		document.imageArray[i] = new Image;
		document.imageArray[i].src = args[i];
	}
}

function ANIME_NavigateCharacters(obj) 
{
    for (i = 1; i < obj.length; i++)
       if (obj[i].selected == true && obj[i].value)
          location.href="characters.php?id=" + obj[i].value;
}

function ANIME_ShowPokemon(pokemonnum,pokemonimage) {
	if (pokemonnum == 1)
	{
		newhtml = "<img src=\"images/pikachu2.jpg\" onmouseout=\"this.src='images/pikachu2.jpg'\" onmouseover=\"this.src='images/pikachu.jpg'\" alt=\"\" />";
	}
	else
	{
		newhtml = "<img src=\""+pokemonimage+"\" alt=\"\" />";
	
	}
	UTIL_ChangeInnerHTML("picture", newhtml);
	
	page = UTIL_GetElementById("profile");
	if (page)
	{
		page.src="profile.php?pokemonnum="+pokemonnum
	}

}