/*
Codersstuff.com CSTABS 1.1
http://codersstuff.com

Detail : http://codersstuff.com/jquery-ile-tab-uygulamasi-cstabs
Example : http://codersstuff.com/wp-content/uploads/demo/cstabs
Date : 25.01.2009

Berkay YILDIZ  

*/

jQuery(document).ready(close);
jQuery(document).ready(closeGenel);

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")
{
jQuery(".tab").hide();
jQuery("#"+$x).show();
jQuery('.cstabs li a').attr("id", "");
jQuery('.cstabs .'+$x).attr("id", "selected");
}


}

function tabslideGenel($x, $y) {

    if ($y == "1") {
        jQuery(".tabGenel").slideUp("slow");
        jQuery("#" + $x).slideDown("slow");
        jQuery('.cstabsGenel li a').attr("id", "");
        jQuery('.cstabsGenel .' + $x).attr("id", "selected");
    }

    if ($y == "2") {
        jQuery(".tabGenel").hide("slow");
        jQuery("#" + $x).show("slow");
        jQuery('.cstabsGenel li a').attr("id", "");
        jQuery('.cstabsGenel .' + $x).attr("id", "selected");
    }


    if ($y == "3") {
        jQuery(".tabGenel").hide();
        jQuery("#" + $x).show();
        jQuery('.cstabsGenel li a').attr("id", "");
        jQuery('.cstabsGenel .' + $x).attr("id", "selected");
    }


}

function close()
{

jQuery(".tab").hide();
jQuery("#1").show();
jQuery('.cstabs .1').attr("id", "selected");

}

function closeGenel() {

    jQuery(".tabGenel").hide();
    jQuery("#15").show();
    jQuery('.cstabsGenel .1').attr("id", "selected");

}
