$(document).ready(function(){
	$('.faq_reply').hide();
	$('#menu div:not(.active_item)').has('a').bind('mouseenter', function() {
			$(this).addClass('select_menu');
		});
	
	$('#menu div:not(.active_item)').has('a').bind('mouseleave', function() {
			$(this).removeClass('select_menu');
		});
	$('#menu div').has('a').bind('click', function(event) {
		if(event.target.nodeName.toLowerCase() == 'div')	{
			var link = $(this).children('a').attr('href');
			window.location.href = link;
		}
	});	
	
	$('.faq_ask').bind('click', function(event) {
		event.preventDefault();
		var faq_reply = $(this).nextAll('.faq_reply');
		faq_reply.toggle();
		$('.faq_reply').not(faq_reply).hide();
	});	
	
	$('body').bind('click', function(event) {
		var ul = $('.faq_ask').parents('ul');
		if((event.target == $(ul))||($(ul).has(event.target).length))
		{
			return;
		}
		$('.faq_reply').hide();

	});	
	$(function() {
        $('a.box').lightBox();
    });
});
$( function (){
	$('#left_content ul').hide(); 
	$('#left_content h1').each(
		function(){
			$(this).nextAll('ul').attr('txt',$(this).text());	
		}); 
	$('#left_content ul li').each(
		function(){  
			if(!$(this).find('a').is('a')){
				$(this).parents('ul').show()
			}
		});
	$('#left_content h1').toggle(
		function(){  
			$('#left_content ul[txt='+$(this).text()+']').show();
			if($('#left_content ul[txt='+$(this).text()+']').attr('txt')!=$(this).text()){ 
				window.location=$(this).find('a').attr('href');
			}
			return false;
		},function(){
			$('#left_content ul[txt='+$(this).text()+']').hide();
			if($('#left_content ul[txt='+$(this).text()+']').attr('txt')!=$(this).text()){ 
				window.location=$(this).find('a').attr('href');
			}
			return false;
		});	
	$('input#rbPayment5').hide();
	$('label[for=rbPayment5]').hide();
});
