// JavaScript Document
jQuery(document).ready(function() {
	jQuery('div#nav').children().children().not(":first").prepend("<span>/</span>");	
	jQuery('#nav li').find('ul').hide().each(function(){
		var config = { sensitivity: 7, interval: 100, over: function(){jQuery(this).find('ul').fadeIn(250, function() {jQuery(this).show();});}, timeout: 300, out: function(){jQuery(this).find('ul').fadeOut(250, function() {jQuery(this).hide();});} };
		jQuery(this).parent().hoverIntent(config);
	});
});

var twtFunctions = {
	tabs : function() {
		jQuery('ul#tab_links li').click(function() {
		 	jQuery('ul#tab_links li').removeClass('active');
			jQuery('div#tab_contents').children().hide();
			jQuery(this).addClass('active');
			jQuery('div#' + jQuery(this).attr('id') + '_content').show();
		});
	},
	images : function() {
		jQuery('ul#images_thumb li').click(function() {
		 	jQuery('ul#images_thumb li').removeClass('active');
			jQuery(this).addClass('active');
			var id = jQuery(this).attr('id').split("_")[1];			
			jQuery('div#images_large img').fadeOut(200);
			setTimeout(function() { jQuery('img#image_' + id).fadeIn(200); },250);
		});
	}
}
