

//Objectwrapper 
function j_getObject(theId){
	var thisObj;
	if(document.getElementById){
		thisObj = document.getElementById(theId);
	}
	else if(document.layers){
		thisObj = document.layers[theId];
	}
	else if(document.all){
		thisObj = document.all[theId];
	}
	return thisObj;
}



//Objectwrapper with style property
function j_getObjectStyle(theId){
	var thisObj;
	if(document.getElementById){
		if(document.getElementById(theId)){
			thisObj = document.getElementById(theId).style;
		}
		else{
			thisObj = false;
		}
	}
	else if(document.layers){
		if(document.layers[theId]){
			thisObj = document.layers[theId];
		}
		else{
			rthisObj = false;
		}
	}
	else if(document.all){
		if(document.all[theId]){
			thisObj = document.all[theId].style;
		}
		else{
			thisObj = false;
		}
	}
	return thisObj;
}

//Objectwrapper for Images
function j_getImage(theLayer, theId){
	var thisObj;
	if(document.getElementById){
		thisObj = document.getElementById(theId);
	}
	else if(document.layers){
		thisObj = document.layers[theLayer].document.images[theId];
	}
	else if(document.all){
		thisObj = document.all[theId];
	}
	return thisObj;
}

function j_swapImg(theLayer, theId, theArray){
	thisImg = j_getImage(theLayer, theId);
	if (theArray.length){
		alert("doing array");
		i = theId.split("_");
		var iNum = i[1];
		thisImg.src = theArray[iNum].src;
	}
	else{
		//alert(thisImg.src+"--"+theLayer+"--"+theId);
		thisImg.src = theArray.src;
	}
}



 /*function WM_netscapeCssFix() {
 
    Source: Webmonkey Code Library
    (http://www.hotwired.com/webmonkey/javascript/code_library/)

    Author: Taylor
    Author Email: taylor@wired.com
    Author URL: http://www.taylor.org/
    

  // This part was inspired by Matthew_Baird@wayfarer.com
  // It gets around another unfortunate bug whereby Netscape 
  // fires a resize event when the scrollbars pop up. This 
  // checks to make sure that the window's available size 
  // has actually changed.
  if (document.WM.WM_netscapeCssFix.initWindowWidth != window.innerWidth || document.WM.WM_netscapeCssFix.initWindowHeight != window.innerHeight) {
    document.location = document.location;
  }
}

function WM_netscapeCssFixCheckIn() {
  // This function checks to make sure the version of Netscape 
  // in use contains the bug; if so, it records the window's 
  // width and height and sets all resize events to be handled 
  // by the WM_netscapeCssFix() function.
  if ((navigator.appName == 'Netscape') && (parseInt(navigator.appVersion) == 4)) {
    if (typeof document.WM == 'undefined'){
      document.WM = new Object;
    }
    if (typeof document.WM.WM_scaleFont == 'undefined') {
      document.WM.WM_netscapeCssFix = new Object;
      document.WM.WM_netscapeCssFix.initWindowWidth = window.innerWidth;
      document.WM.WM_netscapeCssFix.initWindowHeight = window.innerHeight;
    }
    window.onresize = WM_netscapeCssFix;
  }
}

WM_netscapeCssFixCheckIn()*/



