var browsername=navigator.appName;

function WM_imageSwap(daImage, daSrc){
  var objStr,obj;
  if(document.images){
	// Check to see whether you are using a name, number, or object
	if (typeof(daImage) == 'string') {
	  // This whole objStr nonesense is here solely to gain compatability
	  // with ie3 for the mac.
	  objStr = 'document.' + daImage;
	  // sdb changes- I don't want to give all of my images "name" attributes, since for dhtml it is ususally far more useful to use "id"... 
	  // however, without a "name", document.daImage won't work. So we'll do it this way, and support both "name" and "id". 
	  if (eval(objStr)) {
		  obj = eval(objStr);
	  } else {
		  obj = document.getElementById(daImage);
	  }
	  // end sdb changes
	  obj.src = daSrc;
	} else if ((typeof(daImage) == 'object') && daImage && daImage.src) {
	  daImage.src = daSrc;
	}
  }
}

function sdbQuickHackRollover(callerId, newSrc) {		
	document.getElementById(callerId).src = newSrc;	
}

function addjustDivForTrends(id1,id2,isSplash) {
    var browserName = navigator.appName;
    if (browserName == "Microsoft Internet Explorer") {
        if (isSplash == true) {
            //document.getElementById(id1).style.paddingLeft = "2px";
            document.getElementById(id2).style.paddingTop = "10px";
            document.getElementById(id2).style.paddingLeft = "80px";
        } else {
            //document.getElementById(id1).style.paddingLeft = "2px";
            document.getElementById(id2).style.paddingLeft = "45px";
            document.getElementById(id2).style.width = "510px";
            
        }
    }else
		document.getElementById(id1).style.height = "890px";
}