function unsetFlashClass(objId) {
    myObj = document.getElementById(objId);
    if(myObj) myObj.className = '';
}

function popup(thePath,myWidth, myHeight,extraFeatures) {

    features = "width="+myWidth+", height="+myHeight;
    if(extraFeatures) {
        features = features + ','+extraFeatures;
    }

    myWindow = window.open(thePath, "popup", features);

    myWindow.focus();
    return false;
}

function emailPop(myLoc) {
    myWindow = window.open(myLoc, "emailPage", "width=470, height=400");
    myWindow.focus();
    return false;
}

function ticketPop(myLoc,noReturn) {
    openURL = myLoc + '&customerpk=545&skinpk=2&login=login&browser='+( navigator.userAgent.toLowerCase().indexOf('msie') < 0 ? 'MOZILLA' : 'IE' );

    portalWin = window.open(openURL, "RelatisLogin", 'left='+((screen.width/2)-510)+',top='+((screen.height/2)-400)+',directories=no,width=1020,height=690,location=no,menubar=no,resizable=no,scrollbars=yes,status=yes,titlebar=no,toolbar=no');
    portalWin.focus();

    if(!noReturn) return false;
}

function rollRow(myRow) {
    myRow.className = 'rowOver '+myRow.className;
}
function rollOutRow(myRow) {
    currentClass = myRow.className;
    newClass = currentClass.replace('rowOver','');
    myRow.className = newClass;
}


function adjustColHeight() {
    minHeight = document.getElementById("menuCol").offsetHeight;
    leftHeight = document.getElementById("linkCol").offsetHeight; //right column
    contentHeight = document.getElementById("contentCol").offsetHeight; //main content

	var arrLength = [minHeight, leftHeight, contentHeight];
	var maxLength = 0;
	for(i=0; i<3; i++){
		if(arrLength[i] > maxLength){
			maxLength = arrLength[i];
		}
	}

	if(maxLength != contentHeight){
		document.getElementById("contentCol").style.height = maxLength+"px";
	}
}
function landingHeight() {
    racingHeight = document.getElementById("test1").offsetHeight;
    hosHeight = document.getElementById("test2").offsetHeight;
    eventsHeight = document.getElementById("test3").offsetHeight;

    if(racingHeight > hosHeight) {
        document.getElementById("test2").style.height = racingHeight+"px";
    }
    if(racingHeight > eventsHeight) {
        document.getElementById("test3").style.height = racingHeight+"px";
    }	
}