	$("div").filter(".select").click(function(){
		$(this).addClass("active").children("div").slideDown(200);
		$(document).bind("mousedown",closeSelect);
	});
	function closeSelect() {
		$("div").filter(".select").removeClass("active").children("div").slideUp(200);
		$(document).unbind("mousedown",closeSelect);
	}
	$("strong","#watchingTab").click(function(){
		$(this).siblings().removeClass().end().addClass("sel");
		$.get($(this).attr("title"), function(d){
			$("#watching").html(d);
		});
	});
	var searchVal = "";
	$("#aran").focus(function(){
		searchVal=$(this).val();
		$(this).val("");
	}).blur(function(){
		if($(this).val()==""){$(this).val(searchVal);}
	});

		function ara ()
{
	
	var d = $("#aran").val();

	location.href="/etiket/"+d+"/";

	return false;
	
}

function setFocus() {
		document.ara.q.select();
		document.ara.q.focus();
}

function aramakontrol() {
$('.autocomplete').fadeOut(500);
gizlerelated();
if (String(document.ara.q.value).length<2) {alert('Keyword ???');document.ara.q.focus();return false}
document.forms["ara"].Submit.disabled = true;
return true;
} 

function gizlet()
{

$("div#panels").hide(100); 

}




function gizle()
{

$("div#panel").hide(100); 

}
function playergizle()
{

$("div#myplayer").hide(100); 

}
function playerfullgizle()
{

$("div#myplayerix").hide(100); 
mylistem();

}
function playeranagizle()
{

$("div#myplayerix").hide(100); 
anaorta();

}

function gizlerelated()
{

$("div#related").hide(100); 

}


$(document).ready(function() {
   var refreshId = setInterval(function() {
      $("#ads_336x250x").load('ads-300x250.php');
   }, 120000);
});


