Cufon.replace('#community_submenu li a, #tech_submenu li a, #team_submenu li a',
				{hover: true, fontFamily: 'Gotham Light'});

var $j = jQuery.noConflict();

$j(document).ready( function(){


	jQuery(".my_videos_list").hide();
	jQuery('[id^=myvidimg]').click(function() {
	jQuery("ul#tech_slider").hide();
	jQuery("div#tech_slider-wrap").hide();
	jQuery(".my_videos_list").hide();
	jQuery("div#tech_video_slider").show();
	var $this = jQuery(this);
	var x = $this.attr("id");
	jQuery('[id^=myvidimg]').removeClass("wactive"); 
	jQuery('#video_main_' + x).show();
	jQuery('a#' + x).addClass("wactive");
	return false;
	});
	
	
	
	jQuery(".my_videos_list").hide();
	jQuery("#video_main_vidimg1").show();
	jQuery("a.vidimg1").addClass("selected");
	
	jQuery('[class^=vidimg]').click(function() {
	jQuery(".my_videos_list").hide();
	var $this = jQuery(this);
	var x = $this.attr("className");
	jQuery('[class^=vidimg]').removeClass("selected"); 
	jQuery('#video_main_' + x).show();
	jQuery('a.' + x).addClass("selected");
	return false;
	});

	// teams submenu
	var show_sub = false;
	$j('#team_menu, #team_submenu').mouseover( function(){
		show_sub = true;
		$j('#team_submenu').show();
	})
	.mouseout( function(){
		show_sub = false;
		setTimeout(function(){
			if(!show_sub){
				$j('#team_submenu').hide();
			}
		}, 200);
	});
	
	// tech submenu
	var show_sub = false;
	$j('#tech_menu, #tech_submenu').mouseover( function(){
		show_sub = true;
		$j('#tech_submenu').show();
	})
	.mouseout( function(){
		show_sub = false;
		setTimeout(function(){
			if(!show_sub){
				$j('#tech_submenu').hide();
			}
		}, 200);
	});
	
	// tech submenu
	var show_sub = false;
	$j('#community_menu, #community_submenu').mouseover( function(){
		show_sub = true;
		$j('#community_submenu').show();
	})
	.mouseout( function(){
		show_sub = false;
		setTimeout(function(){
			if(!show_sub){
				$j('#community_submenu').hide();
			}
		}, 200);
	});
	
});
