

	function setOpacity(value, which) {
 	document.getElementById(which).style.opacity = value / 10;
 	document.getElementById(which).style.filter = 'alpha(opacity=' + value * 10 + ')';
	}

	function popupFadeIn(which) {
 	for( var i = 0 ; i <= 100 ; i++ )
  	 setTimeout( "setOpacity(" + (i / 10) + ",'" + which + "')" , 4 * i );
	}

	function popupFadeOut(which) {
	 	for( var i = 0 ; i <= 100 ; i++ ) {
	   	setTimeout( 'setOpacity(' + (10 - i / 10) + ',' + which + ')' , 4 * i );
	 	}
 	setTimeout("closePopup('" + which + "')", 800 );
	}

	function closePopup(which) {
 	document.getElementById("iframeDiv").src = "";
 	document.getElementById(which).style.display = "none";
	}

