function trackThis(linkName, event_name)
{
	var sLinkName = linkName;
	var sEventName = event_name;
	var s=s_gi('that-mpv');
	s.tl(sLinkName,'o',sEventName);
}

// Begin Image Preload Function

var preloaded = new Array();

function preload() { 
	for(i=0; i<preload.arguments.length; i++) {
        preloaded[i] = document.createElement('img');
        preloaded[i].setAttribute('src', preload.arguments[i]);
	}
}


// Begin Image Swap Function


function swap(id,img_num, text) {
	document.getElementById(id).style.background = "url('../images/" + img_num + ".jpg')";
	document.getElementById('caption').innerHTML = text;
}

function randomize_bg() {
	num = Math.floor(3 * Math.random());
	
	document.getElementById('home').className = 'bg' + num;	
	document.getElementById('main_image').className = 'main_image bg' + num;

	//document.getElementById('panel_right').className = 'panel_right right' + num;
	
	//document.getElementById('panel_link').className = 'link' + num;
	//document.getElementById('panel_title').className = 'title' + num;
	//document.getElementById('panel_text').className = 'panel_text text' + num;
	
	//document.getElementById('promo_bar').className = 'promo_bar bar' + num;

}