jQuery(document).ready(close);

function tabslide($x,$y)
{
	if($y=="1")
	{
		jQuery(".tab").slideUp("slow");
		jQuery("#"+$x).slideDown("slow");
		jQuery('.cstabs li a').attr("id", "");
		jQuery('.cstabs .'+$x).attr("id", "selected");
	}
	
	if($y=="2")
	{
		jQuery(".tab").hide("slow");
		jQuery("#"+$x).show("slow");
		jQuery('.cstabs li a').attr("id", "");
		jQuery('.cstabs .'+$x).attr("id", "selected");
	}
	
	if($y=="3")
	{
		if(tabkapat != 0)
		{
			jQuery(".tab").hide();
			jQuery("#"+$x).show();
			jQuery('.cstabs li a').attr("id", "");
			jQuery('.cstabs .'+$x).attr("id", "selected");
			/*if($x != 99999)
				jQuery('.cstabs .'+$x).css("background-color", "");*/
		}
		tabkapat = 1;
	}
}

function close()
{
	jQuery(".tab").hide();
	jQuery("#1").show();
	jQuery('.cstabs .1').attr("id", "selected");
}
