function loadHome() {
	// do nothing -- holdover function from inline call on homepage template
}

/**********************************
	Begin fullpage displays
*/

var intStyle = 1;
var strStyle = "";
var arrStyles=new Array();
var arrStyleNames = new Array(); // to be passed to Analytics

//these are the numbers that will be randomly selected
arrStyles[0] = 1;
arrStyles[1] = 2;
//arrStyles[2] = 3;
//arrStyles[3] = 4;


function setRandomStyle() {
	var intRandom=Math.floor(Math.random()*(arrStyles.length));
	var strCookieName = '20100819';
	intRandom++;
	if ((readCookie(strCookieName) > 0) && (readCookie(strCookieName) < arrStyles.length)) {
		intStyle = (parseInt(readCookie(strCookieName))+1);
	} else if (readCookie(strCookieName) == arrStyles.length) {
		intStyle = 1;
	} else {
		intStyle = intRandom;
	}
	
	var intStyleToShow = intStyle;

	
	createCookie(strCookieName,intStyleToShow,7);
	

	
	showStyle(intStyleToShow);
}

function setSpecificStyle(intPosition) {
	intStyle = arrStyles[intPosition];
	strStyle = arrStyleNames[intPosition];
	
	// lastCall, in base.js, will look for this value to track in Analytics
	strCurrentStyle = strStyle;
	showStyle(intStyle);
}

function showStyle(intStyle) {
	var strAlpha = 'a';
	var strDivHeight = '446';
	var strImagePath = '';
	
	
		
	switch(intStyle) {
		case 1:
			strImagePath = '/media/TB001/images/static/navbar2/homepage/background_20100722_01.jpg';
			break;
		case 2:
			strImagePath = '/media/TB001/images/static/navbar2/homepage/background_20100722_02.jpg';
			break;
		case 3:
			strImagePath = '/media/TB001/images/static/navbar2/homepage/background_20100722_03.jpg';
			break;
	}		

	
	var strImageDate = '19';
	if ((getCurrentPDTDate() > 21)&&(getCurrentPDTDate() < 25)&&(getCurrentPDTMonth()==7)) {
		strImageDate = '22';
	} 

	if (intStyle==1) {
		document.write('<div id="divHomepageLink" style="position:relative;top:20px;left:30px;width:918px;height:' + strDivHeight + 'px;margin:0px;z-index:50;"><img style="display:block" src="/media/TB001/images/static/spacer.gif" width="918" height="' + strDivHeight + '" border="0" usemap="#map_home1_'+strImageDate+'" /></div>');
	} else if (intStyle==2) {
		document.write('<div id="divHomepageLink" style="position:relative;top:20px;left:30px;width:918px;height:' + strDivHeight + 'px;margin:0px;z-index:50;"><img style="display:block" src="/media/TB001/images/static/spacer.gif" width="918" height="' + strDivHeight + '" border="0" usemap="#map_home2_'+strImageDate+'" /></div>');
	} 		

	//set styles
	document.write('<style type="text/css">');
//	if (readCookie('layout') == 'center') {
		document.write('	.top_bg {background:url("/media/TB001/images/static/navbar2/homepage/bg_top_20100802.jpg") no-repeat;}');
		document.write('	.main_background {background: url(/media/TB001/images/static/navbar2/homepage/bg_main_201008'+strImageDate+'_0' + intStyle + '.jpg) no-repeat;height:591px;}');
		document.write('	.top_nav_bg {background: url(/media/TB001/images/static/navbar2/homepage/bg_nav_20100819_0' + intStyle + '.jpg) no-repeat;}');
		
//	} else {
//		document.write('	body {background: url("'+strImagePath+'") no-repeat; background-color:#fbf8f3;}');
//	}
	//document.write('	#navlist, #navlist2 {margin-top:866px;} ');
	document.write('</style>');


}



