/* 
	yenicemiz.com JavaScript v1.0
	Creater by Tendure Interactive
	Creater info www.tendure.com
	Created date 18.11.2009
*/

$(document).ready(function() {
 	$('.fn').hide();
	$('#sr1').show("fast");
	b = "sr1";
	$('#headers> li').mouseover(function() {
		$('#headers> li').removeClass("active");
		$(this).addClass("active");
		a = "s" + $(this).attr("id");
		if(a != b){
			$("#fimages> li").hide();
			$('#'+a).fadeIn("fast");
		}
		b= a;
	});
	
	$('.comli').hide();
	$('#comid1').show("fast");
	var comid = 2;
	var rotation = setInterval(function()	{
     	$('.comli').hide();
		a = '#comid' + comid;
		$(a).fadeIn("slow");
		if(comid>2){
			comid=1;
		}else{
			comid++;	
		}
    }, 10000);

	$("a[rel^='prettyPhoto']").prettyPhoto();
	
}); 

function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;}

function lookup(inputString) {
	if(inputString.length == 0) {
		// Hide the suggestion box.
		$('#suggestions').hide();
	} else {
		$.post("pages/smembers.php", {queryString: ""+inputString+""}, function(data){											  
			if(data.length >0) {
				$('#suggestions').show();
				$('#autoSuggestionsList').html(data);
			}
		});
	}
} // lookup

function fill(thisValue,thisid) {
	$('#inputString').val(thisValue);
	$('#uid').val(thisid);
	setTimeout("$('#suggestions').hide();", 200);
}

