Insert Javascript to PHP sheet
<p><em>hello out there i have to implement a jquery task  to one of the Nextgen Gallery Slider Widget PHP output. at least i recognized i stuck in the middle of nowhere because in cause of my experiences.  Is there anybody who can help me with that?</em> </p>

<pre><code>$output .= "\n&lt;script type=\"text/javascript\"&gt;";
$output .= "\n  jQuery(window).load(function() {";                
// Shuffle results on random order so even if page is cached the order will be different each time
if($order == 'random' &amp;&amp; $shuffle == 'true')
{
  $output .= "\n    jQuery('div#" . $html_id . "').jj_ngg_shuffle();";
}
$output .= "\n    jQuery('div#" . $html_id . "').nivoSlider(";
if(count($javascript_args) &gt; 0)
{
  $output .= "{" . implode(",", $javascript_args) . "}";
}
$output .= ");";
if($has_control_nav &amp;&amp; $has_thumbs)
{
  if($controlnavthumbs == 'nextgen_thumbs' || $controlnavthumbs == 'nextgen_original')
  {
    $output .= "\n    JJNGGUtils.wordpressThumbs('" . $html_id . "', " . ($controlnavthumbs == 'nextgen_thumbs' ? 'true' : 'false') . ");";
  }
  if($has_center &amp;&amp; $thumbsgap != '')
  {
    $output .= "\n    JJNGGUtils.wordpressThumbsCenterFix('" . $html_id . "');";
  }
  $output .= "\n    jQuery('div#" . $html_id . " div.nivo-controlNav').css('visibility', 'visible');";
}
$output .= "\n  });";  
$output .= "\n&lt;/script&gt;\n";

if($shortcode != '1')
{
  echo $before_widget . "\n&lt;ul class=\"ul_jj_slider\"&gt;\n    &lt;li class=\"li_jj_slider\"&gt;" . $output . "\n    &lt;/li&gt;\n  &lt;/ul&gt;\n" . $after_widget;     
}
else
{
  echo $output;
}
</code></pre>

<p>}</p>

<p>id like to add</p>

<pre><code>    &lt;script type="text/javascript"&gt;
jQuery(document).ready(function() {
 // hides the slickbox as soon as the DOM is ready
  jQuery('#slider').css({visibility: "hidden"});

 // toggles the slickbox on clicking the noted link
  jQuery('a.nivo-controlNav').click(function() {
    jQuery('#slider').css({visibility: "visibile"});
    return false;
  });
});
&lt;/script&gt;
</code></pre>

<p>big thanks for any hints and help</p>
