// ANA SAYFA
//$('.button').corner("round 5px");
//$('.sayfa').corner("round 5px");
//$('.notification').corner("round 5px");

$(document).ready(function(){
	
	$('div[id^="Task"]').hide();
	
	/*function TaskMenu(obj, i){
		if (eval("Show" + i)){
			obj.style.display = "block";
			eval("Show" + i + "= false");
			eval("SwapImage(TaskArrow" + i + ", '../images/admin_interface/TaskArrowUpOn.gif')");
		}
		else{
			obj.style.display = "none";
			eval("Show" + i + "= true");
			eval("SwapImage(TaskArrow" + i + ", '../images/admin_interface/TaskArrowDownOn.gif')");
		}
	}*/
	
	/*$('.MenuBaslik').click(function(){
		
		$(".AltMenu").hide();
		$(this).find(".AltMenu").toggle();
		
		if (onoff==1) {
			alert("1");
			onoff=0;
			var newSrc = $(this).attr("src").replace("../images/admin_interface/TaskArrowUpOff.gif", "../images/admin_interface/TaskArrowUpOn.gif");
  			$(this).next("img").attr("src", newSrc);
		} else {
			alert("0");
			onoff=1;
			var newSrc = $(this).attr("src").replace("../images/admin_interface/TaskArrowUpOn.gif", "../images/admin_interface/TaskArrowUpOff.gif");
  			$(this).next("img").attr("src", newSrc);
		}
	});*/
	
	
	
	//Göster-Gizle
	$(".tablo_baslik").click( 
		function () {
			$(this).next().toggle();
			//$(".tablo1_icerik").toggle();
		}
	);
	
	//Close button:
	$(".close").click(
		function () {
			$(this).parent().fadeTo(400, 0, function () { // Links with the class "close" will close parent
				$(this).slideUp(400);
			});
			return false;
		}
	);
	
    // Check all checkboxes when the one in a table head is checked:	
	$('.check-all').click(
		function(){
			$(this).parent().parent().parent().parent().find("input[type='checkbox']").attr('checked', $(this).is(':checked'));   
		}
	);
	
	
	$('.buyukharf').bestupper({ 
     ln: 'tr',
	 clear:false
   	}); 
	
	$('td[title]').qtip({
		position: { my: 'bottom center', target: 'mouse', viewport: $(window), adjust: { x: 0,  y: -35 } },
		style: 'ui-tooltip-shadow ui-tooltip-dark'
		});

});
//'red', 'blue', 'dark', 'light', 'green', 'jtools', 'plain', 'youtube', 'cluetip', 'tipsy', 'tipped'

