/**
 * Hides elements.
 * @param idN string Ids of the element(s) to hide.
 */
function hide(/* id1, id2, id3, ... */) {
	for(var i = 0; i < arguments.length; i++)	{
		if (document.getElementById) { // DOM3 = IE5, NS6 
			elemParam = document.getElementById(arguments[i]);
			if(elemParam != null){
				elemParam.style.visibility = 'hidden'; 
				elemParam.style.display = 'none';   
			} 
		} else { 
			if (document.layers) { // Netscape 4 
				elemParam = document[arguments[i]]; 
				if(elemParam != null){
						elemParam.style.visibility = 'hidden'; 
						elemParam.style.display = 'none';
				} 								
			} else { // IE 4 
				elemParam = document.all[arguments[i]];
				if(elemParam != null){
						elemParam.style.visibility = 'hidden';
						elemParam.style.display = 'none'; 
				} 	
			} 
		} 
	}
} 

/**
 * Hides elements.
 * @param idN string Ids of the element(s) to hide.
 */
function show(/* id1, id2, id3, ... */) {
	for(var i = 0; i < arguments.length; i++)	{
		if (document.getElementById) { // DOM3 = IE5, NS6 
			elemParam = document.getElementById(arguments[i]);
			if(elemParam != null){
				elemParam.style.visibility = 'visible'; 
				elemParam.style.display = 'inline';   
			} 
		} else { 
			if (document.layers) { // Netscape 4 
				elemParam = document[arguments[i]]; 
				if(elemParam != null){
						elemParam.style.visibility = 'visible';
						elemParam.style.display = 'inline';   
				} 								
			} else { // IE 4 
				elemParam = document.all[arguments[i]];
				if(elemParam != null){
						elemParam.style.visibility = 'visible'; 
						elemParam.style.display = 'inline';  
				} 	
			} 
		} 
	}
} 

function navigateTo(url){
	document.location.href = url;
}

/**
 * Preloads images.
 * @param idN string paths of the image(s) to load.
 */
function preloadImages(/* path1, path2, path3, ... */){
	if (document.images) {
		var myimages = new Array();
		for (x=0; x<preloadImages.arguments.length; x++){
			myimages[x] = new Image();
			myimages[x].src = preloadImages.arguments[x];
		}
	}
}

function swapImage(id, src) {
  if (document.images) {	
    var img = document.getElementById(id);
    if (img != null) {
						img.src = src;
				}
  }
}

function openPopup(url){
	window.open(url,'','width=780,height=600,scrollbars=yes');
}
		

