/*
jQuery(function () {
	var tabContainers = jQuery('div.tabs > div');
	tabContainers.hide().filter(':first').show();

	jQuery('div.tabs ul.tabNavigation a').click(function () {
		tabContainers.hide();
		tabContainers.filter(this.hash).show();
		jQuery('div.tabs ul.tabNavigation a').removeClass('selected');
		jQuery(this).addClass('selected');
		return false;
	}).filter(':first').click();
});
*/
jQuery(function () {
  var tabContainers = jQuery('div.tabs > div');
  tabContainers.hide().filter(':first').show();
  var tabNames = new Array("first", "second", "third", "fourth", "fifth", "sixth", "seventh");
        var requestedTab = ":first";
        var tabIndex = 0;
        if (location.hash != null && location.hash.length > 1) {
            requestedTab = location.hash;
            for (t in tabNames) {
                if (requestedTab == "#" + tabNames[t]) { tabIndex = t; break; }
            }
        }
        if (tabIndex == 0) requestedTab = ":first";
        jQuery(function () {
           var tabContainers = jQuery('div.tabs > div');			
           jQuery('div.tabs ul.tabNavigation a').click(function () {
              tabContainers.hide();
              tabContainers.filter(this.hash).show();
              jQuery('div.tabs ul.tabNavigation a').removeClass('selected');
              jQuery(this).addClass('selected');
              return false;
           }).filter(":eq(" + tabIndex + ")").click();
        scroll(0,0);
        });
});
