$(document).ready(function(){
	
	

$(".faq .qq div, .rs div").hide();

/*$(".faq .qq span h2, .rs h2").mouseover(function()
{
$(this).add(".faq .qq span h2").addClass("op");
// $(this).parent(".faq .qq span");
$(this).next(".faq .qq div, .rs div").slideDown(100);
return false;
});*/

$(".faq .qq span h2, .rs h2").click(function()
{
	if($(this).add(".faq .qq span h2").attr('class')=='op'){
		$(this).add(".faq .qq span h2").removeClass("op");
		$(this).next(".faq .qq div, .rs div").slideUp(100);
		return false;
	}
	else{
		$(this).add(".faq .qq span h2").addClass("op");
		// $(this).parent(".faq .qq span");
		$(this).next(".faq .qq div, .rs div").slideDown(100);
		return false;
	}
});

	$('ul.tabs').delegate('li:not(.current)', 'click', function() {
		$(this).addClass('current').siblings().removeClass('current')
			.parents('div.section').find('div.box').hide().eq($(this).index()).fadeIn(150);
	});

$('.table tr:nth-child(even)').addClass('tdg');

$('#dropdown').sSelect({ddMaxHeight: '420px'});
$('.newList li').first('li').addClass('ur');
});

function change_rdc60(rdc,idf)
{
document.getElementById('change_rdc_what_id'+idf).value=rdc;
document.getElementById('change_rdc_id'+idf).submit();
}


$(document).ready(function(){
	
	var setRegionsAjax = function() {	
		if ($('.dropdown2').length == 0) return false;	
						
		$.post('/common/ajax_select_regions.php', function(data){
			$('.dropdown2').html(data);	
			$('#dropdown').sSelect({ddMaxHeight: '420px'});		
	    }, 'html');
	}
	
	setRegionsAjax();

	$("table.table2 tbody").hide();
	$("table.table2 td span").css({ cursor:"pointer", borderBottom:"1px dashed #000", color:"#069" });
	$("table.table2 thead").click(function(){
		$(this).next("tbody").slideToggle();
		return false;
	});
});
setTimeout(function () {
	$('.dropdown').hide();
		setTimeout(function () {
			
			$('.dropdown').fadeIn();
	}, 2000)
}, 1000)

