function AddValue(Y) {
  var X = document.forms.Sozluk.word;
  X.value = X.value + Y;
  X.focus();
}

function frameBuster() {
  if (top != self) {
    if (top.location)
      top.location.replace(self.location.href);
    else
      top.document.location.replace(self.document.location.href);
  }
}

function openWin(url, w, h) {
    var options = "width=" + w + ",height=" + h + ",";
    options += "resizable=no,scrollbars=yes,status=no,";
    options += "menubar=no,toolbar=no,location=no,directories=no";
    var newWin = window.open(url, 'newWin', options);
    newWin.focus();
}

frameBuster();

$(document).ready(function() {
  var width    = $('#logo').outerWidth();
  var pos_left = ($(document).width() - width) / 2;

  $('#sag_reklam').css("left", pos_left + width + 10);

  $('#sag_reklam').show();

  $(window).resize(function() {
    var pos_left = ($(document).width() - width) / 2;
    $('#sag_reklam').css("left", pos_left + width + 10);
  });

  if ($.browser.msie && $.browser.version < 7.0) {
    $('#sag_reklam').css('position', 'absolute');

    $(window).scroll(function() {
      $('#sag_reklam').css('top', $(this).scrollTop() + 'px');
    });
  }
});

