$(document).ready(function() {
	
	$(".dotEditor_content_area .listing li:nth-child(3n)").after("<div class='clear'></div>");
	

	
	$( ".datepicker" ).datepicker({
		showOn: "both",
		buttonImage: "/images/pick-a-date.gif",
		buttonImageOnly: true,
		dateFormat: 'dd/mm/yy'
	});
	
	$('.tab2').hide();
	$('.tab3').hide();
	$('.tab4').hide();
	$(".tabsli li:nth-child(1)").click(function()
	{
		$('.tab1').show();
		$('.tab2').hide();
		$('.tab3').hide();
		$('.tab4').hide();
		$('.tabsli li a').addClass('off');
		$('.tabsli li:nth-child(1) a').removeClass('off');
		$('.tabsli li:nth-child(1) a').addClass('active');
		return false;
	});
	$(".tabsli li:nth-child(2)").click(function()
	{
		$('.tab1').hide();
		$('.tab2').show();
		$('.tab3').hide();
		$('.tab4').hide();
		$('.tabsli li a').addClass('off');
		$('.tabsli li:nth-child(2) a').removeClass('off');
		$('.tabsli li:nth-child(2) a').addClass('active');
		return false;
	});
	$(".tabsli li:nth-child(3)").click(function()
	{
		$('.tab1').hide();
		$('.tab2').hide();
		$('.tab3').show();
		$('.tab4').hide();
		$('.tabsli li a').addClass('off');
		$('.tabsli li:nth-child(3) a').removeClass('off');
		$('.tabsli li:nth-child(3) a').addClass('active');
		return false;
	});
	$(".tabsli li:nth-child(4)").click(function()
	{
		$('.tab1').hide();
		$('.tab2').hide();
		$('.tab3').hide();
		$('.tab4').show();
		$('.tabsli li a').addClass('off');
		$('.tabsli li:nth-child(4) a').removeClass('off');
		$('.tabsli li:nth-child(4) a').addClass('active');
		return false;
	});
	
});
