function toggleActivity() {
    el = jQuery("#fb_activity");
    if ( el.hasClass("open") ) {
        el.animate({height:240});
        el.removeClass("open");
        jQuery("#fb_arrow").html("&dArr;");
    } else { 
        el.animate({height:660});
        el.addClass("open");
        jQuery("#fb_arrow").html("&uArr;");
    }
}

jQuery(function () {
 // thanks to http://jqueryfordesigners.com/jquery-tabs/
	var tabContainers = jQuery('div.tabs > div');
	tabContainers.hide().filter(':first').show();

	jQuery('div.tabs ul.tabNavigation a').click(function () {
		tabContainers.hide();
		tabContainers.filter(this.hash).show();
		jQuery('div.tabs ul.tabNavigation a').removeClass('selected');
		jQuery(this).addClass('selected');
		return false;
	}).filter(':first').click();
});
jQuery(function () {
 // thanks to http://jqueryfordesigners.com/jquery-tabs/
	var tabContainers = jQuery('div.tabs2 > div');
	tabContainers.hide().filter(':first').show();
	

	jQuery('div.tabs2 ul.tabNavigation a').click(function () {
		tabContainers.hide();
		tabContainers.filter(this.hash).show();
		jQuery('div.tabs2 ul.tabNavigation a').removeClass('selected');
		jQuery(this).addClass('selected');
		return false;
	}).filter(':first').click();
});

function yazarTamami() {
       if (jQuery('.yazar-ek').is(":hidden"))
       {
            jQuery('.yazar-ek').slideDown("slow");
       } else {
    	    jQuery('.yazar-ek').slideUp("slow");
       }
}
function toggleObj(obj) {
	var el = document.getElementById(obj);
	if ( el.style.display != 'none' ) {
		el.style.display = 'none';
	}
	else {
		el.style.display = '';
	}
}

function startGallery() {
	var myGallery = new gallery($('myGallery'), {
		timed: false,
		defaultTransition: "continuoushorizontal"
	});
}
function ipucu() {
	var Ipuclari = new Tips($$('.ipucu'), {
	  initialize:function(){
	    this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
	  },
	  onShow: function(toolTip) {
	    this.fx.start(1);
	  },
	  onHide: function(toolTip) {
	    this.fx.start(0);
	  }
	});
}
jQuery(document).ready(function() {
	if ($$("#myGallery") != "") {
		startGallery();
	}
	ipucu();
});

