/**
 * @author kevox
 */

function addLoadEvent(func)
{
	var oldonload = window.onload;
	if (typeof window.onload != 'function')
	{
		window.onload = func;
	}
	else
	{
		window.onload = function()
		{
		if (oldonload)
		{
			oldonload();
		}
		func();
		}
	}
}

function altTextAsTitles()
{ // assigns value of image alt text as title text for Firefox
	if(document.images)
	{
		var images = document.getElementsByTagName('img');
		for(var i = 0; i < images.length; i++)
		{
			if(images[i].alt)
			{
				images[i].title = images[i].alt;
			}
		}
	}
}

function stopFlicker()
{
	try {
	document.execCommand("BackgroundImageCache",false,true);
	} catch(err) {}
}

