// JavaScript Document
$(document).ready(function() {	
	$('#Navigation ul li a.headlink').hover(
			function() {
			$(this).addClass("active");
			$(this).parent("li").children("ul").show();
			},
			function() {
			$(this).removeClass("active");
			$(this).parent("li").children("ul").hide();
			 });
				$('#Navigation ul li ul').hover(
			function() {
			$(this).parent("li").children("a").addClass("active");
			$(this).show();
			},
			function() {
			$(this).parent("li").children("a").removeClass("active");
			$(this).hide();
			 });
		// Level 2 //
			$('#Navigation li ul li a.headlink1').hover(
			function() {
			$(this).parent("#Navigation li ul li").children("ul.Level2").show();
			},
			function() {			
			$(this).parent("#Navigation li ul li").children("ul.Level2").hide();
			 });				
			$('#Navigation li li ul.Level2').hover(
			function() {
			$(this).parent("li").children("a").removeClass("active");
			$(this).parent("#Navigation ul li ul li").children("a").addClass("lvl2active");
			$(this).show();
			},
			function() {
			$(this).parent("#Navigation ul li ul li").children("a").removeClass("lvl2active");
			$(this).hide();
			 });
			 
		// for video tabbing
var currentTab = 0; 
function openTab(clickedTab) {
    var thisTab = $(".container_bottom .video_thumb a").index(clickedTab);
    $(".container_bottom .video_thumb a").removeClass("active");
    $(".container_bottom .video_thumb a:eq("+thisTab+")").addClass("active");
    $(".container_bottom  .content_area_left").hide();
    $(".container_bottom .content_area_left:eq("+thisTab+")").show();
    currentTab = thisTab;
				}
$(".container_bottom .video_thumb a").click(function() {
    openTab($(this));
    });
    $(".container_bottom .video_thumb a:eq("+currentTab+")").click()
		
});
