call JS function from external file on tab index change by user
<p>i have in my .ascx file Image button that calls a Function from C# behind code 
Image button Code : 
<code>&lt;asp:ImageButton ID="ImageItemThumb" runat="server" Width="75px" OnClick="switchTab_imgeClick" /&gt;
</code>
and the Behind C# Function is</p>

<pre><code>`
 protected void switchTab_imgeClick(object sender, EventArgs e)
           {
             TCArtistDetails.ActiveTabIndex = 2;
             ShowProjectDetails();
 //this.Page.ClientScript.RegisterClientScriptInclude(this.GetType(),"showFunction","JScript1.js" );
         //Button imageFire = (Button)DataListCollection.FindControl("ImageClick");
         //imageFire.Attributes.Add("OnClick", "show");

         // Page.ClientScript.RegisterClientScriptBlock(this.GetType(), key, "&lt;script type=\"text/javascript\"&gt;jQuery(window).load();&lt;/script&gt;", true);
         // Dumy.Attributes.Add("OnClick", "Show");
         // string jScriptValidator;
         //jScriptValidator = "JQuery.switchTab_imgeClick";
         //Page.ClientScript.RegisterStartupScript(this.GetType(), "showFunction", jScriptValidator);
     }
</code></pre>

<p>` </p>

<p>and also there is the JS file that contain this Function </p>

<pre><code>`
function show()
{
        alert("Hey Show ");
                    $('div.navigation').css({'width' : '200px', 'float' : 'right'});
                $('div.content').css('display', 'block');

                // Initially set opacity on thumbs and add
                // additional styling for hover effect on thumbs
                var onMouseOutOpacity = 0.67;
                $('#thumbs ul.thumbs li').opacityrollover({
                    mouseOutOpacity:   onMouseOutOpacity,
                    mouseOverOpacity:  1.0,
                    fadeSpeed:         'fast',
                    exemptionSelector: '.selected'
                });

                // Initialize Advanced Galleriffic Gallery
                var gallery = $('#thumbs').galleriffic({
                    delay:                     2500,
                    numThumbs:                 15,
                    preloadAhead:              10,
                    enableTopPager:            true,
                    enableBottomPager:         true,
                    maxPagesToShow:            7,
                    imageContainerSel:         '#slideshow',
                    controlsContainerSel:      '#controls',
                    captionContainerSel:       '#caption',
                    loadingContainerSel:       '#loading',
                    renderSSControls:          true,
                    renderNavControls:         true,
                    playLinkText:              'Play Slideshow',
                    pauseLinkText:             'Pause Slideshow',
                    prevLinkText:              '&amp;lsaquo; previous ',
                    nextLinkText:              'next &amp;rsaquo;',
                    nextPageLinkText:          'Next &amp;rsaquo;',
                    prevPageLinkText:          '&amp;lsaquo; Prev',
                    enableHistory:             false,
                    autoStart:                 false,
                    syncTransitions:           true,
                    defaultTransitionDuration: 0, // OMM , START , 8/1/2012 , Change From 900 to 0 
                    onSlideChange:             function(prevIndex, nextIndex) {
                        // 'this' refers to the gallery, which is an extension of $('#thumbs')
                        this.find('ul.thumbs').children()
                            .eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
                            .eq(nextIndex).fadeTo('fast', 1.0);

                    },
                    onPageTransitionOut:       function(callback) {
                        this.fadeTo('fast', 0.0, callback);
                    },
                    onPageTransitionIn:        function() {
                        this.fadeTo('fast', 1.0);
                    }
                });
            };`
</code></pre>

<p>i wanna make this code run on the user click to the image the tab switch and run this JS script ??
all hashed lines i have tried but the page wont load 
Tip : Page refresh is not an Option :( </p>
