/**********************************
 *Filename:      ue.pri.ajax.js
 *Version:       1.0.0(2009-10-28)
 *Website:       *
 *Author:        S.S.L
**********************************/

function UE_Pic(){	
	function $ID( id ){ return document.getElementById( id ); }
	function showPic( pPic ){
		if( $ID( "ue_pic" ) == null ){
			var pic = document.createElement("div");
			pic.id = "ue_pic";
			pic.className = "ue_pic";
			pic.innerHTML = '<img src="' + pPic + '" onclick="document.getElementById(\'ue_pic\').style.display=\'none\'" title="close" />';
		
			document.body.appendChild( pic );
		}else{
			$ID( "ue_pic" ).innerHTML = '<img src="' + pPic + '" onclick="document.getElementById(\'ue_pic\').style.display=\'none\'" title="close" />';
			$ID( "ue_pic" ).style.display = "block";
		}
	}
	
	this.doPic = function( pPic ){
		if( pPic == null ) return;
		showPic( pPic );
	}

}
var ue_pic = new UE_Pic();
