
if (document.images) 
{            // Active Images
	img1on = new Image();      
	img1on.src = "/images/arrow_blue_down.jpg"; 

	img1off = new Image(); 
	img1off.src = "/images/arrow_blue.jpg"; 
}


function imgOn(imgName) {
        if (document.images) {
            document[imgName].src = eval("img1on.src");
        }
}

         
function imgOff(imgName) {
        if (document.images) {
            document[imgName].src = eval("img1off.src");
        }
}


function openWin( windowTitle )
{

	if ( windowTitle == 'Privacy')
	{
		windowURL = '/company/privacy.asp';
		windowFeatures = 'width=240,height=500,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=0';
	}
	else if ( windowTitle == 'Terms_and_Conditions')
	{
		windowURL = '/company/terms_conditions.asp';
		windowFeatures = 'width=207,height=500,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=0';
	}


	newWindow = window.open( windowURL, windowTitle, windowFeatures ) ;
	newWindow.focus();

}


function getEmail(strUserName,strDomain,strLink)
{
	username = strUserName;
	domain = strDomain + '.com';
	link = strLink;
	document.write('<a href=\"mailto:' + username + '@' + domain + '\">');

	if (link == 0)
		document.write(username + '@' + domain + '</a>');
	else
		document.write(link + '</a>');
}


var state_golf = 'none';
var state_entertainment = 'none';

function showhide(layer_ref) 
{ 

	if (layer_ref == 'div_golf') {
		if (state_golf == 'block') { 
			imgOff("golf");
			state_golf = 'none';
			state = 'none';
		}
		else {
			imgOn("golf");
			state_golf = 'block';
			state = 'block';
		}
	}
	
	if (layer_ref == 'div_entertainment') {
		if (state_entertainment == 'block') { 
			imgOff("entertainment");
			state_entertainment = 'none';
			state = 'none';
		}
		else {
			imgOn("entertainment");
			state_entertainment = 'block';
			state = 'block';
		}
	}


	if (document.all) { //IS IE 4 or 5 (or 6 beta) 
		eval( "document.all." + layer_ref + ".style.display = state"); 
	} 

	if (document.layers) { //IS NETSCAPE 4 or below 
		document.layers[layer_ref].display = state; 
	} 

	if (document.getElementById &&!document.all) { 
		hza = document.getElementById(layer_ref); 
		hza.style.display = state; 
	} 
}
