



ns4 = (document.layers)? true:false;
ie4 = (document.all)? true:false;



function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

function changeImages() {
if (document.images) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}



function imageSwap(whichImage, toWhichImage)
{
	if (document.images!= null)
	{ document.images[whichImage].src = eval(toWhichImage); }	
}



function popUpWindow(theURL,winName,features) { 

  // Mac users need a menubar 
  if (navigator.appVersion.indexOf("Mac") > 0) {features+=",menubar"}
  window.open(theURL,winName,features);
  
  // copyright 2000, SuddenIndustries
  
  }




// DIVS MANAGEMENT
// Positioning elements
function moveObjectTo(obj,xcoord,ycoord) {
	if (ns4) { 
	  document.layers[obj].left = xcoord;
	  document.layers[obj].top = ycoord;
	  }
	else if (ie4) {
		document.all[obj].style.left = xcoord;
		document.all[obj].style.top = ycoord;
	    }
}


// DIVS MANAGEMENT
// Positioning elements
function showObject(obj) {
	if (ns4) document.layers[obj].visibility = "show"
	else if (ie4) document.all[obj].style.visibility = "visible"
}

// DIVS MANAGEMENT
// Positioning elements
function hideObject(obj) {

	if (ns4) document.layers[obj].visibility = "hide"
	else if (ie4) document.all[obj].style.visibility = "hidden"
}











