//add lines to the array below add text
//use the following format:
//	text[next number in sequence] = ['url to link to','text'];
//
//	NOTE = escape single and double quotes within text by preceding them with a backslash (\)
//		   text MUST be linked to display properly
//

var text = new Array();

text [0] = 	['../contactus/index.cfm','We should talk.  Invite us in for 20 minutes and we will show you how to put the Nexus System of Security to work for your business, so you can handle other       important jobs like taking care of your customers.'];
text [1] = 	['../contactus/index.cfm','What would happen to your company if your data was compromised or destroyed? Does your business continue without a hitch or go bankrupt? Talk to us, we know know how to keep you safe.'];
text [2] = 	['../contactus/index.cfm','Most disasters don\'t look like a TV drama - like the laptop containing important proprietary information that is lost or stolen. You can\'t prevent disasters from occurring, but we can change the outcome. Contact us to find out how.'];
text [3] = 	['../contactus/index.cfm','Most disasters don\'t look like a TV drama - like the disgruntled employee who purposely destroys data or steals a workstation. You can\'t prevent disasters from occurring, but we can change the outcome. Contact us to find out how.'];
text [4] = 	['../contactus/index.cfm','Most disasters don\'t look like a TV drama - pipes that freeze and burst sending water through your server room. You can\'t prevent disasters from occurring, but we can change the outcome. Contact us to find out how.'];



/////////////////////////////////////////////////////////////////////////////////////////
//	DO NOT EDIT BELOW THIS LINE
/////////////////////////////////////////////////////////////////////////////////////////

function getRandom() {
	
	var num = Math.floor(Math.random()*(text.length - 1));
	return num;
	
}

function pullText() {
	
	var itemtext = getRandom();
	var pagelink  = "<div><a href=\"" + text[itemtext][0] + "\">"+text[itemtext][1]+"</a></div>";
	
	document.getElementById('divTopFeatureArea').innerHTML = pagelink;

}


//
// addLoadEvent()
// Adds event to window.onload without overwriting currently assigned onload functions.
// Function found at Simon Willison's weblog - http://simon.incutio.com/
//
function addLoadEvent(func)
{	
	var oldonload = window.onload;
	if (typeof window.onload != 'function'){
    	window.onload = func;
	} else {
		window.onload = function(){
		oldonload();
		func();
		}
	}

}



addLoadEvent(pullText);	// run pullText onLoad
