// sovereign tarafından iü sözlük için oluşturulmuştur. 

function chkall()
{
  var c = document.getElementsByTagName("input");
  for(var i=0;i<c.length;i++){
if(c[i].type=="checkbox")c[i].checked=!c[i].checked;
}
}

function yonet(t,i)
{
        document.write('<select style="width:110px" class=tedit onchange="if(this.selectedIndex>0){window.location.href=(this.options[this.selectedIndex].value+\''+t+'\');this.selectedIndex=0;}">'+

'<option selected value="">&nbsp;&nbsp;..yönet</option>'+
'<option value="/thread.php?is=edit&bid='+i+'&t=">düzenle</option>'+
'<option value="/thread.php?is=move&bid='+i+'&t=">taşı</option>'+
'<option value="/thread.php?is=del&bid='+i+'&t=">sil</option>'+
    '</select>&nbsp;');
}

function urchintracker (i)
{
	urchinTracker (i);
}

function urchinTracker (i)
{
	pageTracker._trackPageview(i);
}

function dfi(t)
{
        document.write('<select style="width:130px" class=tedit onchange="if(this.selectedIndex>0){window.open(this.options[this.selectedIndex].value+\''+t+'\');this.selectedIndex=0;}">'+

'<option selected value="">daha fazlasını iste</option>'+
'<optgroup label="google">'+
'<option value="http://www.google.com.tr/search?sourceid=navclient&ie=UTF-8&rls=EGLC,EGLC:2006-31,EGLC:en&q=">web de ara</option>'+
'<option value="http://www.google.com.tr/search?hl=tr&meta=lr%3Dlang_tr&q=">tr de ara</option>'+
'</optgroup>'+
'<option value="http://www.tdk.gov.tr/TR/SozBul.aspx?F6E10F8892433CFFAAF6AA849816B2EF4376734BED947CDE&Kelime=">tdk sozluk de ara</option>'+
'<option value="http://www.seslisozluk.com/?word=">sesli sozluk de ara</option>'+
'<option value="http://tr.wikipedia.org/wiki/%C3%96zel:Search?search=">wikipedia tr</option>'+
'<option value="http://us.imdb.com/find?q=">IMDb de ara</option>'+
'<option value="http://foldoc.org/foldoc.cgi?query=">foldoc da ara</option>'+
'<optgroup label="all music">'+
'<option value="http://www.allmusic.com/cg/amg.dll?p=amg&opt1=1&sql=">artists/groups</option>'+
'<option value="http://www.allmusic.com/cg/amg.dll?p=amg&opt1=2&sql=">albums</option>'+
'<option value="http://www.allmusic.com/cg/amg.dll?p=amg&opt1=3&sql=">songs</option>'+
'</optgroup>'+
'<option value="http://www.acronymfinder.com/af-query.asp?Acronym=">kısaltmalar</option>'+
'<option value="http://www.mobygames.com/search/quick?q=">mobygames</option>'+
    '</select>');
}

function G(i) {
    return document.getElementById(i);
}

function buton(val,title,op,sub,w) {

var val,title,op,sub,w;

document.write("<input onmouseover=\"this.id='butover'\" onmouseout=\"this.id=''\" onmousedown=\"this.id='butdown'\" onmouseup=\"this.id=''\" title='");
document.write(title);
document.write("' class='but' type='");
if(sub==1){
	document.write("submit"); 
	}else{
	document.write("button");
	}
document.write("' onclick=\"");
document.write(op)
document.write("\" value='");
document.write(val);
document.write("'");
if(w!=""){
document.write(" style='width:");
document.write(w);
document.write("'");
} 

document.write(" />");

}


function g(f,i,an,y,re)
{
    with(document)
    {
      write('<table id="m'+i+'" style="visibility:hidden; border-collapse: separate;">');
      if(f&1){ // oyla
        a("javascript:od('/vote.php?id="+i+"&v=1')",":)","beğendim");
        a("javascript:od('/vote.php?id="+i+"&v=0')",":O","ne idüğü belirsiz");
        a("javascript:od('/vote.php?id="+i+"&v=-1')",":(","olmamış");
    }
      if(f&2){ // kaldır
        a("javascript:od('/addtkp.php?bid="+i+"&sil=1')","kaldır","bu başlığı takip etme artık");
    }
      if(f&4){ // kaldır
        a("javascript:od('/vote.php?id="+i+"&v=sil')","kaldır","bu giriyi istemiyorum artık");
    }
      write('</table>');
      var d=getElementById('d'+i);
      var m="document.getElementById('m"+i+"').style.visibility=";
      d.onmouseover=new Function(m+"'visible'");
      d.onmouseout=new Function(m+"'hidden'");
    }
}
function l(d){ids(d).innerHTML = "<br /><br /><br /><br /><br /><div align=center><img src=/images/kayit/yukleniyor.gif>yükleniyor...</div>";}
function onizle(id,fn,nm){
var id,fn,nm;
var oni=document.getElementById("oni");
  document.getElementById("nm").innerHTML=nm;
  document.sf.gorunum.value=id;
  document.sf.fn.value=fn;
oni.src="onizleme.php?p="+fn;
return false;
}

function fcr () {
var kt = new Date()
document.write("<div style=\"text-align:center;font-size:7pt\">copyright &copy; 2006 - "+ kt.getFullYear()+ " <a href=\"/goster.php?t=iü+sözlük\">iü sözlük</a></div><br><div class=\"copyright\"><b>iü sözlük</b>; tamamen kendi başına buyruk, herhangi bir kişi ya da kuruluşla ilgisi olmayan, özgür, okuyanlara doğru bilgi verme konusunu önemsemeyen bir topluluktur. 18 yaşından gün almamış bireyler için son derece zararlı bilgiler içerebilir. yazarlar, girilerinin telif hakkını iü sözlük\'e devretmiş sayılırlar. hukuki açıdan sözlüğü zora sokabileceğini düşündüğünüz bir durumla karşılaşmanız durumda bizimle \"şikayet\" ya da \"<a href=\"/iletisim.php\" target=\"ana\">iletişim</a>\" butonu ile irtibata geçiniz. iü sözlük içeriğindeki her şey <a href=\"http://creativecommons.org/licenses/by-nc-nd/3.0/\" target=\"_blank\">creative commons by-nc-nd</a> koşulları altında lisanslanmıştır. yani iü sözlük içeriği, üzerinde oynama yapılmadan ve kaynak belirtmek suretiyle ticari olmayan amaçlarla kullanılabilir. | <a href=\"/sitemap.php\" target=\"ana\">sitemap</a></div></center>");
}


function goUrl(url,frm) {
                open(url,frm);
}

function grow() {
	var a=document.getElementById('giri1');
		if (a.scrollHeight > a.clientHeight && !window.opera) document.getElementById('giri1').rows += 1;
}

function yaz(karakter){
var d=document.getElementById('giri1').value;
document.getElementById('giri1').value=d+karakter;
return true;
}


function vi(s,v) {
 var o = document.getElementById(s);
 if(o) o.style.visibility=v; 
}


//genel
var bTool = new Array("baslik","sugun");
var bToo = "";

function ids(i){return document.getElementById(i)}

function bOut(i,y) {
	i.id=y;
}

function bOver(i,y) {
	i.id=y;
}

function bDown(i,y) {
	i.id=y;
}


function araclar(bToo)
{
  for(i=0;i<bTool.length;i++)
  {
    var bTools = ids(bTool[i])   
    if(bTool[i] == bToo)
    {
      bTools.style.visibility = "visible";
    }
    else
    {
      bTools.style.visibility = "hidden";
    }
  }
}

function miniAjax(url,yaz) {
   var ht = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("MSXML2.XMLHTTP.3.0");
   ht.open("POST", url, true);
   ht.setRequestHeader("Content-Type", "text/html; charset=iso-8859-9"); 
   ht.onreadystatechange = function(){
      if (ht.readyState == 4 && ht.status == 200) {
         ids(yaz).innerHTML = ht.responseText;
      }
   }
   ht.send('yukleniyor...');
}
//genel son

var bid=0,lo=null,curtitle=null,is="",bis="",se="",pr='<td onmousedown="md(this)" onmouseup="bn(this)" onmouseover="ov(this)" onmouseout="bn(this)" class="but" onclick=';

function ov(o)
{
  o.id="butOver";
}

function md(o)
{
  o.id="butDown";
}

function bn(o)
{
  o.id="";
}

function hr(o)
{
    if(o)if(o.click)o.click();
}

function b(t,u,c,tt)
{
  document.write(pr+'"hr(this.childNodes[0])"><a ');
  if(tt)document.write(" title='"+tt+"'");
  document.write(' target='+t+' href="'+u+'">&nbsp;'+c+'&nbsp;</a></td>');
}

function s(f,c)
{
  document.write(pr+'"document.getElementById(\''+f+'\').submit()" style="cursor:hand">&nbsp;&nbsp;'+c+'&nbsp;</td>');
}

function a(u,c,t)
{
  document.write(pr+'"hr(this.childNodes[0])" title="'+t+'"><a href="'+u+'" class=icon>&nbsp;'+c+'&nbsp;</a></td>');
}
function ao(u,c,t)
{
  document.write(pr+'"hr(this.childNodes[0])" title="'+t+'"><a onclick="'+u+'" class=icon>&nbsp;'+c+'&nbsp;</a></td>');
}

function p(u,c,t,m)
{
  document.write(pr+'"hr(this.childNodes[0])" title="'+t+'"><a onclick="return confirm(\''+m+'\')" href="'+u+'" class=icon>&nbsp;'+c+'&nbsp;</a></td>');
}



function get()
{
  var o = document.getElementById('fg');
  o.submit();
}

function ci(i) 
{
  ic=document.getElementById('c'+i);
  with(ic)
  {
    style.display=style.display=='none'?'inline':'none';
    checked=checked?false:true;
    ct();
  }
}
function oe(id){
var id;
od('/goster.php?t=@'+id,800,400)
}
function ui(u)
{
  od('/userinfo.php?u='+u,400,420);
}
function e(f,i,an,y,ref,eh)
{
    with(document)
    {
      write('<span style="width:100%;text-align:right"><table id="m'+i+'" style="visibility:hidden; border-collapse: separate;"><tr><td class="ei" style="width:100%"><a href="javascript:void(0)" onclick="copyid('+i+','+f+');">#'+i+'</a></td>');
      if(f&1){ // others
        a("javascript:od('/vote.php?id="+i+"&v=1')",":)","beğendim");
        a("javascript:od('/vote.php?id="+i+"&v=0')",":O","ne idüğü belirsiz");
        a("javascript:od('/vote.php?id="+i+"&v=-1')",":(","olmamış");
        document.write('<td>&nbsp;</td>');
        a("javascript:od('/user.php?is=mesajlar&yenimsj=2&to="+an+"&giri=@"+i+"',400,260)","/msj","mesaj at");
        a("javascript:ui('"+an+"')","?","yazar hakkinda");
        ao("javascript:parent.location.href='/u/"+an+"'","/www","kişisel sayfası");
        a("javascript:od('/vote.php?id="+i+"&v=fave')","-D","favorilere ekle");
      if(eh&1) {
        document.write('<td>&nbsp;</td>');
        a("javascript:od('/"+ref+"&eh="+i+"',800,400)","~","ispitle");
      }
      if(y&1) {
        document.write('<td>&nbsp;</td>');
        a("javascript:od('/ispit.php?id="+i+"',554,350)",":P","ispitle");
      } if(y&2) {
        document.write('<td>&nbsp;</td>');
        a("/edit.php?id="+i+"&ref="+ref+"","...","düzelt");
        a("javascript:od('/del.php?id="+i+"&a=1',554,250)","X","sil");
        a("javascript:od('/move.php?id="+i+"',430,100)","&nbsp;>&nbsp;","giri taşıma");
      }
      }
      if(f&2) { //entry owner
        a("/edit.php?id="+i+"&ref="+ref+"","...","duzelt");
        a("javascript:od('/del.php?id="+i+"',430,120)","X","sil");
        a("javascript:od('/tezgah.php?id="+i+"&is=ekle')",":)","kalburüstü");
      if(eh&1) {
        document.write('<td>&nbsp;</td>');
        a("javascript:od('/"+ref+"&eh="+i+"',800,400)","~","ispiyonla");
      }
      if(y&2) {
        a("javascript:od('/move.php?id="+i+"',430,100)","&nbsp;>&nbsp;","giri taşıma");
        document.write('<td>&nbsp;</td>');
      }
      }
      if(f&4) { //rookies
        a("javascript:od('/vote.php?id="+i+"&v=1')",":)","beğendim");
        a("javascript:od('/vote.php?id="+i+"&v=0')",":O","ne idüğü belirsiz");
        a("javascript:od('/vote.php?id="+i+"&v=-1')",":(","olmamış");
        document.write('<td>&nbsp;</td>');
        a("javascript:ui('"+an+"')","?","yazar hakkında");
        ao("javascript:parent.location.href='/u/"+an+"'","/www","kişisel sayfası");
      }
      if(f&8){ //guest
        a("javascript:ui('"+an+"')","?","yazar hakkinda");
        ao("javascript:parent.location.href='/u/"+an+"'","/www","kişisel sayfası");
        a("javascript:location.href='/iletisim.php?kat=1&id="+i+"'","şikayet", "şikayet et");
      }
      if(f&16) { //entry owner
        a("/edit.php?id="+i+"&ref="+ref+"","...","düzelt");
        ao("javascript:if (confirm('dönüşü olmayan yollardasın?'))window.location.href='/del.php?id="+i+"&amp;yoket=1&amp;ref=user.php?is=cop'","X","sil");
}
      write('</tr></table></span>');
      var d=getElementById('d'+i);
      var m="document.getElementById('m"+i+"').style.visibility=";
      d.onmouseover=new Function(m+"'visible'");
      d.onmouseout=new Function(m+"'hidden'");
    }
}

function copyid(id,f) 
{
    var c = document.getElementById('cidtxt');
    var u = "http://www.iusozluk.net/goster.php?t=@"+id;
    if(!c) {prompt('@'+id+' nolu girinin adresi',u);return;}
    if(document.selection) {
      if(f&256){c.innerText = u;}else{c.innerText="@"+id;}
      var ct = c.createTextRange();
      ct.execCommand("Copy");
    } else {
      prompt('@'+id+' nolu girinin adresi',u);
    }    
}

function me(f,i,an,bx)
{
    with(document)
    {
      write('<span style="text-align:right"><table id="m'+i+'" style="visibility:hidden; border-collapse: separate"><tr><td style="width:100%">&nbsp;</td>');
      if(f&1){
        ao("document.mform.kime.value='"+an+"'; with(ids('yenimsjOnce').style){var b=display=='none';display=b?'inline':'none'}; with(ids('yenimsj').style){var b=display=='none';display=b?'inline':'none'}; javascript:scroll(0,0)","&nbsp;/cevapla&nbsp;","mesajı cevapla");
        a("javascript:ui('"+an+"')","&nbsp;?&nbsp;","yazar hakkında");
        a("/user.php?is=mesajlar&amp;box="+bx+"&amp;id="+i+"&amp;islem=sil","&nbsp;X&nbsp;","sil");
        a("/user.php?is=mesajlar&amp;box="+bx+"&amp;id="+i+"&amp;islem=arsivle","&nbsp;>&nbsp;","arşive yolla");
      }
      if(f&2){
        a("javascript:ui('"+an+"')","&nbsp;?&nbsp;","yazar hakkında");
        a("/user.php?is=mesajlar&amp;box="+bx+"&amp;id="+i+"&amp;islem=sil","&nbsp;X&nbsp;","sil");
      }
      if(f&4){
        ao("document.mform.kime.value='"+an+"'; with(ids('yenimsjOnce').style){var b=display=='none';display=b?'inline':'none'}; with(ids('yenimsj').style){var b=display=='none';display=b?'inline':'none'}; javascript:scroll(0,0)","&nbsp;/cevapla&nbsp;","mesajı cevapla");
        a("javascript:ui('"+an+"')","&nbsp;?&nbsp;","yazar hakkında");
        a("/user.php?is=mesajlar&amp;box="+bx+"&amp;id="+i+"&amp;islem=sil","&nbsp;X&nbsp;","sil");
      }
      write('</tr></table></span>');
      var d=getElementById('d'+i);
      var m="document.getElementById('m"+i+"').style.visibility=";
      d.onmouseover=new Function(m+"'visible'");
      d.onmouseout=new Function(m+"'hidden'");
    }
}

function tr(i)
{
  document.write('<tr style="cursor:default" onmouseover="document.getElementById("m'+i+'").style.visibility=\'visible\'" onmouseout="style.borderWidth=\'0\';document.getElementById("m'+i+'").style.visibility=\'hidden\'">');
}

function od(u,w,h,x,y)
{
  if(!w)w=320;if(!h)h=200;if(!x)x=(screen.width-w)/2;if(!y)y=(screen.height-h)/2;
  var w=window.open(u,"_blank","resizable=yes,scrollbars=yes,top="+x.toString()+",left="+y.toString()+",width="+w.toString()+",height="+h.toString());
  w.focus();
}

function odf(u,w,h,x,y)
{
    od(u,w,h,x,y);return false;
}

function au(d)
{
  document.write('<tr><td nowrap align="right" class="aul">(<a class="aul" href="/goster.php?t='+an+'">'+an+'</a>, '+d+')</td></tr>');
}

function ogs(n,s)
{
  document.write(' <select name="'+n+'"><option></option>');
  document.write("<option>01</option>");
  document.write("<option>02</option>");
  document.write("<option>03</option>");
  document.write("<option>04</option>");
  document.write("<option>05</option>");
  document.write("<option>06</option>");
  document.write("<option>07</option>");
  document.write("<option>08</option>");
  document.write("<option>09</option>");
  for(var n=10;n<=31;n++) document.write("<option>"+n+"</option>");
  if(s)for(n=02;n<=12;n++) document.write("<option value="+(n*30)+">"+n+" ay</option>");
  document.write('</select>');
}

function oas(n)
{
  document.write(' <select name="'+n+'"><option></option>');
  document.write("<option>01</option>");
  document.write("<option>02</option>");
  document.write("<option>03</option>");
  document.write("<option>04</option>");
  document.write("<option>05</option>");
  document.write("<option>06</option>");
  document.write("<option>07</option>");
  document.write("<option>08</option>");
  document.write("<option>09</option>");
  document.write("<option>10</option>");
  document.write("<option>11</option>");
  document.write("<option>12</option>");
  document.write('</select>');
}

function oys(n)
{
  document.write(' <select name="'+n+'"><option></option>');
  with(new Date()) for(var n=getFullYear();n>=1999;n-=1) document.write("<option>"+n+"</option>");
  document.write('</select>');
}

function bp(o, m, c) {
    var oo;
    for (var n = 1; n <= m; n++) {
        oo = document.createElement("OPTION");
        o.options.add(oo);
        oo.innerText = n;
        oo.Value = n;
        oo.selected = n == c;
    }
}

var inpp = false, n, o = null, idsg = null, maxs = 5, mx = 20, lx = 20, w, bi = 1, sint = null;

function osr()
{
  idsg = null;
  o = null;
  os();
}

function os()
{  
  if(o==null)
  {
        o = G('a');
    idsg=document.getElementById('sugun');
        window.onscroll = os;
        window.onresize = osr;
        w = document.documentElement.clientWidth;
        sint = new Array();
        for (n = 0; n <= maxs; n++) sint[n] = (parseInt(Math.sin((Math.PI * n / 2) / maxs) * (w - mx - lx)) + lx) + "px";
        o.style.left = sint[n = maxs]; o.style.width = (w - parseInt(sint[n]) - 0) + "px";
    idsg.style.right = sint[n=maxs];

    }
    if (o.clientHeight + 44 < document.documentElement.clientHeight)
        o.style.top = (document.documentElement.scrollTop + 44) + "px";
  with (idsg.style) with(document.documentElement)
  	if(idsg.clientHeight<clientHeight) idsg.style.top=(scrollTop+231)+"px";
}

function ca() {
    var amain = G('amain');
    n += bi; o.style.left = sint[n]; o.style.width = (w - parseInt(sint[n]) - 2) + "px";
    if (bi == 1) if (n < maxs) setTimeout("ca()", 20); else { document.body.focus(); amain.disabled = true; o.style.zIndex = 0; inpp = false; }
    else if (n > 0) setTimeout("ca()", 20); else { amain.disabled = false; var t = G('t'); if (t) t.focus(); inpp = false; }
}

function pp() {
    if (!o) return;
    if (!inpp) {
        inpp = true;
        if (bi > 0) o.style.zIndex = 1;
        bi = -bi; ca();
    }
}

/*
function hen(d,a,b)
{
  var o=document.getElementById(d);
  var tmp = o.scrollTop;
  o.focus();
  if(document.selection && !window.opera)
  {
      var rg=document.selection.createRange();
      if(rg.parentElement()==o) {
          rg.text = a+rg.text+b;
          rg.select();
        } else alert("bkz vermek istediğiniz metni seçin");
  }
  else if(o.selectionStart||o.selectionStart=='0')
  {
    var s = o.value;
    var end = o.selectionEnd;
    var start = o.selectionStart;
    o.value = s.substring(0,start)+a+s.substring(start,end)+b+s.substring(end);
    end += a.length+b.length;
    o.setSelectionRange(end, end);
  } else o.value += a+b;
  o.scrollTop = tmp; 
  return true;
}
*/
function hen(d,a,b){var k=document.getElementById(d);if(document.selection && !window.opera){var tn=document.selection.createRange();if(tn.parentElement()==k){ tn.text = a+tn.text+b;tn.select();} else alert("öncelikle bakınız vermek istediğiniz metni seçiyorsunuz.");}else if(k.selectionStart||k.selectionStart=='0'){var u = k.value;var end = k.selectionEnd;var start = k.selectionStart;k.value = u.substring(0,start)+a+u.substring(start,end)+b+u.substring(end);end += a.length+b.length;k.setSelectionRange(end, end);} else k.value += a+b;k.focus();return true;}