$(document).ready(function(){
	$('.desc').css({opacity:0.7});
	$('.newsbox').hover(function() {
		$(this).find('div.desc').stop(false,true).animate({opacity:1, height: "60", bottom: "48"});
		$(this).find('div.kategori').stop(false,true).fadeIn('slow');
	},
	function() {
		$(this).find('div.desc').stop(false,true).animate({opacity:0.7, height: "23", bottom: "20"});
		$(this).find('div.kategori').stop(false,true).fadeOut('slow');
	});
	
	
	
	
	$('li.submenutrigger', this).hover(function() {
		$("ul.submenu", this).css({display: "block"});
	},
	function() {
		$("ul.submenu", this).css({display: "none"});
	});
	
	
	
	
	
	
	
	$('.esubtrigger').click(function() {
	
		$("div.emailsubs").stop(false,true).fadeIn('slow');
	
	});
	
	$('.esubct').click(function() {
	
		$("div.emailsubs").stop(false,true).fadeOut('slow');
	
	});
	
	
	
	
	
	$('.searchtrigger').click(function() {
	
		$("div.searchfade").stop(false,true).fadeIn('slow');
	
	});
	
	$('.searchconcloser').click(function() {
	
		$("div.searchfade").stop(false,true).fadeOut('slow');
	
	});
	
	
	
	$('.logintrigger').click(function() {
	
		$("div.loginfade").stop(false,true).fadeIn('slow');
	
	});
	
	$('.logincloser').click(function() {
	
		$("div.loginfade").stop(false,true).fadeOut('slow');
	
	});
	
	
	
	
	
	
	
	$('#photo').jScrollPane({scrollbarWidth:10, scrollbarMargin:10});
	


	
		
});


$(function(){
   var url = location.pathname;
   if(url.indexOf('komunite') > -1){
        $('#komunite').addClass('selected');
     } 
     else if (url.indexOf('rakunlar') > -1) { 
      $('#komunite').addClass('selected');
     } 
     else if (url.indexOf('forumlar') > -1) { 
      $('#komunite').addClass('selected');
     }
     else if (url.indexOf('topluluklar') > -1) { 
      $('#komunite').addClass('selected');
     }
     else if (url.indexOf('profile') > -1) { 
      $('#komunite').addClass('selected');
     }
     else if (url.indexOf('mesajlar') > -1) { 
      $('#komunite').addClass('selected');
     }
     else if (url.indexOf('arkadaslar') > -1) { 
      $('#komunite').addClass('selected');
     }
     else if (url.indexOf('ayarlar') > -1) { 
      $('#komunite').addClass('selected');
     }
     else if (url.indexOf('olan-biten') > -1) { 
      $('#komunite').addClass('selected');
     } 
});

$(function(){
   var url = location.pathname;
   if(url.indexOf('bolumler') > -1){
        $('#rakunrollmt').addClass('selected');
     } 
     else if (url.indexOf('2010') > -1) { 
      $('#rakunrollmt').addClass('selected');
     } 
     else if (url.indexOf('gruplar') > -1) { 
      $('#rakunrollmt').addClass('selected');
     }
     else if (url.indexOf('muzisyenler') > -1) { 
      $('#rakunrollmt').addClass('selected');
     }
     else if (url.indexOf('muzik-turleri') > -1) { 
      $('#rakunrollmt').addClass('selected');
     }
     else if (url.indexOf('pek-yakin-konserler') > -1) { 
      $('#rakunrollmt').addClass('selected');
     }
     else if (url.indexOf('operasyon') > -1) { 
      $('#rakunrollmt').addClass('selected');
     }
	 else if (url.indexOf('author') > -1) { 
      $('#rakunrollmt').addClass('selected');
     }
     else if (url.indexOf('album') > -1) { 
      $('#rakunrollmt').addClass('selected');
     }
     else if (url.indexOf('wire') > -1) { 
      $('#rakunrollmt').addClass('selected');
     }
});


		$(function () {
			var tabContainers = $('div.tabs > div');
			tabContainers.hide().filter(':first').show();
			
			$('div.etiketlertabs ul li a').click(function () {
				tabContainers.hide();
				tabContainers.filter(this.hash).show();
				$('div.etiketlertabs ul li a').removeClass('selected');
				$(this).addClass('selected');
				return false;
			}).filter(':first').click();
		});
		
		
		$(function () {
			var tabbContainers = $('div.membersekmeler > div');
			tabbContainers.hide().filter(':first').show();
			
			$('div.memberstabs ul li a').click(function () {
				tabbContainers.hide();
				tabbContainers.filter(this.hash).show();
				$('div.memberstabs ul li a').removeClass('selected');
				$(this).addClass('selected');
				return false;
			}).filter(':rastgele').click();
		});



			Cufon('div.newsbox h3');
			Cufon('div#headerzz .rakunnavigation a', {hover: true});
			Cufon('div.rakun2navigation a', {hover: true});
			Cufon('div#rakunsingle h1');
			Cufon('div.rakunmeta');
			Cufon('div.rakunwithphones');
			Cufon('a.usercufon');
			Cufon('div.topsitenavigation a');
			Cufon('div#headerzz h1');
			Cufon('h4');
			Cufon('div.etiketlertabs ul li');
			Cufon('div.memberstabs ul li');
			Cufon('div.homepagegroups ul li h6');
			Cufon('div.kategori');
			Cufon('div.deskription h4');
			Cufon('div.continue');
			Cufon('.cufonrakun');
			/*Cufon('div#topic-meta h3');*/
			Cufon('div.singleimage h4', {
				textShadow: '#fff 2px 1px'
			});
			
			
			
			
			