public static Palette GetPalette(string name)
{
if(palHash[name]==null)
{
Assembly thisAssembly = Assembly.GetExecutingAssembly();
try
{
palHash[name] = new Palette(thisAssembly.GetManifestResourceStream(embedPath+name+".pal"));
}
catch{palHash[name]=null;}
}
return (Palette)palHash[name];
}