// get the current URL
 var url = window.location.toString();
 //get the parameters
 url.match(/\?(.+)$/);
 var params = RegExp.$1;
 // split up the query string and store in an
 // associative array
 var params = params.split("&");
 var queryStringList = {};
 
 for(var i=0;i<params.length;i++)
 {
     var tmp = params[i].split("=");
     queryStringList[tmp[0]] = unescape(tmp[1]);
 }
 
      $(document).ready(function() {

        $('li.demo-show2> Ul').hide();  
		$('#'+queryStringList['showoption']).show();

        $('li.demo-show2> h3').click(function() {

          var $nextUl = $(this).next();

          var $visibleSiblings = $nextUl.siblings('Ul:visible');

       

          if ($visibleSiblings.length ) {

            $visibleSiblings.slideUp('slow', function() {

              $nextUl.slideToggle('slow');

            });

          } else {

             $nextUl.slideToggle('slow');

          }

        });

      });