$(document).ready(function(){
						 $(".nav > li").hover(function(){
														$(this).addClass("over");
														},function(){
														$(this).removeClass("over");
														});		
						 $(".nav > li:eq(0)").hover(function(){
														$(this).addClass("over");
														},function(){
														$(this).removeClass("over");
														});		
						 $(".nav > li:eq(1)").hover(function(){
														  $(this).addClass("over");
														  $(".text_ul").show("");
														  },
														  function(){
														  $(this).removeClass("over");
														  $(".text_ul").hide("");  
														  }
														  );		
						    switch(current){
							case "home":
								$(".nav > li:eq(0)").addClass("now");
								$(".nav > li:eq(0)").hover(function(){
																	 $(this).removeClass("over");
																	 },function(){});
								break;
							case "products":
								$(".nav > li:eq(1)").addClass("now");
								$(".nav > li:eq(1)").hover(function(){
																	 $(this).addClass("over");$(this).removeClass("now");
																	 },function(){$(this).removeClass("over");$(this).addClass("now");});
								break;
							case "download":
								$(".nav > li:eq(2)").addClass("now");
								$(".nav > li:eq(2)").hover(function(){
																		 $(this).removeClass("over");
																		 },function(){});
								break;
							case "purchase":
								$(".nav > li:eq(3)").addClass("now");
								$(".nav > li:eq(3)").hover(function(){
																	 $(this).removeClass("over");
																	 },function(){});
								break;
							case "support":
								$(".nav > li:eq(4)").addClass("now");
								$(".nav > li:eq(4)").hover(function(){
																	 $(this).removeClass("over");
																	 },function(){});
								break;
							case "tutorial":
								$(".nav > li:eq(5)").addClass("now");
								$(".nav > li:eq(5)").hover(function(){
																	 $(this).removeClass("over");
																	 },function(){});
								break;
							case "partner":
								$(".nav > li:eq(6)").addClass("now");
								$(".nav > li:eq(6)").hover(function(){
																	 $(this).removeClass("over");
																	 },function(){});
				                break;
							case "affiliate":
								$(".nav > li:eq(7)").addClass("now");
								$(".nav > li:eq(7)").hover(function(){
																	 $(this).removeClass("over");
																	 },function(){});
								break;
							case "blog":
								$(".nav > li:eq(8)").addClass("now");
								$(".nav > li:eq(8)").hover(function(){
																	 $(this).removeClass("over");
																	 },function(){});
						   }
						   });



//drop-down menu
$(function(){

	$('.nav li').hover(function(){
		$(this).children('ul').show();
	},function(){
		$(this).children('ul').hide();
	});
	
	$('.nav li').hover(function(){
		$(this).children('div').show();
	},function(){
		$(this).children('div').hide();
	});
	
	
	$('.nav li div#shows-list-all dl dd').hover(function(){
		$(this).children('div').show();
	},function(){
		$(this).children('div').hide();
	});
	
/*	
	$('.boxes .vs_box').mouseover(function(){
	    $(this).children('.vs_content').show();
	             });
	$('.boxes .vs_box').mouseout(function(){
	    $(this).children('.vs_content').hide();
	             });
	
	$('.boxes a.close').click(function()
		{
		$("#basic-modal-content").hide();
		return false;
	});*/
	
 $(document).ready(function(){
   $(".vs_tb tr:even").addClass("alt"); 
  });


});

//goTop
$(function(){
    var bt = $('#goTop');
    var hl = $.browser.webkit ? $('body')[0] : $('html')[0];
    $(window).scroll( function() {
        var st = hl.scrollTop;
        show = (st>30);
        if( show ){
            bt.show("slow");
        }else{
            bt.hide("slow");
        }
    });
});
