//Master Javascript file
//version:   4.0


//pre-load navigation images 

$(function() {
	SSS.preloadimages("/images/btn/btn_", "tour_on.png", "blog_on.png", 
		"shop_on.png", "music_on.png", "forum_on.png", 
		"gallery_on.png");
	SSS.menuinit();
});



	
	

//creates the tabs for the footer
		$(function () {
			var tabContainers = $('div.tabs > div');
			tabContainers.hide();
			
			$('div.tabs ul.tabNavigation a').click(function () {
				tabContainers.hide();
				tabContainers.filter(this.hash).show();
				$('div.tabs ul.tabNavigation a').removeClass('selected');
				$(this).addClass('selected');
				return false;
			}).filter(':management').click();
		});
        
	
		
        
$(document).ready(function () {
  // hide all ULs inside LI.drawer except the first one
  $('LI.drawer UL:not(:first)').hide(); 
  
  // apply the open class
  $('LI.drawer UL:first').addClass('open');
  
  $('H2.drawer-handle').click(function () {
    // hide the currently visible drawer contents
    $('LI.drawer UL:visible').hide();
    
    // remove the open class from the currently open drawer
    $('H2.open').removeClass('open');
    
    // show the associated drawer content to 'this' (this is the current H2 element)
    // since the drawer content is the next element after the clicked H2, we find
    // it and show it using this:
    $(this).next().show();
    
    // set a class indicating on the H2 that the drawer is open
    $(this).addClass('open');
  });
});






    

