function iframeSwitch()
{
   //find flash content container and grab contents
   //(should only be object and embed tags)
   var container = $("#flash_content");
   var c = container.html();

   //get the size from the object element
   var object = $("object",container);
   var x = object.width();
   var y = object.height();

   //create the iframe element, hidden for now
   var frame = $.IFRAME({
      id:'graph_content_frame',
      frameborder:'0',
      marginwidth:'0',
      marginheight:'0',
      scrolling:'no'
   });
   $(frame).css('display','none');
   
   //attach the iframe to the document and remove the
   //old flash container element
   container.after(frame).remove();
   
   //set the size, open the iframe, and insert
   //the flash content.
   $("#graph_content_frame")
   .css('border','none')
   .height(y+'px')
   .width(x+'px')
   .css('display','block')
   .each(function(){
      this.contentDocument.open();
      this.contentDocument.write(c);
      this.contentDocument.close();
      
   });
}
