<!--
// partial support of Opera 4.01

//===================================================================================================================
// Cross Browser DHTML Functions
//===================================================================================================================


//preload images
function preLoad() {
  if (!document.images) return;
  var ar = new Array();
  var arguments = preload.arguments;
  for (var i = 0; i < arguments.length; i++) {
    ar[i] = new Image();
    ar[i].src = arguments[i];
  }
}



// Swap Image Src

function swapImg(imgObj, imgSrc) {
	document.images[imgObj].src = eval(imgSrc + '.src');
}



// Pop-up Window
function popUp(theURL) {
		w = 680;
		h = 480;
		leftPos = (screen.width) ? (screen.width-w)/2 : 0;
		topPos = (screen.height) ? (screen.height-h)/2 : 0;
		var popup=window.open(theURL,'popup','width='+w+',height='+h+',top='+topPos+',left='+leftPos+',scrollbars=1');
		popup.focus();
}


function showLayer(which,how) {
	if (isExp) {
		eval ('document.'+pre+which+suf+'.visibility="'+how+'"');
		return;
	}
	else if (isW3C || isOpera) {
		obj=document.getElementById(which);
		obj.style.visibility=how;
	}
}


function showBlock(which,how) {
	if (isExp) {
		eval ('document.'+pre+which+suf+'.display="'+how+'"');
		return;
	}
	else if (isW3C || isOpera) {
		obj=document.getElementById(which);
		obj.style.display=how;
	}
}




function swapClass(which,name) {
	obj=document.getElementById(which);
	obj.className=name;
}



function moveLayerX(which,x) {
	if (isExp)	{
		eval ('document.'+pre+which+suf+'.pixelLeft='+x);
		return;
	}

	else if (isW3C) {
		obj=document.getElementById(which);
		obj.style.left=x+'px';
		return;
	}
	else if (isOpera) {
		obj=document.getElementById(which);
		obj.style.left=x;
		return;	
	}
}


function getoffsetX(which) {
	if (isExp) {
		return eval ('document.'+pre+which+'.offsetLeft');
}
	if (isW3C) {
		obj=document.getElementById(which);
		return obj.offsetLeft;
	}

}


function returnLayer(which){
	if (isExp) {
		obj = eval('document.'+pre+which);
		if (!obj) {return false;}
		else {return true;}
	}
	else if (isW3C || isOpera) {
		obj=document.getElementById(which);
		if (!obj) {return false;}
		else {return true;}
	}
}


function writeLayer(which,code) {
	obj=document.getElementById(which);
	obj.innerHTML=code;
}






//-->
