// tablar	
	jQuery(document).ready(function() {

		//Default Action
		jQuery(".tab-icerik").hide(); //Hide all content
		jQuery("ul.tablar li:first").addClass("active").show(); //Activate first tab
		jQuery(".tab-icerik:first").show(); //Show first tab content
		
		//On Click Event
		jQuery("ul.tablar li").click(function() {
			jQuery("ul.tablar li").removeClass("active"); //Remove any "active" class
			jQuery(this).addClass("active"); //Add "active" class to selected tab
			jQuery(".tab-icerik").hide(); //Hide all tab content
			var activeTab = jQuery(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
			jQuery(activeTab).fadeIn(); //Fade in the active content
			return false;
		});

	});

// calisma menusu
jQuery(document).ready(function()
{
	//slides the element with class "menu_body" when paragraph with class "menu_head" is clicked 
	jQuery("#firstpane p.menu_head").click(function()
    {
		jQuery(this).css({backgroundImage:"url(down.png)"}).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
       	jQuery(this).siblings().css({backgroundImage:"url(left.png)"});
	});
	//slides the element with class "menu_body" when mouse is over the paragraph
	jQuery("#secondpane p.menu_head").mouseover(function()
    {
	     jQuery(this).css({backgroundImage:"url(down.png)"}).next("div.menu_body").slideDown(500).siblings("div.menu_body").slideUp("slow");
         jQuery(this).siblings().css({backgroundImage:"url(left.png)"});
	});
	

});


function kaydir_x(yonu)
{
if (yonu=='yukari')
{jQuery('#icerik').scrollTo( '+=50px', 800 );}
else if (yonu=='asagi')
{jQuery('#icerik').scrollTo( '-=50px', 800 );}
}


function scroll_down(divi)
{

fare=document.getElementById('scrolldurum').value;
	if (fare=='1') {
						jQuery(divi).scrollTo( '+=5px', 50 );
						setTimeout( function(){scroll_down(divi);},50);
						}

}

function scroll_up(divi)
{

fare=document.getElementById('scrolldurum').value;
	if (fare=='1') {
						jQuery(divi).scrollTo( '-=5px', 50 );
						setTimeout( function(){scroll_up(divi);},50);
					}

}
function calisma_default()
{jQuery('#calisma').html("<table align='center'><tr><td><img src='images/resim.png' /></td></tr></table>");}
function cal_liste(dizini)
{jQuery.get("calisma_getir.php?dizin="+dizini,function(data){ jQuery('#calisma').html(data); });}
function refere_liste()
{refere=document.getElementById('referedurum').value;
	if (refere=='0') {
	jQuery.get("refere_getir.php",function(data){ jQuery('#referans').html(data); });
	document.getElementById('scrolldurum').value='1';
	}
}
