/*
Copyright by Neven Falica <neven@falica.net>
*/
function swapImage(imgName,newImg){
	if ((navigator.appName == 'Netscape' && parseFloat(navigator.appVersion) >= 3) || (parseFloat(navigator.appVersion) >= 4)){
		eval('document.' + imgName + '.src = "' + newImg + '"');
	}
}
function openNewWindow(fileLocation,w_width,w_height){
	NewWin=window.open(fileLocation,'','toolbar=no, status=no, location=no, menubar=no, scrollbars=no, width=' + w_width + ', height=' + w_height); 
}
function alignDiv(layerID){
	var height=window.document.body.clientHeight;
	var width=window.document.body.clientWidth;
	xWidth=parseInt(window.document.getElementById(layerID).style.width);
	xCenter=eval(eval(width/2)-eval(xWidth/2));
	moveDiv(layerID,xCenter,0);
}
function moveDiv(layerID,x,y){
	xpos=parseInt(window.document.getElementById(layerID).style.left);
	ypos=parseInt(window.document.getElementById(layerID).style.top);
	window.document.getElementById(layerID).style.left=eval(xpos+x);
	window.document.getElementById(layerID).style.top=eval(ypos+y);
}
function showDiv(layerID){
	window.document.getElementById(layerID).style.visibility='visible';
}
function hideDiv(layerID){
	window.document.getElementById(layerID).style.visibility='hidden';
}

