var ie6 = $.browser.msie && /MSIE 6.0/.test(navigator.userAgent);
var ie7 = $.browser.msie && /MSIE 7.0/.test(navigator.userAgent);


function getScriptName() {
        var sPath = window.location.pathname;
        //var sPage = sPath.substring(sPath.lastIndexOf('\\') + 1);
        var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
        return sPage.substring(0,sPage.indexOf('.')) || 'index';
}

$(document).ready(
                  function()
                  {
                      $('#slideshow').append('<span id="darkStripe"></span>');
                      $('#darkStripe')
                          .css({
                                  display: 'block',
                                      zIndex: '20',
                                      position: 'absolute',
                                      left: 0,
                                      bottom: 0,
                                      width: '660px',
                                      height: '99px',
                                      background: '#000',
                                      borderTop: '1px solid #dadada',
                                      opacity: 0
                              });
                      if (ie6 || ie7) {
                          $('#darkStripe').css('filter','alpha(opacity=40)');
                      }
                      else {
                          $('#darkStripe').fadeTo(1200,0.4);
                      }
                      /*$('#fakeSpan')
                          .css('display','block')
                          .css('overflow','hidden')
                          .css('height','28px');*/
                      $('#contextHeading')
                          .css('height',0)
                          .css('margin-top','28px')
                          .wrap('<span id="fakeSpan"></span>')
                          .animate({
                                  height: '28px',
                                      marginTop: '0px'
                                      },
                              { duration: 600 }
                              );
                  }
    );