function getTalkBalloonT( name, picture, width, height, text )
{
	t = "<div  id=background" + name + "><table border=0  cellpadding=0 cellspacing=0 width=" + width + " height=" + height + "><tr><td onClick=top.photoWeb.toggleBorders('" + name + "') align=left><img src=" + picture + " width=" + width + " height=" + height + "></td></tr></table></div>";
	t += "<div style='position:absolute;top:20px;left:20px;' id=foreground" + name + "><table border=0  cellpadding=0 cellspacing=0 width=80% height=80%  border=1><tr><td width=80% height=80% align=left>" + text + "</td></tr></table></div>";
  
  return t;
}      
/*

var FONT_ARIAL               = "arial.ttf";
var FONT_ARIAL_BOLD          = "arialbd.ttf";
var FONT_ARIAL_BOLD_ITALIC   = "arialbi.ttf";
var FONT_ARIAL_ITALIC        = "ariali.ttf";

var FONT_TIMES               = "times.ttf";
var FONT_TIMES_BOLD          = "timesbd.ttf";
var FONT_TIMES_BOLD_ITALIC   = "timesbi.ttf";
var FONT_TIMES_ITALIC        = "timesi.ttf";

var FONT_COURIER             = "cour.ttf";
var FONT_COURIER_BOLD        = "courbd.ttf";
var FONT_COURIER_BOLD_ITALIC = "courbi.ttf";
var FONT_COURIER_ITALIC      = "couri.ttf";


var FONT_COMICSANS             = "comic.ttf";
var FONT_COMICSANS_BOLD        = "comicbd.ttf";
var FONT_COMICSANS_BOLD_ITALIC = "comicbi.ttf";
var FONT_COMICSANS_ITALIC      = "comici.ttf";

function TalkBalloon( t )
{
  this.font 		= "";
  this.size 		= "";
  this.rawText 	= t;
  this.color 		= "";
  
  this.rawText 	= t;
  
  this.getBold 								= tbGetBold;
  this.getItalic 							= tbGetItalic;
  this.getBoldItalic 					=	tbGetBoldItalic;
  this.getFont 								= tbGetBold;
  this.getColor 							= tbGetColor;
  this.getSize 								= tbGetSize;
  this.getGenerateQueryString = tbGetGenerateQueryString;
 
 	function getBold()
	{
	  toReturn = false;
	  if( this.rawText.indexOf( "bold" ) != -1 )
	  {
	    toReturn = true;
	  }
	  if( this.rawText.indexOf( "<strong>" ) != -1 )
	  {
	    toReturn = true;
	  }
	  if( this.rawText.indexOf( "<b>" ) != -1 )
	  {
	    toReturn = true;
	  }
	  if( this.rawText.indexOf( "bold" ) != -1 )
	  {
	    toReturn = true;
	  }
	  return toReturn;
	}

	function getItalic()
	{
	  toReturn = false;
	  if( this.rawText.indexOf( "italic" ) != -1 )
	  {
	    toReturn = true;
	  }
	  if( this.rawText.indexOf( "<i>" ) != -1 )
	  {
	    toReturn = true;
	  }
	  if( this.rawText.indexOf( "<em>" ) != -1 )
	  {
	    toReturn = true;
	  }
	  return toReturn;
	}

	function getBoldItalic()
	{
	  toReturn = false;
	  if( getItalic(this.rawText) && getBold(this.rawText) )
	  {
	    toReturn = true;
	  }
	  return toReturn;
	}

  function getFont()
  {
	  var toReturn = FONT_ARIAL;
	
	  //note: ARIAL is always present,so it needs to be first.
	  if( this.rawText.indexOf( "arial" ) != -1 )
	  {
			toReturn = FONT_ARIAL;
	    if( getBoldItalic()  )
	    {
	      toReturn = FONT_ARIAL_BOLD_ITALIC;
	    }
	    else if( getBold()  )
	    {
	      toReturn = FONT_ARIAL_BOLD;
	    }
	    else if( getItalic()  )
	    {
	      toReturn = FONT_ARIAL_ITALIC;
	    }
	  }
	  if( this.rawText.indexOf( "courier" ) != -1 )
	  {
		  toReturn = FONT_COURIER;
	    if( getBoldItalic()  )
	    {
	      toReturn = FONT_COURIER_BOLD_ITALIC;
	    }
	    else if( getBold()  )
	    {
	      toReturn = FONT_COURIER_BOLD;
	    }
	    else if( getItalic()  )
	    {
	      toReturn = FONT_COURIER_ITALIC;
	    }
	  }
	  if( this.rawText.indexOf( "comic" ) != -1 )
	  {
		  toReturn = FONT_COMICSANS;
	    if( getBoldItalic()  )
	    {
	      toReturn = FONT_COMICSANS_BOLD_ITALIC;
	    }
	    else if( getBold()  )
	    {
	      toReturn = FONT_COMICSANS_BOLD;
	    }
	    else if( getItalic()  )
	    {
	      toReturn = FONT_COMICSANS_ITALIC;
	    }
	  }
	  if( this.rawText.indexOf( "times" ) != -1 )
	  {
	  	toReturn = FONT_TIMES;
	    if( getBoldItalic()  )
	    {
	      toReturn = FONT_TIMES_BOLD_ITALIC;
	    }
	    else if( getBold()  )
	    {
	      toReturn = FONT_TIMES_BOLD;
	    }
	    else if( getItalic()  )
	    {
	      toReturn = FONT_TIMES_ITALIC;
	    }
	  }
	  return toReturn;
  }
  
  function getSize()
  {
    var toReturn = 2;
	  if( this.rawText.indexOf("size=\"", this.rawText.indexOf( "span" ) ) == -1 )
	  {
	    if( this.rawText.indexOf( "size=\"" ) == -1 )
	    {
	    	// using default size
	    }
	    else
	    {
	      start        = this.rawText.indexOf( "size=\"" );
	      start       += 6;
	      end          = this.rawText.indexOf( "\"", start );
	      length       = end - start;
	      sizeString   = this.rawText.substring( start, length );
	    }
	  }
	  else
	  {
	    start        = this.rawText.indexOf( "size=\"", this.rawText.indexOf( "span" ) );
	    start       += 6;
	    end          = this.rawText.indexOf( "\"", start );
	    length       = end - start;
	    sizeString   = this.rawText.substring( start, length );
	  }
	
	  return toReturn;
  }
  
  function getColor()
  {
		toReturn = "000000";  
	  // <font style="font-family: arial,helvetica,sans-serif; font-weight: bold; color: rgb(255, 255, 0);" size="7">
	  if( this.rawText.indexOf( "rgb" ) == -1 )
	  {
			// black
	  }
	  else
	  {
	    start        = this.rawText.indexOf( "rgb" )+4;
	    end          = this.rawText.indexOf( ")", start )-1;
	    length       = end - start;
	    toReturn     = this.rawText.substring( start, length );
	  }
	  return toReturn;
  }
  
  function getGenerateQuerystring()
  {
		toReturn  = "?addOnImageURL=" + "";
		toReturn += "&x=" 						+ this.win.x;
		toReturn += "&y=" 						+ this.win.y;
		toReturn += "&height=" 				+ this.win.height;
		toReturn += "&width=" 				+ this.win.width;
		toReturn += "&font=" 					+ this.getFont();
		toReturn += "&color=" 				+ this.getColor();
		toReturn += "&addOnText=" 		+ this.getText;
		
		return escape(toReturn);
	}
  
  
  
}
*/
