// JavaScript Document
function yakala(gelen){
	kelime=document.getElementById("aranan").value;
	nerede=document.getElementById("nerede").value;
	
	
	switch (nerede)
	{
	case "1":
	  document.location.href="http://ansiklopedi.bibilgi.com/"+kelime;
	  break;
	case "2":
	  document.location.href="http://sozluk.bibilgi.com/ingilizce/"+kelime;
	  break;
	case "3":
	  document.location.href="http://biyografi.bibilgi.com/"+kelime;
	  break;
	case "4":
	  document.location.href="http://resim.bibilgi.com/"+kelime;
	  break;
	case "5":
	  document.location.href="http://video.bibilgi.com/"+kelime;
	  break;
	case "6":
	  document.location.href="http://harita.bibilgi.com/"+kelime;
	  break;
	case "7":
	  document.location.href="http://yemek.bibilgi.com/"+kelime;
	  break;
	case "8":
	  document.location.href="http://muzik.bibilgi.com/"+kelime;
	  break;
	case "9":
	  document.location.href="http://soru-cevap.bibilgi.com/"+kelime;
	  break;
	case "10":
	  document.location.href="http://dedektif.bibilgi.com/ara?cx=016885159636664696843%3As06amgzo1uy&cof=FORID%3A11&ie=ISO-8859-9&q="+kelime+"&sa=Ara#1014";
	  break;
	default:
	  document.location.href="http://ansiklopedi.bibilgi.com/"+kelime;
	}
	return false;
}

function yakala2(gelen){
	kelime=document.getElementById("arananne").value;
	nerede=document.getElementById("neredeki").value;
	
	
	switch (nerede)
	{
	case "10":
	  document.location.href="http://dedektif.bibilgi.com/ara?cx=016885159636664696843%3As06amgzo1uy&cof=FORID%3A11&ie=ISO-8859-9&q="+kelime+"&sa=Ara#1014";
	  break;
	default:
	  document.location.href="http://dedektif.bibilgi.com/ara?cx=016885159636664696843%3As06amgzo1uy&cof=FORID%3A11&ie=ISO-8859-9&q="+kelime+"&sa=Ara#1014";
	}
	return false;
}

$(document).ready(function() {
						   
  $('#btn1').addClass('btn1');
  $('#soruTab1').slideDown('slow');
  
  $('#btn1').click(function() {
	$('#btn1').addClass('btn1');
	$('#btn2').addClass('btn2p');
	$('#btn3').addClass('btn3p');
	
	$('#btn1').removeClass('btn1p');
	$('#btn2').removeClass('btn2');
	$('#btn3').removeClass('btn3');
	
	$('#soruTab3').hide();
	$('#soruTab2').hide();
	$('#soruTab1').slideDown('normal');
	
  });
  
  $('#btn2').click(function() {
	$('#btn2').addClass('btn2');
	$('#btn1').addClass('btn1p');
	$('#btn3').addClass('btn3p');
	
	$('#btn2').removeClass('btn2p');
	$('#btn1').removeClass('btn1');
	$('#btn3').removeClass('btn3');
	
	$('#soruTab1').hide();
	$('#soruTab3').hide();
	$('#soruTab2').slideDown('normal');
	
  });
  
  $('#btn3').click(function() {
	$('#btn3').addClass('btn3');
	$('#btn2').addClass('btn2p');
	$('#btn1').addClass('btn1p');
	
	$('#btn3').removeClass('btn3p');
	$('#btn2').removeClass('btn2');
	$('#btn1').removeClass('btn1');
	
	$('#soruTab1').hide();
	$('#soruTab2').hide();
	$('#soruTab3').slideDown('normal');
	
  });
  
});