


var posx; 
var posy;
function capmouse(e){
// captures the mouse position
posx = 0; posy = 0;
if (!e){var e = window.event;}
if (e.pageX || e.pageY){
posx = e.pageX;
posy = e.pageY;
}
else if (e.clientX || e.clientY){
posx = e.clientX;
posy = e.clientY;
    var badOldBrowser = ( window.navigator.userAgent.indexOf( 'Opera' ) + 1 ) ||
     ( window.ScriptEngine && ScriptEngine().indexOf( 'InScript' ) + 1 ) ||
     ( navigator.vendor == 'KDE' )
    if( !badOldBrowser ) {
      if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
        //IE 4, 5 & 6 (in non-standards compliant mode)
        posx += document.body.scrollLeft;
        posy += document.body.scrollTop;
      } else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
        //IE 6 (in standards compliant mode)
        posx += document.documentElement.scrollLeft;
        posy += document.documentElement.scrollTop;
      }
    }
	
}
}


function kaybol(katman) {
if (document.all) {
document.all[katman].style.visibility="hidden";
}
else if (document.layers) {
document.layers[katman].visibility="hide";
}
else {
document.getElementById(katman).style.visibility="hidden";
}
}

function pencereAc(katman) {
if (document.all) {
document.all[katman].style.visibility="visible";
document.all[katman].style.left=posx+'px';
document.all[katman].style.top=posy+'px';
}
else if (document.layers) {
document.layers[katman].visibility="show";
document.layers[katman].left=posx+'px';
document.layers[katman].top=posy+'px';
}
else {
document.getElementById(katman).style.visibility="visible";
document.getElementById(katman).style.left=posx+'px';
document.getElementById(katman).style.top=posy+'px';
}
}

function toggleLayer(whichLayer) 
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display? "":"block";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display? "":"block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display? "":"block";
}
}


var http;
var browser = navigator.appName;
oXMLHttpRequest()

function oXMLHttpRequest() {
  var obj;
    try {
      // Sadece Tekelci için yani Internet Explorer için
      http = new ActiveXObject('Microsoft.XMLHTTP');
    }
    catch(e) {
      try {
        // Gecko tabanlı tarayıcılar , safari ve de Opera için
        http = new XMLHttpRequest();
      }
      catch (e) {
        // Tarayıcının XMLHttpRequest desteği yoksa
        http = false;
      }
    }
    return http;
}

function Goster(sayfa){ 
	document.getElementById('gosterBurda').innerHTML="Lütfen bekleyiniz...<br />Sorup soru&#351;turuyoruz..."
	var url=sayfa
    http.open('get', url);
	http.onreadystatechange = icerikdegisim;
    http.send(null);
	function icerikdegisim(){
    if(http.readyState == 4){
            document.getElementById('gosterBurda').innerHTML = http.responseText;
        } 
}

}

// fonksiyonlar

<!-- Begin
function giT(link) { 
window.location = link;
}
//  End -->
<!--
function sizeIt(x)
{
if ( document.getElementById(x).width > 200)
{document.getElementById(x).width = 200}
}
//-->

function Basamak(whichLayer)
{
if (document.getElementById)
{
// this is the way the standards work
var style2 = document.getElementById(whichLayer).style;
style2.display = style2.display? "":"block";
}
else if (document.all)
{
// this is the way old msie versions work
var style2 = document.all[whichLayer].style;
style2.display = style2.display? "":"block";
}
else if (document.layers)
{
// this is the way nn4 works
var style2 = document.layers[whichLayer].style;
style2.display = style2.display? "":"block";
}
}

function no_error()
{ return true; }

window.onerror=no_error;
