function loadImages()
{
	tab_www = new Image();
	tab_www.src = '/images/tab_www_hover.gif';
	tab_liverc = new Image();
	tab_liverc.src = '/images/tab_liverc_hover.gif';
	tab_photos = new Image();
	tab_photos.src = '/images/tab_photos_hover.gif';
	tab_advertising = new Image();
	tab_advertising.src = '/images/tab_advertising_hover.gif';
}

function swapImage(subDomain,mouseAction)
{
	document.getElementById('img_' + subDomain).src = '/images/tab_' + subDomain + '_' + mouseAction + '.gif';
}

function noSpam(user,domain)
{
	locationstring = "mailto:" + user +	"@" + domain;
	window.location = locationstring;
}

function loadTopBanner()
{
	//number of seconds between banner refreshes
	bannerRefreshRate = 120;
	
	var xmlHttp;
	try
	{
		//firefox, opera, safari, chrome
		xmlHttp = new XMLHttpRequest();
	}
	catch (e)
	{
		//internet explorer
		try
		{
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				//browser does not suppoer ajax
				return false;
			}
		}
	}
	
	xmlHttp.onreadystatechange = function()
	{
		
		if (xmlHttp.readyState == 4)
		{
			document.getElementById('div_top_banner').innerHTML = xmlHttp.responseText;
			setTimeout('loadTopBanner()',bannerRefreshRate * 1000);
		}
	}
	xmlHttp.open("GET","/banner_display.php?plan_type=rotating_banner_01&width=468&height=60",true);
	xmlHttp.send(null);
}

function loadRightSideBanners(separator)
{
	var xmlHttp;
	try
	{
		//firefox, opera, safari, chrome
		xmlHttp = new XMLHttpRequest();
	}
	catch (e)
	{
		//internet explorer
		try
		{
			xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (e)
			{
				//browser does not suppoer ajax
				return false;
			}
		}
	}
	
	xmlHttp.onreadystatechange = function()
	{
		
		if (xmlHttp.readyState == 4)
		{
			document.getElementById('div_right_side_banner').innerHTML = xmlHttp.responseText;
		}
	}
	xmlHttp.open("GET","/banner_display.php?plan_type=static_banner_01&width=120&num_banners=15&separator=" + separator + "&height=60",true);
	xmlHttp.send(null);
}