$(document).ready(function() {
         
        $("input.kadi").click(function(){
            $(this).val('');
        }) 
        $(".cinsiyet_buton").click(function(){
            
            var c_id = this.id;
            if($.browser.msie && $.browser.version=="6.0");
            else{
            $(".cinsiyet_buton").removeClass('selected');
            $(this).addClass('selected');
            }
            $("#cinsiyet_input").val($(this).attr('rel'));
            
        })
        $sht = $('<div class="sht"></div>').appendTo($('.shoutbox_content'));
        yukle();
        setInterval("$sht.remove();yukle();",240000);   
    	$(".scrollable").scrollable({circular: true,vertical: true}).autoscroll(2000);
        
        var kadi = $(".kadi").val();
        
        $(".misafirgir").click(function(){
            $("#passcontent").hide();
            $("#gencontent").slideDown();
            $(".kadi").val(kadi);
        });
        
        $(".uyegir").click(function(){
            $("#gencontent").hide();           
            $("#passcontent").slideDown(); 
            $(".kadi").val("Kullanıcı Adınız");
        });
        
})
function yukle()
{ 
    
    $sht = $('<div class="sht"></div>').appendTo($('.shoutbox_content'));
	$sht.platin({ 
			term			: "shoutbox", 
			bird			: false, 
			colorExterior	: '#000',
			colorInterior	: '',
			pause			: true
	});
}
var win=null;
function pop_up(mypage,myname,w,h,pos,infocus)
{
    if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
    if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
    else 
    if((pos!='center' && pos!="random") || pos==null)
    {
        myleft=0;mytop=20
    }
    settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=yes";
    win=window.open(mypage,myname,settings);
win.focus();
} 
