package SGN::View::Mason::Commands;
use strict;
use vars qw($m $c);
HTML::Mason::Component::FileBased->new(
'code' => sub {
use utf8; local $SGN::View::Mason::Commands::m = $HTML::Mason::Commands::m;
HTML::Mason::Exception::Params->throw
    ( error =>
      "Odd number of parameters passed to component expecting name/value pairs"
    ) if @_ % 2;
my ( $accession, $db_name );
{
    my %pos;
    for ( my $x = 0; $x < @_; $x += 2 )
    {
        $pos{ $_[$x] } = $x + 1;
    }

    foreach my $arg ( qw( accession ) )
    {
        HTML::Mason::Exception::Params->throw
            ( error => "no value sent for required parameter '$arg'" )
                unless exists $pos{$arg};
    }
#line 2 "/home/production/cxgn/sgn/mason/ontology/parentage.mas"
    $accession = $_[ $pos{'accession'} ];
#line 3 "/home/production/cxgn/sgn/mason/ontology/parentage.mas"
     $db_name = exists $pos{'db_name'} ? $_[ $pos{'db_name'} ] :  undef;
}
$m->debug_hook( $m->current_comp->path ) if ( HTML::Mason::Compiler::IN_PERL_DB() );

#line 5 "/home/production/cxgn/sgn/mason/ontology/parentage.mas"
$m->print( '
<input id="hide_link" type="button" value="show results" display="none" onClick="MochiKit.Visual.toggle(\'search_results\', \'blind\'); o.toggleSearchResultsVisible(); o.setSearchButtonText();  " /><br />

<div id="search_results" >&nbsp;</div>
<div id="ontology_browser" style="font-size:12px; line-height:10px; font-face:arial,helvetica" >&nbsp;</div>


<script language="javascript" type="text/javascript" >
<!--

var o;

jQuery(\'document\').ready(function() { 
o = new CXGN.Onto.Browser(\'' );
#line 18 "/home/production/cxgn/sgn/mason/ontology/parentage.mas"
$m->print(  $db_name  );
#line 18 "/home/production/cxgn/sgn/mason/ontology/parentage.mas"
$m->print( '\');

//o.setUpBrowser();

o.initializeBrowser(\'' );
#line 22 "/home/production/cxgn/sgn/mason/ontology/parentage.mas"
$m->print(  $db_name  );
#line 22 "/home/production/cxgn/sgn/mason/ontology/parentage.mas"
$m->print( '\');
// hide some unused elements
//document.getElementById(\'ontology_browser_input\').style.display=\'none\';
//document.getElementById(\'ontology_term_input\').style.display=\'none\';
//document.getElementById(\'hide_link\').style.display=\'none\';
//document.getElementById(\'search_results\').style.display=\'none\';
o.showParentage(\'' );
#line 28 "/home/production/cxgn/sgn/mason/ontology/parentage.mas"
$m->print(  $accession  );
#line 28 "/home/production/cxgn/sgn/mason/ontology/parentage.mas"
$m->print( '\');
});
-->
</script>
' );
;return;
},
'declared_args' => {
  '$accession' => { default => undef },
  '$db_name' => { default => ' undef' }
},
'load_time' => 1763079580,

)
;