/*****HOMEPAGE BUTTONS*****/

function buttons() {
	var webLink = new Array()
	webLink[0] = 'clc,http://www.campuslifeconnection.org'
	webLink[1] = 'abyfc,http://www.abyfc.com'
	webLink[2] = 'crossover,http://www.crossoverbasketball.org'
	webLink[3] = 'gold,http://www.campuslifegoldcountry.com'
	webLink[4] = 'pb,http://www.pointbreakonline.com'
	/*webLink[5] = 'remedy,http://www.eremedy.org'
	webLink[7] = 'auction,http://www.yfcauction.org'
	webLink[8] = 'golf,http://www.yfcgolfchallenge.com'*/

	var whichImage = Math.floor(Math.random()*webLink.length);

	var site = webLink[whichImage].split(',');

	document.write('<a href="'+site[1]+'" target="_blank"><img src="images/buttons/button_website_'+site[0]+'.jpg" width="215" height="140" border="0" alt="" style="margin-left: 6px;" /></a>');
}

/*****EMAIL ADDRESS SECURITY*****/

function email(text,person,domain,subject) {
	document.write('<a href="mailto:' + person + '@' + domain + '?subject=' + subject + '">' + text + '</a>');
}

/*****NEW WINDOW*****/

function newWindow(url) {
	window.open(url,'newWindow','width=640,height=480');
}
