
function doTooltip(e, img, txt) {
	if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
	
	var cntnt = '';
	if ( img != "" ) 
		cntnt += '<div class="tooltip_img"><img src="' + img + '"></div>';
	if ( txt != "" ) 
		cntnt += '<div class="tooltip_txt">' + img + '</div>';
	
	var tip = document.getElementById( Tooltip.tipID );
	Tooltip.show(e, cntnt);
}

function doAdminPhotoTooltip(e, img, txt, width, height) {
	if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
	var cntnt = '';
	if ( img != "" ) 
		cntnt += '<div class="admin_photo_tooltip_img"><img width="'+width+'" height="'+height+'" src="' + img + '"></div>';
	if ( txt != "" ) 
		cntnt += '<div class="admin_photo_tooltip_txt">' + img + '</div>';
	
	var tip = document.getElementById( Tooltip.tipID );
	Tooltip.show(e, cntnt);
}

function doBrowserPhotoTooltip(e, img, txt, width, height) {
	if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
	var cntnt = '';
	if ( img != "" ) 
		cntnt += '<div class="browser_photo_tooltip_img"><img width="'+width+'" height="'+height+'" src="' + img + '"></div>';
	if ( txt != "" ) 
		cntnt += '<div class="browser_photo_tooltip_txt">' + txt + '</div>';
	
	var tip = document.getElementById( Tooltip.tipID );
	Tooltip.show(e, cntnt);
}

function hideTip() {
	if ( typeof Tooltip == "undefined" || !Tooltip.ready ) return;
	Tooltip.hide();
}